joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4bc0e0
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov eax, 0x10018
call fcn.004da570
mov eax, dword [0x566450]
push ebx
push ebp
push esi
mov dword [esp + 0x10020], eax
push edi
mov esi, ecx
mov dword [esp + 0x10], 0x10
mov eax, dword [esi + 0xc]
mov eax, dword [eax + 4]
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x18]
push edx
push 0
push 0xffff
lea ecx, [esp + 0x34]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_recvfrom]
mov edi, eax
cmp edi, 0xffffffff
je 0x4bc187
mov eax, dword [esi + 0x80]
add eax, edi
mov dword [esi + 0x80], eax
mov ebx, eax
call dword [sym.imp.WINMM.dll_timeGetTime]
mov ecx, dword [esi + 0xa8]
mov edx, dword [esi + 0xa4]
mov ebp, eax
sub ebp, dword [edx + ecx*8]
cmp ebp, dword [esi + 0x9c]
jbe 0x4bc187
movzx ebp, byte [esi + 0xa0]
inc ecx
cmp ecx, ebp
mov dword [esi + 0xa8], ecx
jl 0x4bc179
mov dword [esi + 0xa8], 0
mov ecx, dword [esi + 0xa8]
lea ecx, [edx + ecx*8]
mov dword [ecx], eax
mov dword [ecx + 4], ebx
test edi, edi
jle 0x4bc273
mov eax, dword [esi + 0xc4]
test eax, eax
je 0x4bc1b6
mov ecx, dword [esp + 0x16]
push edi
lea edx, [esp + 0x28]
push edx
mov edx, dword [esp + 0x20]
push ecx
push edx
call eax
add esp, 0x10
cmp al, 1
je 0x4bc104
mov bl, byte [esp + 0x24]
test bl, 2
je 0x4bc1db
mov ecx, dword [esp + 0x16]
mov edx, dword [esp + 0x18]
push edi
lea eax, [esp + 0x28]
push eax
push ecx
push edx
mov ecx, esi
call fcn.004bc070
jmp 0x4bc104
test bl, 8
je 0x4bc208
mov eax, dword [esi + 0xc8]
test eax, eax
je 0x4bc104
mov edx, dword [esp + 0x16]
push edi
lea ecx, [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x20]
push edx
push ecx
call eax
add esp, 0x10
jmp 0x4bc104
mov edx, dword [esp + 0x16]
mov eax, dword [esp + 0x18]
mov ecx, dword [esi + 0xc]
push edx
push eax
call fcn.004baff0
test bl, 4
je 0x4bc238
test eax, eax
je 0x4bc104
mov ecx, dword [esp + 0x25]
push ecx
mov ecx, eax
call fcn.004baec0
jmp 0x4bc104
mov ebp, eax
test ebp, ebp
je 0x4bc104
test bl, 1
je 0x4bc254
lea ecx, [esp + 0x24]
push ecx
push ebp
mov ecx, esi
call fcn.004bb5d0
mov eax, dword [esi + 0xcc]
test eax, eax
je 0x4bc104
push edi
lea edx, [esp + 0x28]
push edx
push ebp
call eax
add esp, 0xc
jmp 0x4bc104
mov ecx, dword [esp + 0x10024]
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
call fcn.004da561
add esp, 0x10018
ret
Function at 0x4bc7a0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5283d8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, dword [esp + 0x1c]
mov eax, dword [esi]
mov ecx, dword [eax - 0x10]
mov edx, dword [ecx]
push edi
xor edi, edi
mov dword [esp + 8], edi
call dword [edx + 0x10]
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x24]
mov eax, dword [eax]
mov edx, dword [eax - 0xc]
mov ecx, dword [esi]
mov esi, dword [ecx - 0xc]
push edx
push eax
push esi
push ecx
lea ecx, [esp + 0x30]
push ecx
mov dword [esp + 0x28], edi
call fcn.004bc710
mov esi, dword [esp + 0x34]
add esi, 0xfffffff0
push esi
call fcn.0043b950
mov edi, dword [esp + 0x34]
add eax, 0x10
mov dword [edi], eax
add esp, 0x18
mov dword [esp + 0x14], 0xffffffff
lea edx, [esi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x4bc832
mov ecx, dword [esi]
mov edx, dword [ecx]
push esi
call dword [edx + 4]
mov ecx, dword [esp + 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x4bfa70
Capabilities:
Get memory capacity

Disassembly:
sub esp, 0x40
lea eax, [esp]
push eax
mov dword [esp + 4], 0x40
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
test eax, eax
je 0x4bfac8
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 0x44]
shrd ecx, edx, 0xa
mov dword [eax], ecx
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x48]
shr edx, 0xa
mov edx, dword [esp + 0x14]
shrd ecx, edx, 0xa
mov dword [eax], ecx
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x4c]
shr edx, 0xa
mov edx, dword [esp + 0x2c]
shrd ecx, edx, 0xa
shr edx, 0xa
mov dword [eax], ecx
add esp, 0x40
ret

Function at 0x4bfc50
Capabilities:
Create process memory minidump

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0xc
push esi
push edi
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, dword [esp + 0x18]
mov esi, eax
cmp esi, 0xffffffff
je 0x4bfcc5
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 0
mov ecx, edi
neg ecx
push 0
sbb ecx, ecx
lea edx, [esp + 0x10]
and ecx, edx
push ecx
push 0
push esi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call sub.dbghelp.dll_MiniDumpWriteDump
test eax, eax
jne 0x4bfcd2
push str.Cant_Create_Dump___MiniDumpWriteDump___n
jmp 0x4bfcca
push str.Cant_Create_Dump___INVALID_HANDLE_VALUE_n
call fcn.004bf8b0
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [esp + 0x20]
test al, al
je 0x4bfcea
push edi
call fcn.004bfad0
add esp, 4
pop edi
mov eax, 1
pop esi
add esp, 0xc
ret
Function at 0x4bfd00
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10c
mov eax, dword [0x566450]
mov ecx, dword [str.SOFTWAREMAIET_entertainment_]
mov dword [esp + 0x108], eax
mov eax, dword [str.Unknown]
push eax
push ecx
lea edx, [esp + 0x10]
push str._s_s
push edx
mov dword [esp + 0x14], 3
call fcn.004da4d8
mov edx, dword [esp + 0x120]
add esp, 0x10
lea eax, [esp]
push eax
push 0x20019
push 0
lea ecx, [esp + 0x14]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4bfd93
mov eax, dword [esp + 0x11c]
mov ecx, dword [esp + 0x118]
push eax
mov eax, dword [esp + 0x118]
push ecx
mov ecx, dword [esp + 8]
lea edx, [esp + 0xc]
push edx
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x4bfda8
mov edx, dword [esp]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
mov ecx, dword [esp + 0x108]
call fcn.004da561
add esp, 0x10c
ret
mov eax, dword [esp]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x108]
mov al, 1
call fcn.004da561
add esp, 0x10c
ret

Function at 0x4bfdd0
Capabilities:
Set registry value

Disassembly:
sub esp, 0x108
mov eax, dword [0x566450]
mov ecx, dword [str.SOFTWAREMAIET_entertainment_]
push esi
mov dword [esp + 0x108], eax
mov eax, dword [str.Unknown]
push eax
push ecx
lea edx, [esp + 0x10]
push str._s_s
push edx
call fcn.004da4d8
mov esi, dword [esp + 0x120]
add esp, 0x10
lea eax, [esp + 4]
push eax
push 0x20006
push 0
lea ecx, [esp + 0x14]
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4bfe36
lea edx, [esp + 4]
push edx
lea eax, [esp + 0xc]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
mov ecx, dword [esp + 0x11c]
mov edx, dword [esp + 0x118]
mov eax, dword [esp + 0x114]
push ecx
mov ecx, dword [esp + 8]
push edx
push 3
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x108]
pop esi
call fcn.004da561
add esp, 0x108
ret

Function at 0x4c3a80
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
lea eax, [esi + 8]
push eax
push 0
push esi
push 0x4c3950
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edx, dword [esi]
mov dword [esi + 4], eax
mov ecx, esi
pop esi
jmp dword [edx + 4]
Function at 0x4c3b20
Capabilities:
Initialize winsock library
Resolve dns

Disassembly:
push 0xffffffffffffffff
push 0x528a5b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1b0
mov eax, dword [0x566450]
push edi
mov edi, dword [esp + 0x1c4]
mov dword [esp + 0x1b0], eax
mov eax, dword [edi + 0x14]
test eax, eax
jne 0x4c3b5d
xor al, al
jmp 0x4c3c03
cmp dword [edi + 0x18], 0x10
push esi
lea esi, [edi + 4]
jb 0x4c3b6b
mov eax, dword [esi]
jmp 0x4c3b6d
mov eax, esi
movsx eax, byte [eax]
push eax
call fcn.004dcbe2
add esp, 4
test eax, eax
jne 0x4c3b8f
mov ecx, dword [esp + 0x1cc]
push 0xffffffffffffffff
push eax
push edi
call fcn.004035ab
jmp 0x4c3c00
lea ecx, [esp + 0x24]
push ecx
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x4c3ba7
xor al, al
jmp 0x4c3c02
cmp dword [edi + 0x18], 0x10
jb 0x4c3baf
mov esi, dword [esi]
push esi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x4c3ba3
mov edx, dword [eax + 0xc]
mov eax, dword [edx]
mov edi, dword [esp + 0x1cc]
mov esi, dword [eax]
mov ecx, edi
call fcn.0040d4e7
push esi
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
lea ecx, [esp + 0xc]
call fcn.004036c6
push 0xffffffffffffffff
push 0
push eax
mov ecx, edi
mov dword [esp + 0x1cc], 0
call fcn.004035ab
lea ecx, [esp + 8]
call fcn.0040527b
mov al, 1
pop esi
mov ecx, dword [esp + 0x1b4]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x1b0]
pop edi
call fcn.004da561
add esp, 0x1bc
ret

Function at 0x4c48b0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 4]
push esi
mov esi, dword [esp + 0x10]
test esi, esi
jbe 0x4c48e6
mov edx, dword [esp + 0xc]
push ebx
push edi
mov eax, dword [ecx]
movzx ebx, byte [edx]
mov edi, eax
and edi, 0xff
xor edi, ebx
mov ebx, dword [edi*4 + 0x564638]
shr eax, 8
xor eax, ebx
inc edx
dec esi
mov dword [ecx], eax
jne 0x4c48c3
pop edi
pop ebx
mov eax, dword [ecx]
not eax
mov dword [ecx], eax
pop esi
ret
Function at 0x4c5300
Capabilities:
Get common file path

Disassembly:
sub esp, 0x33c
mov eax, dword [0x566450]
push esi
mov esi, dword [esp + 0x348]
mov dword [esp + 0x33c], eax
cmp byte [esi + 1], 0x3a
je 0x4c5325
cmp byte [esi], 0x5c
jne 0x4c534e
mov edx, dword [esp + 0x344]
mov eax, esi
sub edx, esi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4c5330
pop esi
mov ecx, dword [esp + 0x338]
call fcn.004da561
add esp, 0x33c
ret
lea eax, [esp + 0x3c]
push eax
push 0x100
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea eax, [esp + 0x3c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4c5365
sub eax, edx
cmp byte [esp + eax + 0x3c], 0x5c
je 0x4c5393
push edi
lea edi, [esp + 0x40]
dec edi
jmp 0x4c5380
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4c5380
mov cx, word [0x537fa0]
mov word [edi], cx
pop edi
push 0x100
lea edx, [esp + 0x40]
push edx
lea eax, [esp + 0x144]
push eax
call fcn.004de5b0
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x250]
push eax
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x158]
push edx
call fcn.004de468
mov edx, dword [esp + 0x364]
push esi
lea eax, [esp + 0x260]
push eax
lea ecx, [esp + 0x2c]
push ecx
push str._s_s_s
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
mov ecx, dword [esp + 0x370]
add esp, 0x34
pop esi
call fcn.004da561
add esp, 0x33c
ret
Function at 0x4c5440
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x122c
call fcn.004da570
mov eax, dword [0x566450]
push ebx
push esi
push edi
mov dword [esp + 0x1234], eax
lea eax, [esp + 0x18]
push eax
push 0x1000
lea ecx, [esp + 0x28]
push ecx
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
je 0x4c557c
mov eax, dword [esp + 0x18]
shr eax, 2
test eax, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0xc], 0
jle 0x4c557c
jmp 0x4c54a0
mov edx, dword [esp + 0xc]
mov edx, dword [esp + edx*4 + 0x20]
mov esi, dword [str.unknown]
mov ebx, dword [0x5380bc]
xor eax, eax
push edx
mov dword [esp + 0x112c], esi
mov dword [esp + 0x1130], ebx
mov ecx, 0x3f
lea edi, [esp + 0x1134]
rep stosd dword es:[edi], eax
push 1
mov dword [esp + 0x1028], esi
mov dword [esp + 0x102c], ebx
mov ecx, 0x3f
lea edi, [esp + 0x1030]
push 0x1f0fff
rep stosd dword es:[edi], eax
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x4c5567
lea eax, [esp + 0x1c]
push eax
push 4
lea ecx, [esp + 0x18]
push ecx
push esi
call sub.PSAPI.DLL_EnumProcessModules
test eax, eax
je 0x4c5560
mov eax, dword [esp + 0x10]
push 0x104
lea edx, [esp + 0x112c]
push edx
push eax
push esi
call sub.PSAPI.DLL_GetModuleBaseNameA
mov edx, dword [esp + 0x10]
push 0x104
lea ecx, [esp + 0x1024]
push ecx
push edx
push esi
call sub.PSAPI.DLL_GetModuleFileNameExA
mov eax, dword [ebp + 8]
push eax
lea ecx, [esp + 0x1024]
push ecx
call fcn.004dcb79
add esp, 8
test eax, eax
je 0x4c5591
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x14]
inc eax
cmp eax, ecx
mov dword [esp + 0xc], eax
jl 0x4c54a0
xor eax, eax
mov ecx, dword [esp + 0x1234]
call fcn.004da561
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x1234]
mov eax, esi
call fcn.004da561
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4c9d70
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x528be1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov dword [esi], 0x53b000
push edi
mov dword [esp + 0xc], esi
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esp + 0x18], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
lea edi, [esi + 0x34]
mov ecx, edi
mov byte [esp + 0x18], 2
call fcn.00480550
mov ecx, dword [esp + 0x10]
mov dword [edi + 4], eax
mov byte [eax + 0x2d], 1
mov eax, dword [edi + 4]
mov dword [eax + 4], eax
mov eax, dword [edi + 4]
mov dword [eax], eax
mov eax, dword [edi + 4]
mov dword [eax + 8], eax
mov dword [edi + 8], ebx
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x4c9f10
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x528c2b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x140
push ebx
push esi
mov esi, ecx
mov ecx, dword [esi + 4]
test ecx, ecx
push edi
mov dword [ebp - 0x10], esp
je 0x4ca12b
call fcn.004bce40
test al, al
je 0x4ca12b
call fcn.004f5862
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 8]
cmp dword [eax + 0x18], 0x10
mov dword [ebp - 4], 0
jb 0x4c9f75
mov eax, dword [eax + 4]
jmp 0x4c9f78
add eax, 4
push eax
lea eax, [ebp - 0x14]
push str.CALL_spIPFltGetIPtoCountry___s_
push eax
call fcn.00402040
mov eax, dword [esi + 4]
add esp, 0xc
push eax
lea ecx, [ebp - 0x14c]
call fcn.004bd040
mov edi, dword [ebp - 0x14]
push 4
push 2
push edi
lea ecx, [ebp - 0x14c]
mov byte [ebp - 4], 2
call fcn.004bd120
mov ebx, 1
lea ecx, [ebp - 0x14c]
mov dword [ebp - 4], ebx
call fcn.004ce327
test eax, eax
je 0x4ca0dd
mov eax, dword [ebp - 0x84]
test eax, eax
jne 0x4ca0dd
push str.IPFrom
lea ecx, [ebp - 0x14c]
call fcn.004bec20
mov edx, dword [ebp - 0x3c]
lea ecx, [eax + eax*2]
lea ecx, [edx + ecx*8]
call fcn.004bd3f0
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
push str.IPTo
lea ecx, [ebp - 0x14c]
call fcn.004bec20
lea edx, [eax + eax*2]
mov eax, dword [ebp - 0x3c]
lea ecx, [eax + edx*8]
call fcn.004bd3f0
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
push str.CountryCode3
lea ecx, [ebp - 0x14c]
call fcn.004bec20
mov ecx, dword [ebp - 0x3c]
lea edx, [ebp + 8]
lea eax, [eax + eax*2]
push edx
lea ecx, [ecx + eax*8]
call fcn.004bece0
mov esi, eax
mov eax, dword [esi]
mov ecx, dword [eax - 4]
sub eax, 0x10
cmp ecx, ebx
mov byte [ebp - 4], 4
jle 0x4ca05e
mov edx, dword [eax + 4]
push edx
mov ecx, esi
call fcn.00401b25
mov esi, dword [esi]
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4ca065
mov ecx, dword [ebp + 0x14]
sub eax, edx
push eax
push esi
call fcn.0040363a
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
mov byte [ebp - 4], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4ca098
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea ecx, [ebp - 0x14c]
mov byte [ebp - 4], 0
call fcn.004bd2d0
lea eax, [edi - 0x10]
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4ca0c8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
lea ecx, [ebp - 0x14c]
mov byte [ebp - 4], 0
call fcn.004bd2d0
lea eax, [edi - 0x10]
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4ca10d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov al, 1
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4cc186
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
je 0x4cc1d9
call fcn.0050bec1
mov edi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, ebx
je 0x4cc1d9
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x4cc1cf
xor eax, eax
jmp 0x4cc2f2
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], ebx
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0xc], 1
je 0x4cc209
mov eax, dword [esi]
push edi
push dword [ebp - 4]
mov ecx, esi
push ebx
call dword [eax + 0x1c]
cmp dword [ebp - 8], 0
mov dword [ebp - 0xc], eax
je 0x4cc209
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebx + 0x48]
test eax, eax
je 0x4cc2ef
mov ecx, dword [eax + 0x40]
and dword [ebp + 0xc], 0
test ecx, ecx
mov dword [ebp + 8], ecx
mov dword [ebp - 8], ecx
je 0x4cc236
lea ecx, [eax + 0x3c]
lea eax, [ebp + 8]
push eax
call fcn.004cad83
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
xor eax, eax
cmp dword [edi + 8], eax
mov dword [ebp - 4], eax
jbe 0x4cc2ef
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x4cc27f
mov ecx, dword [ecx + 4]
mov edx, dword [edi + 0xc]
mov ecx, dword [ecx + 0x28]
cmp ecx, dword [edx + eax*8]
jne 0x4cc27f
mov eax, dword [ebp + 8]
test eax, eax
mov dword [ebp - 8], eax
je 0x4cc279
mov ecx, dword [ebx + 0x48]
lea eax, [ebp + 8]
add ecx, 0x3c
push eax
call fcn.004cad83
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
jmp 0x4cc2df
and dword [ebp + 0xc], 0
jmp 0x4cc2df
mov ecx, dword [edi + 0xc]
shl eax, 3
cmp dword [eax + ecx], 0
mov dword [ebp - 0x10], eax
je 0x4cc2df
push 0xc
call fcn.004f5012
mov esi, eax
test esi, esi
pop ecx
je 0x4cc2c1
mov eax, dword [edi + 0xc]
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebx + 0x1c]
add eax, edx
push dword [eax]
mov edi, dword [eax + 4]
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
and dword [esi + 4], 0
mov dword [esi + 8], edi
mov edi, dword [ebp + 0x10]
mov dword [esi], eax
jmp 0x4cc2c3
xor esi, esi
mov ecx, dword [ebx + 0x48]
add ecx, 0x3c
cmp dword [ebp - 8], 0
push esi
je 0x4cc2da
push dword [ebp - 8]
call fcn.004efb26
jmp 0x4cc2df
call fcn.004f001d
mov eax, dword [ebp - 4]
inc eax
cmp eax, dword [edi + 8]
mov dword [ebp - 4], eax
jb 0x4cc244
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x4dbf0c
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.004da570
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4dbfa7
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x98263c]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x4dbfa7
cmp eax, 1
je 0x4dbfc8
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4dbfa7
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x4dbf74
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x4dbfa3
xor eax, eax
inc eax
jmp 0x4dbfe7
cmp edi, eax
jae 0x4dbfab
xor eax, eax
jmp 0x4dbfe7
cmp eax, esi
jae 0x4dbfb2
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x98263c]
jmp 0x4dbfcb
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4dc7db
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x543f80
call fcn.004da8d0
mov edi, 0x94
mov eax, edi
call fcn.004da570
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x98263c], ecx
mov eax, dword [esi + 4]
mov dword [0x982648], eax
mov edx, dword [esi + 8]
mov dword [0x98264c], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x982640], esi
cmp ecx, 2
je 0x4dc83b
or esi, 0x8000
mov dword [0x982640], esi
shl eax, 8
add eax, edx
mov dword [0x982644], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x4dc876
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4dc876
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x4dc88e
cmp eax, 0x20b
je 0x4dc87b
mov dword [ebp - 0x1c], esi
jmp 0x4dc8a2
cmp dword [ecx + 0x84], 0xe
jbe 0x4dc876
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x4dc89c
cmp dword [ecx + 0x74], 0xe
jbe 0x4dc876
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.004e3aa0
pop ecx
test eax, eax
jne 0x4dc8b6
push 0x1c
call fcn.004dc7b7
pop ecx
call fcn.004e0819
test eax, eax
jne 0x4dc8c7
push 0x10
call fcn.004dc7b7
pop ecx
call fcn.004e586f
mov dword [ebp - 4], esi
call fcn.004e5671
test eax, eax
jge 0x4dc8e0
push 0x1b
call fcn.004dc792
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x983f30], eax
call fcn.004e554f
mov dword [0x98262c], eax
call fcn.004e54ad
test eax, eax
jge 0x4dc906
push 8
call fcn.004dc792
pop ecx
call fcn.004e527a
test eax, eax
jge 0x4dc917
push 9
call fcn.004dc792
pop ecx
push 1
call fcn.004ddac2
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x4dc92d
push eax
call fcn.004dc792
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.004e521d
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x4dc94e
movzx eax, word [ebp - 0x40]
jmp 0x4dc951
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.004edb46
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x4dc96f
push edi
call fcn.004ddbef
call fcn.004ddc11
jmp 0x4dc9a1
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.004da90b
ret