joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1002b4e
Capabilities:
Terminate process

Disassembly:
test al, al
jne 0x1002066
mov al, byte [esi]
test al, al
jne 0x10044ab
test byte [ebp - 0x3c], 1
je 0x1002071
movzx eax, word [ebp - 0x38]
push eax
push esi
push 0
push 0x1000000
call fcn.010015ef
mov dword [0x100609c], eax
cmp dword [0x1006090], 0
jne 0x1004504
push eax
call dword [sym.imp.msvcrt.dll_exit]
mov dword [0x10064e4], esi
jmp 0x1002bdb
cmp dword [ebp - 0x1c], 0
je 0x1002020
jmp 0x1002c2c
push 0xa
pop eax
jmp 0x1002034
call fcn.01002779
push 0x58
push 0x1002c68
call fcn.01002727
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 4], 1
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov edi, 0x10060ac
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
test eax, eax
jne 0x100445c
xor esi, esi
inc esi
mov eax, dword [0x10060a8]
cmp eax, esi
je 0x100447a
mov eax, dword [0x10060a8]
test eax, eax
jne 0x100205b
mov dword [0x10060a8], esi
push 0x1002c64
push 0x1002c58
call fcn.01002b0d
pop ecx
pop ecx
test eax, eax
jne 0x1004528
mov eax, dword [0x10060a8]
cmp eax, esi
jne 0x1002bff
push 0x1002c54
push 0x1002c4c
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x10060a8], 2
test ebx, ebx
jne 0x1002c0b
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x10064b8], 0
jne 0x1004487
mov eax, dword [sym.imp.msvcrt.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x20], esi
mov al, byte [esi]
cmp al, 0x20
jbe 0x100201c
cmp al, 0x22
je 0x10044bc
movzx eax, al
push eax
call dword [sym.imp.msvcrt.dll__ismbblead]
pop ecx
test eax, eax
jne 0x10044cc
inc esi
jmp 0x1002c1f
cmp eax, esi
jne 0x100446a
xor esi, esi
inc esi
mov ebx, esi
jmp 0x1002ba2
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1002b8d
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x1002bdb
push 0x10064b8
call fcn.01004f30
pop ecx
test eax, eax
je 0x1002c18
push 0
push 2
push 0
call dword [0x10064b8]
jmp 0x1002c18
cmp al, 0x20
ja 0x100202a
inc esi
mov dword [ebp - 0x20], esi
jmp 0x1002020
xor ecx, ecx
cmp dword [ebp - 0x1c], ecx
sete cl
mov dword [ebp - 0x1c], ecx
jmp 0x1002c34
inc esi
mov dword [ebp - 0x20], esi
jmp 0x1002c47
cmp dword [0x10064e4], 0
jne 0x1004513
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x100609c]
jmp 0x1004534
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.0100310c
ret
Function at 0x403290
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x43a018
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x44c7fc]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
call fcn.0040823d
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4032cf
push 0x80004005
call fcn.00401220
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0xc], eax
lea ecx, [esp + 0xc]
mov dword [esp + 0x18], 0
call fcn.00402510
lea ecx, [esi + 0x14c]
push ecx
lea edx, [esp + 0x10]
push str._sGamePlaza.exe
push edx
call fcn.00401520
mov edi, dword [esp + 0x18]
mov eax, dword [esi + 0x20]
add esp, 0xc
push 1
push 0
push 0
push edi
push str.open
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
lea eax, [edi - 0x10]
mov dword [esp + 0x18], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403347
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret

Function at 0x403360
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x43a048
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push esi
push edi
mov eax, dword [0x44c7fc]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov edi, ecx
lea esi, [edi + 0x3a0]
mov ecx, esi
call fcn.00402510
push str.UpExecute.exe
add edi, 0x14c
push edi
push str._s_s
push esi
call fcn.00401520
add esp, 0x10
lea ecx, [esp + 0xc]
call fcn.004134e7
mov eax, dword [esi]
push 0
push eax
lea ecx, [esp + 0x14]
mov dword [esp + 0x34], 0
call fcn.0041357c
cmp eax, 1
jne 0x4033db
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0xc]
mov dword [esp + 0x2c], 0xffffffff
call fcn.0041350d
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x24
ret
Function at 0x404500
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x39c]
cmp dword [eax - 0xc], 0
je 0x404541
mov ecx, dword [esi + 0x398]
cmp dword [ecx - 0xc], 0
je 0x404541
push 0
mov ecx, esi
call fcn.004025e0
push 0
push 0
push esi
push 0x404160
push 4
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
ret
push 0
push 0x43cf30
push 0x43cf20
mov ecx, esi
call fcn.0040d107
push 1
push 0x3eb
mov ecx, esi
call fcn.00411068
mov ecx, eax
call fcn.0041120d
pop esi
ret

Function at 0x404820
Capabilities:
Create thread

Disassembly:
push 0
push 0
push ecx
push 0x4045e0
push 3
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
ret

Function at 0x404d70
Capabilities:
Create thread

Disassembly:
push 0
push 0
push ecx
push 0x404840
push 2
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
ret

Function at 0x405250
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x20]
push 1
push eax
call dword [sym.imp.USER32.dll_KillTimer]
push 0x43d1a8
mov ecx, esi
call fcn.00403830
cmp dword [esi + 0x78], 0
jbe 0x4052a5
lea ecx, [esi + 0x84]
test ecx, ecx
je 0x4052a5
cmp dword [esi + 0x378], 0
jle 0x4052a5
push 0
push 0
push esi
push 0x404d90
push 1
push 0
mov byte [esi + 0x75], 1
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
ret
push 0
push 0x43d1a0
push 0x43d188
mov ecx, esi
call fcn.0040d107
mov ecx, esi
pop esi
jmp fcn.00403790

Function at 0x409c02
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
test ebx, 0xffff0000
jne 0x409c26
cmp dword [edi + 0x54], 0
jne 0x409c26
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.0040ba99
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.00409bc3
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x40a529
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 0x40a571
call fcn.0040ba99
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x40a571
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x40a5b4
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 0x40a59d
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 0x40a59d
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x40a5b1
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 0x410fd3
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 0x41101a
call fcn.0040ba99
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x41101a
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x411036
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.00410b4d
mov esi, eax
test edi, edi
je 0x411034
test ebx, ebx
je 0x411034
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x41178e
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x43a73c
call fcn.00425e15
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x4117b3
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x4117f9
lea ecx, [ebp - 0x10]
call fcn.00401420
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.00407a9b
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00401240
mov eax, esi
call fcn.00425eed
ret 8
Function at 0x4126f8
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 0x412723
call fcn.0040ba99
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_InternetOpenA]
mov dword [esi + 8], eax
test eax, eax
jne 0x412746
push eax
push dword [esi + 4]
call fcn.0041267e
push esi
push eax
mov ecx, 0x44f864
call fcn.00412332
mov eax, esi
pop esi
pop ebp
ret 0x18

Function at 0x424dca
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x44c7fc]
jne 0x424dd4
repz ret
jmp fcn.0042d3fc

Function at 0x43654a
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.0042cdef
and dword [ebp - 4], 0
cmp dword [0x450648], 0
mov ebx, eax
jne 0x4365fb
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4366ac
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4420cc
push edi
call esi
test eax, eax
je 0x4366ac
push eax
call fcn.0042cd7d
mov dword [esp], 0x4420bc
push edi
mov dword [0x450648], eax
call esi
push eax
call fcn.0042cd7d
mov dword [esp], 0x4420a8
push edi
mov dword [0x45064c], eax
call esi
push eax
call fcn.0042cd7d
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x450650], eax
call esi
push eax
call fcn.0042cd7d
pop ecx
mov dword [0x450658], eax
test eax, eax
je 0x4365fb
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0042cd7d
pop ecx
mov dword [0x450654], eax
mov eax, dword [0x450654]
cmp eax, ebx
je 0x436653
cmp dword [0x450658], ebx
je 0x436653
push eax
call fcn.0042cdf8
push dword [0x450658]
mov esi, eax
call fcn.0042cdf8
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x436653
test edi, edi
je 0x436653
call esi
test eax, eax
je 0x43664a
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x43664a
test byte [ebp - 0xc], 1
jne 0x436653
or dword [ebp + 0x10], 0x200000
jmp 0x43668c
mov eax, dword [0x45064c]
cmp eax, ebx
je 0x43668c
push eax
call fcn.0042cdf8
pop ecx
test eax, eax
je 0x43668c
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x43668c
mov eax, dword [0x450650]
cmp eax, ebx
je 0x43668c
push eax
call fcn.0042cdf8
pop ecx
test eax, eax
je 0x43668c
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x450648]
call fcn.0042cdf8
pop ecx
test eax, eax
je 0x4366ac
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4366ae
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402820
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x52c014]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x4028b8
push reloc.OLEAUT32.dll_SysReAllocString
call sub.ADVAPI32.dll_RegOpenKeyExA
test eax, eax
jne 0x402898
xor eax, eax
push ebp
push 0x402891
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x4028d4
mov eax, dword [ebp - 4]
push eax
call sub.ADVAPI32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x402898
mov eax, dword [ebp - 4]
push eax
call sub.ADVAPI32.dll_RegCloseKey
ret
mov ax, word [0x52c014]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x52c014], ax
mov esp, ebp
pop ebp
ret

Function at 0x4033ac
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x52e03c], 0
je 0x40340d
cmp word [0x52e210], 0xd7b2
jne 0x4033d5
cmp dword [0x52e218], 0
jbe 0x4033d5
mov eax, 0x52e20c
call dword [0x52e228]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x52c05c
push 0xfffffffffffffff5
call sub.KERNEL32.dll_GetStdHandle
push eax
call sub.KERNEL32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x403434
push 0xfffffffffffffff5
call sub.KERNEL32.dll_GetStdHandle
push eax
call sub.KERNEL32.dll_WriteFile
pop edx
ret
cmp byte [0x52c020], 0
jne 0x403429
push 0
push 0x52c054
push 0x52c05c
push 0
call sub.USER32.dll_MessageBoxA
pop edx
ret

Function at 0x4047f0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x404856
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.KERNEL32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.00403750
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402714
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x404840
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40485d
lea eax, [ebp - 0x10]
call fcn.00403528
ret

Function at 0x4063f0
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov edi, edx
mov ebx, eax
test ebx, ebx
je 0x40648e
test ebx, ebx
setl byte [esp]
mov eax, edi
mov edx, 0xb
call fcn.00403a68
mov esi, 0xb
mov eax, ebx
mov ecx, 0xa
cdq
idiv ecx
mov eax, edx
cdq
xor eax, edx
sub eax, edx
mov ebp, eax
mov eax, ebx
mov ecx, 0xa
cdq
idiv ecx
mov ebx, eax
mov eax, edi
call fcn.004039d4
mov edx, ebp
add dl, 0x30
mov byte [eax + esi - 1], dl
dec esi
test ebx, ebx
jne 0x406418
cmp byte [esp], 0
je 0x40645f
mov eax, edi
call fcn.004039d4
mov byte [eax + esi - 1], 0x2d
dec esi
test esi, esi
jle 0x40649a
mov eax, edi
call fcn.004039d4
push eax
mov eax, edi
call fcn.004039d4
add eax, esi
mov ebx, 0xb
sub ebx, esi
mov ecx, ebx
pop edx
call fcn.004025ec
mov edx, ebx
mov eax, edi
call fcn.00403a68
jmp 0x40649a
mov eax, edi
mov edx, 0x4064a8
call fcn.0040357c
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x406d08
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov ebx, edx
mov esi, eax
mov eax, ebx
mov edx, esi
call fcn.0040357c
mov eax, ebx
call fcn.004039cc
mov eax, dword [ebx]
call fcn.0040377c
test eax, eax
jle 0x406d39
mov edx, 1
mov ecx, dword [ebx]
xor byte [ecx + edx - 1], 0x55
inc edx
dec eax
jne 0x406d2e
pop esi
pop ebx
ret

Function at 0x407018
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov esi, eax
xor ebx, ebx
xor eax, eax
push ebp
push 0x407064
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, 2
mov edi, esi
mov eax, edi
call fcn.00407f74
test al, al
jne 0x40705a
cmp word [edi], 0x5a4d
jne 0x40705a
lea eax, [esi + 0x3c]
mov ebx, dword [eax]
add ebx, esi
cmp dword [ebx], 0x4550
je 0x40705a
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x407070
mov eax, ebx
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407200
Capabilities:
Read file via mapping

Disassembly:
push ebx
push esi
push edi
mov esi, eax
xor edi, edi
cmp byte [0x52c230], 0
jne 0x4072e1
call sub.KERNEL32.dll_GetVersion
test eax, 0x80000000
jne 0x407253
push 0x10000
push 0x40
call sub.KERNEL32.dll_LocalAlloc
mov ebx, eax
push 0x8000
push ebx
push esi
call sub.KERNEL32.dll_GetModuleFileNameW
push 0
push 0
push 3
push 0
push 1
push SysReAllocStringLen
push ebx
call sub.KERNEL32.dll_CreateFileW
mov esi, eax
jmp 0x407284
push 0x105
push 0x40
call sub.KERNEL32.dll_LocalAlloc
mov ebx, eax
push 0x104
push ebx
push esi
call sub.KERNEL32.dll_GetModuleFileNameA
push 0
push 0
push 3
push 0
push 1
push SysReAllocStringLen
push ebx
call sub.KERNEL32.dll_CreateFileA
mov esi, eax
push ebx
call sub.KERNEL32.dll_LocalFree
cmp esi, 0xffffffff
je 0x4072e1
call sub.KERNEL32.dll_GetVersion
test eax, 0x80000000
jne 0x4072af
push 0
push 0
push 0
push 2
push 0
push esi
call sub.KERNEL32.dll_CreateFileMappingW
mov ebx, eax
jmp 0x4072c1
push 0
push 0
push 0
push 2
push 0
push esi
call sub.KERNEL32.dll_CreateFileMappingA
mov ebx, eax
test ebx, ebx
je 0x4072db
push 0
push 0
push 0
push 4
push ebx
call sub.KERNEL32.dll_MapViewOfFile
mov edi, eax
push ebx
call sub.KERNEL32.dll_CloseHandle
push esi
call sub.KERNEL32.dll_CloseHandle
mov eax, edi
pop edi
pop esi
pop ebx
ret
Function at 0x40dc80
Capabilities:
Hash data using sha1

Disassembly:
push 0xcc
push 0x40
call sub.KERNEL32.dll_LocalAlloc
mov edx, eax
mov eax, edx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
mov eax, edx
ret

Function at 0x4120a4
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
mov byte [ebp - 1], al
xor eax, eax
push ebp
push 0x41215b
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
lea edx, [ebp - 0xc]
mov eax, dword [0x52cd6c]
call fcn.00406d08
push dword [ebp - 0xc]
push 0x412174
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp + 8]
mov edx, dword [eax - 4]
mov edx, dword [edx]
mov cl, byte [ebp - 1]
mov eax, dword [0x52cd70]
call fcn.00411f94
push dword [ebp - 0x10]
lea eax, [ebp - 8]
mov edx, 3
call fcn.0040383c
push 0xffffffffffffffff
mov eax, dword [ebp - 8]
call fcn.0040397c
push eax
call fcn.00411da8
mov esi, eax
test esi, esi
je 0x412140
push 0
push 0
push 0
push 4
push esi
call sub.KERNEL32.dll_MapViewOfFile
test eax, eax
je 0x41213a
mov edx, dword [ebp + 8]
mov edx, dword [edx - 4]
mov ecx, dword [eax]
mov dword [edx], ecx
push eax
call sub.KERNEL32.dll_UnmapViewOfFile
mov bl, 1
push esi
call sub.KERNEL32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x412162
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.0040354c
ret

Function at 0x4123ac
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebx
mov ebx, eax
call sub.KERNEL32.dll_GetVersion
test eax, 0x80000000
je 0x4123cc
push 0x40
push 0x1000
push ebx
push 0
call sub.KERNEL32.dll_VirtualAlloc
pop ebx
ret
push 0
push ebx
call fcn.0040bff4
pop ebx
ret

Function at 0x41269c
Capabilities:
Packed with generic packer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
pushal
pushfd
xor ebx, ebx
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x20], 0
push 0x1c
lea eax, [ebp - 0x1c]
push eax
push ebx
call dword [0x52ce40]
cmp eax, 0x1c
jne 0x412717
cmp dword [ebp - 0xc], 0x1000
jne 0x412712
cmp dword [ebp - 0x18], 0
je 0x412712
mov eax, dword [ebp - 0x18]
cmp dword [ebp - 0x20], eax
je 0x412712
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0x10]
cmp eax, 0
jne 0x4126f1
mov eax, dword [ebp - 0x18]
cmp eax, 0x80000000
jae 0x412717
push 2
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x18]
push eax
call dword [0x52ce14]
cmp eax, 0
je 0x412712
push edi
push esi
mov eax, dword [ebp - 0x18]
push eax
call dword [0x52ce94]
add ebx, dword [ebp - 0x10]
jmp 0x4126b3
popfd
popal
add esp, 0x20
pop ebp
ret 0xc
Function at 0x4163f8
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
push edi
mov edi, edx
mov esi, eax
xor eax, eax
push ebp
push 0x4165e7
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
xor edx, edx
mov eax, dword [0x52ccc8]
call fcn.0040aa98
mov dword [0x52e6e0], eax
xor edx, edx
mov eax, dword [0x52cccc]
call fcn.0040aa98
mov dword [0x52e6e4], eax
lea eax, [ebp - 4]
mov edx, 5
call fcn.00403a68
lea eax, [ebp - 4]
call fcn.004039d4
mov byte [eax], 0x72
lea eax, [ebp - 4]
call fcn.004039d4
mov byte [eax + 1], 0x64
lea eax, [ebp - 4]
call fcn.004039d4
mov byte [eax + 2], 0x65
lea eax, [ebp - 4]
call fcn.004039d4
mov byte [eax + 3], 0x63
lea eax, [ebp - 4]
call fcn.004039d4
mov byte [eax + 4], 0x20
lea edx, [ebp - 0xc]
mov eax, dword [0x52cd54]
call fcn.00406d08
push dword [ebp - 0xc]
push 0x416600
push dword [ebp - 4]
lea eax, [ebp - 0x10]
push eax
call sub.KERNEL32.dll_GetCurrentProcessId
mov cl, 0x30
mov edx, 1
call fcn.004068b4
push dword [ebp - 0x10]
lea eax, [ebp - 4]
mov edx, 4
call fcn.0040383c
mov eax, dword [ebp - 4]
call fcn.0040397c
push eax
push 0
push 0
call fcn.00404c68
mov edx, dword [ebp + 8]
mov dword [edx - 4], eax
mov eax, dword [ebp + 8]
cmp dword [eax - 4], 0
je 0x4165c4
push 0xffffffffffffffff
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
push eax
call sub.KERNEL32.dll_WaitForSingleObject
mov dword [0x52e6d4], esi
mov dword [0x52e6d8], edi
cmp dword [0x52e6e0], 0
je 0x416514
cmp dword [0x52e6e4], 0
jne 0x416596
mov dl, 1
mov eax, dword [0x52cc60]
call fcn.0040aba4
mov esi, eax
cmp dword [esi], 0x4244c8b
jne 0x4165a8
lea eax, [esi + 4]
mov eax, dword [eax]
and eax, 0xffffff
cmp eax, 0x241c8b
jne 0x4165a8
lea eax, [esi + 7]
cmp byte [eax], 0x51
jne 0x4165a8
lea eax, [esi + 8]
cmp byte [eax], 0x53
jne 0x4165a8
lea eax, [esi + 9]
cmp byte [eax], 0xe8
jne 0x4165a8
lea eax, [ebp - 8]
push eax
push 0x40
push 4
lea eax, [esi + 0xa]
push eax
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
je 0x4165a8
lea edx, [esi + 0xe]
lea eax, [esi + 0xa]
add edx, dword [eax]
mov dword [0x52e6dc], edx
mov edx, 0x4163a8
sub edx, esi
sub edx, 0xe
mov dword [eax], edx
lea edx, [ebp - 8]
push edx
mov edx, dword [ebp - 8]
push edx
push 4
push eax
call sub.KERNEL32.dll_VirtualProtect
mov bl, 1
jmp 0x4165a8
push 0x416354
push 0xffffffffffffffff
call dword [0x52e6e0]
test eax, eax
setne bl
test bl, bl
jne 0x4165c4
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
push eax
call sub.KERNEL32.dll_ReleaseMutex
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
push eax
call sub.KERNEL32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4165ee
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.0040354c
lea eax, [ebp - 4]
call fcn.00403528
ret
Function at 0x416604
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
cmp dword [0x52e6e0], 0
je 0x41661c
cmp dword [0x52e6e4], 0
jne 0x41665d
mov dl, 1
mov eax, dword [0x52cc60]
call fcn.0040aba4
mov ebx, eax
lea eax, [ebp - 4]
push eax
push 0x40
push 4
lea esi, [ebx + 0xa]
push esi
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
je 0x416668
mov eax, dword [0x52e6dc]
sub eax, ebx
sub eax, 0xe
mov dword [esi], eax
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 4]
push eax
push 4
push esi
call sub.KERNEL32.dll_VirtualProtect
jmp 0x416668
push 0x416354
call dword [0x52e6e4]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
push eax
call sub.KERNEL32.dll_ReleaseMutex
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
push eax
call sub.KERNEL32.dll_CloseHandle
pop esi
pop ebx
pop ecx
pop ebp
ret