joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4d21b2
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4d21ea
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004d0254
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004d022c
jmp 0x4d21f6
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4d3975
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4d39b7
call fcn.004d9aaf
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4d39b7
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4d39ae
xor eax, eax
jmp 0x4d39bf
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004d39c5
pop edi
pop esi
pop ebx
ret 4

Function at 0x4d9fdf
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4da00d
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4da02b
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004d9f45
jmp 0x4da02b
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4da02b
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004d9f45
test edi, edi
mov eax, edi
jne 0x4da015
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x100024e0
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
lea edi, [ebp - 0x10]
push ebx
mov ebx, edx
sub esp, 0x1c
mov dword [ebp - 0x14], eax
mov esi, dword [sym.imp.shlwapi.dll_UrlEscapeA]
mov dword [ebp - 0x10], 1
mov dword [esp + 0xc], 0x3000
mov dword [esp + 8], edi
mov dword [esp + 4], edx
mov dword [esp], eax
call esi
sub esp, 0x10
cmp eax, 0x80004003
je 0x10002530
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword fs:[0x18]
mov ecx, eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x10]
mov dword [esp + 4], 0
mov dword [esp + 8], eax
mov eax, dword [ecx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
sub esp, 0xc
mov ebx, eax
test eax, eax
je 0x100025aa
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x14]
mov dword [esp + 0xc], 0x3000
mov dword [esp + 8], edi
mov dword [esp], eax
call esi
sub esp, 0x10
test eax, eax
je 0x1000251d
mov eax, dword [ebp - 0x18]
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov ebx, dword [ebp - 0x14]
sub esp, 0xc
jmp 0x1000251d
mov ebx, dword [ebp - 0x14]
jmp 0x1000251d
Function at 0x10002e20
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strlen]
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x10002e78
cmp byte [esi + ebx - 1], 0xa
je 0x10002e4c
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x10004118], eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_fwrite]
add esp, 0x10
pop ebx
pop esi
pop ebp
ret
Function at 0x402120
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
movzx eax, ax
mov dword [ebp + 8], eax
pop ebp
jmp fcn.00415979

Function at 0x4022d0
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 0x4022e5
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x402324
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x402320
lea ebx, [ebx]
cmp esi, edx
jae 0x402324
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
dec ecx
jne 0x402310
cmp esi, edx
jb 0x402329
xor eax, eax
pop esi
pop ebp
ret
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop ebp
ret

Function at 0x402ed0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x46e560]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
mov ecx, dword [ebp + 0x10]
cmp dword [esi + 4], 0
je 0x402f07
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004387e7
mov esp, ebp
pop ebp
ret 0xc
push edi
push ecx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
je 0x402fa1
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
push ebx
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
mov dword [ebp - 8], 0
lea eax, [ebp - 8]
push eax
push 1
push 0
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x402fa1
mov eax, dword [ebp - 8]
push 0
push dword [ebp - 0xc]
mov ecx, dword [eax]
push edi
push eax
call dword [ecx + 0x10]
mov ecx, dword [ebp - 8]
call fcn.00403900
mov ecx, dword [ebp - 8]
mov dword [esi + 4], eax
test ecx, ecx
je 0x402f77
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [ebp - 8], 0
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x402fa1
mov eax, dword [ecx + 8]
mov dword [ecx + 8], 0
test eax, eax
jne 0x402fa1
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004387e7
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004387e7
mov esp, ebp
pop ebp
ret 0xc
Function at 0x403b90
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4510de
mov eax, dword fs:[0]
push eax
push esi
mov eax, dword [0x46e560]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0
push 0
lea eax, [esi + 0x18]
mov dword [esi], vtable.ISkinControl.0
push 0
push 0
push eax
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
call dword [sym.imp.USER32.dll_SetRect]
mov eax, dword [0x474bd8]
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0x28], 0x808080
mov dword [esi + 0x2c], 0
mov dword [esi + 0x34], 0x808080
mov dword [esi + 0x38], 0
mov dword [esi + 0x30], 0xffffff
mov dword [esi + 0x40], 0
mov dword [esi + 0x3c], 0xffffff
test al, 1
jne 0x403c6e
or eax, 1
mov dword [0x474bd8], eax
mov dword [ebp - 4], 0
xorps xmm0, xmm0
movdqu xmmword [0x474bdc], xmm0
mov dword [0x474bf4], 0
movq qword [0x474bec], xmm0
call fcn.004043a0
push 0x454030
call fcn.00438e84
add esp, 4
mov eax, dword [0x474bdc]
mov dword [esi + 0x14], eax
mov eax, esi
mov dword [esi + 0x10], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x403fa0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x451153
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push esi
push edi
mov eax, dword [0x46e560]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebp + 8]
mov dword [ebp - 0x10], esi
call fcn.0041ec21
mov dword [ebp - 4], 0
mov dword [esi], vtable.CMemoryDC.0
mov dword [esi + 0x14], 0
mov dword [esi + 0x10], vtable.CBitmap.0
mov byte [ebp - 4], 1
xor eax, eax
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
cmp dword [edi + 0xc], eax
sete al
mov dword [esi + 0x30], eax
test eax, eax
je 0x4040be
push dword [edi + 4]
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
mov ecx, esi
call fcn.0041ee7c
lea eax, [ebp - 0x20]
xorps xmm0, xmm0
push eax
lea eax, [ebp + 0x10]
push eax
movdqu xmmword [ebp - 0x20], xmm0
call dword [sym.imp.USER32.dll_EqualRect]
test eax, eax
je 0x404067
mov eax, dword [edi]
lea ecx, [esi + 0x20]
push ecx
mov ecx, edi
call dword [eax + 0x50]
lea edx, [esi + 0x20]
jmp 0x404073
movdqu xmm0, xmmword [ebp + 0x10]
lea edx, [esi + 0x20]
movdqu xmmword [edx], xmm0
mov ecx, dword [edx + 0xc]
sub ecx, dword [edx + 4]
mov eax, dword [edx + 8]
sub eax, dword [edx]
push ecx
push eax
push dword [edi + 4]
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
lea edi, [esi + 0x10]
push eax
mov ecx, edi
call fcn.0041eeb2
test edi, edi
jne 0x40409c
xor eax, eax
jmp 0x40409f
mov eax, dword [edi + 4]
push eax
push dword [esi + 4]
call fcn.0041f306
push dword [esi + 0x24]
mov dword [esi + 0x18], eax
mov ecx, esi
push dword [esi + 0x20]
lea eax, [ebp - 0x18]
push eax
call fcn.0041f557
jmp 0x4040d0
mov eax, dword [edi + 0xc]
mov dword [esi + 0xc], eax
mov eax, dword [edi + 4]
mov dword [esi + 4], eax
mov eax, dword [edi + 8]
mov dword [esi + 8], eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x18
Function at 0x407be0
Capabilities:
Check mutex and terminate process on windows
Check mutex on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x45153b
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x1548
call fcn.0043dae0
mov eax, dword [0x46e560]
xor eax, esp
mov dword [esp + 0x1544], eax
push esi
push edi
mov eax, dword [0x46e560]
xor eax, esp
push eax
lea eax, [esp + 0x1558]
mov dword fs:[0], eax
mov edi, ecx
push str.hb_Mutex
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
cmp dword [section.cici_dat], 0
mov esi, eax
jne 0x407d13
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x407d13
inc dword [section.cici_dat]
lea eax, [esp + 0xc]
push eax
mov dword [esp + 0x10], 8
mov dword [esp + 0x14], 0xff
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
mov ecx, edi
call fcn.00420b09
push 0
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 1
push eax
lea eax, [edi + 0xcc]
mov dword [esp + 0x20], 0
push eax
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0
call dword [sym.imp.gdiplus.dll_GdiplusStartup]
push 0
call fcn.004214cc
add esp, 4
mov ecx, edi
push 0x46132c
call fcn.004226d7
push 0x1528
lea eax, [esp + 0x28]
push 0
push eax
call fcn.0043a490
add esp, 8
lea ecx, [esp + 0x28]
call fcn.0040b3b0
lea eax, [esp + 0x24]
mov dword [esp + 0x1560], 0
mov ecx, eax
mov dword [edi + 0x20], eax
call fcn.00415c87
lea ecx, [esp + 0x24]
mov dword [esp + 0x1560], 0xffffffff
call fcn.00407d70
jmp 0x407d41
push 0x30
push 0x4607e8
push 0x461350
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
test esi, esi
je 0x407d32
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
xor eax, eax
mov ecx, dword [esp + 0x1558]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x1544]
xor ecx, esp
call fcn.004387e7
mov esp, ebp
pop ebp
ret
Function at 0x409e50
Capabilities:
Create http request
Print debug messages
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4517a6
mov eax, dword fs:[0]
push eax
sub esp, 0x418
mov eax, dword [0x46e560]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x420], edx
mov esi, ecx
push 0x4608c2
lea ecx, [ebp - 0x414]
mov dword [ebp - 0x414], 0
call fcn.00402630
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x418]
push 0x4608c2
mov dword [ebp - 0x418], 0
call fcn.00402630
push 0
push 0
push 0
push 4
push str.urlopen
mov byte [ebp - 4], 1
mov bl, 1
call dword [sym.imp.WININET.dll_InternetOpenA]
mov edi, eax
mov dword [ebp - 0x424], edi
test edi, edi
je 0x409fc2
push 0
push 0x4000000
push 0
push 0
push esi
push edi
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov esi, eax
test esi, esi
je 0x409faa
push 0x400
lea eax, [ebp - 0x410]
push 0
push eax
call fcn.0043a490
mov edi, dword [sym.imp.WININET.dll_InternetReadFile]
add esp, 0xc
mov dword [ebp - 0x41c], 1
lea ecx, [ecx]
lea eax, [ebp - 0x41c]
push eax
push 0x3ff
lea eax, [ebp - 0x410]
push eax
push esi
call edi
mov eax, dword [ebp - 0x41c]
cmp eax, 0x400
jae 0x409fa5
mov byte [ebp + eax - 0x410], 0
lea eax, [ebp - 0x410]
push eax
lea eax, [ebp - 0x414]
push 0x461bb8
push eax
call fcn.00402960
mov eax, dword [ebp - 0x414]
lea ecx, [ebp - 0x418]
add esp, 0xc
push dword [eax - 0xc]
push eax
call fcn.00414490
cmp dword [ebp - 0x41c], 0
ja 0x409f30
mov edi, dword [ebp - 0x424]
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
jmp 0x409fd5
call fcn.004396ac
push 0x461bbc
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
xor bl, bl
call esi
jmp 0x409fd5
push 0x461bd0
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
xor bl, bl
push edi
call esi
mov eax, dword [ebp - 0x418]
mov ecx, 0x3e
mov edi, dword [ebp - 0x420]
mov esi, eax
rep movsd dword es:[edi], dword [esi]
lea edx, [eax - 0x10]
lea ecx, [edx + 0xc]
movsw word es:[edi], word [esi]
or edi, 0xffffffff
mov byte [ebp - 4], 0
mov eax, edi
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x40a00f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov esi, dword [ebp - 0x414]
add esi, 0xfffffff0
lea eax, [esi + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x40a033
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004387e7
mov esp, ebp
pop ebp
ret
Function at 0x40a060
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4517f2
mov eax, dword fs:[0]
push eax
sub esp, 0x120
mov eax, dword [0x46e560]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov ebx, ecx
mov dword [ebp - 4], 0
mov dword [ebp - 0x128], 0
mov dword [ebp - 0x12c], ebx
mov dword [ebx], 0
call fcn.00414dfd
mov ecx, eax
xor eax, eax
test ecx, ecx
setne al
test eax, eax
jne 0x40a0cb
push 0x80004005
call fcn.00402a40
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebx], eax
mov dword [ebp - 4], 0
lea eax, [ebp - 0x114]
mov dword [ebp - 0x128], 1
test esi, esi
jne 0x40a0ff
push 0x104
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
jmp 0x40a107
push esi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x118]
mov dword [ebp - 0x118], 0
push eax
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeA]
mov dword [ebp - 0x124], eax
test eax, eax
je 0x40a1c7
push eax
push 2
mov dword [ebp - 0x11c], 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov esi, eax
lea eax, [ebp - 0x114]
push esi
push dword [ebp - 0x124]
push dword [ebp - 0x118]
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoA]
lea eax, [ebp - 0x11c]
push eax
lea eax, [ebp - 0x120]
push eax
push 0x460e08
push esi
call dword [sym.imp.VERSION.dll_VerQueryValueA]
mov eax, dword [ebp - 0x120]
mov si, word [eax + 0x12]
mov dx, word [eax + 0x10]
mov cx, word [eax + 0x16]
mov ax, word [eax + 0x14]
movzx eax, ax
push eax
movzx eax, cx
push eax
movzx eax, dx
push eax
movzx eax, si
push eax
push str._d._d._d._d
push ebx
call fcn.00402960
add esp, 0x18
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004387e7
mov esp, ebp
pop ebp
ret
Function at 0x40a1f0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
push 0xffffffffffffffff
push 0x451838
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x46e560]
xor eax, esp
mov dword [esp + 0x54], eax
push esi
push edi
mov eax, dword [0x46e560]
xor eax, esp
push eax
lea eax, [esp + 0x68]
mov dword fs:[0], eax
mov edi, edx
mov esi, ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x40a23d
xor al, al
jmp 0x40a36e
xorps xmm0, xmm0
mov byte [esp + 0xf], 1
lea ecx, [esp + 0x34]
movdqa xmmword [esp + 0x34], xmm0
movq qword [esp + 0x44], xmm0
call fcn.004243ee
mov dword [esp + 0x70], 0
lea ecx, [esp + 0x14]
xorps xmm0, xmm0
mov dword [esp + 0x24], 0
movdqa xmmword [esp + 0x14], xmm0
call fcn.004155ed
mov dword [esp + 0x14], vtable.CFileException.0
call fcn.00414dfd
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x40a2a0
push 0x80004005
call fcn.00402a40
mov eax, dword [edx]
mov ecx, edx
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x24], eax
lea ecx, [esp + 0x24]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0xffffffff
call fcn.004024b0
push 0
push 0x4000
push esi
lea ecx, [esp + 0x40]
mov byte [esp + 0x7c], 2
call fcn.0042467f
push edi
lea ecx, [esp + 0x38]
call fcn.004247f0
mov eax, dword [edi]
mov ecx, 0x4608c2
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x40a310
test dl, dl
je 0x40a30c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x40a310
add eax, 2
add ecx, 2
test dl, dl
jne 0x40a2f0
xor eax, eax
jmp 0x40a315
sbb eax, eax
or eax, 1
movzx ecx, byte [esp + 0xf]
xor edx, edx
test eax, eax
cmove ecx, edx
mov dword [esp + 0x10], ecx
lea ecx, [esp + 0x34]
call fcn.00424551
mov byte [esp + 0x70], 0
or ecx, 0xffffffff
mov esi, dword [esp + 0x24]
add esi, 0xfffffff0
mov dword [esp + 0x14], vtable.CFileException.0
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40a359
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
lea ecx, [esp + 0x34]
mov dword [esp + 0x70], 0xffffffff
call fcn.00424408
mov al, byte [esp + 0x10]
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x54]
xor ecx, esp
call fcn.004387e7
mov esp, ebp
pop ebp
ret
Function at 0x40c8b0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x46e560]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
lea eax, [ebp - 8]
mov edi, ecx
push eax
push 0
push edi
push 0x40d530
push 0
push 0
call fcn.00439a1a
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
add esp, 0x18
push eax
call esi
lea eax, [ebp - 8]
push eax
push 0
push edi
push 0x40d650
push 0
push 0
call fcn.00439a1a
add esp, 0x18
push eax
call esi
lea eax, [ebp - 8]
push eax
push 0
push edi
push 0x40d880
push 0
push 0
call fcn.00439a1a
add esp, 0x18
push eax
call esi
lea eax, [ebp - 8]
push eax
push 0
push edi
push 0x40da20
push 0
push 0
call fcn.00439a1a
add esp, 0x18
push eax
call esi
lea eax, [ebp - 8]
push eax
push 0
push edi
push 0x40dbb0
push 0
push 0
call fcn.00439a1a
add esp, 0x18
push eax
call esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004387e7
mov esp, ebp
pop ebp
ret
Function at 0x40e720
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x4675d8
push 0x43a740
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, 0x1214
call fcn.0043dae0
mov eax, dword [0x46e560]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov eax, dword [ebp + 8]
mov dword [ebp - 4], 0
push eax
push 0
push 0x43a
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x40e817
mov byte [ebp - 0x122c], 0
lea eax, [ebp - 0x1124]
push eax
push 0x1000
lea eax, [ebp - 0x1120]
push eax
push edi
call dword [sym.imp.PSAPI.DLL_EnumProcessModules]
test eax, eax
je 0x40e805
xor esi, esi
mov ebx, dword [sym.imp.PSAPI.DLL_GetModuleFileNameExA]
mov dword [ebp - 0x1128], esi
mov eax, dword [ebp - 0x1124]
shr eax, 2
cmp esi, eax
jg 0x40e805
push 0x104
lea eax, [ebp - 0x120]
push eax
push dword [ebp + esi*4 - 0x1120]
push edi
call ebx
test eax, eax
je 0x40e802
push ecx
lea eax, [ebp - 0x120]
push eax
call fcn.0040e5f0
test eax, eax
je 0x40e802
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0xfffffffe
mov eax, 1
jmp 0x40e820
inc esi
jmp 0x40e7af
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40e817
mov dword [ebp - 4], 0xfffffffe
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.004387e7
mov esp, ebp
pop ebp
ret 8