joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1005dd6d
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x100760a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.1005222e
and dword [ebp - 0x14], 0
cmp dword [0x1007910c], 0
mov dword [ebp - 0x18], eax
jne 0x1005de20
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x1005dec8
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x1005dec8
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x1007910c], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x10079110], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x10079114], eax
call edi
push eax
call esi
mov dword [0x1007911c], eax
test eax, eax
je 0x1005de20
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x10079118], eax
mov eax, dword [0x10079118]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x1005de79
cmp dword [0x1007911c], ecx
je 0x1005de79
push eax
call esi
push dword [0x1007911c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x1005de79
test ebx, ebx
je 0x1005de79
call edi
test eax, eax
je 0x1005de70
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x1005de70
test byte [ebp - 8], 1
jne 0x1005de79
or dword [ebp + 0x10], 0x200000
jmp 0x1005deac
mov eax, dword [0x10079110]
cmp eax, dword [ebp - 0x18]
je 0x1005deac
push eax
call esi
test eax, eax
je 0x1005deac
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x1005deac
mov eax, dword [0x10079114]
cmp eax, dword [ebp - 0x18]
je 0x1005deac
push eax
call esi
test eax, eax
je 0x1005deac
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x1007910c]
call esi
test eax, eax
je 0x1005dec8
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x1005deca
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1004ca8f
leave
ret

Function at 0x1006edf
Capabilities:
Check for peb beingdebugged flag

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push 0
push 2
lea eax, [ebp - 4]
push eax
push 0x23
call dword [0x10014d8]
cmp byte [ebp - 4], 0
jne 0x1006f0a
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
cmp byte [eax + 2], 0
je 0x1006f15
push 0x1006ece
call dword [0x1001224]
leave
ret
Function at 0x401000
Capabilities:
Terminate process

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x214
push 0x104
lea eax, [esp + 0xc]
push eax
push ecx
call dword [0x424fd8]
lea eax, [esp + 8]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x401022
push ebx
sub eax, edx
push ebp
sar eax, 1
lea ecx, [eax - 1]
xor ebp, ebp
cmp ecx, ebp
push esi
push edi
jl 0x40106f
mov eax, 0x5c
cmp word [esp + ecx*2 + 0x18], ax
je 0x401051
sub ecx, 1
jns 0x401043
jmp 0x40106f
mov eax, str.PotPlayer.dll
lea edx, [ecx + ecx]
sub edx, eax
lea edx, [esp + edx + 0x1a]
nop
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
cmp cx, bp
jne 0x401060
push ebp
call dword [sym.imp.ole32.dll_CoInitialize]
push 8
call fcn.00401b33
mov esi, eax
add esp, 4
cmp esi, ebp
je 0x40109d
lea eax, [esp + 0x18]
push eax
call dword [0x425018]
cmp eax, ebp
setne cl
mov dword [esi], eax
mov byte [esi + 4], cl
jmp 0x40109f
xor esi, esi
mov eax, dword [esi]
cmp eax, ebp
mov ebx, dword [0x424fe8]
je 0x4010b9
push str.PreprocessCmdLineExW
push eax
call ebx
mov dword [esp + 0x14], eax
jmp 0x4010bd
mov dword [esp + 0x14], ebp
cmp dword [esp + 0x14], ebp
mov eax, dword [esi]
setne dl
and byte [esi + 4], dl
cmp eax, ebp
je 0x4010db
push str.UninitPotPlayer
push eax
call ebx
mov dword [esp + 0x10], eax
jmp 0x4010df
mov dword [esp + 0x10], ebp
cmp dword [esp + 0x10], ebp
setne al
and byte [esi + 4], al
mov eax, dword [esi]
cmp eax, ebp
je 0x4010fb
push str.CreatePotPlayerExW
push eax
call ebx
mov edi, eax
jmp 0x4010fd
xor edi, edi
mov eax, dword [esi]
cmp edi, ebp
setne cl
and byte [esi + 4], cl
cmp eax, ebp
je 0x401115
push str.DestroyPotPlayer
push eax
call ebx
mov ebp, eax
mov eax, dword [esi]
test ebp, ebp
setne dl
and byte [esi + 4], dl
test eax, eax
je 0x40112f
push str.RunPotPlayer
push eax
call ebx
mov ebx, eax
jmp 0x401131
xor ebx, ebx
test ebx, ebx
setne al
and byte [esi + 4], al
je 0x401194
mov ecx, dword [esp + 0x234]
mov edx, dword [esp + 0x230]
mov eax, dword [esp + 0x228]
push 1
push ecx
push edx
push eax
call dword [esp + 0x24]
add esp, 0x10
test eax, eax
je 0x40118e
push 3
push 0
push 0
call edi
mov edi, eax
add esp, 0xc
test edi, edi
je 0x40118e
call ebx
push edi
call ebp
add esp, 4
call dword [esp + 0x10]
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
jmp 0x4011a8
call dword [esp + 0x10]
jmp 0x4011a8
push 0
push str.Error
push str.Cannot_find_PotPlayer.dll
push 0
call dword [0x4250b8]
mov eax, dword [esi]
test eax, eax
je 0x4011b5
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push esi
call fcn.00401b5e
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x214
ret 0x10
Function at 0x401486
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x52c
mov eax, dword [0x423b64]
mov dword [ebp - 4], eax
mov eax, dword [0x427dcc]
push ebx
xor ebx, ebx
cmp eax, ebx
je 0x4014b5
call eax
cmp eax, ebx
mov dword [ebp - 0x528], eax
jne 0x401642
push dword [section..data]
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, ebx
mov dword [ebp - 0x528], eax
je 0x401642
push esi
mov esi, 0x104
push esi
lea eax, [ebp - 0x41c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
jne 0x4014ed
mov byte [ebp - 0x41c], bl
push esi
lea eax, [ebp - 0x524]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
jne 0x401505
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 0x401526
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 0x401543
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.004013e9
lea eax, [ebp - 0x52c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x401566
sub eax, edx
mov ecx, eax
lea eax, [ebp - 0x314]
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x40157a
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.004013e9
lea eax, [ebp - 0x52c]
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x4015af
sub eax, ecx
lea ecx, [ebp - 0x314]
lea esi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
cmp dl, bl
jne 0x4015c1
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.0040131a
test eax, eax
pop esi
jne 0x401602
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x524]
push eax
call fcn.0040131a
test eax, eax
jne 0x401630
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x41c]
push eax
call fcn.0040131a
test eax, eax
jne 0x401642
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x41c]
push eax
call fcn.0040131a
test eax, eax
je 0x401642
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.0040ac62
leave
ret

Function at 0x40ac62
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x423b64]
jne 0x40ac6c
repz ret
jmp fcn.0040edfe
Function at 0x40dc23
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x423d10]
je 0x40dc3e
inc edi
cmp edi, 0x17
jb 0x40dc2f
cmp edi, 0x17
jae 0x40ddbe
push ebp
push 3
call fcn.00413f5c
cmp eax, 1
pop ecx
je 0x40dd8a
push 3
call fcn.00413f5c
test eax, eax
pop ecx
jne 0x40dc72
cmp dword [0x423b60], 1
je 0x40dd8a
cmp ebx, 0xfc
je 0x40ddbd
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x427050
push ebp
call fcn.00413b82
add esp, 0xc
test eax, eax
je 0x40dca8
push esi
push esi
push esi
push esi
push esi
call fcn.00410956
add esp, 0x14
push 0x104
mov esi, 0x427069
push esi
push 0
mov byte [0x42716d], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40dcec
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.00413b82
add esp, 0xc
test eax, eax
je 0x40dcec
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00410956
add esp, 0x14
push esi
call fcn.00413bf0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x40dd31
push esi
call fcn.00413bf0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x427364
push 0x41dcbc
sub ecx, eax
push ecx
push eax
call fcn.00413ea9
add esp, 0x14
test eax, eax
je 0x40dd31
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.00410956
add esp, 0x14
jmp 0x40dd33
xor esi, esi
push 0x41dcb8
push ebx
push ebp
call fcn.00413e38
add esp, 0xc
test eax, eax
je 0x40dd53
push esi
push esi
push esi
push esi
push esi
call fcn.00410956
add esp, 0x14
push dword [edi*8 + 0x423d14]
push ebx
push ebp
call fcn.00413e38
add esp, 0xc
test eax, eax
je 0x40dd75
push esi
push esi
push esi
push esi
push esi
call fcn.00410956
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.00413c7b
add esp, 0xc
jmp 0x40ddbd
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x40ddbd
cmp ebp, 0xffffffff
je 0x40ddbd
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x423d14]
push dword [esi]
call fcn.00413bf0
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x41a096
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x423b64]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.0041a02b
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.0040b730
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 0x41a0e5
cmp dword [ebp - 0x1c], 5
jb 0x41a0fd
jmp 0x41a0f9
cmp dword [ebp - 0x10], 1
jne 0x41a0fd
cmp dword [ebp - 0x1c], 4
ja 0x41a0f9
jne 0x41a0fd
cmp dword [ebp - 0x18], 0
jbe 0x41a0fd
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x41f09c
call fcn.00419eff
test eax, eax
jge 0x41a11e
mov byte [0x425120], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0040ac62
add ebp, 0x78
leave
ret
Function at 0x407f80
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x6000]
push edi
or ebp, 0xffffffff
jmp 0x407fa2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x407fa9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x407f98
mov eax, 1
add ebx, ebx
jne 0x407fbb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x407fb0
jne 0x407fcc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407fb0
xor ecx, ecx
sub eax, 3
jb 0x407fe0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x408052
mov ebp, eax
add ebx, ebx
jne 0x407feb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x407ff8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40801c
inc ecx
add ebx, ebx
jne 0x408008
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x407ffd
jne 0x408019
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407ffd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40803c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40802d
jmp 0x407f9e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40803c
add edi, ecx
jmp 0x407f9e
pop esi
mov edi, esi
mov ecx, 0x8f
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40805a
cmp byte [edi], 0
jne 0x40805a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x40805f
lea edi, [esi + 0x5000]
mov eax, dword [edi]
or eax, eax
je 0x4080d7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x8d64]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x8ddc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40808c
mov ecx, edi
jns 0x4080bb
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x8de4]
or eax, eax
je 0x4080d1
mov dword [ebx], eax
add ebx, 4
jmp 0x4080a9
call dword [esi + 0x8de0]
mov ebp, dword [esi + 0x8de8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x40810b
sub esp, 0xffffff80
jmp 0x402130

Function at 0x433005
Capabilities:
Encode data using xor

Disassembly:
pushal
call 0x43300c
nop
nop
nop
nop
pop eax
nop
add eax, 0x40a063
nop
sub eax, 0x40a009
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x433030
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43301e
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x4183a0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5cba83
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
mov eax, dword [esp + 0x34]
push esi
push eax
lea ecx, [esp + 0xc]
mov dword [esp + 8], 0
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
mov ecx, dword [esp + 0x3c]
push ecx
mov ecx, eax
mov dword [esp + 0x30], 1
call dword [fcn.005ea328]
mov esi, dword [esp + 0x34]
push eax
mov ecx, esi
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
lea ecx, [esp + 8]
mov dword [esp + 4], 1
mov byte [esp + 0x2c], 0
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov ecx, dword [esp + 0x24]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x2c
ret

Function at 0x418420
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5cba83
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
mov eax, dword [esp + 0x34]
push esi
push eax
lea ecx, [esp + 0xc]
mov dword [esp + 8], 0
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
mov ecx, dword [esp + 0x3c]
push ecx
mov ecx, eax
mov dword [esp + 0x30], 1
call dword [0x5ea32c]
mov esi, dword [esp + 0x34]
push eax
mov ecx, esi
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
lea ecx, [esp + 8]
mov dword [esp + 4], 1
mov byte [esp + 0x2c], 0
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov ecx, dword [esp + 0x24]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x2c
ret
Function at 0x420750
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5cc383
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
mov eax, dword [esp + 0x34]
push esi
push eax
lea ecx, [esp + 0xc]
mov dword [esp + 8], 0
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
mov ecx, dword [esp + 0x3c]
push ecx
mov ecx, eax
mov dword [esp + 0x30], 1
call dword [fcn.005ea328]
mov esi, dword [esp + 0x34]
push eax
mov ecx, esi
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
lea ecx, [esp + 8]
mov dword [esp + 4], 1
mov byte [esp + 0x2c], 0
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov ecx, dword [esp + 0x24]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x2c
ret
Function at 0x423e60
Capabilities:
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x364
mov eax, dword [0x644904]
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov esi, ecx
xor eax, eax
xor ebx, ebx
mov byte [ebp - 0x108], bl
mov ecx, 0x40
lea edi, [ebp - 0x107]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x104
lea eax, [ebp - 0x108]
push eax
push ebx
call dword [sym.imp.kernel32.dll_GetModuleFileNameA]
lea ecx, [ebp - 0x108]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
xor eax, eax
mov byte [ebp - 0x20c], bl
mov ecx, 0x40
lea edi, [ebp - 0x20b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x104
lea edx, [ebp - 0x108]
stosb byte es:[edi], al
push edx
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.MSVCR71.dll_strncpy]
add esp, 0xc
push 0x5f033c
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
mov byte [ebp - 0x310], bl
xor eax, eax
mov ecx, 0x40
lea edi, [ebp - 0x30f]
rep stosd dword es:[edi], eax
mov ecx, dword [ebp + 8]
stosw word es:[edi], ax
stosb byte es:[edi], al
call dword [sym.imp.MSVCP71.dll_public:_char____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Myptr_void_]
push eax
lea ecx, [esi + 0x34]
call dword [sym.imp.MSVCP71.dll_public:_char____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Myptr_void_]
push eax
lea edx, [ebp - 0x20c]
push edx
push 0x5f0328
lea eax, [ebp - 0x310]
push 0x104
push eax
call dword [sym.imp.MSVCR71.dll__snprintf]
add esp, 0x18
lea ecx, [ebp - 0x108]
push ecx
push 0x104
call dword [sym.imp.kernel32.dll_GetCurrentDirectoryA]
xor eax, eax
xor edx, edx
mov dword [ebp - 0x320], edx
mov ecx, 0x11
lea edi, [ebp - 0x364]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x31c], edx
mov dword [ebp - 0x318], edx
lea eax, [ebp - 0x320]
mov dword [esi + 0x50], ebx
mov dword [ebp - 0x314], edx
mov dword [ebp - 0x364], 0x44
mov dword [ebp - 0x338], 1
mov word [ebp - 0x334], 5
push eax
lea ecx, [ebp - 0x364]
push ecx
lea edx, [ebp - 0x108]
push edx
push ebx
push 0x4000000
push ebx
push ebx
push ebx
lea eax, [ebp - 0x310]
push eax
push ebx
call dword [sym.imp.kernel32.dll_CreateProcessA]
test eax, eax
je 0x423fd7
mov ecx, dword [ebp - 0x320]
mov dword [esi + 0x50], ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.005c8895
mov esp, ebp
pop ebp
ret 4
Function at 0x429510
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ccd76
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
xor edi, edi
mov dword [esi], edi
mov dword [esi + 4], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], edi
lea ebx, [esi + 0x38]
mov ecx, ebx
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
call fcn.00427100
mov eax, dword [esi + 0xc]
cmp eax, edi
je 0x42956a
push eax
call sub.MSVCR71.dll_void___cdecl_operator_delete_void__
add esp, 4
mov ecx, ebx
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
call fcn.00427100
mov dword [esi + 4], edi
mov eax, dword [esi + 0x2c]
cmp eax, edi
je 0x42958d
push eax
call sub.MSVCR71.dll_void___cdecl_operator_delete_void__
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0xa8], edi
mov dword [esi + 0xac], edi
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x42e7d0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x644904]
mov ecx, dword [0x64546c]
mov dword [ebp - 4], eax
push 0x104
lea eax, [ebp - 0x108]
push eax
push ecx
call dword [sym.imp.kernel32.dll_GetModuleFileNameA]
lea edx, [ebp - 0x108]
push edx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
push 0x5f18cc
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
lea ecx, [ebp - 0x108]
push 4
push ecx
call dword [sym.imp.MSVCR71.dll__access]
add esp, 8
test eax, eax
je 0x42e840
mov eax, 1
mov ecx, dword [ebp - 4]
call fcn.005c8895
mov esp, ebp
pop ebp
ret
push esi
push edi
xor eax, eax
mov byte [ebp - 0x20c], 0
mov ecx, 0x40
lea edi, [ebp - 0x20b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea edx, [ebp - 0x108]
push edx
push 0x5f18c4
stosb byte es:[edi], al
lea eax, [ebp - 0x20c]
push 0x104
push eax
call dword [sym.imp.MSVCR71.dll__snprintf]
add esp, 0x10
xor eax, eax
mov ecx, 0x11
lea edi, [ebp - 0x264]
rep stosd dword es:[edi], eax
xor ecx, ecx
mov dword [ebp - 0x21c], ecx
lea edx, [ebp - 0x21c]
push edx
mov dword [ebp - 0x218], ecx
mov dword [ebp - 0x214], ecx
lea eax, [ebp - 0x264]
push eax
push ecx
push ecx
push 0x4000000
push ecx
push ecx
push ecx
mov dword [ebp - 0x210], ecx
lea ecx, [ebp - 0x20c]
push ecx
mov esi, 1
push 0
mov dword [ebp - 0x264], 0x44
mov dword [ebp - 0x238], esi
mov word [ebp - 0x234], si
call dword [sym.imp.kernel32.dll_CreateProcessA]
test eax, eax
jne 0x42e8fc
pop edi
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
call fcn.005c8895
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x21c]
push 0xffffffffffffffff
push edx
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
mov ecx, dword [ebp - 0x21c]
lea eax, [ebp - 0x220]
push eax
push ecx
call dword [sym.imp.kernel32.dll_GetExitCodeProcess]
mov edx, dword [ebp - 0x21c]
mov esi, dword [sym.imp.kernel32.dll_CloseHandle]
push edx
call esi
mov eax, dword [ebp - 0x218]
push eax
call esi
mov ecx, dword [ebp - 0x220]
xor eax, eax
cmp ecx, 0xc0de
mov ecx, dword [ebp - 4]
pop edi
setne al
pop esi
call fcn.005c8895
mov esp, ebp
pop ebp
ret