joyce8/EMBER2024-capa huggingface dataset:
Function at 0x415490
Capabilities:
Get common file path

Disassembly:
mov eax, 0x1010
call fcn.00417a60
push esi
push edi
mov ecx, 0x1ff
xor eax, eax
lea edi, [esp + 0x81a]
mov word [esp + 0x818], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x1ff
xor eax, eax
lea edi, [esp + 0x1a]
mov word [esp + 0x18], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x818]
push 0x800
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea ecx, [esp + 0x18]
push 0x800
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
xor edx, edx
xor eax, eax
mov word [esp + 8], 0
mov dword [esp + 0xa], edx
mov dword [esp + 8], eax
mov dword [esp + 0xe], edx
mov dword [esp + 0xc], eax
mov dword [esp + 0x12], edx
mov dword [esp + 0x10], eax
lea ecx, [esp + 8]
push eax
push eax
push eax
lea edx, [esp + 0x24]
push ecx
push edx
mov word [esp + 0x28], ax
call dword [sym.imp.MSVCRT.dll__wsplitpath]
lea eax, [esp + 0x1c]
push 0x427198
push eax
call dword [sym.imp.MSVCRT.dll_wcscat]
mov esi, dword [esp + 0x1038]
push 1
lea ecx, [esp + 0x838]
push esi
push ecx
call fcn.00418030
add esp, 0x28
test al, al
jne 0x41558d
push 0
lea edx, [esp + 0x1c]
push esi
push edx
call fcn.00418030
add esp, 0xc
test al, al
jne 0x41558d
push 0
lea eax, [esp + 0xc]
push esi
push eax
call fcn.00418030
add esp, 0xc
test al, al
jne 0x41558d
pop edi
mov al, 1
pop esi
add esp, 0x1010
ret
pop edi
xor al, al
pop esi
add esp, 0x1010
ret

Function at 0x4155a0
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x224
lea eax, [esp + 0x94]
push edi
push eax
push 0x101
xor edi, edi
call dword [sym.imp.WSOCK32.dll_WSAStartup]
test eax, eax
jne 0x4156d6
mov ax, word [esp + 0x98]
cmp al, 1
jne 0x4156d6
xor ecx, ecx
mov cl, ah
cmp cl, al
jne 0x4156d6
push esi
lea ecx, [esp + 0x80]
call fcn.00416510
lea ecx, [esp + 0x50]
call fcn.00415c40
lea ecx, [esp + 0x58]
call fcn.00415c40
lea ecx, [esp + 0x60]
call fcn.00415c40
lea ecx, [esp + 0x68]
call fcn.00415c40
mov eax, dword [str.1.pool.ntp.org]
test eax, eax
je 0x4156cb
mov eax, 0x4287fc
mov esi, eax
mov eax, dword [eax]
lea edx, [esp + 0x48]
push 0x7b
push edx
push eax
lea ecx, [esp + 0x8c]
call fcn.00416520
test eax, eax
je 0x4156a1
lea ecx, [esp + 0x78]
lea edx, [esp + 0x28]
push ecx
lea eax, [esp + 0x44]
push edx
push eax
call fcn.00416250
add esp, 4
mov ecx, eax
call fcn.00416020
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x2c]
call fcn.00416120
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x18]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ecx
lea eax, [esp + 0x30]
mov dword [esp + 8], edx
mov edx, dword [esp + 0x24]
lea ecx, [esp + 8]
push eax
push ecx
mov dword [esp + 0x1c], edx
call fcn.00418450
add esp, 8
test eax, eax
jne 0x4156bc
mov ecx, dword [esi + 4]
add esi, 4
test ecx, ecx
mov eax, esi
jne 0x415625
mov eax, edi
pop esi
pop edi
add esp, 0x224
ret
lea edx, [esp + 0x30]
push edx
call fcn.004183e0
add esp, 4
mov edi, eax
mov eax, edi
pop esi
pop edi
add esp, 0x224
ret
xor eax, eax
pop edi
add esp, 0x224
ret
Function at 0x416330
Capabilities:
Create udp socket

Disassembly:
push esi
push 0
push 2
mov esi, ecx
push 2
call sub.WSOCK32.dll_socket
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov dword [esi], eax
mov eax, ecx
pop esi
ret

Function at 0x416350
Capabilities:
Resolve dns
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
test ebx, ebx
mov dword [ebp - 4], ecx
jne 0x416367
xor esi, esi
jmp 0x416396
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edi, [eax + eax + 2]
mov eax, edi
add eax, 3
and al, 0xfc
call fcn.00417a60
mov esi, esp
push 0
push 0
push edi
push esi
push 0xffffffffffffffff
push ebx
push 0
push 0
mov byte [esi], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ecx, dword [ebp + 0xc]
xor eax, eax
mov dword [ebp - 0x14], eax
push ecx
mov dword [ebp - 0x10], eax
mov word [ebp - 0x14], 2
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
call sub.WSOCK32.dll_htons
push esi
mov word [ebp - 0x12], ax
call sub.WSOCK32.dll_inet_addr
cmp eax, 0xffffffff
mov dword [ebp - 0x10], eax
jne 0x4163d9
push esi
call sub.WSOCK32.dll_gethostbyname
test eax, eax
je 0x4163f3
mov edx, dword [eax + 0xc]
mov eax, dword [edx]
mov ecx, dword [eax]
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp - 4]
lea edx, [ebp - 0x14]
push 0x10
push edx
call fcn.00416410
lea esp, [ebp - 0x20]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
lea esp, [ebp - 0x20]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x416410
Capabilities:
Connect socket

Disassembly:
mov eax, dword [esp + 8]
mov edx, dword [esp + 4]
push eax
mov eax, dword [ecx]
push edx
push eax
call sub.WSOCK32.dll_connect
neg eax
sbb eax, eax
inc eax
ret 8

Function at 0x416490
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
push esi
mov esi, dword [esp + 0x118]
mov eax, 0x10624dd3
mov dword [esp + 0xc], 1
mul esi
shr edx, 6
mov dword [esp + 4], edx
mov eax, esi
xor edx, edx
mov esi, 0x3e8
div esi
mov eax, dword [ecx]
lea ecx, [esp + 4]
push ecx
push 0
push 0
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14], edx
lea edx, [esp + 0x18]
push edx
push 0
call sub.WSOCK32.dll_select
cmp eax, 0xffffffff
pop esi
jne 0x4164ef
xor eax, eax
add esp, 0x10c
ret 8
mov edx, dword [esp + 0x110]
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx], ecx
mov eax, 1
add esp, 0x10c
ret 8
Function at 0x416df0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x41cc48
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
mov eax, dword [esp + 0x30]
push esi
mov esi, ecx
mov word [esp + 4], 3
mov dword [esp + 0xc], eax
mov eax, dword [esi + 8]
lea ecx, [esp + 4]
push ecx
lea edx, [esp + 0x18]
push 0x428058
push edx
push 0xc
push 2
push 1
push eax
mov dword [esp + 0x48], 0
call fcn.00417383
mov dword [esi + 0xc], eax
mov eax, dword [esp + 0x30]
and eax, 0xfff
add esp, 0x1c
xor esi, esi
cmp eax, 3
jne 0x416e5a
mov esi, dword [esp + 0x1c]
lea ecx, [esp + 4]
mov dword [esp + 0x2c], 0xffffffff
push ecx
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
test eax, eax
jge 0x416e77
push eax
call fcn.00416e90
mov ecx, dword [esp + 0x24]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x2c
ret 4
Function at 0x419850
Capabilities:
Get disk information

Disassembly:
mov eax, 0x100c
call fcn.00417a60
push esi
push edi
call fcn.00419670
mov esi, eax
xor edx, edx
mov ecx, 0x1ff
xor eax, eax
lea edi, [esp + 0x816]
mov word [esp + 0x814], dx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x1ff
xor eax, eax
lea edi, [esp + 0x16]
mov word [esp + 0x14], dx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x14]
mov dword [esp + 8], edx
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], edx
push 0x400
lea ecx, [esp + 0x14]
push eax
lea edx, [esp + 0x14]
push ecx
lea eax, [esp + 0x14]
push edx
push eax
lea ecx, [esp + 0x828]
push 0x400
push ecx
push 0x429ea0
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
mov edx, dword [esp + 0x1018]
mov eax, dword [esp + 8]
push edx
push esi
push eax
call fcn.004197f0
add esp, 0xc
mov al, 1
pop edi
pop esi
add esp, 0x100c
ret
Function at 0x419900
Capabilities:
Create thread
Inject dll
Inject thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41cd30
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
xor esi, esi
push eax
push esi
push 0x43a
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
cmp edi, esi
mov dword [ebp + 8], edi
jne 0x419956
lea ecx, [ebp - 0x18]
push 0x4230f0
push ecx
mov dword [ebp - 0x18], esi
call sub.MSVCRT.dll__CxxThrowException
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
push 4
push 0x1000
lea ebx, [eax + eax]
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov esi, eax
test esi, esi
mov dword [ebp - 0x14], esi
jne 0x41998e
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push 0x4230f0
push eax
call sub.MSVCRT.dll__CxxThrowException
mov ecx, dword [ebp + 0xc]
push 0
push ebx
push ecx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x4199b2
lea edx, [ebp - 0x20]
push 0x4230f0
push edx
mov dword [ebp - 0x20], eax
call sub.MSVCRT.dll__CxxThrowException
push str.LoadLibraryW
push str.Kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
xor ebx, ebx
cmp eax, ebx
jne 0x4199e0
lea eax, [ebp - 0x24]
push 0x4230f0
push eax
mov dword [ebp - 0x24], ebx
call sub.MSVCRT.dll__CxxThrowException
push ebx
push ebx
push esi
push eax
push ebx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
cmp eax, ebx
jne 0x419a31
lea ecx, [ebp - 0x28]
push 0x4230f0
push ecx
mov dword [ebp - 0x28], ebx
call sub.MSVCRT.dll__CxxThrowException
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x419a1d
mov esi, dword [ebp + 8]
push 0x8000
push 0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
jmp 0x419a20
mov esi, dword [ebp + 8]
test esi, esi
je 0x419a2b
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0x419a52
ret
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x401130
Capabilities:
Encode data using xor

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
mov al, byte [edi]
xor esi, esi
test al, al
je 0x40115f
mov edi, edi
movsx eax, al
push eax
call fcn.0051654b
shl esi, 4
add esi, eax
mov eax, esi
shr eax, 0x1c
add esp, 4
inc edi
xor esi, eax
mov al, byte [edi]
test al, al
jne 0x401140
pop edi
mov eax, esi
pop esi
ret

Function at 0x403380
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x74
mov eax, dword [ecx]
mov eax, dword [eax + 0x60]
mov ecx, dword [eax + 0xc]
test ecx, ecx
mov edx, dword [eax + 0x10]
mov dword [esp], ecx
fild dword [esp]
jge 0x40339e
fadd dword [0x5303b0]
mov ecx, dword [esp + 0x80]
fst dword [esp + 4]
xor eax, eax
fstp dword [esp + 0x3c]
mov ah, byte [esp + 0x7c]
mov dword [esp + 0xc], ecx
movzx ecx, byte [esp + 0x78]
mov dword [esp], edx
mov dword [esp + 8], 0
or eax, ecx
fild dword [esp]
shl eax, 8
or eax, ecx
shl eax, 8
or eax, ecx
test edx, edx
mov ecx, dword [esp + 0x80]
mov dword [esp + 0x10], 0x3e2aaaab
mov dword [esp + 0x18], 0x3f800000
mov dword [esp + 0x1c], 0
mov dword [esp + 0x14], eax
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], 0x3e2aaaab
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x30], eax
jge 0x403433
fadd dword [0x5303b0]
mov edx, dword [esp + 0x80]
fst dword [esp + 0x40]
mov ecx, edx
fstp dword [esp + 0x5c]
mov dword [esp + 0x44], edx
mov edx, dword [0x84a7c8]
push 0
push 1
mov dword [esp + 0x50], 0x3e2aaaab
mov dword [esp + 0x58], 0x3f800000
mov dword [esp + 0x5c], 0x3f800000
mov dword [esp + 0x54], eax
mov dword [esp + 0x60], 0
mov dword [esp + 0x68], ecx
mov dword [esp + 0x6c], 0x3e2aaaab
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0x3f800000
mov dword [esp + 0x70], eax
call dword [edx + 0x20]
mov eax, dword [0x84a7c8]
push 2
push 7
call dword [eax + 0x20]
mov ecx, dword [0x84a7c8]
push 1
push 0xc
call dword [ecx + 0x20]
mov edx, dword [0x84a7c8]
push 5
push 0xa
call dword [edx + 0x20]
mov eax, dword [0x84a7c8]
push 6
push 0xb
call dword [eax + 0x20]
mov ecx, dword [0x84a7c8]
push 0
push 8
call dword [ecx + 0x20]
mov edx, dword [0x84a7c8]
push 0
push 6
call dword [edx + 0x20]
mov ecx, dword [0x84a7c8]
push 4
lea eax, [esp + 0x40]
push eax
push 4
call dword [ecx + 0x30]
mov edx, dword [0x84a7c8]
add esp, 0x44
push 1
push 8
call dword [edx + 0x20]
mov eax, dword [0x84a7c8]
push 1
push 6
call dword [eax + 0x20]
add esp, 0x84
ret 0xc
Function at 0x40b680
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10
lea eax, [esp]
push eax
push 0x20019
push 0
push 0x5306b4
push 0x80000001
mov dword [esp + 0x18], 4
call dword [sym.imp.advapi32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40b6f3
lea ecx, [esp + 4]
push ecx
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0xc]
push edx
mov edx, dword [esp + 8]
lea eax, [esp + 0x14]
push eax
push 0
push ecx
push edx
call dword [sym.imp.advapi32.dll_RegQueryValueExA]
test eax, eax
jne 0x40b6e9
mov edx, dword [esp]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 8]
push edx
mov dword [eax], ecx
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov al, 1
add esp, 0x10
ret
mov eax, dword [esp]
push eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
xor al, al
add esp, 0x10
ret

Function at 0x40b700
Capabilities:
Set registry value

Disassembly:
sub esp, 0x108
push esi
mov esi, dword [sym.imp.advapi32.dll_RegOpenKeyExA]
lea eax, [esp + 4]
push eax
push 0x20006
push 0
push 0x5306b4
push 0x80000001
call esi
test eax, eax
je 0x40b794
lea ecx, [esp + 8]
push ecx
push 0x5306b4
push 0x80000001
call dword [sym.imp.advapi32.dll_RegCreateKeyA]
lea edx, [esp + 4]
push edx
push 0x20006
push 0
push 0x5306b4
push 0x80000001
call esi
test eax, eax
je 0x40b794
mov eax, dword [esp + 0x110]
push eax
lea ecx, [esp + 0x10]
push 0x5306e0
push ecx
call fcn.00516fa5
mov eax, dword [0x81df74]
add esp, 0xc
push 0x30
push 0x5306c8
lea edx, [esp + 0x14]
push edx
push eax
call dword [sym.imp.user32.dll_MessageBoxA]
pop esi
add esp, 0x108
ret
mov edx, dword [esp + 0x110]
mov eax, dword [esp + 4]
push 4
lea ecx, [esp + 0x118]
push ecx
push 4
push 0
push edx
push eax
call dword [sym.imp.advapi32.dll_RegSetValueExA]
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.advapi32.dll_RegCloseKey]
pop esi
add esp, 0x108
ret

Function at 0x40b7d0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x88
lea eax, [esp]
push eax
push 0x20019
push 0
push 0x5306b4
push 0x80000001
mov dword [esp + 0x18], 0x80
call dword [sym.imp.advapi32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40b857
lea ecx, [esp + 4]
push ecx
mov ecx, dword [esp + 4]
lea edx, [esp + 0xc]
push edx
push eax
push eax
mov eax, dword [esp + 0x9c]
push eax
push ecx
call dword [sym.imp.advapi32.dll_RegQueryValueExA]
test eax, eax
jne 0x40b84d
mov edx, dword [esp + 0x90]
lea eax, [esp + 8]
mov ecx, eax
sub edx, ecx
nop
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x40b830
mov edx, dword [esp]
push edx
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov al, 1
add esp, 0x88
ret
mov eax, dword [esp]
push eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
xor al, al
add esp, 0x88
ret
Function at 0x40b860
Capabilities:
Set registry value

Disassembly:
sub esp, 0x108
push ebx
mov ebx, dword [esp + 0x114]
push esi
mov eax, ebx
push edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40b875
mov esi, dword [sym.imp.advapi32.dll_RegOpenKeyExA]
sub eax, edx
lea edi, [eax + 1]
lea eax, [esp + 0xc]
push eax
push 0x20006
push 0
push 0x5306b4
push 0x80000001
call esi
test eax, eax
je 0x40b910
lea ecx, [esp + 0x10]
push ecx
push 0x5306b4
push 0x80000001
call dword [sym.imp.advapi32.dll_RegCreateKeyA]
lea edx, [esp + 0xc]
push edx
push 0x20006
push 0
push 0x5306b4
push 0x80000001
call esi
test eax, eax
je 0x40b910
mov eax, dword [esp + 0x118]
push eax
lea ecx, [esp + 0x18]
push 0x5306e0
push ecx
call fcn.00516fa5
mov eax, dword [0x81df74]
add esp, 0xc
push 0x30
push 0x5306c8
lea edx, [esp + 0x1c]
push edx
push eax
call dword [sym.imp.user32.dll_MessageBoxA]
pop edi
pop esi
pop ebx
add esp, 0x108
ret
mov ecx, dword [esp + 0x118]
mov edx, dword [esp + 0xc]
push edi
push ebx
push 1
push 0
push ecx
push edx
call dword [sym.imp.advapi32.dll_RegSetValueExA]
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
pop edi
pop esi
pop ebx
add esp, 0x108
ret

Function at 0x40c660
Capabilities:
Get common file path

Disassembly:
sub esp, 0x104
lea eax, [esp]
push eax
push 0x104
call dword [sym.imp.kernel32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x40c6e3
cmp eax, 0x104
ja 0x40c6e3
mov edx, dword [0x84a7c8]
push esi
lea ecx, [esp + 4]
push 0x5307a8
push ecx
call dword [edx + 0xd4]
mov ecx, dword [0x571810]
push 0x5307a4
lea eax, [esp + 0x10]
push eax
push ecx
call fcn.004891f0
mov esi, eax
add esp, 0x14
test esi, esi
je 0x40c6d9
push esi
call fcn.004885b0
add esp, 4
test eax, eax
je 0x40c6d9
push esi
call fcn.00488840
add esp, 4
mov eax, 1
pop esi
add esp, 0x104
ret
xor eax, eax
pop esi
add esp, 0x104
ret
xor eax, eax
add esp, 0x104
ret
Function at 0x4109b0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x528c26
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
xor eax, eax
push esi
mov esi, ecx
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], eax
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov dword [esi + 0x48], eax
mov dword [esi + 0x4c], eax
mov dword [esi + 0x50], eax
mov dword [esi + 4], ecx
mov dword [esi], edx
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], 0x3f800000
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], 0x3dcccccd
mov dword [esi + 0x54], eax
mov dword [esi + 0x58], eax
mov eax, dword [ecx + 0x20]
mov edx, dword [eax + 0x20]
mov eax, dword [ecx]
push edx
push eax
push ecx
call fcn.00506820
mov dword [esi + 8], eax
mov eax, dword [esi + 4]
mov ecx, dword [eax + 0x20]
mov edx, dword [ecx + 0x20]
mov ecx, dword [eax]
push edx
push ecx
push eax
call fcn.00506820
mov edx, dword [esi + 4]
push esi
mov dword [esi + 0xc], eax
mov eax, dword [edx + 0x20]
push 0x40f7a0
push eax
call fcn.00508410
mov ecx, dword [esp + 0x2c]
add esp, 0x24
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8

Function at 0x4109c8
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x528c26
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
xor eax, eax
push esi
mov esi, ecx
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], eax
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov dword [esi + 0x48], eax
mov dword [esi + 0x4c], eax
mov dword [esi + 0x50], eax
mov dword [esi + 4], ecx
mov dword [esi], edx
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], 0x3f800000
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], 0x3dcccccd
mov dword [esi + 0x54], eax
mov dword [esi + 0x58], eax
mov eax, dword [ecx + 0x20]
mov edx, dword [eax + 0x20]
mov eax, dword [ecx]
push edx
push eax
push ecx
call fcn.00506820
mov dword [esi + 8], eax
mov eax, dword [esi + 4]
mov ecx, dword [eax + 0x20]
mov edx, dword [ecx + 0x20]
mov ecx, dword [eax]
push edx
push ecx
push eax
call fcn.00506820
mov edx, dword [esi + 4]
push esi
mov dword [esi + 0xc], eax
mov eax, dword [edx + 0x20]
push 0x40f7a0
push eax
call fcn.00508410
mov ecx, dword [esp + 0x2c]
add esp, 0x24
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8
Function at 0x418050
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x528f13
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
xor ecx, ecx
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x14], ecx
push edi
mov dword [esp + 0xc], esi
mov byte [esi + 4], cl
mov dword [esp + 0x18], ecx
mov dword [esi + 0x28], ecx
mov dword [esi + 0x2c], ecx
mov dword [esi + 0x30], ecx
mov edi, dword [esp + 0x20]
mov eax, edi
mov byte [esp + 0x18], 1
lea ebx, [eax + 1]
lea esp, [esp]
mov dl, byte [eax]
inc eax
cmp dl, cl
jne 0x4180a0
sub eax, ebx
push eax
push edi
mov ecx, esi
call fcn.00401850
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], ecx
mov ecx, dword [esp + 0x10]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 0xc

Function at 0x419290
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x529080
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push esi
xor esi, esi
mov dword [esp + 8], esi
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], esi
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
lea eax, [esp + 4]
push eax
mov ecx, 0x82e12c
mov dword [esp + 0x30], 1
call fcn.00419220
lea ecx, [esp + 0x14]
call fcn.004188e0
lea ecx, [esp + 4]
call fcn.00417990
mov ecx, dword [0x82e130]
cmp ecx, esi
jne 0x419308
xor eax, eax
pop esi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
add esp, 0x2c
ret
mov eax, dword [0x82e134]
sub eax, ecx
mov ecx, dword [esp + 0x24]
sar eax, 5
pop esi
mov dword fs:[0], ecx
add esp, 0x2c
ret
Function at 0x41b9b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 0xc]
sub esp, 0x48
cmp eax, 1
push ebx
push ebp
mov ebx, ecx
push esi
push edi
mov dword [ebx + 0x7c], eax
mov dword [ebx + 0x80], 0
jne 0x41bb0d
mov edi, dword [esp + 0x5c]
test edi, edi
jne 0x41b9ea
pop edi
pop esi
pop ebp
mov eax, 0x80070057
pop ebx
add esp, 0x48
ret 0xc
mov eax, dword [ebx]
test eax, eax
je 0x41b9ff
push eax
call fcn.00517a24
add esp, 4
mov dword [ebx], 0
push 0x10000
push 0
push edi
call dword [sym.imp.winmm.dll_mmioOpenA]
test eax, eax
mov dword [ebx + 4], eax
jne 0x41bacf
mov ebp, dword [sym.imp.kernel32.dll_FindResourceA]
push 0x532cac
push edi
push eax
call ebp
mov esi, eax
test esi, esi
jne 0x41ba40
push 0x532ca8
push edi
push eax
call ebp
mov esi, eax
test esi, esi
je 0x41bb59
push esi
push 0
call dword [sym.imp.kernel32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x41bb59
push esi
push 0
call dword [sym.imp.kernel32.dll_SizeofResource]
mov ebp, eax
test ebp, ebp
je 0x41bb59
push edi
call dword [sym.imp.kernel32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x41bb59
push ebp
call fcn.00516094
mov dword [ebx + 0x90], eax
mov edi, eax
mov ecx, ebp
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
add esp, 4
xor eax, eax
push 0x10000
lea edx, [esp + 0x14]
mov ecx, 0x12
lea edi, [esp + 0x14]
rep stosd dword es:[edi], eax
mov ecx, dword [ebx + 0x90]
push edx
push eax
mov dword [esp + 0x20], 0x204d454d
mov dword [esp + 0x30], ebp
mov dword [esp + 0x34], ecx
call dword [sym.imp.winmm.dll_mmioOpenA]
mov dword [ebx + 4], eax
mov ecx, ebx
call fcn.0041aa40
test eax, eax
jge 0x41baf2
mov eax, dword [ebx + 4]
push 0
push eax
call dword [sym.imp.winmm.dll_mmioClose]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x48
ret 0xc
mov ecx, ebx
call fcn.0041abc0
test eax, eax
jl 0x41bb59
mov ecx, dword [ebx + 0xc]
pop edi
pop esi
pop ebp
mov dword [ebx + 0x30], ecx
pop ebx
add esp, 0x48
ret 0xc
mov edx, dword [esp + 0x5c]
push 0x11002
push 0
push edx
call dword [sym.imp.winmm.dll_mmioOpenA]
test eax, eax
mov dword [ebx + 4], eax
je 0x41bb59
mov eax, dword [esp + 0x60]
push eax
mov ecx, ebx
call fcn.0041aee0
test eax, eax
jge 0x41bb4e
mov ecx, dword [ebx + 4]
push 0
push ecx
call dword [sym.imp.winmm.dll_mmioClose]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x48
ret 0xc
mov ecx, ebx
call fcn.0041abc0
test eax, eax
jge 0x41bb5b
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x48
ret 0xc