joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403b2c
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x40f030]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
call fcn.00403b0b
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x98]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x98]
push eax
mov dword [ebp - 0x98], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x88], 2
jne 0x403bce
cmp dword [ebp - 0x94], 5
jb 0x403ba1
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x403be8
call fcn.004033e5
test eax, eax
jl 0x4067c7
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00401d55
leave
ret
cmp dword [ebp - 0x88], 1
je 0x4067af
jmp 0x403ba1
cmp dword [ebp - 0x90], 0
jbe 0x403ba1
jmp 0x403b9d
cmp dword [ebp - 0x94], 4
ja 0x403b9d
je 0x403bdd
jmp 0x403ba1
mov byte [0x40f288], 1
jmp 0x403bbf

Function at 0x40468d
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp byte [esi + 0x40], bl
jne 0x4046b4
push 0x4046b8
mov byte [esi + 0x40], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [esi + 0x44], eax
cmp eax, ebx
jne 0x406ccb
pop esi
pop ebx
ret
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress_1]
push 0x406dd8
push eax
call edi
push 0x406dc8
push dword [esi + 0x44]
mov dword [esi + 0xc], eax
call edi
push 0x406db4
push dword [esi + 0x44]
mov dword [esi + 0x10], eax
call edi
push 0x406da0
push dword [esi + 0x44]
mov dword [esi], eax
call edi
push 0x406d88
push dword [esi + 0x44]
mov dword [esi + 4], eax
call edi
push 0x406d74
push dword [esi + 0x44]
mov dword [esi + 8], eax
call edi
mov ecx, dword [esi + 0xc]
mov dword [esi + 0x14], eax
pop edi
cmp ecx, ebx
je 0x406d61
cmp dword [esi + 0x10], ebx
je 0x406d61
cmp dword [esi], ebx
je 0x406d61
cmp dword [esi + 4], ebx
je 0x406d61
cmp dword [esi + 8], ebx
je 0x406d61
cmp eax, ebx
je 0x406d61
lea eax, [esi + 0x18]
push eax
push dword [esi + 0x38]
call ecx
mov dword [esi + 0x3c], eax
cmp eax, ebx
jne 0x4046b4
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0x14], ebx
push dword [esi + 0x44]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [esi + 0x44], ebx
jmp 0x4046b4

Function at 0x407d37
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov ebx, ecx
test esi, esi
jne 0x407d52
push 0x80004005
call fcn.0040788a
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x407d54
push edi
push dword [ebp + 0xc]
push 7
push 0
push dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x408525
Capabilities:
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x40f030]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov eax, ecx
mov ecx, dword [ebp + 8]
push 0x2001f
push ecx
push dword [eax]
xor esi, esi
mov dword [ebp - 0x21c], ecx
lea ecx, [ebp - 0x214]
mov dword [ebp - 0x218], eax
mov dword [ebp - 0x214], esi
mov dword [ebp - 0x210], esi
mov dword [ebp - 0x20c], esi
call fcn.00404509
mov edi, eax
cmp edi, esi
je 0x408597
lea ecx, [ebp - 0x214]
call fcn.00407c1f
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00401d55
leave
ret 4
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x4085b5
lea eax, [ebp - 0x204]
push eax
lea ecx, [ebp - 0x214]
call fcn.00408525
cmp eax, esi
jne 0x408600
lea eax, [ebp - 0x224]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x204]
push eax
push esi
push dword [ebp - 0x214]
mov dword [ebp - 0x208], 0x100
call edi
test eax, eax
je 0x40859f
lea ecx, [ebp - 0x214]
call fcn.00407c1f
push dword [ebp - 0x21c]
mov ecx, dword [ebp - 0x218]
call fcn.00407b09
lea ecx, [ebp - 0x214]
mov esi, eax
call fcn.00407c1f
mov eax, esi
jmp 0x408587
Function at 0x40c3c7
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x40f030]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0xc]
push edi
xor edi, edi
push 2
push edi
push eax
mov dword [ebp - 0x410], edi
mov dword [ebp - 0x414], ecx
mov dword [ebp - 0x418], edi
mov dword [ebp - 0x408], edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov dword [ebp - 0x40c], eax
cmp eax, edi
jne 0x40c422
call fcn.00407985
mov esi, eax
jmp 0x40c503
push ebx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
cmp esi, edi
jne 0x40c43b
call fcn.00407985
jmp 0x40c4f5
push esi
push dword [ebp - 0x40c]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
cmp ebx, edi
je 0x40c431
push esi
push dword [ebp - 0x40c]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
lea eax, [esi + 1]
cmp eax, esi
jae 0x40c4a0
lea eax, [ebp - 0x404]
cmp dword [ebp - 0x408], eax
je 0x40c47d
lea ecx, [ebp - 0x408]
call fcn.00408415
mov esi, 0x8007000e
lea ecx, [ebp - 0x410]
call fcn.00408324
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401d55
leave
ret 0x10
push eax
lea ecx, [ebp - 0x408]
call fcn.0040a860
cmp dword [ebp - 0x408], edi
jne 0x40c4bb
mov esi, 0x8007000e
jmp 0x40c4f7
push esi
push dword [ebp - 0x408]
push esi
push ebx
push edi
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, edi
je 0x40c431
mov edx, dword [ebp - 0x408]
push dword [ebp + 0x14]
xor ecx, ecx
mov word [edx + eax*2], cx
push dword [ebp - 0x408]
lea ecx, [ebp - 0x418]
call fcn.0040c1f7
mov esi, eax
push dword [ebp - 0x40c]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x404]
cmp dword [ebp - 0x408], eax
je 0x40c482
lea ecx, [ebp - 0x408]
call fcn.00408415
jmp 0x40c482
Function at 0x1000a94b
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
pushal
call 0x1000a95a
pop dword [ebp - 0x1c]
mov eax, 0xe4c85987
add eax, 0x2b384fd3
sub dword [ebp - 0x1c], eax
push 0x40
push 0x1000
push 0x3fba0
push 0
mov eax, 0xa893d3aa
add eax, 0x676f1db2
add eax, dword [ebp - 0x1c]
call dword [eax]
mov ecx, 0x45e7
mov edi, eax
mov esi, 0xe185ffe
sub esi, 0xfe13b3fe
add esi, dword [ebp - 0x1c]
mov ebx, 0x760343eb
add ebx, 0xd25ee46e
xor dword [ebp - 0xc], 0x89affaad
mov edx, dword [esi]
sub dword [ebp - 4], 0x746559c0
add edx, ebx
add dword [ebp - 8], 0xe49948a1
mov dword [edi], edx
sub dword [ebp - 0x18], 0x759360b0
add edi, 0x935b06cf
add edi, 0x6ca4f935
add esi, 0xd0294ef0
sub esi, 0xd0294eec
loop 0x1000a9b3
add eax, 0x7092c6df
add eax, 0x8f6e4390
mov ebx, eax
add eax, 5
mov ecx, 0xbdc6c684
sub ecx, 0xadc6c684
add ecx, dword [ebp - 0x1c]
call ebx
leave
ret

Function at 0x1000cd31
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x424
mov eax, 0x1002cd97
call fcn.10017073
mov eax, dword [ebp + 0xc]
xor esi, esi
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x420], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x430], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], esi
mov dword [ebp - 0x418], esi
push 0x60
push esi
push ebx
mov byte [ebp - 4], 1
call dword [sym.imp.kernel32.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x424], edi
test edi, edi
jne 0x1000cdae
push 2
push esi
push ebx
call dword [sym.imp.kernel32.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x424], eax
test edi, edi
jne 0x1000cdae
call fcn.10005a99
mov esi, eax
jmp 0x1000ce85
push dword [ebp - 0x41c]
push dword [ebp - 0x420]
push edi
call dword [sym.imp.kernel32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
jne 0x1000cdd1
call fcn.10005a99
jmp 0x1000ce78
push ebx
push edi
call dword [sym.imp.kernel32.dll_LoadResource]
mov dword [ebp - 0x41c], eax
test eax, eax
je 0x1000cdc7
push ebx
push edi
call dword [sym.imp.kernel32.dll_SizeofResource]
mov ebx, eax
mov dword [ebp - 0x420], ebx
lea eax, [ebx + 1]
cmp eax, ebx
jae 0x1000ce01
mov esi, 0x8007000e
jmp 0x1000ce7a
push eax
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 2
call fcn.1000a94b
jmp 0x1000ce27
cmp dword [ebp - 0x418], 0
mov dword [ebp - 4], 1
je 0x1000cdfa
push ebx
push dword [ebp - 0x418]
push ebx
push dword [ebp - 0x41c]
push esi
push 3
call dword [sym.imp.kernel32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
je 0x1000cdc7
mov eax, dword [ebp - 0x418]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x42c]
push dword [ebp - 0x418]
call fcn.1000a94b
mov esi, eax
test edi, edi
je 0x1000ce85
push edi
call dword [sym.imp.kernel32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x1000ce9e
lea ecx, [ebp - 0x418]
call fcn.1000c4af
mov eax, esi
call fcn.10016fc0
ret 0x10
Function at 0x10015217
Capabilities:
Enumerate processes

Disassembly:
push 0x238
mov eax, 0x1002d711
call fcn.10017005
mov ebx, dword [ebp + 8]
test ebx, ebx
jne 0x10015234
xor eax, eax
jmp 0x10015311
xor edi, edi
push edi
push 2
call sub.kernel32.dll_CreateToolhelp32Snapshot
mov esi, eax
test esi, esi
je 0x1001530f
lea eax, [ebp - 0x23c]
mov dword [ebp - 0x23c], 0x22c
push eax
push esi
call sub.kernel32.dll_Process32FirstW
jmp 0x100152e5
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x244]
call fcn.1000128b
push ebx
lea ecx, [ebp - 0x240]
mov dword [ebp - 4], edi
call fcn.1000128b
lea ecx, [ebp - 0x244]
mov byte [ebp - 4], 1
call fcn.10001cc6
lea ecx, [ebp - 0x240]
call fcn.10001cc6
lea eax, [ebp - 0x244]
push eax
lea eax, [ebp - 0x240]
push eax
call fcn.1000a94b
pop ecx
pop ecx
mov ecx, dword [ebp - 0x240]
lea ecx, [ecx - 0x10]
test al, al
jne 0x100152ef
call fcn.10001eb4
mov ecx, dword [ebp - 0x244]
or dword [ebp - 4], 0xffffffff
lea ecx, [ecx - 0x10]
call fcn.10001eb4
lea eax, [ebp - 0x23c]
push eax
push esi
call sub.kernel32.dll_Process32NextW
test eax, eax
jne 0x10015264
jmp 0x10015308
mov edi, dword [ebp - 0x234]
call fcn.10001eb4
mov ecx, dword [ebp - 0x244]
add ecx, 0xfffffff0
call fcn.10001eb4
push esi
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, edi
call fcn.10016faf
ret

Function at 0x430005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
mov eax, section..reloc
nop
push 4
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x430072
nop
nop
nop
mov ebx, 0x408ecc
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
pop eax
nop
nop
nop
nop
nop
nop
mov esi, 0x33256013
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x430060
nop
mov eax, section..data
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x4300d2
nop
mov ebx, 0x42e1d0
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x728c7de0
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x4300c0
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x401685
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x87fe4c]
sub esp, 0x800
push esi
mov esi, eax
shr esi, 3
push edi
mov edi, dword [0x87fda4]
test esi, esi
je 0x4016d3
cmp eax, 0x959
jne 0x4016bf
push 0
lea eax, [ebp - 0x800]
push eax
push str.Subasosu_nigukole_padisekadapoyi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov ecx, edi
call fcn.00401481
add edi, 8
dec esi
je 0x4016d3
mov eax, dword [0x87fe4c]
jmp 0x4016a4
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x40d776
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x419468]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.004050d5
mov dword [ebp - 0x14], eax
cmp dword [0x816dc4], esi
jne 0x40d869
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40d7f6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40d949
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40d949
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40d949
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x816dc4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x816dc8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x816dcc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x816dd4], eax
test eax, eax
je 0x40d866
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x816dd0], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40d88e
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40d881
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40d8a3
push 4
pop eax
jmp 0x40d94b
cmp dword [ebp - 0x14], esi
je 0x40d8a3
push dword [0x816dc4]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40d888
mov eax, dword [0x816dd0]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40d901
cmp dword [0x816dd4], edi
je 0x40d901
push eax
call ebx
push dword [0x816dd4]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40d901
test eax, eax
je 0x40d901
call ecx
test eax, eax
je 0x40d8f6
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x40d8f6
test byte [ebp - 8], 1
jne 0x40d901
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40d931
mov eax, dword [0x816dc8]
cmp eax, edi
je 0x40d92e
push eax
call ebx
test eax, eax
je 0x40d92e
call eax
mov esi, eax
test esi, esi
je 0x40d92e
mov eax, dword [0x816dcc]
cmp eax, edi
je 0x40d92e
push eax
call ebx
test eax, eax
je 0x40d92e
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x816dc4]
call ebx
test eax, eax
je 0x40d949
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40d94b
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004043ad
mov esp, ebp
pop ebp
ret
Function at 0x10001100
Capabilities:
Enumerate process modules

Disassembly:
sub esp, 0x434
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x430], eax
mov eax, dword [esp + 0x438]
push ebx
push esi
push edi
push eax
push 8
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x10001147
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x430]
xor ecx, esp
call fcn.10003ca2
add esp, 0x434
ret
lea ecx, [esp + 0x10]
push ecx
push ebx
mov dword [esp + 0x18], 0x428
call sub.KERNEL32.dll_Module32FirstW
test eax, eax
je 0x1000112d
push 0x14
call fcn.10003ea7
mov esi, eax
add esp, 4
xor eax, eax
test esi, esi
je 0x100012a4
mov dword [esi + 4], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov dword [esi], 0x10
mov dword [esi + 8], eax
lea eax, [esp + 0x30]
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10001190
sub eax, edx
sar eax, 1
push 5
lea edx, [esp + eax*2 + 0x2c]
push 0x10010424
push edx
call fcn.100040e2
add esp, 0xc
test eax, eax
jne 0x10001288
mov ax, word [esp + 0x30]
mov ecx, 0x6d
cmp cx, ax
je 0x100011d4
mov edx, 0x4d
cmp dx, ax
jne 0x100011f5
mov ax, word [esp + 0x32]
mov ecx, 0x73
cmp cx, ax
je 0x10001288
mov edx, 0x53
cmp dx, ax
je 0x10001288
push 0x14
lea eax, [esp + 0x34]
push str.micromn.dll
push eax
call fcn.100040e2
add esp, 0xc
test eax, eax
je 0x10001288
xor ecx, ecx
lea eax, [esp + 0x30]
cmp word [esp + 0x30], cx
je 0x1000123c
lea ebx, [ebx]
mov di, word [eax]
mov edx, 0x2e
add eax, 2
cmp dx, di
jne 0x10001231
inc ecx
cmp word [eax], 0
jne 0x10001220
cmp ecx, 1
ja 0x10001288
push 7
lea eax, [esp + 0x23a]
push str.WINDOWS
push eax
call fcn.100040e2
add esp, 0xc
test eax, eax
je 0x10001288
push 0x208
call fcn.10003ea7
mov edi, eax
add esp, 4
test edi, edi
je 0x10001288
push 0xffffffffffffffff
lea ecx, [esp + 0x234]
push ecx
push 0x104
push edi
call fcn.10003cb1
push edi
call fcn.10003c50
add esp, 0x14
lea edx, [esp + 0x10]
push edx
push ebx
call sub.KERNEL32.dll_Module32NextW
test eax, eax
jne 0x10001186
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
mov ecx, dword [esp + 0x43c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10003ca2
add esp, 0x434
ret
Function at 0x100012c0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2a4
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x2a0], eax
push ebx
push esi
push edi
mov esi, ecx
call fcn.100013d0
mov ebx, eax
test ebx, ebx
jne 0x100013ae
test esi, esi
je 0x1000137f
lea eax, [esp + 0x240]
test eax, eax
je 0x1000137f
lea edi, [ebx + 0x5c]
call section..text
test eax, eax
je 0x1000137f
push 0xffffffffffffffff
add eax, 2
push eax
lea ecx, [esp + 0x248]
push 0x32
push ecx
call fcn.10003cb1
add esp, 0x10
push ebx
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x1000137f
lea edx, [esp + 0x10]
push edx
push esi
mov dword [esp + 0x18], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x1000137f
jmp 0x10001350
push 0x104
lea eax, [esp + 0x244]
push eax
lea ecx, [esp + 0x3c]
push ecx
call fcn.100040e2
add esp, 0xc
test eax, eax
je 0x10001396
lea edx, [esp + 0x10]
push edx
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x10001350
jmp 0x100013a5
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2a0]
xor ecx, esp
call fcn.10003ca2
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x18]
push eax
call fcn.10001100
add esp, 4
mov ebx, eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
mov ecx, dword [esp + 0x2ac]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10003ca2
mov esp, ebp
pop ebp
ret
Function at 0x10001660
Capabilities:
Check if file exists

Disassembly:
sub esp, 0x20c
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x208], eax
mov eax, edi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10001680
sub eax, edx
sar eax, 1
push ebx
mov ebx, eax
cmp ebx, 0xfa
jbe 0x100016b5
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.10003ca2
add esp, 0x20c
ret
lea eax, [ebx - 4]
push eax
push edi
lea eax, [esp + 0xc]
push 0x104
push eax
call fcn.10003cb1
lea eax, [esp + 0x14]
add esp, 0x10
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x100016d3
sub eax, edx
push ebp
mov ebp, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
sar eax, 1
push esi
mov esi, eax
movzx eax, word [edi + ebx*2 - 0xa]
mov ecx, 0x73
cmp cx, ax
je 0x10001705
mov edx, 0x53
cmp dx, ax
jne 0x10001759
mov eax, 0x2e
mov edx, 0x6c
mov word [esp + esi*2 + 0xa], ax
mov ecx, 0x64
mov eax, edx
mov word [esp + esi*2 + 0xe], dx
mov word [esp + esi*2 + 0xc], cx
lea edx, [esp + 0xc]
xor ecx, ecx
push edx
mov word [esp + esi*2 + 0x14], ax
mov word [esp + esi*2 + 0x16], cx
call ebp
test eax, eax
je 0x10001759
pop esi
pop ebp
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.10003ca2
add esp, 0x20c
ret
lea eax, [ebx - 4]
push eax
push edi
lea eax, [esp + 0x14]
push 0x104
push eax
call fcn.10003cb1
movzx eax, word [edi + ebx*2 - 0xa]
add esp, 0x10
cmp ax, 0x41
jb 0x10001790
cmp ax, 0x5a
ja 0x10001790
lea eax, [esi + esi]
mov ecx, 0x53
mov word [esp + eax + 0xc], cx
jmp 0x1000179d
lea eax, [esi + esi]
mov edx, 0x73
mov word [esp + eax + 0xc], dx
mov ecx, 0x2e
mov word [esp + eax + 0xe], cx
mov edx, 0x64
mov ecx, 0x6c
mov word [esp + eax + 0x10], dx
mov edx, ecx
mov word [esp + eax + 0x14], dx
mov word [esp + eax + 0x12], cx
lea edx, [esp + 0xc]
xor ecx, ecx
push edx
mov word [esp + eax + 0x1a], cx
call ebp
mov ecx, dword [esp + 0x214]
pop esi
neg eax
pop ebp
sbb eax, eax
pop ebx
xor ecx, esp
neg eax
call fcn.10003ca2
add esp, 0x20c
ret
Function at 0x10001e90
Capabilities:
Enumerate pe sections
Resolve function by parsing pe exports

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
mov eax, dword [ebx + 0x3c]
lea ecx, [ebx + eax]
push ebp
push esi
mov esi, dword [ecx + 0x78]
lea eax, [ecx + 0xf8]
movzx ecx, word [ecx + 6]
xor edx, edx
push edi
test ecx, ecx
jle 0x10001ece
mov edi, dword [eax + 0xc]
cmp esi, edi
jb 0x10001ec6
mov ebp, dword [eax + 0x10]
add ebp, edi
cmp esi, ebp
jb 0x10001f5b
inc edx
add eax, 0x28
cmp edx, ecx
jl 0x10001eb2
xor edi, edi
mov ecx, dword [ebx + 0x3c]
mov ebp, dword [edi + 0x1c]
lea edx, [ebx + ecx]
movzx ebx, word [edx + 6]
xor ecx, ecx
test ebx, ebx
jle 0x10001f0c
lea eax, [edx + 0x104]
lea esp, [esp]
mov esi, dword [eax]
cmp ebp, esi
jb 0x10001f04
mov ebp, dword [eax + 4]
add ebp, esi
mov esi, ebp
mov ebp, dword [edi + 0x1c]
cmp ebp, esi
jb 0x10001f0c
inc ecx
add eax, 0x28
cmp ecx, ebx
jl 0x10001ef0
movzx ebx, word [edx + 6]
mov esi, dword [edi + 0x24]
xor ecx, ecx
lea eax, [edx + 0xf8]
test ebx, ebx
jle 0x10001f38
nop
mov edx, dword [eax + 0xc]
cmp esi, edx
jb 0x10001f30
mov ebp, dword [eax + 0x10]
add ebp, edx
cmp esi, ebp
jb 0x10001f6a
inc ecx
add eax, 0x28
cmp ecx, ebx
jl 0x10001f20
xor ecx, ecx
mov edi, dword [edi + 0x18]
or eax, 0xffffffff
xor edx, edx
test edi, edi
jbe 0x10001f79
movzx esi, word [ecx + edx*2]
cmp esi, dword [esp + 0x1c]
je 0x10001f77
inc edx
cmp edx, edi
jb 0x10001f46
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
mov edi, dword [eax + 0x14]
sub edi, dword [eax + 0xc]
add edi, esi
add edi, ebx
jmp 0x10001ed0
mov ecx, dword [eax + 0x14]
sub ecx, edx
add ecx, esi
add ecx, dword [esp + 0x18]
jmp 0x10001f3a
mov eax, edx
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret