joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407e80
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call fcn.00407b50
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sub.msvcrt.dll_fwrite
mov dword [esp], 2
call fcn.00407b50
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
lea esi, [esi]

Function at 0x407ee0
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x41587c]
test esi, esi
jle 0x407fe0
mov eax, dword [0x415880]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp edx, ebx
ja 0x407f10
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x407f8f
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x407f00
mov dword [esp], ebx
call fcn.00408850
mov edi, eax
test eax, eax
je 0x408007
mov eax, dword [0x415880]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call fcn.00408960
mov edx, dword [0x415880]
add eax, dword [edi + 0xc]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x407fe7
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x407f88
sub eax, 4
and eax, 0xfffffffb
jne 0x407f96
add dword [0x41587c], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x20]
add ebx, dword [0x415880]
mov dword [ebx + 4], eax
mov dword [ebx + 8], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0x40
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x407f88
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.00407e80
xor esi, esi
jmp 0x407f1a
mov eax, dword [0x415880]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call fcn.00407e80
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call fcn.00407e80
lea esi, [esi]
nop
Function at 0x4084c0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x415898
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x415890]
sub esp, 4
test ebx, ebx
je 0x408515
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x40850e
test esi, esi
je 0x40850e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x4084f0
mov dword [esp], 0x415898
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x410370
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d0dc8
mov eax, dword fs:[0]
push eax
sub esp, 0x54
push ebx
push esi
mov eax, dword [0x50f52c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
push ebx
xor eax, eax
mov esi, 7
push 0x4e25d8
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x14], ebx
mov word [ebp - 0x24], ax
call fcn.00401860
mov dword [ebp - 4], ebx
lea ecx, [ebp + 8]
push ecx
lea edx, [ebp - 0x60]
push edx
call fcn.004101e0
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x44]
push 0x4e29e8
push eax
call fcn.00401a30
add esp, 0xc
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x28]
push ecx
push eax
call fcn.00419d40
mov byte [ebp - 4], 1
cmp dword [ebp - 0x2c], 8
jb 0x410402
mov edx, dword [ebp - 0x40]
push edx
call fcn.004b29fa
add esp, 4
xor eax, eax
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x30], ebx
mov word [ebp - 0x40], ax
mov byte [ebp - 4], bl
cmp dword [ebp - 0x48], 8
jb 0x410423
mov ecx, dword [ebp - 0x5c]
push ecx
call fcn.004b29fa
add esp, 4
xor edx, edx
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x4c], ebx
mov word [ebp - 0x5c], dx
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x10], 8
jb 0x410448
mov eax, dword [ebp - 0x24]
push eax
call fcn.004b29fa
add esp, 4
mov eax, dword [0x5108e0]
xor ecx, ecx
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x14], ebx
mov word [ebp - 0x24], cx
cmp eax, ebx
je 0x410471
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov edx, dword [0x5108e0]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x410c80
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d0f56
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x50f52c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov edi, dword [ebp + 8]
push edi
call fcn.0040d220
mov dword [ebp - 4], 1
lea eax, [edi + 0x18]
lea ecx, [esi + 0x18]
push eax
mov dword [ebp + 8], ecx
call fcn.0040d220
mov byte [ebp - 4], 3
lea ecx, [edi + 0x30]
push ecx
lea ecx, [esi + 0x30]
call fcn.004109f0
mov byte [ebp - 4], 4
lea edx, [edi + 0x48]
push edx
lea ecx, [esi + 0x48]
call fcn.0040efb0
mov byte [ebp - 4], 5
lea eax, [edi + 0x60]
push eax
lea ecx, [esi + 0x60]
call fcn.00408b80
mov byte [ebp - 4], 6
lea ecx, [edi + 0x8c]
push ecx
lea ecx, [esi + 0x8c]
call fcn.00409560
mov byte [ebp - 4], 7
mov edx, dword [edi + 0xe4]
mov dword [esi + 0xe4], edx
mov eax, dword [edi + 0xe8]
mov dword [esi + 0xe8], eax
mov ecx, dword [edi + 0xec]
mov dword [esi + 0xec], ecx
mov edx, dword [edi + 0xf0]
lea eax, [edi + 0xf4]
push eax
lea ecx, [esi + 0xf4]
mov dword [esi + 0xf0], edx
call fcn.004627f0
mov byte [ebp - 4], 8
lea ecx, [edi + 0x10c]
push ecx
lea ecx, [esi + 0x10c]
call fcn.0040f0c0
mov byte [ebp - 4], 9
lea edx, [edi + 0x124]
push edx
lea ecx, [esi + 0x124]
call fcn.0040f1c0
mov byte [ebp - 4], 0xa
lea eax, [edi + 0x13c]
push eax
lea ecx, [esi + 0x13c]
call fcn.00410ad0
mov byte [ebp - 4], 0xb
lea ecx, [edi + 0x154]
push ecx
lea ecx, [esi + 0x154]
call fcn.0040f2c0
mov byte [ebp - 4], 0xc
lea ecx, [esi + 0x16c]
lea eax, [edi + 0x16c]
mov dword [ecx + 0x18], 7
mov dword [ecx + 0x14], 0
xor edx, edx
push 0xffffffffffffffff
push edx
push eax
mov word [ecx + 4], dx
call fcn.00401750
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x411330
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d1036
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
push ebx
push esi
push edi
mov eax, dword [0x50f52c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
call fcn.0040ffc0
xor edi, edi
mov dword [ebp - 4], edi
lea ecx, [esi + 0x18]
call fcn.0040ffc0
mov byte [ebp - 4], 1
lea ecx, [esi + 0x30]
call fcn.00422440
mov byte [ebp - 4], 2
lea ecx, [esi + 0x48]
call fcn.00422440
mov byte [ebp - 4], 3
lea eax, [esi + 0x60]
mov ebx, 7
xor ecx, ecx
mov dword [eax + 0x18], ebx
mov dword [eax + 0x14], edi
mov dword [ebp - 0x14], eax
mov word [eax + 4], cx
mov byte [ebp - 4], 5
lea ecx, [esi + 0x8c]
call fcn.00432ee0
mov byte [ebp - 4], 6
lea ecx, [esi + 0xf4]
call fcn.00422440
mov byte [ebp - 4], bl
lea ecx, [esi + 0x10c]
call fcn.00422440
mov byte [ebp - 4], 8
lea ecx, [esi + 0x124]
call fcn.00422440
mov byte [ebp - 4], 9
lea ecx, [esi + 0x13c]
call fcn.00422440
mov byte [ebp - 4], 0xa
lea ecx, [esi + 0x154]
call fcn.00422440
mov byte [ebp - 4], 0xb
lea ecx, [esi + 0x16c]
xor edx, edx
mov dword [ecx + 0x18], ebx
mov dword [ecx + 0x14], edi
mov word [ecx + 4], dx
mov byte [ebp - 4], 0xc
push edi
push 0x4e25d8
call fcn.00401860
push edi
xor eax, eax
push 0x4e25d8
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x34], edi
mov word [ebp - 0x44], ax
call fcn.00401860
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x48]
push ecx
lea ecx, [ebp - 0x2c]
call fcn.004306b0
mov byte [ebp - 4], 0xe
push eax
mov ecx, esi
call fcn.0042ee90
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x2c]
call fcn.00403370
mov byte [ebp - 4], 0xc
cmp dword [ebp - 0x30], 8
jb 0x411478
mov edx, dword [ebp - 0x44]
push edx
call fcn.004b29fa
add esp, 4
xor eax, eax
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x34], edi
mov word [ebp - 0x44], ax
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x414f60
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [ecx], eax
mov dword [ecx + 0x1380], 1
push ebx
mov eax, dword [ecx + 0x1380]
mov edx, dword [ecx + eax*4 - 4]
mov ebx, edx
shr ebx, 0x1e
xor ebx, edx
imul ebx, ebx, 0x6c078965
add ebx, eax
mov dword [ecx + eax*4], ebx
inc dword [ecx + 0x1380]
cmp dword [ecx + 0x1380], 0x270
jl 0x414f73
pop ebx
pop ebp
ret 4
Function at 0x415ff0
Capabilities:
Hash data using sha1
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x78
mov eax, dword [0x50f52c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x510900]
mov edx, dword [0x510908]
push esi
mov esi, ecx
mov ecx, dword [0x510904]
mov dword [ebp - 0x18], eax
mov eax, dword [0x51090c]
mov dword [ebp - 0x14], ecx
mov ecx, dword [0x510910]
mov dword [ebp - 0x10], edx
lea edx, [ebp - 4]
mov dword [ebp - 0xc], eax
push edx
lea eax, [ebp - 0x18]
mov dword [ebp - 8], ecx
push eax
lea ecx, [ebp - 0x74]
mov dword [ebp - 0x74], 0x67452301
mov dword [ebp - 0x70], 0xefcdab89
mov dword [ebp - 0x6c], 0x98badcfe
mov dword [ebp - 0x68], 0x10325476
mov dword [ebp - 0x64], 0xc3d2e1f0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x78], 0x510900
call fcn.00415da0
lea ecx, [ebp - 0x74]
push ecx
lea edx, [ebp - 0x78]
push edx
lea ecx, [ebp - 0x74]
call fcn.00415da0
push 0
call fcn.004b4a6b
add esp, 4
mov dword [ebp - 0xc], eax
lea eax, [ebp - 4]
push eax
lea ecx, [ebp - 0xc]
push ecx
lea ecx, [ebp - 0x74]
mov dword [ebp - 8], edx
call fcn.00415da0
call fcn.004b4ea0
lea edx, [ebp - 4]
mov dword [ebp - 8], eax
push edx
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0x74]
call fcn.00415da0
call fcn.004b4e7e
mov dword [ebp - 0x10], eax
call fcn.004b4e7e
mov dword [ebp - 0xc], eax
call fcn.004b4e7e
lea ecx, [ebp - 4]
push ecx
lea edx, [ebp - 0x10]
push edx
lea ecx, [ebp - 0x74]
mov dword [ebp - 8], eax
call fcn.00415da0
mov eax, dword [esi + 0x18]
test eax, eax
je 0x4160fe
push eax
push 0x14
lea eax, [ebp - 0x18]
push 1
push eax
call fcn.004b4e61
add esp, 0x10
lea ecx, [ebp - 4]
push ecx
lea edx, [ebp - 0x18]
push edx
lea ecx, [ebp - 0x74]
call fcn.00415da0
push 4
call fcn.004b30d2
add esp, 4
lea ecx, [eax + 4]
push ecx
push eax
lea ecx, [ebp - 0x74]
mov dword [ebp - 8], eax
call fcn.00415da0
lea edx, [ebp - 4]
push edx
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0x74]
call fcn.00415da0
mov ecx, dword [ebp - 8]
push ecx
call fcn.004b29fa
add esp, 4
lea edx, [esi + 0x14]
push edx
push esi
lea ecx, [ebp - 0x74]
call fcn.00415da0
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x74]
call fcn.00415df0
mov eax, dword [ebp - 0x78]
mov ecx, dword [ebp - 0x18]
xor dword [eax], ecx
xor dword [esi], ecx
mov ecx, dword [ebp - 0x14]
xor dword [eax + 4], ecx
xor dword [esi + 4], ecx
mov ecx, dword [ebp - 0x10]
xor dword [eax + 8], ecx
xor dword [esi + 8], ecx
mov ecx, dword [ebp - 0xc]
xor dword [eax + 0xc], ecx
xor dword [esi + 0xc], ecx
mov ecx, dword [ebp - 8]
xor dword [eax + 0x10], ecx
xor dword [esi + 0x10], ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004b3057
mov esp, ebp
pop ebp
ret
Function at 0x4165f0
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ecx + 4]
sub esi, dword [ecx]
mov ebx, 1
mov dword [ebp - 4], ecx
inc esi
push edi
xor ecx, ecx
mov eax, ebx
mov edx, 0x20
mov edi, edi
or ecx, eax
rol eax, 1
sub edx, ebx
jne 0x416610
cmp ecx, 0xffffffff
jne 0x416625
lea ebx, [edx + 2]
mov ecx, SysReAllocString
inc ecx
xor edx, edx
mov eax, ecx
div esi
test edx, edx
jne 0x416634
mov ebx, eax
jmp 0x416651
shr eax, 5
cmp eax, esi
jb 0x416651
jmp 0x416640
shr ecx, 1
xor edx, edx
mov eax, ecx
div esi
add ebx, ebx
shr eax, 5
cmp eax, esi
jae 0x416640
mov eax, dword [ebp + 8]
mov edi, dword [eax]
mov eax, dword [edi + 0x1380]
cmp eax, 0x270
jne 0x416667
push 0
jmp 0x416670
cmp eax, 0x4e0
jl 0x416677
push 1
mov ecx, edi
call fcn.00415070
mov eax, dword [edi + 0x1380]
mov ecx, dword [edi + eax*4]
inc eax
mov dword [edi + 0x1380], eax
mov edx, ecx
shr edx, 0xb
xor ecx, edx
mov eax, ecx
and eax, 0xff3a58ad
shl eax, 7
xor ecx, eax
mov edx, ecx
and edx, 0xffffdf8c
shl edx, 0xf
xor ecx, edx
mov eax, ecx
shr eax, 0x12
xor eax, ecx
xor edx, edx
div ebx
xor edx, edx
mov ecx, dword [ebp - 4]
pop edi
div esi
pop esi
pop ebx
mov eax, edx
add eax, dword [ecx]
mov esp, ebp
pop ebp
ret 4
Function at 0x416a70
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
push edi
mov edi, ecx
mov dword [ebp - 0xc], edi
xor ecx, ecx
mov eax, 1
mov edx, 0x20
lea esp, [esp]
or ecx, eax
rol eax, 1
sub edx, 1
jne 0x416a90
mov esi, dword [edi + 8]
mov dword [ebp - 8], ecx
test esi, esi
jne 0x416aad
mov eax, dword [edi]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
cmp ecx, esi
jne 0x416ac9
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
call fcn.00415a10
mov ecx, eax
mov eax, dword [edi]
pop edi
add eax, ecx
pop esi
mov esp, ebp
pop ebp
ret 4
jae 0x416bc3
push ebx
xor edx, edx
cmp esi, 0xffffffff
jne 0x416af4
mov esi, dword [edi + 8]
lea ebx, [ecx + 1]
mov eax, esi
div ebx
xor edx, edx
mov dword [ebp - 4], eax
mov eax, esi
div ecx
inc edx
cmp edx, ecx
jne 0x416afd
inc dword [ebp - 4]
jmp 0x416afd
inc ecx
lea eax, [esi + 1]
div ecx
mov dword [ebp - 4], eax
mov esi, 1
xor ebx, ebx
cmp esi, dword [ebp - 4]
ja 0x416b82
lea esp, [esp]
mov ecx, dword [ebp + 8]
mov edi, dword [ecx]
mov eax, dword [edi + 0x1380]
cmp eax, 0x270
jne 0x416b26
push 0
jmp 0x416b2f
cmp eax, 0x4e0
jl 0x416b36
push 1
mov ecx, edi
call fcn.00415070
mov ecx, dword [edi + 0x1380]
mov eax, dword [edi + ecx*4]
inc ecx
mov edx, eax
shr edx, 0xb
xor eax, edx
mov dword [edi + 0x1380], ecx
mov ecx, eax
and ecx, 0xff3a58ad
shl ecx, 7
xor eax, ecx
mov edx, eax
and edx, 0xffffdf8c
shl edx, 0xf
xor eax, edx
mov ecx, eax
shr ecx, 0x12
xor ecx, eax
mov eax, dword [ebp - 8]
imul ecx, esi
inc eax
imul esi, eax
add ebx, ecx
cmp esi, dword [ebp - 4]
jbe 0x416b10
mov edi, dword [ebp - 0xc]
mov eax, dword [edi + 8]
xor edx, edx
div esi
mov edx, dword [ebp + 8]
push edx
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
call fcn.00416a70
imul eax, esi
mov esi, dword [edi + 8]
add ebx, eax
cmp ebx, esi
jbe 0x416bb6
mov ecx, dword [ebp - 8]
jmp 0x416ad0
mov eax, dword [edi]
add eax, ebx
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
xor edx, edx
mov eax, ecx
div esi
cmp eax, 4
jbe 0x416bed
mov ecx, dword [edi + 4]
mov edx, dword [ebp + 8]
mov eax, dword [edi]
mov dword [ebp - 0xc], ecx
push edx
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x10], eax
call fcn.004165f0
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
mov esi, dword [ebp + 8]
mov ecx, dword [esi]
call fcn.00415a10
mov ecx, eax
cmp ecx, dword [edi + 8]
ja 0x416bf0
mov eax, dword [edi]
pop edi
add eax, ecx
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x418730
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d1c36
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x50f52c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov eax, dword [ebp + 0x18]
xor ecx, ecx
mov dword [esi], eax
mov dword [esi + 4], ecx
mov dword [ebp - 4], ecx
mov edi, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov dword [esi + 0x14], edi
mov edi, dword [ebp + 0x14]
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], edx
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], eax
mov eax, dword [ebp + 0x28]
mov dword [esi + 0x20], edx
mov edx, dword [ebp + 0x24]
mov dword [esi + 0x24], ecx
mov dword [esi + 0x28], ecx
mov dword [esi + 0x2c], ecx
mov dword [esi + 0x30], ecx
mov dword [esi + 0x34], edx
mov edx, dword [ebp + 0x1c]
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], edx
mov eax, dword [edx]
mov eax, dword [eax]
mov dword [esi + 0x40], eax
lea eax, [esi + 0x68]
mov dword [esi + 0x64], eax
mov byte [esi + 0x63], cl
lea edi, [esi + 0x64]
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
mov dword [eax], edi
or edi, 0xffffffff
mov dword [eax + 4], ecx
mov dword [eax + 8], edi
mov dword [eax + 0xc], ecx
mov byte [ebp - 4], 1
mov ecx, dword [ebp + 0x20]
push ecx
push edx
mov ecx, esi
call fcn.00498a50
mov dword [ebp - 4], edi
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x24
Function at 0x424b10
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x424b2d
pop edi
pop ebx
pop ebp
ret 0xc
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x424b64
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x424b60
lea ecx, [ecx]
cmp esi, eax
jae 0x424b64
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x424b50
cmp esi, eax
jb 0x424b6d
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret 0xc
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret 0xc
Function at 0x424e90
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
push esi
push eax
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x424eaf
pop esi
pop ebp
ret 0x10
push edi
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test edi, edi
jne 0x424ec5
pop edi
pop esi
pop ebp
ret 0x10
push ebx
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x424f7c
push edi
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x424f63
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x424f57
push edi
push ebx
push eax
call fcn.004b5130
add esp, 0xc
lea edx, [ebp + 0x10]
push edx
push 1
push esi
mov dword [ebp + 0x10], 0
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x424f44
push eax
mov eax, dword [ebp + 0x10]
push eax
call fcn.00424d10
mov edi, eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x424f66
mov edi, dword [ebp + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x424f66
mov edi, dword [ebp + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x424f66
mov edi, dword [ebp + 0x10]
mov ecx, dword [edi + 4]
push 0
lea eax, [ebp + 0xc]
push eax
push ecx
call sub.gdiplus.dll_GdipCreateHBITMAPFromBitmap
test eax, eax
je 0x424f85
mov dword [edi + 8], eax
pop ebx
pop edi
xor eax, eax
pop esi
pop ebp
ret 0x10
mov edx, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
push edx
push 0
push 0x172
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
cmp dword [ebp + 0x14], 0
mov esi, eax
je 0x424fab
mov ecx, dword [ebx]
push 5
push ecx
jmp 0x424fb0
mov edx, dword [ebx]
push 0
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
mov ebx, dword [sym.imp.GDI32.dll_DeleteObject]
test esi, esi
je 0x424fc3
push esi
call ebx
mov eax, dword [ebp + 0xc]
push eax
call ebx
mov edx, dword [edi]
mov eax, dword [edx]
push 1
mov ecx, edi
call eax
pop ebx
pop edi
mov eax, 1
pop esi
pop ebp
ret 0x10
Function at 0x430710
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d5480
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x50f52c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 0x30]
push 0
lea edi, [esi + 0x1c]
push 0x4e25d8
push eax
push 0
mov ecx, edi
call fcn.00401fe0
test eax, eax
jne 0x4307bf
cmp dword [esi + 0x18], 8
lea ecx, [esi + 0x38]
push ecx
jb 0x430761
mov esi, dword [esi + 4]
jmp 0x430764
add esi, 4
sub esp, 0x1c
mov ecx, esp
xor edx, edx
mov eax, esi
mov dword [ecx + 0x18], 7
mov dword [ecx + 0x14], 0
mov dword [ebp - 0x10], esp
mov word [ecx + 4], dx
lea edi, [eax + 2]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x430785
sub eax, edi
sar eax, 1
push eax
push esi
call fcn.00401860
mov dword [ebp - 4], 0
mov dword [ebp - 4], 0xffffffff
call fcn.00427d60
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp dword [edi + 0x18], 8
jb 0x4307ca
mov edi, dword [edi + 4]
jmp 0x4307cd
add edi, 4
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x430825
cmp dword [esi + 0x18], 8
lea eax, [esi + 0x38]
push eax
jb 0x4307e7
mov esi, dword [esi + 4]
jmp 0x4307ea
add esi, 4
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x10], esp
push esi
call fcn.004019e0
mov dword [ebp - 4], 1
mov dword [ebp - 4], 0xffffffff
call fcn.00427d60
test eax, eax
je 0x430825
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret