joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40412e
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x52c
mov eax, dword [0x4444b0]
mov dword [ebp - 4], eax
mov eax, dword [0x448470]
push ebx
xor ebx, ebx
cmp eax, ebx
je 0x40415d
call eax
cmp eax, ebx
mov dword [ebp - 0x528], eax
jne 0x4042ea
push dword [section..data]
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, ebx
mov dword [ebp - 0x528], eax
je 0x4042ea
push esi
mov esi, 0x104
push esi
lea eax, [ebp - 0x41c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
jne 0x404195
mov byte [ebp - 0x41c], bl
push esi
lea eax, [ebp - 0x524]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
jne 0x4041ad
mov byte [ebp - 0x524], bl
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push esi
lea eax, [ebp - 0x10c]
push eax
push dword [ebp - 0x528]
call edi
test eax, eax
jne 0x4041ce
mov byte [ebp - 0x10c], bl
push esi
lea eax, [ebp - 0x214]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call edi
test eax, eax
pop edi
jne 0x4041eb
mov byte [ebp - 0x214], bl
lea eax, [ebp - 0x314]
push eax
lea eax, [ebp - 0x52c]
push eax
lea eax, [ebp - 0x214]
push eax
call fcn.00404091
lea eax, [ebp - 0x52c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40420e
sub eax, edx
mov ecx, eax
lea eax, [ebp - 0x314]
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x404222
sub eax, esi
add eax, ecx
mov byte [ebp + eax - 0x213], bl
lea eax, [ebp - 0x314]
push eax
lea eax, [ebp - 0x52c]
push eax
lea eax, [ebp - 0x10c]
push eax
call fcn.00404091
lea eax, [ebp - 0x52c]
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x404257
sub eax, ecx
lea ecx, [ebp - 0x314]
lea esi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
cmp dl, bl
jne 0x404269
sub ecx, esi
add ecx, eax
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x524]
push eax
mov byte [ebp + ecx - 0x10b], bl
call fcn.00403fc2
test eax, eax
pop esi
jne 0x4042aa
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x524]
push eax
call fcn.00403fc2
test eax, eax
jne 0x4042d8
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x41c]
push eax
call fcn.00403fc2
test eax, eax
jne 0x4042ea
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x41c]
push eax
call fcn.00403fc2
test eax, eax
je 0x4042ea
push dword [ebp - 0x528]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [ebp - 0x528], ebx
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x528]
pop ebx
call fcn.0041f8f1
leave
ret
Function at 0x40590b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
je 0x405951
call fcn.00409f9c
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x405951
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 4], eax
je 0x405994
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
je 0x40597d
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x40597d
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x405991
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x406d5c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
test ebx, 0xffff0000
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
jne 0x406d7c
cmp dword [edi + 0x54], 0
jne 0x406d7c
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.00409f9c
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [esp + 0x18]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.00406d23
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
ret 8

Function at 0x40f363
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x40f3a6
call fcn.00409f9c
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x40f3a6
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x40f3c1
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.0040ef1a
test ebx, ebx
mov esi, eax
je 0x40f3bf
test edi, edi
je 0x40f3bf
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x411e22
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 0x411e50
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x411e6e
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00411d8c
jmp 0x411e6e
mov eax, dword [esi + 0x14]
test eax, eax
je 0x411e6e
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.00411d8c
test edi, edi
mov eax, edi
jne 0x411e58
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x447570]
test ecx, ecx
je 0x411f31
jmp 0x411e21
ret 8

Function at 0x41f8f1
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4444b0]
jne 0x41f8fb
repz ret
jmp fcn.004241c2
Function at 0x42d800
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00424329
xor ebx, ebx
cmp dword [0x448314], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x42d8d5
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x42d840
xor eax, eax
jmp 0x42d999
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4395d8
push edi
call esi
cmp eax, ebx
je 0x42d839
push eax
call fcn.004242c6
mov dword [esp], 0x4395c8
push edi
mov dword [0x448314], eax
call esi
push eax
call fcn.004242c6
mov dword [esp], 0x4395b4
push edi
mov dword [0x448318], eax
call esi
push eax
call fcn.004242c6
mov dword [0x44831c], eax
lea eax, [ebp - 8]
push eax
call fcn.00420a60
test eax, eax
pop ecx
pop ecx
je 0x42d8a3
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00424d8f
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x42d8d5
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.004242c6
cmp eax, ebx
pop ecx
mov dword [0x448324], eax
je 0x42d8d5
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004242c6
pop ecx
mov dword [0x448320], eax
mov eax, dword [0x448320]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x42d94e
cmp dword [0x448324], esi
je 0x42d94e
push eax
call fcn.00424332
pop ecx
call eax
cmp eax, ebx
je 0x42d91b
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x448324]
call fcn.00424332
pop ecx
call eax
test eax, eax
je 0x42d91b
test byte [ebp - 0x18], 1
jne 0x42d94e
lea eax, [ebp - 0xc]
push eax
call fcn.00420a97
test eax, eax
pop ecx
je 0x42d936
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00424d8f
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x42d945
or dword [ebp + 0x10], 0x200000
jmp 0x42d97f
or dword [ebp + 0x10], 0x40000
jmp 0x42d97f
mov eax, dword [0x448318]
cmp eax, esi
je 0x42d97f
push eax
call fcn.00424332
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x42d97f
mov eax, dword [0x44831c]
cmp eax, esi
je 0x42d97f
push dword [ebp - 4]
push eax
call fcn.00424332
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x448314]
call fcn.00424332
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x432d44
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x4444b0]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.00432cd9
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.00420ea0
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x432d93
cmp dword [ebp - 0x1c], 5
jb 0x432dab
jmp 0x432da7
cmp dword [ebp - 0x10], 1
jne 0x432dab
cmp dword [ebp - 0x1c], 4
ja 0x432da7
jne 0x432dab
cmp dword [ebp - 0x18], 0
jbe 0x432dab
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x43a7b0
call fcn.00432bad
test eax, eax
jge 0x432dcc
mov byte [0x4483b9], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0041f8f1
add ebp, 0x78
leave
ret
Function at 0x6da7b0
Capabilities:
Encode data using xor

Disassembly:
cmp dword [esi], edi
add eax, 0xc630b90d
sub eax, 0x81595f65
mov al, byte [0x8c8c78e0]
mov word [ebp + 0x62b6fcc9], ds
pop edi
pop ecx
and dword [eax - 0x73738720], 0xb6fcc99d
mov word [ebp + 0x62b6fcc9], ds
stc
xor al, 0xa9
mov ebp, 0x5c219cfa
popal
add cl, byte [ecx]
jle 0x6da7a9
ret
Function at 0x41c500
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
cmp dword [0x427850], 0
jne 0x41c581
cmp dword [0x427870], 0
jne 0x41c530
call sub.KERNEL32.DLL_GetEnvironmentStrings
mov dword [0x427870], eax
test eax, eax
jne 0x41c530
push str.GetEnvironmentStrings_failed
call fcn.0041bd1c
pop ecx
xor ebp, ebp
xor esi, esi
mov ebx, dword [0x427870]
jmp 0x41c544
lea eax, [edi + 1]
inc esi
add ebp, eax
add ebx, eax
push ebx
call fcn.004168a4
pop ecx
mov edi, eax
test eax, eax
jne 0x41c53c
lea edi, [ebp + 1]
push edi
call fcn.004161a8
pop ecx
mov ebx, eax
mov dword [0x427854], ebx
test ebx, ebx
jne 0x41c56e
xor eax, eax
jmp 0x41c644
push edi
mov edx, dword [0x427870]
push edx
push ebx
call fcn.00416754
add esp, 0xc
jmp 0x41c5a1
xor esi, esi
mov ebx, dword [0x427850]
jmp 0x41c59b
push eax
call fcn.004168a4
pop ecx
test eax, eax
jne 0x41c597
dec esi
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x41c58b
lea ebx, [esi + 4]
push 4
mov dword [0x427858], ebx
inc ebx
push ebx
call fcn.00415c80
add esp, 8
test eax, eax
mov dword [esp], eax
jne 0x41c5c4
xor eax, eax
jmp 0x41c644
cmp dword [0x427850], 0
jne 0x41c5f5
xor esi, esi
mov ebx, dword [0x427854]
mov eax, dword [esp]
mov ebp, eax
jmp 0x41c5e6
mov dword [ebp], ebx
add ebp, 4
inc esi
inc edi
add ebx, edi
push ebx
call fcn.004168a4
pop ecx
mov edi, eax
test eax, eax
jne 0x41c5dc
jmp 0x41c626
xor esi, esi
mov ebx, dword [0x427850]
mov eax, dword [esp]
mov edi, eax
jmp 0x41c620
push eax
call fcn.004168a4
pop ecx
test eax, eax
je 0x41c615
mov eax, dword [ebx]
mov dword [edi], eax
jmp 0x41c619
dec esi
add edi, 0xfffffffc
add edi, 4
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x41c604
mov eax, dword [0x427850]
test eax, eax
je 0x41c636
push eax
call fcn.004161b8
pop ecx
mov edx, dword [esp]
mov eax, 1
mov dword [0x427850], edx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
push 4
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x431072
nop
nop
nop
mov ebx, 0x40915c
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x1204ae1
nop
nop
nop
nop
nop
xor dword [eax], esi
add eax, edi
nop
nop
nop
nop
nop
nop
nop
nop
loop 0x431060
nop
mov eax, section..data
nop
nop
cmp eax, 0
nop
nop
nop
je 0x4310d2
nop
nop
nop
mov ebx, 0x42f3f8
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
push eax
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
mov esi, 0x4fc3420b
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x4310c0
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x408ecc
nop
nop
mov ecx, 0x3d9a4edc
nop
nop
nop
test eax, eax
nop
nop
je 0x43004e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x430024
mov eax, section..data
nop
nop
mov ebx, 0x42e1d0
mov ecx, 0x7a306dbd
nop
nop
nop
nop
test eax, eax
nop
je 0x430084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
jne 0x43006c
nop
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x401000
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 8], 0
mov dword [ebp - 0x14], 0
mov byte [ebp - 9], 0
mov dword [ebp - 4], 0x2a
movsx eax, byte [0x46f03c]
add eax, 0xb
mov byte [0x46f03c], al
push 0
push 0x80
push 4
push 0
push 2
push 0x40000000
mov ecx, dword [ebp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 8], eax
movsx edx, byte [0x46f03c]
add edx, 0xb
mov byte [0x46f03c], dl
cmp dword [ebp - 8], 0xffffffff
je 0x4010de
mov dword [ebp - 0x1c], 0
jmp 0x401075
mov eax, dword [ebp - 0x1c]
add eax, 1
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
cmp ecx, dword [ebp + 0xc]
jae 0x4010d2
mov edx, dword [ebp + 8]
add edx, dword [ebp - 0x1c]
movsx eax, byte [edx]
movsx ecx, byte [ebp + 0x14]
sub eax, ecx
sub eax, dword [ebp - 0x1c]
mov byte [ebp - 0x15], al
movsx edx, byte [0x46f03c]
add edx, 0xb
mov byte [0x46f03c], dl
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea ecx, [ebp - 0x15]
push ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
movsx eax, byte [0x46f03c]
add eax, 0xb
mov byte [0x46f03c], al
mov ecx, dword [ebp - 0x14]
add ecx, dword [ebp - 0x10]
mov dword [ebp - 0x14], ecx
jmp 0x40106c
mov edx, dword [ebp - 0x14]
cmp edx, dword [ebp + 0xc]
jne 0x4010de
mov byte [ebp - 9], 1
movsx eax, byte [0x46f03c]
add eax, 0xb
mov byte [0x46f03c], al
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
movsx edx, byte [0x46f03c]
add edx, 0xb
mov byte [0x46f03c], dl
mov al, byte [ebp - 9]
mov esp, ebp
pop ebp
ret
Function at 0x401330
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd4
mov eax, dword [0x46f120]
mov dword [ebp - 0xc], eax
push edi
mov byte [ebp - 0x50], 0
mov ecx, 0xf
xor eax, eax
lea edi, [ebp - 0x4f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov byte [ebp - 0xd0], 0
mov ecx, 0x1f
xor eax, eax
lea edi, [ebp - 0xcf]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 8], 0x7f
movsx eax, byte [0x46f03c]
add eax, 0xb
mov byte [0x46f03c], al
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 0xd0]
push edx
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
movsx eax, byte [0x46f03c]
add eax, 0xb
mov byte [0x46f03c], al
lea ecx, [ebp - 0xd0]
push ecx
movzx edx, byte [ebp + 8]
push edx
lea eax, [ebp - 0x50]
push eax
call fcn.004011b0
add esp, 0xc
movsx ecx, byte [0x46f03c]
add ecx, 0xb
mov byte [0x46f03c], cl
movsx edx, byte [0x46f03c]
add edx, 0xb
mov byte [0x46f03c], dl
lea eax, [ebp - 0x50]
push eax
push 0
push 0x1f0001
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
mov dword [ebp - 4], eax
movsx ecx, byte [0x46f03c]
add ecx, 0xb
mov byte [0x46f03c], cl
cmp dword [ebp - 4], 0
je 0x401408
jmp 0x401467
movsx edx, byte [0x46f03c]
add edx, 0xb
mov byte [0x46f03c], dl
lea eax, [ebp - 0x50]
push eax
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [ebp - 4], eax
movsx ecx, byte [0x46f03c]
add ecx, 0xb
mov byte [0x46f03c], cl
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xd4], eax
cmp dword [ebp - 0xd4], 0
je 0x40145c
cmp dword [ebp - 0xd4], 0xb7
je 0x40145e
jmp 0x401460
jmp 0x401462
jmp 0x401467
jmp 0x401467
mov eax, dword [ebp - 4]
jmp 0x401493
movsx edx, byte [0x46f03c]
add edx, 0xb
mov byte [0x46f03c], dl
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
movsx ecx, byte [0x46f03c]
add ecx, 0xb
mov byte [0x46f03c], cl
xor eax, eax
mov ecx, dword [ebp - 0xc]
call fcn.00402581
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x402290
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x15c
mov eax, dword [0x46f120]
mov dword [ebp - 8], eax
mov byte [ebp - 0x150], 0
xor eax, eax
mov dword [ebp - 0x14f], eax
mov dword [ebp - 0x14b], eax
mov dword [ebp - 0x147], eax
mov dword [ebp - 0x143], eax
mov dword [ebp - 0x13f], eax
mov dword [ebp - 0x13b], eax
mov dword [ebp - 0x137], eax
mov word [ebp - 0x133], ax
mov byte [ebp - 0x131], al
movsx ecx, byte [0x46f03c]
add ecx, 0xb
mov byte [0x46f03c], cl
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x154], eax
cmp dword [ebp - 0x154], 0xffffffff
jne 0x402320
movsx edx, byte [0x46f03c]
add edx, 0xb
mov byte [0x46f03c], dl
xor al, al
jmp 0x4024e3
movsx eax, byte [0x46f03c]
add eax, 0xb
mov byte [0x46f03c], al
mov dword [ebp - 0x130], 0x128
movsx ecx, byte [0x46f03c]
add ecx, 0xb
mov byte [0x46f03c], cl
lea edx, [ebp - 0x130]
push edx
mov eax, dword [ebp - 0x154]
push eax
call sub.KERNEL32.dll_Process32First
test eax, eax
jne 0x402384
movsx ecx, byte [0x46f03c]
add ecx, 0xb
mov byte [0x46f03c], cl
mov edx, dword [ebp - 0x154]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x4024e3
mov dword [ebp - 0x158], 0
mov dword [ebp - 4], 0
movsx eax, byte [0x46f03c]
add eax, 0xb
mov byte [0x46f03c], al
lea ecx, [ebp - 0x10c]
push ecx
call fcn.00401110
add esp, 4
movsx edx, byte [0x46f03c]
add edx, 0xb
mov byte [0x46f03c], dl
mov dword [ebp - 0x158], str.1__ufbrquw_dwd
mov eax, dword [ebp - 0x158]
movsx ecx, byte [eax]
test ecx, ecx
je 0x4024aa
mov edx, dword [ebp - 0x158]
add edx, 2
push edx
lea eax, [ebp - 0x150]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
movsx ecx, byte [0x46f03c]
add ecx, 0xb
mov byte [0x46f03c], cl
mov dword [ebp - 0x15c], 0
jmp 0x402420
mov edx, dword [ebp - 0x15c]
add edx, 1
mov dword [ebp - 0x15c], edx
lea eax, [ebp - 0x150]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp dword [ebp - 0x15c], eax
jge 0x402455
mov ecx, dword [ebp - 0x15c]
movsx edx, byte [ebp + ecx - 0x150]
add edx, 1
mov eax, dword [ebp - 0x15c]
mov byte [ebp + eax - 0x150], dl
jmp 0x402411
lea ecx, [ebp - 0x150]
push ecx
lea edx, [ebp - 0x10c]
push edx
call fcn.00406148
add esp, 8
test eax, eax
jne 0x402488
movsx eax, byte [0x46f03c]
add eax, 0xb
mov byte [0x46f03c], al
mov ecx, dword [ebp - 0x158]
mov al, byte [ecx]
jmp 0x4024e3
mov edx, dword [ebp - 0x158]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x158]
lea edx, [ecx + eax + 1]
mov dword [ebp - 0x158], edx
jmp 0x4023cd
movsx eax, byte [0x46f03c]
add eax, 0xb
mov byte [0x46f03c], al
lea ecx, [ebp - 0x130]
push ecx
mov edx, dword [ebp - 0x154]
push edx
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x402395
mov eax, dword [ebp - 0x154]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
mov ecx, dword [ebp - 8]
call fcn.00402581
mov esp, ebp
pop ebp
ret
Function at 0x4024f0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
movsx eax, byte [0x46f03c]
add eax, 0xb
mov byte [0x46f03c], al
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 4], eax
movsx edx, byte [0x46f03c]
add edx, 0xb
mov byte [0x46f03c], dl
cmp dword [ebp - 4], 0xffffffff
je 0x402530
mov eax, dword [ebp + 8]
movsx ecx, byte [eax]
test ecx, ecx
jne 0x402534
xor eax, eax
jmp 0x402539
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x402715
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x407170
call fcn.00402aa0
mov edi, 0x94
mov eax, edi
call fcn.004037b0
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 [0x46f3c0], ecx
mov eax, dword [esi + 4]
mov dword [0x46f3cc], eax
mov edx, dword [esi + 8]
mov dword [0x46f3d0], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x46f3c4], esi
cmp ecx, 2
je 0x402775
or esi, 0x8000
mov dword [0x46f3c4], esi
shl eax, 8
add eax, edx
mov dword [0x46f3c8], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x4027b0
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4027b0
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x4027c8
cmp eax, 0x20b
je 0x4027b5
mov dword [ebp - 0x1c], esi
jmp 0x4027dc
cmp dword [ecx + 0x84], 0xe
jbe 0x4027b0
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x4027d6
cmp dword [ecx + 0x74], 0xe
jbe 0x4027b0
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push esi
call fcn.00403752
pop ecx
test eax, eax
jne 0x402808
cmp dword [0x46f3ac], 1
jne 0x4027f5
call fcn.00402f07
push 0x1c
call fcn.00402d90
push 0xff
call fcn.00402bf5
pop ecx
pop ecx
call fcn.004036b0
mov dword [ebp - 4], esi
call fcn.00403505
test eax, eax
jge 0x402821
push 0x1b
call fcn.004026f0
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x46f934], eax
call fcn.004033e3
mov dword [0x46f3a4], eax
call fcn.00403341
test eax, eax
jge 0x402847
push 8
call fcn.004026f0
pop ecx
call fcn.0040310e
test eax, eax
jge 0x402858
push 9
call fcn.004026f0
pop ecx
push 1
call fcn.00402c25
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x40286e
push eax
call fcn.004026f0
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.004030b1
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x40288f
movzx eax, word [ebp - 0x40]
jmp 0x402892
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.004014a0
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x4028b0
push edi
call fcn.00402d50
call fcn.00402d72
jmp 0x4028e2
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.00402adb
ret