joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41a047
Capabilities:
Create directory
Download url
Receive data

Disassembly:
push 0xc
mov eax, 0x46a687
call fcn.0044ba86
mov esi, ecx
call fcn.00429b68
push eax
lea ecx, [ebp - 0x10]
call fcn.0040726f
mov eax, dword [esi + 8]
mov ecx, dword [eax + 0xc]
xor ebx, ebx
cmp dword [ecx - 0xc], ebx
mov dword [ebp - 4], ebx
jg 0x41a0b5
push dword [eax + 4]
lea eax, [ebp - 0x18]
push eax
call fcn.00419eb1
mov eax, dword [eax]
mov ecx, dword [esi + 8]
mov ecx, dword [ecx + 8]
push 0x5c
push eax
push ecx
lea eax, [ebp - 0x14]
push eax
mov byte [ebp - 4], 1
call fcn.00419f7d
add esp, 0x18
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.00403f47
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.00401268
jmp 0x41a0d8
mov ecx, dword [eax + 0xc]
mov eax, dword [eax + 8]
push 0x5c
push ecx
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.00419f7d
add esp, 0x10
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 3
call fcn.00403f47
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
mov byte [ebp - 4], bl
call fcn.00401268
mov eax, dword [esi + 8]
push ebx
push dword [eax + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov eax, dword [esi + 8]
mov eax, dword [eax + 4]
push esi
mov esi, dword [ebp - 0x10]
push ebx
push esi
push eax
push ebx
call sub.urlmon.dll_URLDownloadToFileA
cmp eax, ebx
jge 0x41a11b
mov dword [ebp - 0x18], eax
push 0x481874
lea eax, [ebp - 0x18]
push eax
call fcn.0044b5b7
lea ecx, [esi - 0x10]
call fcn.00401268
call fcn.0044bb5e
ret
Function at 0x41a8e1
Capabilities:
Get common file path

Disassembly:
push ebp
sub esp, 0x108
lea ebp, [esp - 4]
mov eax, dword [0x48c170]
xor eax, ebp
mov dword [ebp + 0x108], eax
push 8
mov eax, 0x46a731
call fcn.0044ba86
mov esi, dword [ebp + 0x114]
and dword [ebp - 0x10], 0
push 0x105
lea eax, [ebp]
push 0
push eax
call fcn.0044b3d0
add esp, 0xc
lea eax, [ebp]
push eax
push 0
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x10], esp
push str.Ljcq
call fcn.004023d2
lea eax, [ebp - 0x10]
push eax
call fcn.004041dc
mov edi, eax
and dword [ebp - 4], 0
lea eax, [ebp - 0x14]
push eax
call fcn.0040453a
mov edi, dword [edi]
mov eax, dword [eax]
add esp, 0x24
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.00401268
mov ecx, dword [ebp - 0x10]
or dword [ebp - 4], 0xffffffff
add ecx, 0xfffffff0
call fcn.00401268
lea eax, [ebp]
push eax
mov ecx, esi
call fcn.00404476
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x108]
xor ecx, ebp
call fcn.0044ba77
add ebp, 0x10c
leave
ret
Function at 0x41b857
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
sub esp, 0x100
lea ebp, [esp - 4]
mov eax, dword [0x48c170]
xor eax, ebp
mov dword [ebp + 0x100], eax
push 0x44
mov eax, 0x46aa23
call fcn.0044ba86
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x14], esp
push str.CRUcDg0bCB8GFzM5KDUpNTwuBhQfDnocKDs3Py01KDF6CT8uLyoGFB4K
mov byte [ebp - 0xd], 0
call fcn.004023d2
lea eax, [ebp - 0x14]
push eax
call fcn.004041dc
add esp, 0x20
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
and dword [ebp - 4], 0
lea eax, [ebp - 0x24]
push eax
mov ebx, 0x20019
push ebx
push 0
push dword [ebp - 0x14]
mov edi, reloc.OLEAUT32.dll_SysReAllocString
push edi
call esi
test eax, eax
jne 0x41b99f
push 0xfe
push eax
mov byte [ebp], al
lea eax, [ebp + 1]
push eax
call fcn.0044b3d0
add esp, 0xc
lea eax, [ebp - 0x50]
push eax
and dword [ebp - 0x1c], 0
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x1c]
push eax
push 0
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp]
push eax
push dword [ebp - 0x24]
mov dword [ebp - 0x2c], 0xff
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
cmp dword [ebp - 0x1c], 1
jbe 0x41b925
mov byte [ebp - 0xd], 0
jmp 0x41b996
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x18], esp
push str.CRUcDg0bCB8GFzM5KDUpNTwuBhQfDnocKDs3Py01KDF6CT8uLyoGFB4KBixrdGt0bmloaA
call fcn.004023d2
lea eax, [ebp - 0x20]
push eax
call fcn.004041dc
add esp, 0x20
lea eax, [ebp - 0x28]
push eax
push ebx
xor ebx, ebx
push ebx
push dword [ebp - 0x20]
push edi
call esi
test eax, eax
jne 0x41b98b
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x18]
push eax
push ebx
push ebx
push 0x472134
push dword [ebp - 0x28]
mov dword [ebp - 0x30], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x41b982
cmp dword [ebp - 0x18], 1
je 0x41b982
mov byte [ebp - 0xd], 1
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
call fcn.00401268
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.00401268
mov al, byte [ebp - 0xd]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x100]
xor ecx, ebp
call fcn.0044ba77
add ebp, 0x104
leave
ret
Function at 0x41bfd9
Capabilities:
Resume thread

Disassembly:
push 0
mov eax, 0x46abb4
call fcn.0044ba86
mov edi, ecx
push 0x20
mov dword [ebp - 4], 2
call fcn.00427a7a
xor ebx, ebx
pop ecx
cmp eax, ebx
je 0x41c007
mov ecx, eax
call fcn.0041acc9
mov esi, eax
jmp 0x41c009
xor esi, esi
lea eax, [ebp + 0xc]
push eax
lea ecx, [esi + 0xc]
call fcn.00403f47
lea eax, [ebp + 0x10]
push eax
lea ecx, [esi + 0x10]
call fcn.00403f47
mov eax, dword [edi + 0x330]
mov dword [esi + 4], eax
lea eax, [ebp + 8]
push eax
lea ecx, [esi + 8]
call fcn.00403f47
mov eax, dword [edi + 0x20]
push ebx
push 4
push ebx
push ebx
push esi
push 0x41bcef
mov dword [esi], eax
mov byte [esi + 0x14], bl
mov byte [esi + 0x15], bl
call fcn.0042b0ea
lea ecx, [edi + 0x354]
mov dword [ecx], eax
cmp eax, ebx
je 0x41c06d
mov dword [eax + 0x28], ebx
mov eax, dword [ecx]
push dword [eax + 0x2c]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
jmp 0x41c07b
mov byte [edi + 0x359], 1
mov byte [edi + 0x35a], 1
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.00401268
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
call fcn.00401268
mov ecx, dword [ebp + 0x10]
add ecx, 0xfffffff0
call fcn.00401268
call fcn.0044bb5e
ret 0xc
Function at 0x4225a5
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push esi
push 0x44
xor esi, esi
lea eax, [ebp - 0x44]
push esi
push eax
call fcn.0044b3d0
add esp, 0xc
push dword [ebp + 0xc]
lea eax, [ebp - 0x44]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
push dword [ebp + 8]
mov dword [ebp - 0x44], 0x44
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
setne al
pop esi
leave
ret 8
Function at 0x423ce3
Capabilities:
Create process on windows

Disassembly:
push 0x20
mov eax, 0x46be45
call fcn.0044ba86
mov esi, ecx
xor ebx, ebx
push ebx
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x1c], esp
push str.Mi4uKmA
mov dword [ebp - 4], ebx
call fcn.004023d2
lea eax, [ebp - 0x18]
push eax
call fcn.004041dc
add esp, 0x20
push dword [eax]
lea ecx, [ebp + 8]
call fcn.00403841
mov ecx, dword [ebp - 0x18]
cmp eax, 0xffffffff
setg byte [ebp - 0xd]
add ecx, 0xfffffff0
call fcn.00401268
cmp byte [ebp - 0xd], bl
je 0x423d6f
push 1
push ebx
push ebx
push dword [ebp + 8]
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x1c], esp
push str.NSo_NA
call fcn.004023d2
lea eax, [ebp - 0x18]
push eax
call fcn.004041dc
add esp, 0x20
push dword [eax]
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
jmp 0x423ec6
push ebx
mov ecx, esi
call fcn.0042bbe3
call fcn.004047b7
mov ecx, dword [0x48d918]
cmp ecx, ebx
je 0x423d8b
call fcn.0041c40d
call fcn.00429b68
push eax
lea ecx, [ebp - 0x14]
call fcn.0040726f
mov byte [ebp - 4], 1
call fcn.00429b68
push eax
lea ecx, [ebp - 0x18]
call fcn.0040726f
mov esi, 0x4730cc
push esi
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.00404008
lea eax, [ebp - 0x1c]
push eax
call fcn.004044ba
pop ecx
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 3
call fcn.00408b29
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
mov byte [ebp - 4], 2
call fcn.00401268
push esi
lea ecx, [ebp - 0x14]
call fcn.00404008
lea eax, [ebp + 8]
push eax
mov esi, 0x4713e0
lea eax, [ebp - 0x1c]
push esi
push eax
call fcn.0042307c
add esp, 0xc
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 4
call fcn.00408b29
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
mov byte [ebp - 4], 2
call fcn.00401268
push dword [0x48d91c]
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x1c], esp
push str.fzYv
call fcn.004023d2
lea eax, [ebp - 0x1c]
push eax
call fcn.004041dc
add esp, 0x20
push dword [eax]
lea eax, [ebp - 0x18]
push eax
mov byte [ebp - 4], 5
call fcn.00408820
mov ecx, dword [ebp - 0x1c]
add esp, 0xc
add ecx, 0xfffffff0
mov byte [ebp - 4], 2
call fcn.00401268
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
push esi
push eax
call fcn.0042307c
add esp, 0xc
mov byte [ebp - 4], 6
push eax
lea ecx, [ebp - 0x14]
call fcn.00408b29
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
mov byte [ebp - 4], 2
call fcn.00401268
lea ecx, [ebp - 0xd]
call fcn.00429bdf
mov esi, dword [ebp - 0x14]
lea eax, [ebp - 0x2c]
push eax
push esi
lea ecx, [ebp - 0xd]
mov byte [ebp - 4], 7
call fcn.004225a5
lea ecx, [ebp - 0xd]
mov byte [ebp - 4], 2
call fcn.0042b161
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.00401268
lea ecx, [esi - 0x10]
call fcn.00401268
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.00401268
call fcn.0044bb5e
ret 4
Function at 0x42c1ee
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x46cb4c
call fcn.0044ba86
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x42c213
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x42c259
lea ecx, [ebp - 0x10]
call fcn.00403939
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.00427c12
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.00401268
mov eax, esi
call fcn.0044bb5e
ret 8

Function at 0x42e285
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 0x42e2cd
call fcn.004299fa
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x42e2cd
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x42e310
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 0x42e2f9
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 0x42e2f9
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x42e30d
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 0x42f5fd
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 0x42f621
cmp dword [edi + 0x54], 0
jne 0x42f621
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.004299fa
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.0042f5be
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 0x435ded
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 0x435e34
call fcn.004299fa
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x435e34
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x435e50
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.00435967
mov esi, eax
test edi, edi
je 0x435e4e
test ebx, ebx
je 0x435e4e
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x43744e
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 0x437479
call fcn.004299fa
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 0x43749c
push eax
push dword [esi + 4]
call fcn.004373d4
push esi
push eax
mov ecx, 0x49bf7c
call fcn.00437048
mov eax, esi
pop esi
pop ebp
ret 0x18

Function at 0x437ce4
Capabilities:
Connect to http server

Disassembly:
push 4
mov eax, 0x46d3d7
call fcn.0044ba86
mov esi, ecx
mov dword [ebp - 0x10], esi
push dword [ebp + 0x1c]
mov edi, dword [ebp + 8]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call fcn.00437ca4
and dword [ebp - 4], 0
lea ecx, [esi + 0x18]
mov dword [esi], vtable.CHttpConnection.0
call fcn.00403939
push dword [esi + 8]
mov edi, dword [edi + 8]
push 0
push 3
push dword [ebp + 0x18]
mov byte [ebp - 4], 1
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call dword [sym.imp.WININET.dll_InternetConnectA]
mov dword [esi + 4], eax
test eax, eax
jne 0x437d4a
push eax
push dword [esi + 8]
call fcn.004373d4
push dword [esi + 0xc]
mov ecx, 0x49bf7c
push eax
call fcn.00437048
mov eax, esi
call fcn.0044bb5e
ret 0x18
Function at 0x44ba77
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x48c170]
jne 0x44ba81
repz ret
jmp fcn.00455ddc

Function at 0x4610fe
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.00453db4
and dword [ebp - 4], 0
cmp dword [0x49cd4c], 0
mov ebx, eax
jne 0x4611af
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x461260
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x47968c
push edi
call esi
test eax, eax
je 0x461260
push eax
call fcn.00453d42
mov dword [esp], 0x47967c
push edi
mov dword [0x49cd4c], eax
call esi
push eax
call fcn.00453d42
mov dword [esp], 0x479668
push edi
mov dword [0x49cd50], eax
call esi
push eax
call fcn.00453d42
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x49cd54], eax
call esi
push eax
call fcn.00453d42
pop ecx
mov dword [0x49cd5c], eax
test eax, eax
je 0x4611af
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00453d42
pop ecx
mov dword [0x49cd58], eax
mov eax, dword [0x49cd58]
cmp eax, ebx
je 0x461207
cmp dword [0x49cd5c], ebx
je 0x461207
push eax
call fcn.00453dbd
push dword [0x49cd5c]
mov esi, eax
call fcn.00453dbd
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x461207
test edi, edi
je 0x461207
call esi
test eax, eax
je 0x4611fe
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4611fe
test byte [ebp - 0xc], 1
jne 0x461207
or dword [ebp + 0x10], 0x200000
jmp 0x461240
mov eax, dword [0x49cd50]
cmp eax, ebx
je 0x461240
push eax
call fcn.00453dbd
pop ecx
test eax, eax
je 0x461240
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x461240
mov eax, dword [0x49cd54]
cmp eax, ebx
je 0x461240
push eax
call fcn.00453dbd
pop ecx
test eax, eax
je 0x461240
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x49cd4c]
call fcn.00453dbd
pop ecx
test eax, eax
je 0x461260
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x461262
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4011f0
Capabilities:
Link many functions at runtime

Disassembly:
sub esp, 0x368
mov eax, dword [0x41c894]
push ebx
push ebp
push esi
push edi
push str.Kernel32.DLL
mov dword [esp + 0x378], eax
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, eax
test ebx, ebx
je 0x401371
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.CreateToolhelp32Snapshot
push ebx
call esi
push str.Process32First
mov edi, eax
push ebx
mov dword [esp + 0x28], edi
call esi
push str.Process32Next
push ebx
mov dword [esp + 0x20], eax
call esi
push str.Module32First
mov ebp, eax
push ebx
mov dword [esp + 0x1c], ebp
call esi
push str.Module32Next
push ebx
mov dword [esp + 0x24], eax
call esi
test ebp, ebp
mov dword [esp + 0x24], eax
je 0x401371
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x401371
test eax, eax
je 0x401371
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x401371
test edi, edi
je 0x401371
push 0
push 2
call edi
mov ebp, eax
cmp ebp, 0xffffffff
je 0x401375
lea eax, [esp + 0x28]
push eax
push ebp
mov dword [esp + 0x30], 0x128
call dword [esp + 0x20]
test eax, eax
je 0x401375
jmp 0x4012d0
mov edi, dword [esp + 0x20]
lea ebx, [ebx]
mov ecx, dword [esp + 0x30]
push ecx
push 8
call edi
mov esi, eax
cmp esi, 0xffffffff
je 0x401385
lea edx, [esp + 0x150]
push edx
mov edi, 0x224
push esi
mov dword [esp + 0x158], edi
call dword [esp + 0x24]
test eax, eax
je 0x401335
mov eax, dword [esp + 0x37c]
push eax
lea ecx, [esp + 0x174]
push ecx
call fcn.0040c18e
add esp, 8
test eax, eax
je 0x40135a
lea edx, [esp + 0x150]
push edx
push esi
mov dword [esp + 0x158], edi
call dword [esp + 0x2c]
test eax, eax
jne 0x401301
lea eax, [esp + 0x28]
push eax
push ebp
mov dword [esp + 0x30], 0x128
call dword [esp + 0x1c]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
jne 0x4012c6
jmp 0x401385
mov ecx, dword [esp + 0x380]
mov edx, dword [esp + 0x30]
mov dword [ecx], edx
mov dword [esp + 0x10], 1
jmp 0x401379
mov ebp, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
cmp esi, 0xffffffff
je 0x401385
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp ebp, 0xffffffff
je 0x401391
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x40139c
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [esp + 0x374]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
call fcn.00402c85
add esp, 0x368
ret

Function at 0x401949
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x40195e
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x401970
xor eax, eax
jmp 0x4019a2
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x401994
cmp esi, eax
jae 0x40196c
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401986
cmp esi, eax
jae 0x40196c
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop ebp
ret
Function at 0x402f29
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.00402ca0
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x402fc4
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 [0x41f75c]
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 0x402fc4
cmp eax, 1
je 0x402fe5
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 0x402fc4
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x402f91
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x402fc0
xor eax, eax
inc eax
jmp 0x403004
cmp edi, eax
jae 0x402fc8
xor eax, eax
jmp 0x403004
cmp eax, esi
jae 0x402fcf
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 [0x41f75c]
jmp 0x402fe8
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 0x40396f
Capabilities:
Terminate process

Disassembly:
push 8
push 0x417958
call fcn.00404ae8
push 8
call fcn.00405376
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x41f79c], esi
jne 0x4039a3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x41f798], esi
mov al, byte [ebp + 0x10]
mov byte [0x41f794], al
cmp dword [ebp + 0xc], edi
jne 0x4039ed
cmp dword [0x421028], edi
je 0x4039dd
mov eax, dword [0x421024]
sub eax, 4
mov dword [0x421024], eax
cmp eax, dword [0x421028]
jb 0x4039dd
mov eax, dword [eax]
cmp eax, edi
je 0x4039be
call eax
jmp 0x4039be
push 0x41c084
mov eax, 0x41c07c
call fcn.004038ed
pop ecx
push 0x41c090
mov eax, 0x41c088
call fcn.004038ed
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x403a1e
cmp dword [ebp + 0x10], edi
jne 0x403a2c
mov dword [0x41f79c], esi
push dword [ebp + 8]
call fcn.004038ab
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x403a2b
push 8
call fcn.004052c1
pop ecx
ret
call fcn.00404b23
ret