joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403200
Capabilities:
Resolve function by parsing pe exports

Disassembly:
jmp 0x4031df
mov esi, dword [edx + 0x28]
xor edi, edi
nop
jmp 0x4031f0
movzx ecx, word [edx + 0x26]
nop
xor eax, eax
lodsb al, byte [esi]
nop
cmp al, 0x61
jl 0x40320d
nop
sub al, 0x20
nop
jmp 0x40320d
nop
jmp 0x40321b
ror edi, 0xd
nop
add edi, eax
nop
dec ecx
nop
jmp 0x40322f
jne 0x4031f4
nop
jmp 0x403242
nop
push edx
mov edx, dword [edx + 0x10]
mov eax, dword [edx + 0x3c]
add eax, edx
nop
push edi
nop
mov eax, dword [eax + 0x78]
jmp 0x403262
test eax, eax
je 0x40345a
add eax, edx
jmp 0x403278
push eax
jmp 0x403288
mov ecx, dword [eax + 0x18]
nop
jmp 0x40329d
mov ebx, dword [eax + 0x20]
nop
add ebx, edx
jmp 0x4032ad
jmp 0x4032bc
test ecx, ecx
je 0x40344b
nop
jmp 0x4032d2
dec ecx
nop
jmp 0x4032e4
xor edi, edi
nop
jmp 0x4032f3
mov esi, dword [ebx + ecx*4]
nop
jmp 0x403308
add esi, edx
nop
jmp 0x403319
nop
xor eax, eax
jmp 0x40332d
lodsb al, byte [esi]
ror edi, 0xd
nop
jmp 0x40333c
add edi, eax
nop
cmp al, ah
nop
jne 0x403319
jmp 0x403356
jmp 0x403364
add edi, dword [ebp - 8]
nop
cmp edi, dword [ebp + 0x24]
jmp 0x403378
jne 0x4032ad
jmp 0x403388
nop
jmp 0x403398
pop eax
nop
mov ebx, dword [eax + 0x24]
nop
add ebx, edx
nop
jmp 0x4033b5
mov cx, word [ebx + ecx*2]
nop
mov ebx, dword [eax + 0x1c]
nop
jmp 0x4033cd
add ebx, edx
nop
mov eax, dword [ebx + ecx*4]
jmp 0x4033e7
add eax, edx
jmp 0x4033fd
mov dword [esp + 0x24], eax
nop
jmp 0x403410
pop ebx
nop
pop ebx
nop
jmp 0x403421
popal
pop ecx
jmp 0x403432
pop edx
nop
push ecx
jmp 0x403448
jmp eax
nop
jmp 0x403459
pop eax
jmp 0x403468
pop edi
pop edx
jmp 0x40347d
mov edx, dword [edx]
nop
jmp 0x40348f
jmp 0x4031d3

Function at 0x406840
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xf6000210
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
pop esi
add dword [ebx + eax*4], eax
xor edi, edi
je 0x409bef
mov ecx, dword [ebx + 0x10]
test ecx, ecx
mov byte [ecx + ecx*4 - 0x74ffffff], al
jne 0x406875
mov eax, dword [ecx]
adc al, 0x8d
push esi
sub byte [ecx + 0x52], dl
push eax
invalid
invalid
movsb byte es:[edi], byte [esi]
invalid
inc eax
invalid
inc eax
Function at 0x401f90
Capabilities:
Shutdown system

Disassembly:
push edi
pop edi
push ebp
push esp
pop ebp
sub esp, 0x18
mov eax, dword [0x408004]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
lea eax, [ebp - 0x18]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
xor edi, edi
test eax, eax
jne 0x401f23
mov edx, 0x4f5
push edi
push 0x10
push edi
push edi
xor ecx, ecx
call fcn.004044b9
xor eax, eax
jmp 0x401f81
push esi
lea eax, [ebp - 0x10]
push eax
push 0x4011c4
push edi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
push edi
push edi
push edi
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 1
push eax
push edi
push dword [ebp - 0x18]
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push dword [ebp - 0x18]
push eax
pop esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or esi, esi
pop esi
push edi
jne 0x401f6b
mov edx, 0x4f6
jmp 0x401f14
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
jne 0x401f7e
mov edx, 0x4f7
jmp 0x401f13
sub eax, eax
inc eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.00406ce0
push ebp
pop esp
pop ebp
ret
push edi
pop edi
push ebx
push ecx
pop ebx
test bl, 2
jne 0x401fa4
call 0x401ea7
cmp eax, 2
jne 0x401fd9
test bl, 4
jne 0x401fc5
push 4
push 0x40
push 0
push 0x401140
mov edx, 0x522
sub ecx, ecx
call fcn.004044b9
cmp eax, 6
jne 0x401fd9
cmp word [0x409a40], 0
jne 0x401fdb
push 0
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
pop ebx
ret
pop ebx
jmp 0x401ee2
Function at 0x402390
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
push ecx
pop ecx
push ebp
push esp
pop ebp
and esp, 0xfffffff8
sub esp, 0x254
mov eax, dword [0x408004]
xor eax, esp
mov dword [esp + 0x250], eax
push ebx
push esi
push ecx
pop esi
push edi
test esi, esi
je 0x4024cb
cmp byte [esi], 0
je 0x4024cb
mov ebx, 0x104
lea ecx, [esp + 0x150]
push esi
mov edx, ebx
call fcn.00401680
push 0x4011f4
mov edx, ebx
lea ecx, [esp + 0x154]
call fcn.004016b3
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x154]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
push eax
pop edi
cmp edi, 0xffffffff
je 0x4024cb
push esi
push ebx
pop edx
lea ecx, [esp + 0x154]
call fcn.00401680
test byte [esp + 0x10], 0x10
lea eax, [esp + 0x3c]
je 0x402479
push 0x4011f8
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
or eax, eax
je 0x4024a9
push 0x4011fc
lea eax, [esp + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
or eax, eax
je 0x4024a9
lea eax, [esp + 0x3c]
mov edx, ebx
push eax
lea ecx, [esp + 0x154]
call fcn.004016b3
push 0x401140
push ebx
pop edx
lea ecx, [esp + 0x154]
call fcn.0040658a
lea ecx, [esp + 0x150]
call fcn.00402390
jmp 0x4024a9
push eax
push ebx
pop edx
lea ecx, [esp + 0x154]
call fcn.004016b3
push 0x80
lea eax, [esp + 0x154]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea eax, [esp + 0x150]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [esp + 0x10]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x402407
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov ecx, dword [esp + 0x25c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00406ce0
push ebp
pop esp
pop ebp
ret

Function at 0x4024e0
Capabilities:
Get common file path

Disassembly:
push edi
pop edi
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x408004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, 0x104
lea eax, [ebp - 0x108]
push edi
push eax
sub esi, esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
or eax, eax
je 0x40255b
push 0x401200
push edi
pop edx
lea ecx, [ebp - 0x108]
call fcn.0040658a
lea eax, [ebp - 0x108]
push eax
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
push 0x40
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll__lopen]
mov edi, eax
cmp edi, 0xffffffff
je 0x40255b
push 2
push esi
push edi
call dword [sym.imp.KERNEL32.dll__llseek]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll__lclose]
mov ecx, dword [ebp - 4]
push esi
pop eax
pop edi
xor ecx, ebp
pop esi
call fcn.00406ce0
push ebp
pop esp
pop ebp
ret
Function at 0x40256d
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
push esp
pop ebp
push ecx
push ecx
push esi
movzx eax, cx
xor esi, esi
test ax, ax
je 0x402622
sub edx, edx
inc edx
cmp ax, dx
je 0x4025e8
jbe 0x402629
cmp cx, 3
ja 0x402629
lea eax, [ebp - 8]
mov dword [ebp - 4], esi
push eax
push 0x20019
push esi
push 0x40800c
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4025e3
lea eax, [ebp - 4]
push eax
push esi
push esi
push esi
push str.PendingFileRenameOperations
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 8]
neg eax
sbb eax, eax
not eax
and dword [ebp - 4], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [ebp - 4]
jmp 0x402629
lea eax, [ebp - 8]
mov dword [ebp - 4], esi
push eax
push 0x20019
push esi
push str.SystemCurrentControlSetControlSession_ManagerFileRenameOperations
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4025e3
push esi
push esi
push esi
push esi
lea eax, [ebp - 4]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
jmp 0x4025d1
call fcn.004024e0
mov esi, eax
push esi
pop eax
pop esi
push ebp
pop esp
pop ebp
ret

Function at 0x402630
Capabilities:
Get common file path

Disassembly:
push edi
pop edi
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x408004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x104
lea eax, [ebp - 0x108]
push ecx
pop esi
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
jne 0x40266f
push eax
push 0x10
push eax
push eax
mov edx, 0x4f0
xor ecx, ecx
call fcn.004044b9
mov cl, byte [esi]
sub eax, eax
cmp cl, byte [ebp - 0x108]
mov ecx, dword [ebp - 4]
sete al
xor ecx, ebp
pop esi
call fcn.00406ce0
mov esp, ebp
pop ebp
ret
Function at 0x402773
Capabilities:
Get common file path
Query environment variable
Query or enumerate registry value

Disassembly:
pushal
popal
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x408004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
mov edi, ecx
mov dword [ebp - 0x110], esi
mov byte [edi], bl
cmp byte [esi], 0x23
jne 0x4028b2
inc esi
movsx eax, byte [esi]
push eax
call dword [sym.imp.USER32.dll_CharUpperA]
push esi
mov byte [ebp - 0x109], al
call dword [sym.imp.USER32.dll_CharNextA]
push eax
call dword [sym.imp.USER32.dll_CharNextA]
mov dword [ebp - 0x110], eax
mov esi, 0x104
mov al, byte [ebp - 0x109]
cmp al, 0x53
je 0x4028b7
cmp al, 0x57
je 0x4028a8
push ecx
push 0x401210
push ecx
mov edx, esi
mov dword [ebp - 0x11c], esi
lea ecx, [ebp - 0x108]
call fcn.00401781
push dword [ebp - 0x110]
push esi
pop edx
lea ecx, [ebp - 0x108]
call fcn.0040658a
lea eax, [ebp - 0x118]
push eax
push 0x20019
push ebx
lea eax, [ebp - 0x108]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4028c3
lea eax, [ebp - 0x11c]
push eax
push edi
lea eax, [ebp - 0x114]
push eax
push ebx
push 0x401140
push dword [ebp - 0x118]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
or eax, eax
jne 0x40289a
mov eax, dword [ebp - 0x114]
cmp eax, 2
jne 0x402892
push esi
lea eax, [ebp - 0x108]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
test eax, eax
je 0x40288c
lea eax, [ebp - 0x108]
push esi
pop edx
push eax
mov ecx, edi
call fcn.00401680
jmp 0x402897
mov eax, dword [ebp - 0x114]
cmp eax, 1
jne 0x40289a
xor ebx, ebx
inc ebx
push dword [ebp - 0x118]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4028bf
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
jmp 0x4028c3
mov esi, 0x104
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test ebx, ebx
jne 0x4028d2
push dword [ebp - 0x110]
push esi
pop edx
mov ecx, edi
call fcn.0040658a
mov ecx, dword [ebp - 4]
sub eax, eax
pop edi
pop esi
xor ecx, ebp
inc eax
pop ebx
call fcn.00406ce0
mov esp, ebp
pop ebp
ret 4
Function at 0x4028e8
Capabilities:
Get file version info

Disassembly:
mov edi, edi
push ebp
push esp
pop ebp
sub esp, 0x3c
push ebx
mov dword [ebp - 8], edx
mov edx, ecx
push esi
xor esi, esi
mov dword [ebp - 0xc], edx
push esi
pop ebx
push edi
push esi
pop edi
mov dword [ebp - 0x10], ebx
cmp dword [edx + 0x7c], esi
jle 0x402a62
push esi
pop eax
mov dword [ebp - 4], esi
mov ecx, dword [edx + 0x80]
add eax, edx
add edx, 0x84
mov dword [ebp - 0x14], ecx
mov eax, dword [eax + ecx + 0xbc]
mov ecx, dword [ebp - 8]
add eax, edx
push eax
call fcn.00402773
or eax, eax
je 0x402a65
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 8]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeA]
mov dword [ebp - 0x18], eax
or eax, eax
je 0x402a2c
push eax
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push eax
pop edi
or edi, edi
je 0x402a65
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 0x20], eax
or eax, eax
je 0x402a65
push eax
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
push dword [ebp - 8]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoA]
test eax, eax
je 0x402a20
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x28]
push eax
push 0x401244
push dword [ebp - 0x20]
call dword [sym.imp.VERSION.dll_VerQueryValueA]
test eax, eax
je 0x402a20
cmp dword [ebp - 0x24], 0
je 0x402a20
mov eax, dword [ebp - 0x28]
mov ebx, esi
mov ecx, dword [eax + 0xc]
mov eax, dword [eax + 8]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x18]
add ecx, 0x94
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0xc]
add eax, ecx
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x20], eax
push eax
pop esi
push dword [esi - 0xc]
push dword [esi - 0x10]
call fcn.00402a89
push dword [esi]
mov dword [ebp + ebx - 0x34], eax
push dword [esi - 4]
call fcn.00402a89
mov dword [ebp + ebx - 0x3c], eax
lea esi, [esi + 0x18]
add ebx, 4
cmp ebx, 8
jl 0x4029df
mov ebx, dword [ebp - 0x10]
sub esi, esi
cmp dword [ebp - 0x34], esi
jl 0x402a16
cmp dword [ebp - 0x3c], esi
jle 0x402a20
cmp dword [ebp - 0x30], esi
jl 0x402a80
cmp dword [ebp - 0x38], esi
jg 0x402a80
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov edx, dword [ebp - 0xc]
jmp 0x402a4c
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0xc]
add eax, edx
mov ecx, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x10]
cmp dword [eax + ecx + 0x84], esi
jne 0x402a65
cmp dword [eax + ecx + 0x88], esi
jne 0x402a65
mov eax, dword [ebp - 4]
inc ebx
add eax, 0x3c
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], eax
cmp ebx, dword [edx + 0x7c]
jl 0x402912
sub esi, esi
inc esi
mov ecx, dword [ebp + 0xc]
mov dword [ecx], ebx
or edi, edi
je 0x402a75
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
jmp 0x402a65
Function at 0x402caa
Capabilities:
Check mutex on windows
Extract resource via kernel32 functions

Disassembly:
pushal
popal
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x408004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x8fc
sub edi, edi
push ecx
pop esi
push edi
push 0x409140
mov ebx, edx
mov dword [0x409a3c], esi
call sub.msvcrt.dll_memset
push 0x32c
push edi
push 0x408a20
call sub.msvcrt.dll_memset
push 0x104
push edi
push 0x4088c0
call sub.msvcrt.dll_memset
add esp, 0x24
xor eax, eax
inc eax
mov edx, 0x409154
mov ecx, 0x401278
mov dword [0x4093ec], eax
push 0x7f
call fcn.0040468f
test eax, eax
je 0x402ef3
cmp eax, 0x80
ja 0x402ef3
push edi
sub eax, eax
inc eax
push eax
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateEventA]
push eax
mov dword [0x40858c], eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 4
mov edx, 0x409a34
mov ecx, 0x401280
call fcn.0040468f
test eax, eax
jne 0x402d7d
xor eax, eax
mov edx, 0x4b1
push eax
push 0x10
push eax
push eax
sub ecx, ecx
call fcn.004044b9
mov dword [0x409124], 0x80070714
jmp 0x402f06
test byte [0x409a34], 0xc0
je 0x402e1f
push 0x104
lea edx, [ebp - 0x108]
mov ecx, 0x40128c
call fcn.0040468f
or eax, eax
je 0x402d5b
lea eax, [ebp - 0x108]
push eax
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [0x408588], eax
or eax, eax
je 0x402e1f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x402e1f
xor ecx, ecx
test byte [0x409a34], 0x80
je 0x402dea
push ecx
push 0x10
push ecx
push 0x409154
mov edx, 0x54b
call fcn.004044b9
jmp 0x402e04
push 4
push 0x20
push 0
push 0x409154
mov edx, 0x524
call fcn.004044b9
cmp eax, 6
je 0x402e1f
push dword [0x408588]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x409124], 0x800700b7
jmp 0x402f06
and dword [0x409120], edi
mov ecx, ebx
call fcn.00405c9e
test eax, eax
jne 0x402e3a
mov edx, 0x520
jmp 0x402ef8
cmp byte [0x408a3a], 0
je 0x402e52
mov ecx, 0x408a3a
call fcn.00402390
jmp 0x402f06
push 0xa
push 0x40129c
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
or eax, eax
je 0x402e6e
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
cmp dword [0x408184], 0
je 0x402e7d
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
cmp dword [0x408a24], 0
je 0x402e8b
sub eax, eax
inc eax
jmp 0x402f08
push edi
pop ecx
call 0x4036ee
or eax, eax
je 0x402f06
mov ax, word [0x409a40]
xor ebx, ebx
inc ebx
cmp ax, bx
je 0x402eb0
cmp ax, 2
je 0x402eb0
cmp ax, 3
jne 0x402eef
test dword [0x409a34], 0x100
je 0x402eef
test byte [0x408a38], 1
jne 0x402eef
call 0x4018a3
test eax, eax
jne 0x402eef
push 0x83e
push 0x547
push 0x4019e0
push eax
mov edx, 0x7d6
call fcn.00406517
cmp eax, 0x83d
jne 0x402f06
mov eax, ebx
jmp 0x402f08
mov edx, 0x4b1
xor eax, eax
sub ecx, ecx
push eax
push 0x10
push eax
push eax
call fcn.004044b9
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00406ce0
mov esp, ebp
pop ebp
ret 4
Function at 0x402f1d
Capabilities:
Get common file path
Packed with generic packer
Set current directory

Disassembly:
pushal
popal
push ebp
push esp
pop ebp
sub esp, 0x110
mov eax, dword [0x408004]
xor eax, ebp
mov dword [ebp - 4], eax
cmp word [0x408a38], 0
push ebx
push esi
push edi
jne 0x402f6c
cmp dword [0x408a24], 0
jne 0x402f5f
call fcn.004051e5
test eax, eax
je 0x403041
cmp word [0x408a38], 0
jne 0x402f6c
call fcn.00403a3f
or eax, eax
je 0x403041
call fcn.00405164
test eax, eax
je 0x403041
call fcn.004055a0
test eax, eax
je 0x403041
mov esi, 0x105
lea eax, [ebp - 0x10c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0x401144
mov edx, esi
lea ecx, [ebp - 0x10c]
call fcn.0040658a
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, eax
xor edi, edi
or ebx, ebx
je 0x402ff7
push 0x4012a8
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x110], eax
test eax, eax
je 0x402ff7
mov esi, esp
mov ecx, eax
push edi
push 0x4091e4
call dword [0x40a288]
call dword [ebp - 0x110]
cmp esi, esp
je 0x402ff7
push esi
pop esi
push 4
pop ecx
int 0x29
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [0x408a24], edi
jne 0x403017
cmp dword [0x409a30], edi
jne 0x403017
call fcn.0040621e
or eax, eax
je 0x403041
push 0x4091e4
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
jne 0x403054
push edi
push 0x10
push edi
push edi
mov edx, 0x4bc
xor ecx, ecx
call fcn.004044b9
call fcn.00406285
mov dword [0x409124], eax
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00406ce0
mov esp, ebp
pop ebp
ret
cmp dword [0x408a2c], edi
jne 0x403065
call 0x403b26
or eax, eax
je 0x403041
test byte [0x408d48], 0xc0
jne 0x40307c
mov cx, word [0x409a40]
call fcn.0040256d
push eax
pop edi
mov eax, dword [0x408a24]
mov dword [0x409a44], edi
test eax, eax
jne 0x4030a1
cmp dword [0x409a30], eax
jne 0x4030a1
call fcn.00403ba2
or eax, eax
je 0x403041
mov eax, dword [0x408a24]
cmp word [0x408a38], 0
jne 0x4030b4
or eax, eax
jne 0x4030b4
call 0x404169
sub eax, eax
inc eax
jmp 0x403043
Function at 0x403fef
Capabilities:
Create process on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x408004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
sub esi, esi
push ecx
pop ebx
inc esi
sub eax, eax
push edi
test ebx, ebx
je 0x40410a
lea edi, [ebp - 0x21c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x21c]
push eax
push edx
xor edi, edi
push edi
push edi
push 0x20
push edi
push edi
push edi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
or eax, eax
je 0x4040c4
push 0xffffffffffffffff
push dword [ebp - 0x21c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x21c]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov ecx, dword [ebp - 0x20c]
cmp dword [0x408a28], edi
jne 0x404091
mov eax, dword [0x409a2c]
test al, 1
je 0x404091
test al, 2
jne 0x404091
push ecx
pop eax
and eax, 0xff000000
cmp eax, 0xaa000000
jne 0x404091
mov dword [0x409a2c], ecx
call fcn.0040411b
push dword [ebp - 0x218]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x21c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test dword [0x409a34], 0x400
je 0x404108
cmp dword [ebp - 0x20c], edi
jge 0x404108
jmp 0x404106
call fcn.00406285
push edi
mov dword [0x409124], eax
lea eax, [ebp - 0x208]
push 0x200
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push 0x1000
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push edi
push 0x10
lea eax, [ebp - 0x208]
mov edx, 0x4c4
push eax
push ebx
sub ecx, ecx
call fcn.004044b9
mov esi, edi
push esi
pop eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00406ce0
mov esp, ebp
pop ebp
ret
Function at 0x404224
Capabilities:
Get common file path
Packed with generic packer

Disassembly:
mov edi, edi
push ebp
push esp
pop ebp
sub esp, 0x30
push ebx
push esi
push edi
push str.SHELL32.DLL
push ecx
pop esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
pop edi
or edi, edi
je 0x4043b2
push str.SHBrowseForFolder
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 8], eax
or eax, eax
je 0x4043a4
push 0xc3
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x10], eax
or eax, eax
je 0x4043a4
push str.SHGetPathFromIDList
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0xc], eax
or eax, eax
je 0x4043a4
xor ebx, ebx
cmp byte [0x4088c0], bl
jne 0x4042e6
push 0x4088c0
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov ecx, 0x4088c0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4042ad
sub ecx, edx
lea eax, [ecx + 0x4088c0]
push eax
push 0x4088c0
call dword [sym.imp.USER32.dll_CharPrevA]
mov dword [ebp - 4], eax
cmp byte [eax], 0x5c
jne 0x4042e6
push eax
push 0x4088c0
call dword [sym.imp.USER32.dll_CharPrevA]
cmp byte [eax], 0x3a
je 0x4042e6
mov eax, dword [ebp - 4]
mov byte [eax], bl
lea eax, [ebp - 0x30]
mov byte [0x4087a0], bl
mov dword [ebp - 0x30], esi
push esp
pop esi
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
mov ebx, dword [ebp - 8]
mov ecx, ebx
push eax
mov dword [ebp - 0x24], 0x408598
mov dword [ebp - 0x20], 1
mov dword [ebp - 0x1c], 0x404200
mov dword [ebp - 0x18], 0x4088c0
call dword [0x40a288]
call ebx
cmp esi, esp
je 0x40432f
pushal
popal
push 4
pop ecx
int 0x29
mov dword [ebp - 8], eax
test eax, eax
je 0x404390
mov ebx, dword [ebp - 0xc]
push esp
pop esi
push 0x4088c0
push eax
push ebx
pop ecx
call dword [0x40a288]
call ebx
cmp esi, esp
je 0x404356
mov ecx, 4
int 0x29
cmp byte [0x4088c0], 0
je 0x404373
push 0x4088c0
mov edx, 0x104
mov ecx, 0x4087a0
call fcn.00401680
mov ebx, dword [ebp - 0x10]
mov esi, esp
push dword [ebp - 8]
push ebx
pop ecx
call dword [0x40a288]
call ebx
cmp esi, esp
je 0x404390
nop
push 4
nop
pop ecx
int 0x29
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
sub eax, eax
cmp byte [0x4087a0], al
setne al
jmp 0x4043c7
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov edx, 0x4c1
jmp 0x4043b7
mov edx, 0x4c2
xor ebx, ebx
mov ecx, esi
push ebx
push 0x10
push ebx
push ebx
call fcn.004044b9
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8