joyce8/EMBER2024-capa huggingface dataset:
Function at 0x486bc4
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push ebx
mov ebx, eax
lea eax, [ebx + 8]
push eax
call sub.kernel32.dll_QueryPerformanceCounter_1
lea eax, [ebx + 0x10]
push eax
call sub.kernel32.dll_QueryPerformanceCounter_1
mov eax, dword [ebx + 0x10]
mov edx, dword [ebx + 0x14]
sub eax, dword [ebx + 8]
sbb edx, dword [ebx + 0xc]
jno 0x486bec
call fcn.00403a78
mov dword [ebx + 0x20], eax
mov dword [ebx + 0x24], edx
pop ebx
ret

Function at 0x48e548
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x48e5b9
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
push eax
mov eax, dword [0x50dcf4]
push eax
push 0
call sub.shell32.dll_SHGetSpecialFolderLocation
cmp dword [ebp - 4], 0
je 0x48e5a3
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 8]
call fcn.0048e538
mov eax, dword [ebp - 8]
push eax
xor ecx, ecx
mov dl, 1
mov eax, dword [0x488d88]
call fcn.0048e5e0
mov dword [0x50dd58], eax
mov eax, dword [ebp - 4]
call fcn.0048e4e8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48e5c0
lea eax, [ebp - 8]
call fcn.004069b4
ret
Function at 0xdfc058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.00dfc1a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0xdfc07e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xdfc06a
add dl, dl
jne 0xdfc089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xdfc0dc
xor eax, eax
add dl, dl
jne 0xdfc096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xdfc17d
add dl, dl
jne 0xdfc0a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xdfc0b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xdfc0bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xdfc0c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0xdfc0d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0xdfc075
mov eax, 1
add dl, dl
jne 0xdfc0ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xdfc0f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xdfc0e1
sub eax, ebx
mov ebx, 1
jne 0xdfc128
mov ecx, 1
add dl, dl
jne 0xdfc10e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xdfc119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xdfc105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xdfc075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0xdfc13f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xdfc14a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xdfc136
cmp eax, 0x7d00
jae 0xdfc16d
cmp eax, 0x500
jb 0xdfc168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xdfc075
cmp eax, 0x7f
ja 0xdfc170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xdfc075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0xdfc19e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0xdfc075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x433002
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40de38
nop
mov ecx, 0x73b05d11
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x43304e
nop
nop
nop
nop
xor dword [eax], ecx
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x433024
nop
nop
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x4304d8
nop
mov ecx, 0x5807c0c
nop
nop
nop
nop
test eax, eax
nop
je 0x433084
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x43306c
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x4021c0
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.0041564c

Function at 0x402370
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 0x402385
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4023c4
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 0x4023c0
lea ebx, [ebx]
cmp esi, edx
jae 0x4023c4
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
dec ecx
jne 0x4023b0
cmp esi, edx
jb 0x4023c9
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 0x402ec0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x46d560]
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 0x402ef7
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004384c1
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 0x402f91
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 0x402f91
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.004038b0
mov ecx, dword [ebp - 8]
mov dword [esi + 4], eax
test ecx, ecx
je 0x402f67
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [ebp - 8], 0
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x402f91
mov eax, dword [ecx + 8]
mov dword [ecx + 8], 0
test eax, eax
jne 0x402f91
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004384c1
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.004384c1
mov esp, ebp
pop ebp
ret 0xc
Function at 0x405c60
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x451053
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push esi
push edi
mov eax, dword [0x46d560]
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.0041e903
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 0x405d7e
push dword [edi + 4]
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
mov ecx, esi
call fcn.0041eb3e
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 0x405d27
mov eax, dword [edi]
lea ecx, [esi + 0x20]
push ecx
mov ecx, edi
call dword [eax + 0x50]
lea edx, [esi + 0x20]
jmp 0x405d33
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.0041eb74
test edi, edi
jne 0x405d5c
xor eax, eax
jmp 0x405d5f
mov eax, dword [edi + 4]
push eax
push dword [esi + 4]
call fcn.0041efd9
push dword [esi + 0x24]
mov dword [esi + 0x18], eax
mov ecx, esi
push dword [esi + 0x20]
lea eax, [ebp - 0x18]
push eax
call fcn.0041f22a
jmp 0x405d90
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 0x407aa0
Capabilities:
Check mutex and terminate process on windows
Check mutex on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45118b
mov eax, dword fs:[0]
push eax
mov eax, 0x1278
call fcn.0043d7c0
mov eax, dword [0x46d560]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
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 0x407bb8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x407bb8
inc dword [section.cici_dat]
lea eax, [ebp - 0x18]
push eax
mov dword [ebp - 0x18], 8
mov dword [ebp - 0x14], 0xff
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
mov ecx, edi
call fcn.004207dc
push 0
lea eax, [ebp - 0x28]
mov dword [ebp - 0x28], 1
push eax
lea eax, [edi + 0xcc]
mov dword [ebp - 0x24], 0
push eax
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
call dword [sym.imp.gdiplus.dll_GdiplusStartup]
push 0
call fcn.004211b9
add esp, 4
mov ecx, edi
push 0x4604f8
call fcn.004223c9
push 0x125c
lea eax, [ebp - 0x1284]
push 0
push eax
call fcn.0043a170
add esp, 8
lea ecx, [ebp - 0x1284]
call fcn.0040b4a0
lea eax, [ebp - 0x1284]
mov dword [ebp - 4], 0
mov ecx, eax
mov dword [edi + 0x20], eax
call fcn.0041595a
lea ecx, [ebp - 0x1284]
mov dword [ebp - 4], 0xffffffff
call fcn.00407c10
jmp 0x407be6
push 0x30
push 0x45f808
push 0x460518
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
test esi, esi
je 0x407bd7
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 [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004384c1
mov esp, ebp
pop ebp
ret
Function at 0x409de0
Capabilities:
Create http request
Print debug messages
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4513f6
mov eax, dword fs:[0]
push eax
sub esp, 0x418
mov eax, dword [0x46d560]
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 0x45f8e2
lea ecx, [ebp - 0x414]
mov dword [ebp - 0x414], 0
call fcn.004026d0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x418]
push 0x45f8e2
mov dword [ebp - 0x418], 0
call fcn.004026d0
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 0x409f52
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 0x409f3a
push 0x400
lea eax, [ebp - 0x410]
push 0
push eax
call fcn.0043a170
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 0x409f35
mov byte [ebp + eax - 0x410], 0
lea eax, [ebp - 0x410]
push eax
lea eax, [ebp - 0x414]
push 0x460d08
push eax
call fcn.00402a00
mov eax, dword [ebp - 0x414]
lea ecx, [ebp - 0x418]
add esp, 0xc
push dword [eax - 0xc]
push eax
call fcn.00414150
cmp dword [ebp - 0x41c], 0
ja 0x409ec0
mov edi, dword [ebp - 0x424]
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
jmp 0x409f65
call fcn.00438d3d
push 0x460d0c
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
xor bl, bl
call esi
jmp 0x409f65
push 0x460d20
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 0x409f9f
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 0x409fc3
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.004384c1
mov esp, ebp
pop ebp
ret
Function at 0x409ff0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x451442
mov eax, dword fs:[0]
push eax
sub esp, 0x120
mov eax, dword [0x46d560]
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.00414abd
mov ecx, eax
xor eax, eax
test ecx, ecx
setne al
test eax, eax
jne 0x40a05b
push 0x80004005
call fcn.00402b60
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 0x40a08f
push 0x104
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
jmp 0x40a097
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 0x40a157
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 0x460178
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.00402a00
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.004384c1
mov esp, ebp
pop ebp
ret
Function at 0x40a180
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
push 0xffffffffffffffff
push 0x451488
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x46d560]
xor eax, esp
mov dword [esp + 0x54], eax
push esi
push edi
mov eax, dword [0x46d560]
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 0x40a1cd
xor al, al
jmp 0x40a2fe
xorps xmm0, xmm0
mov byte [esp + 0xf], 1
lea ecx, [esp + 0x34]
movdqa xmmword [esp + 0x34], xmm0
movq qword [esp + 0x44], xmm0
call fcn.004240d3
mov dword [esp + 0x70], 0
lea ecx, [esp + 0x14]
xorps xmm0, xmm0
mov dword [esp + 0x24], 0
movdqa xmmword [esp + 0x14], xmm0
call fcn.004152a0
mov dword [esp + 0x14], vtable.CFileException.0
call fcn.00414abd
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x40a230
push 0x80004005
call fcn.00402b60
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.00402550
push 0
push 0x4000
push esi
lea ecx, [esp + 0x40]
mov byte [esp + 0x7c], 2
call fcn.00424343
push edi
lea ecx, [esp + 0x38]
call fcn.004244b4
mov eax, dword [edi]
mov ecx, 0x45f8e2
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x40a2a0
test dl, dl
je 0x40a29c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x40a2a0
add eax, 2
add ecx, 2
test dl, dl
jne 0x40a280
xor eax, eax
jmp 0x40a2a5
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.00424236
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 0x40a2e9
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.004240ed
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.004384c1
mov esp, ebp
pop ebp
ret
Function at 0x40c870
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x46d560]
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 0x40d3d0
push 0
push 0
call fcn.004396fa
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 0x40d480
push 0
push 0
call fcn.004396fa
add esp, 0x18
push eax
call esi
lea eax, [ebp - 8]
push eax
push 0
push edi
push 0x40d700
push 0
push 0
call fcn.004396fa
add esp, 0x18
push eax
call esi
lea eax, [ebp - 8]
push eax
push 0
push edi
push 0x40d920
push 0
push 0
call fcn.004396fa
add esp, 0x18
push eax
call esi
lea eax, [ebp - 8]
push eax
push 0
push edi
push 0x40db30
push 0
push 0
call fcn.004396fa
add esp, 0x18
push eax
call esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004384c1
mov esp, ebp
pop ebp
ret
Function at 0x40dbd0
Capabilities:
Create process on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x114
mov eax, dword [0x46d560]
xor eax, esp
mov dword [esp + 0x110], eax
cmp dword [0x473138], 2
push ebx
push esi
push edi
mov esi, ecx
jne 0x40dce2
mov edi, dword [sym.imp.USER32.dll_MessageBoxA]
push 0x34
push 0x4607a8
push 0x461428
push 0
call edi
cmp eax, 6
jne 0x40dccb
mov ecx, esi
call fcn.0040e450
mov ecx, esi
call fcn.0040e020
test al, al
je 0x40dcab
push 0x473878
lea eax, [esp + 0x14]
push 0x104
push eax
call fcn.00439f6a
add esp, 0xc
lea eax, [esp + 0x10]
push str.Script
push 0x104
push eax
call fcn.00438e34
add esp, 0xc
lea ecx, [esp + 0x10]
call fcn.0040a470
push 1
push 0
push 0
push 0x473350
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov ebx, eax
cmp ebx, 0x20
jge 0x40dc93
push 0x30
push 0x45f808
push 0x4614c0
push 0
call edi
push ebx
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]
jmp 0x40dcbb
push 0x30
push 0x45f808
push 0x46151c
push 0
call edi
push 2
mov ecx, esi
call fcn.00415b1a
mov ecx, esi
call fcn.00417c8f
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x110]
xor ecx, esp
call fcn.004384c1
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x11c]
mov al, 1
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004384c1
mov esp, ebp
pop ebp
ret
Function at 0x40e620
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x466690
push 0x43a420
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, 0x1214
call fcn.0043d7c0
mov eax, dword [0x46d560]
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 0x40e717
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 0x40e705
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 0x40e705
push 0x104
lea eax, [ebp - 0x120]
push eax
push dword [ebp + esi*4 - 0x1120]
push edi
call ebx
test eax, eax
je 0x40e702
push ecx
lea eax, [ebp - 0x120]
push eax
call fcn.0040e4f0
test eax, eax
je 0x40e702
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0xfffffffe
mov eax, 1
jmp 0x40e720
inc esi
jmp 0x40e6af
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40e717
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.004384c1
mov esp, ebp
pop ebp
ret 8