joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4317f0
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x467bc8
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
mov ebp, dword [esp + 0x30]
push esi
mov ebx, ecx
push edi
mov esi, dword [ebp]
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x10]
dec ecx
cmp eax, ecx
jge 0x431829
inc eax
mov dword [esi + 0x10], eax
jmp 0x43193c
mov eax, dword [ebx + 0x3c]
mov ecx, dword [esi + 8]
cmp ecx, eax
jne 0x43183d
mov eax, 0xffffffc7
jmp 0x43193e
mov esi, dword [esi]
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp edx, ecx
jl 0x43184e
cmp dword [esi + 8], eax
jne 0x43183d
cmp dword [esi + 8], eax
jne 0x431867
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp eax, ecx
jl 0x431867
mov eax, 0xffffffc7
jmp 0x43193e
mov eax, dword [esi + 4]
xor edi, edi
cmp eax, edi
je 0x43187b
push eax
mov ecx, ebx
call fcn.00431020
mov dword [esi + 4], edi
mov dword [ebp], esi
mov ecx, dword [esi + 0x10]
inc ecx
mov dword [esi + 0x10], ecx
lea ecx, [esp + 0x10]
call fcn.00405180
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x3c]
test edi, edi
jne 0x4318ac
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + 8]
lea ecx, [esp + 0x10]
push edx
call fcn.004051a0
mov edi, eax
mov eax, dword [esi + 8]
push edi
push eax
mov ecx, ebx
call fcn.00430790
test eax, eax
mov dword [esp + 0x38], eax
je 0x4318df
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x46b1a8
call fcn.00405380
mov eax, dword [esp + 0x38]
jmp 0x43193e
mov ecx, dword [esi + 0x10]
push ecx
push edi
mov ecx, ebx
call fcn.00431650
mov dl, byte [edi]
and dl, 1
cmp dl, 1
jne 0x431923
mov ecx, dword [esp + 0x34]
push ebp
push ecx
push edi
push eax
mov ecx, ebx
call fcn.00431670
mov esi, eax
test esi, esi
jne 0x431953
mov edx, dword [ebp]
push eax
push edi
mov ecx, ebx
mov dword [edx + 0x10], eax
call fcn.00431650
mov cl, byte [edi]
and cl, 1
cmp cl, 1
je 0x4318f5
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x46b1a8
call fcn.00405380
xor eax, eax
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 0xc
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x46b1a8
call fcn.00405380
mov eax, esi
jmp 0x43193e

Function at 0x434a10
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [ecx + 0xcc], 1
je 0x434a70
mov eax, dword [ecx + 0x1c]
test eax, eax
je 0x434a70
mov eax, dword [ecx + 0xb0]
test eax, eax
je 0x434a70
push esi
mov edx, 5
mov esi, dword [ecx + 0xbc]
cmp esi, edx
pop esi
je 0x434a70
mov dword [ecx + 0xb4], eax
mov dword [ecx + 0x94], 0
mov dword [ecx + 0xbc], edx
lea eax, [esp]
push eax
push 0
push ecx
push 0x434ab0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ecx
ret
Function at 0x43aba0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4681f8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
lea eax, [esp + 0xc]
mov ecx, dword [esi + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
push 0
lea ecx, [esp + 0x20]
call fcn.00461391
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.0043a540
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x48]
add eax, 0x64
add esp, 0xc
add ecx, 0x64
mov dword [esp + 8], eax
lea eax, [esp + 4]
mov dword [esp + 4], ecx
push eax
lea ecx, [esp + 0x20]
call fcn.004612bf
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
push 1
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
lea eax, [edx + ecx + 1]
xor edx, edx
test eax, eax
setl dl
dec edx
mov ecx, esi
and eax, edx
push eax
push 0
push 0
call fcn.0045db83
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 8]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
xor ecx, ecx
sar edx, 4
mov eax, edx
push 1
shr eax, 0x1f
lea eax, [edx + eax + 1]
test eax, eax
setl cl
dec ecx
and eax, ecx
mov ecx, esi
push eax
push 0
push 1
call fcn.0045db83
push 1
push 0
push 0
mov ecx, esi
call fcn.0045db2b
push 1
push 0
push 1
mov ecx, esi
call fcn.0045db2b
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.00461403
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x43ad20
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x468218
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call fcn.00461391
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.0043a540
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x4c]
add ecx, 0x64
add esp, 0xc
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
add eax, 0x96
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call fcn.004612bf
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x43ade4
cmp dword [esp + 0x40], 1
jne 0x43ade2
cmp ecx, eax
jge 0x43ade4
mov eax, ecx
cmp eax, 0xc8
jge 0x43adf0
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.0043aba0
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.00461403
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x43b560
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x468283
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.0045bfa1
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], vtable.CBrush.0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.00461639
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.00462b55
test eax, eax
je 0x43b67c
mov ecx, dword [esp + 0x3c]
call fcn.00461666
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x43b640
push edi
mov ecx, esi
call fcn.0045ecca
mov ecx, esi
call fcn.0043b7e0
cmp dword [esp + 0x38], 1
jne 0x43b675
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.0045ee05
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x43e0a0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x43e0d3
push esi
call fcn.004411a0
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x43e0cc
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x43e159
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x43e142
mov eax, dword [esi + 8]
test eax, eax
je 0x43e0f7
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x43e13e
cmp eax, 2
je 0x43e142
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x43e0ea
cmp eax, 3
je 0x43e11d
cmp eax, 1
jne 0x43e0ea
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x43e0ea
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x43e0ea
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.0043e180
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x43e168
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.0043e180
add esp, 4
pop esi
ret

Function at 0x45cd96
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x45cdce
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.0045ae4d
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0045ae25
jmp 0x45cdda
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x45e487
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 0x45e4c9
call fcn.00463f45
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x45e4c9
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x45e4c0
xor eax, eax
jmp 0x45e4d1
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0045e4d7
pop edi
pop esi
pop ebx
ret 4

Function at 0x464475
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 0x4644a3
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4644c1
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004643db
jmp 0x4644c1
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4644c1
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004643db
test edi, edi
mov eax, edi
jne 0x4644ab
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x402a49
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
mov esi, ecx
push dword [esi]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_LoadResource]
xor edi, edi
cmp eax, edi
jne 0x402a67
xor al, al
jmp 0x402acc
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 8], eax
cmp eax, edi
je 0x402a63
push ebx
mov ecx, esi
call fcn.00402a3d
push edi
push 0x80
push 2
push edi
push edi
push 0x40000000
push dword [ebp + 8]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x402abc
push edi
lea eax, [ebp - 4]
push eax
push ebx
push dword [ebp - 8]
mov dword [ebp - 4], edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
test eax, eax
jne 0x402ac0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x402acb
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
setne al
pop ebx
pop edi
pop esi
leave
ret 4

Function at 0x402ce1
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push esi
push edi
xor edi, edi
cmp dword [0x40cc40], edi
jne 0x402d5d
push 0x206
lea eax, [ebp - 0x206]
push edi
push eax
call fcn.00403141
add esp, 0xc
xor esi, esi
xor eax, eax
mov word [ebp - 0x208], ax
push 0x104
lea eax, [ebp - 0x208]
push eax
push dword [esi + 0x401360]
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
dec eax
cmp eax, 0x103
ja 0x402d4b
push 8
push edi
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov dword [0x40cc40], eax
cmp dword [0x40cc40], edi
jne 0x402d5d
add esi, 4
cmp esi, 0xc
jb 0x402d0d
jmp 0x402d99
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x401354
push dword [0x40cc40]
call esi
push 0x401348
push dword [0x40cc40]
mov dword [0x40cc44], eax
call esi
push 0x401340
push dword [0x40cc40]
mov dword [0x40cc48], eax
call esi
mov dword [0x40cc4c], eax
cmp dword [0x40cc44], edi
je 0x402db6
cmp dword [0x40cc48], edi
je 0x402db6
cmp dword [0x40cc4c], edi
je 0x402db6
xor eax, eax
inc eax
jmp 0x402db8
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x402ff9
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push esi
push edi
push 0x40
xor esi, esi
lea eax, [ebp - 0x50]
push esi
push eax
mov dword [ebp - 0x54], 0x44
call fcn.00403141
xor eax, eax
mov dword [ebp - 0x10], esi
lea edi, [ebp - 0xc]
stosd dword es:[edi], eax
add esp, 0xc
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x54]
push eax
push esi
push esi
push 0x8000000
push esi
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x40304a
xor al, al
jmp 0x403086
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
push dword [ebp - 0xc]
call esi
push 0xffffffffffffffff
push dword [ebp - 0x10]
mov bl, 1
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x40307c
cmp dword [ebp + 0x10], eax
je 0x40307e
push dword [ebp + 0x10]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
jne 0x40307e
xor bl, bl
push dword [ebp - 0x10]
call esi
mov al, bl
pop ebx
pop edi
pop esi
leave
ret

Function at 0x403268
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
push dword [ebp + 8]
mov ecx, ebx
call fcn.0040319c
test al, al
je 0x40330f
push 0x4014f4
mov ecx, ebx
call fcn.004031b4
test al, al
je 0x40330f
mov esi, 0x104
push esi
push ebx
call fcn.004043f6
mov edi, eax
sub esi, edi
pop ecx
pop ecx
mov dword [ebp - 0xc], esi
cmp esi, 0xb
jb 0x40330f
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
shr ecx, 0xc
xor eax, ecx
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0xa
lea esi, [ebx + edi*2]
push dword [ebp - 0xc]
dec dword [ebp - 8]
push esi
lea eax, [ebp - 4]
push 4
push eax
call fcn.0040439f
add esp, 0x10
test al, al
je 0x40330f
lea eax, [edi + 5]
push eax
mov ecx, ebx
call fcn.004031cc
push 0x401614
mov ecx, ebx
call fcn.004031b4
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x403316
inc dword [ebp - 4]
cmp dword [ebp - 8], eax
jne 0x4032ca
xor al, al
pop edi
pop esi
pop ebx
leave
ret
push 0x401610
mov ecx, ebx
call fcn.004031b4
jmp 0x403311
Function at 0x40337a
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x254
push ebx
push esi
mov esi, dword [ebp + 8]
push 0x104
push esi
call fcn.004043f6
pop ecx
pop ecx
push 0x401620
mov ecx, esi
mov ebx, eax
call fcn.004031b4
test al, al
je 0x403456
and dword [ebp - 0x254], 0
push 0x24c
lea eax, [ebp - 0x250]
push 0
push eax
call fcn.00403141
add esp, 0xc
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
je 0x403447
push edi
cmp word [ebp - 0x20], 0
lea edi, [ebp - 0x20]
jne 0x4033ef
lea edi, [ebp - 0x228]
push edi
call fcn.004030af
pop ecx
test al, al
jne 0x403429
lea eax, [ebx + 1]
push eax
mov ecx, esi
call fcn.004031cc
push edi
mov ecx, esi
call fcn.004031b4
test al, al
je 0x403429
test byte [ebp - 0x254], 0x10
push esi
je 0x403423
call fcn.0040337a
pop ecx
jmp 0x403429
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x254]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4033df
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
push ebx
mov ecx, esi
call fcn.004031cc
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
pop esi
pop ebx
leave
ret

Function at 0x40349b
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 8]
mov esi, ecx
push 1
push 0
mov byte [esi], 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi + 4], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4034e9
push edi
mov edi, dword [sym.imp.USER32.dll_FindWindowW]
push 0x40164c
push 0
mov byte [esi], 1
call edi
test eax, eax
jne 0x4034e0
push 0x40162c
push eax
call edi
push eax
mov ecx, esi
call fcn.004030f5
pop edi
mov eax, esi
pop esi
pop ebp
ret 4
Function at 0x403eb7
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x668
push dword [ebp + 8]
xor eax, eax
lea ecx, [ebp - 0x45c]
mov word [ebp - 0x254], ax
mov word [ebp - 0x45c], ax
call fcn.0040319c
test al, al
je 0x403fdb
push dword [ebp + 0xc]
lea ecx, [ebp - 0x45c]
call fcn.004031b4
test al, al
je 0x403fdb
push 0x401750
lea eax, [ebp - 0x45c]
push 0x104
push eax
call fcn.00404456
add esp, 0xc
test al, al
je 0x403fdb
push ebx
push edi
xor edi, edi
push 0x24c
lea eax, [ebp - 0x24c]
push edi
push eax
mov dword [ebp - 0x250], edi
call fcn.00403141
add esp, 0xc
push edi
push edi
push 1
lea eax, [ebp - 0x250]
push eax
push edi
lea eax, [ebp - 0x45c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x403fd9
xor eax, eax
mov word [ebp - 0x460], ax
mov word [ebp - 0x668], ax
push esi
test byte [ebp - 0x250], 0x10
je 0x403fbf
lea esi, [ebp - 0x1c]
cmp word [ebp - 0x1c], di
jne 0x403f85
lea esi, [ebp - 0x224]
push esi
call fcn.004030af
pop ecx
test al, al
jne 0x403fbf
push dword [ebp + 8]
lea ecx, [ebp - 0x668]
call fcn.0040319c
test al, al
je 0x403fbf
push esi
lea ecx, [ebp - 0x668]
call fcn.004031b4
test al, al
je 0x403fbf
lea eax, [ebp - 0x668]
push eax
call fcn.0040337a
pop ecx
lea eax, [ebp - 0x250]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x403f6d
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
pop esi
pop edi
pop ebx
leave
ret

Function at 0x403fdd
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
xor eax, eax
push esi
mov word [ebp - 4], ax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20c]
push eax
mov esi, 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x40402d
cmp eax, esi
jae 0x40402d
xor esi, esi
push dword [esi + 0x401758]
lea eax, [ebp - 0x20c]
push eax
call fcn.00403eb7
add esi, 4
pop ecx
pop ecx
cmp esi, 8
jb 0x404011
pop esi
leave
ret

Function at 0x404182
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x208], ax
lea eax, [ebp - 0x206]
push eax
call fcn.00403141
add esp, 0xc
push 0x104
lea eax, [ebp - 0x208]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x4041c3
leave
ret
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call fcn.00404030
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x404254
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov esi, ecx
call fcn.00404220
mov eax, dword [ebp + 8]
lea edi, [esi + 0xc]
push edi
push eax
mov dword [esi + 8], eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov dword [esi], eax
test eax, eax
je 0x40433e
xor eax, eax
inc eax
cmp dword [edi], eax
mov dword [ebp + 8], eax
jle 0x40432e
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
mov edi, dword [ebp + 8]
mov eax, dword [esi]
push 0x401824
shl edi, 2
push dword [edi + eax]
call ebx
test eax, eax
jne 0x4042af
mov dword [esi + 4], 0x401250
jmp 0x40431e
mov eax, dword [esi]
push 0x401810
push dword [edi + eax]
call ebx
test eax, eax
jne 0x4042c5
mov byte [esi + 0x14], 1
jmp 0x40431e
mov eax, dword [esi]
push 0x4017f0
push dword [edi + eax]
call ebx
test eax, eax
jne 0x4042db
mov byte [esi + 0x15], 1
jmp 0x40431e
mov eax, dword [esi]
push 0x4017d0
push dword [edi + eax]
call ebx
test eax, eax
jne 0x4042f1
mov byte [esi + 0x16], 1
jmp 0x40431e
mov eax, dword [esi]
push 0x4017b0
push dword [edi + eax]
call ebx
test eax, eax
jne 0x404307
mov byte [esi + 0x17], 1
jmp 0x40431e
mov eax, dword [esi]
push 0x40179c
push dword [edi + eax]
call ebx
test eax, eax
jne 0x40431e
mov dword [esi + 0x10], 1
inc dword [ebp + 8]
mov eax, dword [ebp + 8]
cmp eax, dword [esi + 0xc]
jl 0x404290
pop ebx
cmp byte [esi + 0x16], 0
jne 0x40433e
cmp byte [esi + 0x15], 0
sete al
mov byte [esi + 0x14], al
xor eax, eax
cmp dword [esi], eax
pop edi
setne al
pop esi
pop ebp
ret 4
Function at 0x406783
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.00405678
and dword [ebp - 4], 0
cmp dword [0x40d250], 0
mov ebx, eax
jne 0x406834
push 0x401f98
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4068e5
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x401f8c
push edi
call esi
test eax, eax
je 0x4068e5
push eax
call fcn.00405606
mov dword [esp], 0x401f7c
push edi
mov dword [0x40d250], eax
call esi
push eax
call fcn.00405606
mov dword [esp], 0x401f68
push edi
mov dword [0x40d254], eax
call esi
push eax
call fcn.00405606
mov dword [esp], 0x401f4c
push edi
mov dword [0x40d258], eax
call esi
push eax
call fcn.00405606
pop ecx
mov dword [0x40d260], eax
test eax, eax
je 0x406834
push 0x401f34
push edi
call esi
push eax
call fcn.00405606
pop ecx
mov dword [0x40d25c], eax
mov eax, dword [0x40d25c]
cmp eax, ebx
je 0x40688c
cmp dword [0x40d260], ebx
je 0x40688c
push eax
call fcn.00405681
push dword [0x40d260]
mov esi, eax
call fcn.00405681
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40688c
test edi, edi
je 0x40688c
call esi
test eax, eax
je 0x406883
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x406883
test byte [ebp - 0xc], 1
jne 0x40688c
or dword [ebp + 0x10], 0x200000
jmp 0x4068c5
mov eax, dword [0x40d254]
cmp eax, ebx
je 0x4068c5
push eax
call fcn.00405681
pop ecx
test eax, eax
je 0x4068c5
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4068c5
mov eax, dword [0x40d258]
cmp eax, ebx
je 0x4068c5
push eax
call fcn.00405681
pop ecx
test eax, eax
je 0x4068c5
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x40d250]
call fcn.00405681
pop ecx
test eax, eax
je 0x4068e5
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4068e7
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4085ee
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40c9f8]
jne 0x4085f8
repz ret
jmp fcn.00409c95