joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43a640
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov eax, dword [0x4c8a00]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x1a4], ecx
mov eax, 0x202
mov word [ebp - 0x19c], ax
lea ecx, [ebp - 0x198]
push ecx
movzx edx, word [ebp - 0x19c]
push edx
call sub.WS2_32.dll_WSAStartup
mov dword [ebp - 0x1a0], eax
cmp dword [ebp - 0x1a0], 0
jne 0x43a68c
mov al, 1
jmp 0x43a68e
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046c016
mov esp, ebp
pop ebp
ret

Function at 0x446760
Capabilities:
Get file version info

Disassembly:
push 0xffffffffffffffff
push 0x49f0a0
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4c8a00]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov edi, ecx
xor esi, esi
mov dword [esp + 0x20], edi
mov dword [esp + 0x14], esi
lea eax, [esp + 0x24]
mov dword [esp + 0x38], esi
mov ecx, dword [esp + 0x40]
push eax
push ecx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov ebp, eax
cmp ebp, esi
je 0x4468a7
push ebp
push 2
mov dword [esp + 0x24], esi
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edx, dword [esp + 0x24]
mov edi, eax
mov eax, dword [esp + 0x40]
push edi
push ebp
push edx
push eax
call sub.VERSION.dll_GetFileVersionInfoW
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x18]
push edx
push 0x4ac304
push edi
call sub.VERSION.dll_VerQueryValueW
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [esp + 0x14]
mov di, word [eax + 0x12]
mov bp, word [eax + 0x10]
mov bx, word [eax + 0x16]
mov ax, word [eax + 0x14]
mov word [esp + 0x2e], ax
call fcn.0044d2b5
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x446827
push 0x80004005
call fcn.004010b0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
movzx ecx, word [esp + 0x2e]
push ecx
movzx edx, bx
push edx
movzx eax, bp
push eax
movzx ecx, di
push ecx
lea edx, [esp + 0x28]
push 0x4b6970
push edx
mov byte [esp + 0x50], 1
call fcn.00402850
add esp, 0x18
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov esi, dword [esp + 0x18]
add esi, 0xfffffff0
push esi
call fcn.00402640
mov edi, dword [esp + 0x24]
add eax, 0x10
mov dword [edi], eax
add esp, 4
mov byte [esp + 0x38], 0
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4468b3
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
jmp 0x4468b3
push 0x4ab640
mov ecx, edi
call fcn.00401c60
mov dword [esp + 0x38], 0xffffffff
mov eax, dword [esp + 0x40]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4468db
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret
Function at 0x449150
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x49eff8
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4c8a00]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
push str.Software_
lea ecx, [esp + 0x18]
mov dword [esp + 0x34], 1
call fcn.00401c60
push 6
push str.Youxun
lea ecx, [esp + 0x1c]
mov byte [esp + 0x38], 2
call fcn.004026b0
mov eax, dword [esp + 0x38]
mov eax, dword [eax - 0xc]
xor ebx, ebx
cmp eax, ebx
je 0x4491d1
push 1
push 0x4ac304
lea ecx, [esp + 0x1c]
call fcn.004026b0
mov eax, dword [esp + 0x38]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x1c]
call fcn.004026b0
mov edx, dword [esp + 0x14]
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea ecx, [esp + 0x18]
push ecx
push 0xf003f
push ebx
push edx
push SysReAllocStringLen
xor esi, esi
mov dword [esp + 0x2c], ebx
call edi
mov ebp, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, ebx
jne 0x449204
mov esi, dword [esp + 0x18]
jmp 0x44926c
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x20]
push ecx
push ebx
push 0x2001f
push ebx
push ebx
push ebx
push edx
push SysReAllocStringLen
mov dword [esp + 0x40], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, ebx
jne 0x44923c
mov esi, dword [esp + 0x1c]
cmp esi, ebx
je 0x44923c
push esi
call ebp
xor esi, esi
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x20]
push eax
push 0xf003f
push ebx
push ecx
push SysReAllocStringLen
mov dword [esp + 0x34], ebx
call edi
cmp eax, ebx
jne 0x44928a
xor eax, eax
cmp esi, ebx
je 0x449264
push esi
call ebp
mov esi, dword [esp + 0x20]
cmp eax, ebx
jne 0x44928a
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x40]
push 4
lea eax, [esp + 0x44]
push eax
push 4
push ebx
push ecx
push esi
mov dword [esp + 0x58], edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp esi, ebx
je 0x449291
push esi
call ebp
mov byte [esp + 0x30], 1
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4492b6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x30], bl
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4492da
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x30], 0xffffffff
mov eax, dword [esp + 0x3c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x449302
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 0xc
Function at 0x44b470
Capabilities:
Get mac address on windows

Disassembly:
push ecx
push esi
push 0x288
mov dword [esp + 8], 0x288
call fcn.0044d1d8
mov esi, eax
add esp, 4
test esi, esi
je 0x44b544
push 0x288
push 0
push esi
call fcn.00470d40
add esp, 0xc
lea eax, [esp + 4]
push eax
push esi
call sub.IPHLPAPI.DLL_GetAdaptersInfo
cmp eax, 0x6f
jne 0x44b4bf
push esi
call fcn.0044d212
add esp, 4
pop esi
pop ecx
ret 4
lea ecx, [esp + 4]
push ecx
push esi
call sub.IPHLPAPI.DLL_GetAdaptersInfo
test eax, eax
jne 0x44b53b
mov eax, esi
mov ecx, 6
cmp dword [eax + 0x1a0], ecx
jne 0x44b4e5
cmp dword [eax + 0x190], ecx
je 0x44b4f9
mov eax, dword [eax]
test eax, eax
jne 0x44b4d5
push esi
call fcn.0044d212
add esp, 4
pop esi
pop ecx
ret 4
movzx edx, byte [esi + 0x199]
movzx eax, byte [esi + 0x198]
movzx ecx, byte [esi + 0x197]
push edx
movzx edx, byte [esi + 0x196]
push eax
movzx eax, byte [esi + 0x195]
push ecx
movzx ecx, byte [esi + 0x194]
push edx
mov edx, dword [esp + 0x1c]
push eax
push ecx
push 0x4b6d60
push edx
call fcn.00402850
add esp, 0x20
push esi
call fcn.0044d212
add esp, 4
pop esi
pop ecx
ret 4

Function at 0x44b550
Capabilities:
Get local ipv4 addresses
Get mac address on windows

Disassembly:
push ecx
push esi
push 0x170
mov dword [esp + 8], 0x170
call fcn.0044d1d8
mov esi, eax
add esp, 4
test esi, esi
je 0x44b614
push 0x170
push 0
push esi
call fcn.00470d40
add esp, 0xc
lea eax, [esp + 4]
push eax
push esi
push 0
push 0
push 0
call sub.IPHLPAPI.DLL_GetAdaptersAddresses
cmp eax, 0x6f
jne 0x44b5a5
push esi
call fcn.0044d212
add esp, 4
pop esi
pop ecx
ret 4
lea ecx, [esp + 4]
push ecx
push esi
push 0
push 0
push 0
call sub.IPHLPAPI.DLL_GetAdaptersAddresses
test eax, eax
jne 0x44b60b
mov eax, esi
mov ecx, 6
cmp dword [eax + 0x34], ecx
je 0x44b5db
mov eax, dword [eax + 8]
test eax, eax
jne 0x44b5c1
push esi
call fcn.0044d212
add esp, 4
pop esi
pop ecx
ret 4
movzx edx, byte [eax + 0x31]
movzx ecx, byte [eax + 0x30]
push edx
movzx edx, byte [eax + 0x2f]
push ecx
movzx ecx, byte [eax + 0x2e]
push edx
movzx edx, byte [eax + 0x2d]
movzx eax, byte [eax + 0x2c]
push ecx
mov ecx, dword [esp + 0x1c]
push edx
push eax
push 0x4b6d60
push ecx
call fcn.00402850
add esp, 0x20
push esi
call fcn.0044d212
add esp, 4
pop esi
pop ecx
ret 4
Function at 0x44e68f
Capabilities:
Create http request

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push esi
mov esi, ecx
and dword [esi + 0x10], 0
and dword [esi + 0xc], 0
mov dword [esi + 4], eax
mov eax, dword [ebp + 8]
mov dword [esi], vtable.CInternetSession.0
test eax, eax
jne 0x44e6ba
call fcn.004539a3
mov eax, dword [eax + 0x10]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [esi + 8], eax
test eax, eax
jne 0x44e6dd
push eax
push dword [esi + 4]
call fcn.0044e615
push esi
push eax
mov ecx, 0x4cb23c
call fcn.0044e2c2
mov eax, esi
pop esi
pop ebp
ret 0x18

Function at 0x451562
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x4515aa
call fcn.004539a3
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x4515aa
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x4515ed
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
test ebx, ebx
je 0x4515d6
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x4515d6
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x4515ea
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x45b38f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x45b3d6
call fcn.004539a3
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x45b3d6
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x45b3f2
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0045af07
mov esi, eax
test edi, edi
je 0x45b3f0
test ebx, ebx
je 0x45b3f0
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x45baf5
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x49c11a
call fcn.004709aa
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x45bb1a
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x45bb60
lea ecx, [ebp - 0x10]
call fcn.00401c30
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004178b0
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00401180
mov eax, esi
call fcn.00470a82
ret 8
Function at 0x46c016
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4c8a00]
jne 0x46c020
repz ret
jmp fcn.0047520e

Function at 0x480e03
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00474b72
and dword [ebp - 4], 0
cmp dword [0x4cdcec], 0
mov ebx, eax
jne 0x480eb4
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x480f65
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x480f65
push eax
call fcn.00474b00
mov dword [esp], 0x4a8cb8
push edi
mov dword [0x4cdcec], eax
call esi
push eax
call fcn.00474b00
mov dword [esp], 0x4a8ca4
push edi
mov dword [0x4cdcf0], eax
call esi
push eax
call fcn.00474b00
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4cdcf4], eax
call esi
push eax
call fcn.00474b00
pop ecx
mov dword [0x4cdcfc], eax
test eax, eax
je 0x480eb4
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00474b00
pop ecx
mov dword [0x4cdcf8], eax
mov eax, dword [0x4cdcf8]
cmp eax, ebx
je 0x480f0c
cmp dword [0x4cdcfc], ebx
je 0x480f0c
push eax
call fcn.00474b7b
push dword [0x4cdcfc]
mov esi, eax
call fcn.00474b7b
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x480f0c
test edi, edi
je 0x480f0c
call esi
test eax, eax
je 0x480f03
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x480f03
test byte [ebp - 0xc], 1
jne 0x480f0c
or dword [ebp + 0x10], 0x200000
jmp 0x480f45
mov eax, dword [0x4cdcf0]
cmp eax, ebx
je 0x480f45
push eax
call fcn.00474b7b
pop ecx
test eax, eax
je 0x480f45
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x480f45
mov eax, dword [0x4cdcf4]
cmp eax, ebx
je 0x480f45
push eax
call fcn.00474b7b
pop ecx
test eax, eax
je 0x480f45
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4cdcec]
call fcn.00474b7b
pop ecx
test eax, eax
je 0x480f65
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x480f67
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4019bc
Capabilities:
Shutdown system

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x4071b4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x18]
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
xor esi, esi
test eax, eax
je 0x401a30
lea eax, [ebp - 0x20]
push eax
push 0x401168
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x401a27
mov eax, dword [ebp - 0x20]
push esi
push esi
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x1c]
push esi
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x14]
push eax
push esi
push dword [ebp - 0x18]
mov dword [ebp - 0x14], 1
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x80010002
push 1
push esi
push esi
push esi
push esi
call dword [sym.imp.ADVAPI32.dll_InitiateSystemShutdownExW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004065e0
mov esp, ebp
pop ebp
ret

Function at 0x401d4f
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov esi, ecx
mov ebx, edx
push 0x2004
mov dword [ebp - 0xc], esi
call fcn.004062d8
mov edi, eax
pop ecx
test edi, edi
je 0x401dfe
lea eax, [ebp - 4]
mov dword [ebp - 4], 0x2000
push eax
push edi
lea eax, [ebp - 8]
push eax
push 0
push ebx
push esi
jmp 0x401dd8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x401df7
cmp dword [ebp - 8], 7
jne 0x401df7
mov esi, dword [ebp - 4]
push edi
call fcn.00406301
push 2
pop edx
shr esi, 1
xor ecx, ecx
lea eax, [edx + esi]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004062d8
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x401dfe
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp - 8]
push eax
push 0
push ebx
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x401d8c
mov eax, dword [ebp - 4]
xor ecx, ecx
shr eax, 1
mov dword [edi + eax*2], ecx
mov ecx, edi
call fcn.00401afb
test eax, eax
jne 0x401e00
push edi
call fcn.00406301
pop ecx
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x404fb0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x4071b4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x18]
xor edx, edx
push ebx
push 2
pop ebx
mov dword [ebp - 0x214], edx
cmp dword [ebp + 0xc], edx
je 0x404fe1
push 3
pop eax
jmp 0x4050d3
cmp dword [ebp + 0x14], ebx
jl 0x404fd9
mov ecx, dword [eax]
cmp word [ecx], dx
je 0x404fd9
mov eax, dword [eax + 4]
mov dword [ebp - 0x210], eax
cmp word [eax], dx
je 0x404fd9
push esi
push edx
lea eax, [ebp - 0x20c]
mov esi, 0x104
push eax
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
cmp eax, esi
jae 0x4050d0
test eax, eax
je 0x4050d0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4050d0
push 0x401380
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x4050d0
push edi
push 0x401398
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x4050c8
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x210]
push 0xeeae
push 1
call fcn.00406b53
pop ecx
push eax
call fcn.004018ec
add esp, 0x10
lea eax, [ebp - 0x214]
mov ecx, edi
push eax
push 1
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x210]
push 0
call dword [0x4081ec]
call edi
test eax, eax
je 0x4050c8
push 0xeeb2
push 1
call fcn.00406b53
pop ecx
push eax
call fcn.004018ec
xor ebx, ebx
cmp dword [ebp - 0x214], ebx
pop ecx
pop ecx
setne bl
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
mov eax, ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004065e0
mov esp, ebp
pop ebp
ret 0x14

Function at 0x4067a4
Capabilities:
Parse pe header

Disassembly:
push 0xc
push 0x406bc8
call fcn.00406af4
xor ecx, ecx
mov eax, dword [ebp + 8]
test eax, eax
je 0x406804
cmp eax, 0xffffffff
je 0x406804
mov dword [ebp - 4], ecx
mov edx, 0x5a4d
cmp word [eax], dx
jne 0x4067fd
mov edx, dword [eax + 0x3c]
test edx, edx
js 0x4067fd
cmp edx, 0x10000000
jae 0x4067fd
add eax, edx
mov dword [ebp - 0x1c], eax
mov ecx, dword [eax]
sub ecx, 0x4550
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
jmp 0x4067fa
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, ecx
call fcn.00406b39
ret 4

Function at 0x406850
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40688e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x406886
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x406890
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x406876
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x406960
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
je 0x406976
xor eax, eax
pop ebp
ret
mov ecx, dword [eax + 0x3c]
add ecx, eax
xor eax, eax
cmp dword [ecx], 0x4550
jne 0x406991
mov edx, 0x10b
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
Function at 0x401810
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
movzx eax, word [ebp + 8]
mov dword [ebp + 8], eax
pop ebp
jmp fcn.004061be

Function at 0x401850
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]
mov eax, edi
shr eax, 4
inc eax
push 6
movzx eax, ax
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp + 0xc], eax
test eax, eax
jne 0x401879
pop edi
pop ebx
pop ebp
ret
push esi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x40188f
xor esi, esi
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401886
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
lea ecx, [esi + eax]
and edi, 0xf
jbe 0x4018c2
nop
cmp esi, ecx
jae 0x401886
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edi, 1
jne 0x4018b0
cmp esi, ecx
jae 0x401886
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x401af0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push edi
mov edi, dword [ebp + 8]
push edi
mov dword [ebp - 4], ecx
call fcn.004092bb
mov ebx, eax
test ebx, ebx
jne 0x401b10
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, edi
shr eax, 4
push esi
inc eax
push 6
movzx eax, ax
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp + 8], eax
test eax, eax
je 0x401bf7
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x401bf7
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401bf7
push dword [ebp + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
lea ecx, [esi + eax]
and edi, 0xf
jbe 0x401b78
cmp esi, ecx
jae 0x401bf7
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edi, 1
jne 0x401b62
cmp esi, ecx
jae 0x401bf7
cmp word [esi], 0
je 0x401bf7
movzx eax, word [esi]
lea ecx, [esi + 2]
push 0
push 0
push 0
push 0
push eax
push ecx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
js 0x401c02
mov ebx, dword [ebp - 4]
mov edx, 1
mov ecx, dword [ebx]
sub edx, dword [ecx - 4]
mov ecx, dword [ecx - 8]
sub ecx, edi
or edx, ecx
jge 0x401bc0
push edi
mov ecx, ebx
call fcn.00401a00
movzx eax, word [esi]
push 0
push 0
push edi
push dword [ebx]
push eax
lea eax, [esi + 2]
push eax
push 0
push 3
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov eax, dword [ebx]
cmp edi, dword [eax - 8]
jg 0x401c02
mov dword [eax - 0xc], edi
mov eax, dword [ebx]
pop esi
mov byte [edi + eax], 0
mov eax, 1
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 4
pop esi
pop edi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0x80070057
call fcn.00401270
int3
Function at 0x405000
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
xor edi, edi
mov eax, ecx
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], edi
je 0x405045
call fcn.00408a7b
push 0xf0
push dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x405042
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x40508c
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov eax, dword [ebp - 4]
push ebx
xor ebx, ebx
inc ebx
test edi, edi
je 0x405068
mov ecx, dword [eax]
push dword [ebp + 0x10]
push edi
mov esi, dword [ecx + 0x20]
mov ecx, esi
push dword [ebp + 8]
call dword [0x4445c0]
mov ecx, dword [ebp - 4]
call esi
mov ebx, eax
mov eax, dword [ebp + 8]
mov edi, dword [eax + 0x70]
test edi, edi
je 0x405089
mov edx, dword [edi]
push dword [ebp + 0x10]
mov esi, dword [edx + 0xa0]
mov ecx, esi
call dword [0x4445c0]
mov ecx, edi
call esi
mov eax, ebx
pop ebx
pop edi
pop esi
leave
ret 0xc