joyce8/EMBER2024-capa huggingface dataset:
Function at 0xa7e1b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.00a7e140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.00a7e140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.00a7e140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.00a7e140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0xa7ebfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0xa7ec50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0xa9087c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0xa7ec43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0xa7ec52
xor eax, eax
pop esi
leave
ret 4

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

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..rsrc
mov ebx, 0x407ef8
nop
nop
mov ecx, 0x78bd4e78
nop
test eax, eax
nop
nop
nop
je 0x42e04e
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x42e024
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x42cd70
nop
mov ecx, 0x3656e42
nop
test eax, eax
nop
nop
nop
nop
je 0x42e084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
cmp eax, ebx
nop
nop
nop
jne 0x42e06c
nop
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x2e01b247
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.2e015dc1
and dword [ebp - 4], 0
cmp dword [0x2e022c68], 0
mov ebx, eax
jne 0x2e01b2f8
push 0x2e002d40
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x2e01b3a9
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x2e002d34
push edi
call esi
test eax, eax
je 0x2e01b3a9
push eax
call fcn.2e015d4f
mov dword [esp], 0x2e002d24
push edi
mov dword [0x2e022c68], eax
call esi
push eax
call fcn.2e015d4f
mov dword [esp], 0x2e002d10
push edi
mov dword [0x2e022c6c], eax
call esi
push eax
call fcn.2e015d4f
mov dword [esp], 0x2e002cf4
push edi
mov dword [0x2e022c70], eax
call esi
push eax
call fcn.2e015d4f
pop ecx
mov dword [0x2e022c78], eax
test eax, eax
je 0x2e01b2f8
push 0x2e002cdc
push edi
call esi
push eax
call fcn.2e015d4f
pop ecx
mov dword [0x2e022c74], eax
mov eax, dword [0x2e022c74]
cmp eax, ebx
je 0x2e01b350
cmp dword [0x2e022c78], ebx
je 0x2e01b350
push eax
call fcn.2e015dca
push dword [0x2e022c78]
mov esi, eax
call fcn.2e015dca
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x2e01b350
test edi, edi
je 0x2e01b350
call esi
test eax, eax
je 0x2e01b347
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x2e01b347
test byte [ebp - 0xc], 1
jne 0x2e01b350
or dword [ebp + 0x10], 0x200000
jmp 0x2e01b389
mov eax, dword [0x2e022c6c]
cmp eax, ebx
je 0x2e01b389
push eax
call fcn.2e015dca
pop ecx
test eax, eax
je 0x2e01b389
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x2e01b389
mov eax, dword [0x2e022c70]
cmp eax, ebx
je 0x2e01b389
push eax
call fcn.2e015dca
pop ecx
test eax, eax
je 0x2e01b389
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x2e022c68]
call fcn.2e015dca
pop ecx
test eax, eax
je 0x2e01b3a9
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x2e01b3ab
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1011c31
Capabilities:
Encode data using xor

Disassembly:
or al, 0xc4
test ah, 0x5a
and ch, dl
dec edi
mov al, byte [0x99f7a3e2]
aaa
push esi
sahf
xchg esp, eax
enter 0x13e3, 0xfffffffffffffffe
neg ebx
xor byte [0x5103aec0], dh
aas
test dword [edx], esi
insb byte es:[edi], dx
or ch, byte [esi - 0x24]
jo 0x1011c42
invalid
stc
fsub qword [eax - 0x2226949e]
je 0x1011c45
inc ebx
ror byte [eax - 0xdb10a1f], cl
pop ds
outsb dx, byte [esi]
out dx, al
fldenv [esi - 0x1e]
out dx, eax
int3
Function at 0x4042ec
Capabilities:
Encode data using xor
Get common file path

Disassembly:
mov eax, 0x44075c
call fcn.00416678
sub esp, 0x278
mov dword [ebp - 0x14], ecx
call fcn.004042a8
test eax, eax
je 0x4044c5
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 0x74]
push edi
push eax
mov ecx, ebx
call fcn.0040507f
and dword [ebp - 4], 0
add eax, 4
push eax
lea eax, [ebp - 0x10]
push dword [ebp + 0x14]
push eax
call fcn.00426c35
lea ecx, [ebp - 0x74]
mov byte [ebp - 4], 2
call fcn.00404150
lea eax, [ebp - 0x44]
push edi
push eax
mov ecx, ebx
call fcn.0040507f
mov esi, dword [eax + 0xc]
mov eax, dword [ebp + 0x10]
lea ecx, [ebp - 0x44]
add esi, dword [eax + 0x10]
call fcn.00404150
lea eax, [ebp - 0x44]
push edi
push eax
mov ecx, ebx
call fcn.0040507f
mov eax, dword [eax + 0x10]
lea ecx, [ebp - 0x44]
mov dword [ebp + 0x14], eax
call fcn.00404150
mov eax, dword [ebp + 0x14]
push edi
mov dword [ebp + 8], eax
lea eax, [ebp - 0x44]
push eax
mov ecx, ebx
call fcn.0040507f
mov ebx, dword [eax + 0x1c]
lea ecx, [ebp - 0x44]
call fcn.00404150
test ebx, ebx
je 0x4043c8
lea eax, [ebp - 0x284]
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp - 0x17c]
push eax
push 1
lea eax, [ebp - 0x284]
push 0x4543a8
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
jmp 0x4043d9
push dword [ebp - 0x10]
lea eax, [ebp - 0x17c]
push eax
call fcn.004166a0
pop ecx
pop ecx
lea eax, [ebp - 0x17c]
push 2
push eax
mov dword [ebp + 0xc], 1
call dword [sym.imp.KERNEL32.dll__lcreat]
cmp eax, 0xffffffff
mov dword [ebp + 0x10], eax
jne 0x4043fe
xor esi, esi
jmp 0x4044b4
mov eax, dword [ebp - 0x14]
push 0
push esi
mov eax, dword [eax + 4]
push eax
call dword [sym.imp.KERNEL32.dll__llseek]
cmp dword [ebp + 0x14], 0
jle 0x40446f
mov edi, 0x47376c
cmp dword [ebp + 0xc], 0
je 0x40446f
mov esi, dword [ebp + 8]
mov eax, 0x8000
cmp esi, eax
jle 0x40442d
mov esi, eax
mov eax, dword [ebp - 0x14]
push esi
push edi
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll__lread]
cmp eax, esi
je 0x404445
and dword [ebp + 0xc], 0
jmp 0x404469
test esi, esi
jle 0x40445b
xor eax, eax
test esi, esi
jle 0x40445b
xor byte [eax + 0x47376c], 0x55
inc eax
cmp eax, esi
jl 0x40444f
push esi
push edi
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll__lwrite]
sub dword [ebp + 8], esi
cmp dword [ebp + 8], 0
jg 0x404419
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll__lclose]
test ebx, ebx
je 0x4044b1
cmp dword [ebp + 0xc], 0
je 0x4044a0
push dword [ebp - 0x10]
lea eax, [ebp - 0x17c]
push eax
call fcn.00406de1
pop ecx
test eax, eax
pop ecx
je 0x4044a0
mov dword [ebp + 0xc], 1
jmp 0x4044a4
and dword [ebp + 0xc], 0
lea eax, [ebp - 0x17c]
push eax
call fcn.004176e0
pop ecx
mov esi, dword [ebp + 0xc]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00426a06
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret 0x10
Function at 0x40567c
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x200
push dword [ebp + 8]
lea eax, [ebp - 0x200]
push eax
call fcn.004166a0
lea eax, [ebp - 0x100]
push str.Password
push eax
call fcn.004166a0
add esp, 0x10
lea eax, [ebp - 0x100]
push str.ANS2000.INI
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push 0x458744
push eax
lea eax, [ebp - 0x200]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
leave
ret

Function at 0x40574c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0x10], 0
jne 0x40575a
push 1
pop eax
pop ebp
ret
push esi
mov esi, dword [ebp + 0xc]
push dword [ebp + 0x10]
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll__lread]
test eax, eax
jle 0x40577e
xor ecx, ecx
test eax, eax
jle 0x40577e
xor byte [ecx + esi], 0xaa
inc ecx
cmp ecx, eax
jl 0x405775
xor ecx, ecx
cmp eax, dword [ebp + 0x10]
pop esi
sete cl
mov eax, ecx
pop ebp
ret

Function at 0x406338
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x200
push esi
push dword [ebp + 8]
call fcn.00406aa4
mov dword [ebp + 8], eax
lea eax, [ebp - 0x100]
mov dword [esp], 0x100
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push str.ook.ini
push 0x454534
lea eax, [ebp - 0x100]
push 0x454530
push eax
lea eax, [ebp - 0x200]
push eax
call fcn.004063b3
add esp, 0x14
lea eax, [ebp - 0x200]
push 2
push eax
call dword [sym.imp.KERNEL32.dll__lcreat]
mov esi, eax
cmp esi, 0xffffffff
je 0x4063b0
lea eax, [ebp + 8]
push 4
push eax
push esi
call dword [sym.imp.KERNEL32.dll__lwrite]
push esi
call dword [sym.imp.KERNEL32.dll__lclose]
pop esi
leave
ret

Function at 0x4063e8
Capabilities:
Get common file path
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push edi
push dword [ebp + 8]
call fcn.004060e7
push eax
mov dword [ebp + 8], eax
call fcn.00406519
push dword [ebp + 8]
mov dword [ebp - 0x10], eax
call fcn.004064d5
push dword [ebp + 8]
mov dword [ebp - 0xc], eax
call fcn.0040653b
push dword [ebp + 8]
mov dword [ebp - 4], eax
call fcn.004064f7
add esp, 0x14
mov dword [ebp - 8], eax
lea eax, [ebp - 0x210]
push 0x100
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0x45454c
push 0x454548
lea eax, [ebp - 0x210]
push str._akebo
push eax
lea eax, [ebp - 0x110]
push eax
call fcn.00405e0b
add esp, 0x14
lea eax, [ebp - 0x110]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea eax, [ebp - 0x110]
push eax
call fcn.004176e0
pop ecx
lea eax, [ebp - 0x110]
push 2
push eax
call dword [sym.imp.KERNEL32.dll__lcreat]
mov edi, eax
cmp edi, 0xffffffff
je 0x4064d2
push esi
mov esi, dword [sym.imp.KERNEL32.dll__lwrite]
lea eax, [ebp + 8]
push 4
push eax
push edi
call esi
lea eax, [ebp - 0x10]
push 4
push eax
push edi
call esi
lea eax, [ebp - 0xc]
push 4
push eax
push edi
call esi
lea eax, [ebp - 4]
push 4
push eax
push edi
call esi
lea eax, [ebp - 8]
push 4
push eax
push edi
call esi
push edi
call dword [sym.imp.KERNEL32.dll__lclose]
pop esi
pop edi
leave
ret
Function at 0x40673d
Capabilities:
Read .ini file

Disassembly:
push dword [esp + 0xc]
push 0
push dword [esp + 0x10]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
ret

Function at 0x4068eb
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
push esi
lea eax, [ebp - 0x100]
push dword [ebp + 0x10]
push 0x100
push eax
push 0x458744
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0x100]
push eax
call fcn.00416fa0
lea esi, [eax + eax*2]
lea eax, [ebp - 0x100]
push eax
call fcn.00416fa0
pop ecx
pop ecx
shl eax, 1
mov ecx, eax
mov eax, esi
sub eax, ecx
pop esi
leave
ret

Function at 0x406a20
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x204
push esi
lea eax, [ebp - 0x104]
push 0x100
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push str.ook.ini
push 0x454534
lea eax, [ebp - 0x104]
push 0x454530
push eax
lea eax, [ebp - 0x204]
push eax
call fcn.004063b3
add esp, 0x14
lea eax, [ebp - 0x204]
push 0
push eax
call dword [sym.imp.KERNEL32.dll__lopen]
mov esi, eax
cmp esi, 0xffffffff
je 0x406a94
push edi
lea eax, [ebp - 4]
push 4
push eax
push esi
call dword [sym.imp.KERNEL32.dll__lread]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll__lclose]
cmp edi, 4
pop edi
je 0x406a98
xor eax, eax
jmp 0x406aa1
push dword [ebp - 4]
call fcn.00406aa4
pop ecx
pop esi
leave
ret

Function at 0x406aae
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
push ebx
push esi
push edi
lea eax, [ebp - 0x124]
push 0x100
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push str.ook.ini
push 0x454534
lea eax, [ebp - 0x124]
push 0x4545c8
push eax
lea eax, [ebp - 0x224]
push eax
call fcn.004063b3
add esp, 0x14
lea eax, [ebp - 0x224]
push 0
push eax
call dword [sym.imp.KERNEL32.dll__lopen]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x406ba1
mov esi, dword [sym.imp.KERNEL32.dll__lread]
push 4
pop edi
lea eax, [ebp - 4]
push edi
push eax
push ebx
call esi
mov dword [ebp - 0x24], eax
lea eax, [ebp - 8]
push edi
push eax
push ebx
call esi
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
push edi
push eax
push ebx
call esi
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x14]
push edi
push eax
push ebx
call esi
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x1c]
push edi
push eax
push ebx
call esi
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll__lclose]
cmp dword [ebp - 0x24], edi
jne 0x406ba1
cmp dword [ebp - 0x10], edi
jne 0x406ba1
cmp dword [ebp - 0x20], edi
jne 0x406ba1
cmp dword [ebp - 0x18], edi
jne 0x406ba1
cmp esi, edi
jne 0x406ba1
push dword [ebp - 4]
call fcn.00406519
cmp dword [ebp - 8], eax
pop ecx
jne 0x406ba1
push dword [ebp - 4]
call fcn.004064d5
cmp dword [ebp - 0xc], eax
pop ecx
jne 0x406ba1
push dword [ebp - 4]
call fcn.0040653b
cmp dword [ebp - 0x14], eax
pop ecx
jne 0x406ba1
push dword [ebp - 4]
call fcn.004064f7
cmp dword [ebp - 0x1c], eax
pop ecx
je 0x406ba5
xor eax, eax
jmp 0x406bae
push dword [ebp - 4]
call fcn.004060e7
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40757f
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x200
push dword [ebp + 0x10]
lea eax, [ebp - 0x100]
push 0x4542e8
push eax
call fcn.0041692d
add esp, 0xc
lea eax, [ebp - 0x200]
push dword [ebp + 0x14]
push 0x100
push eax
lea eax, [ebp - 0x100]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0x200]
push eax
call fcn.00416fa0
pop ecx
leave
ret

Function at 0x407db2
Capabilities:
Encode data using xor
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x318
cmp dword [ebp + 0xc], 0
push ebx
push edi
mov edi, ecx
je 0x407f02
cmp dword [ebp + 0x10], 0
je 0x407f02
push dword [ebp + 0x10]
call fcn.00426fd1
mov ebx, eax
pop ecx
test ebx, ebx
je 0x407f0f
mov ecx, edi
call fcn.004042a8
test eax, eax
je 0x407f0f
lea eax, [ebp - 0x210]
push esi
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov esi, dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
lea eax, [ebp - 0x108]
push eax
push 1
lea eax, [ebp - 0x210]
push 0x4543a8
push eax
call esi
lea eax, [ebp - 0x318]
push eax
push 0
lea eax, [ebp - 0x210]
push 0x4547e4
push eax
call esi
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x318]
push eax
call fcn.00426b8f
push 0
push dword [ebp + 0xc]
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll__llseek]
push dword [ebp + 0x10]
push ebx
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll__lread]
mov esi, eax
or edi, 0xffffffff
test esi, esi
lea eax, [esi - 1]
mov dword [ebp + 0xc], eax
jle 0x407ead
xor eax, eax
test esi, esi
jle 0x407e84
xor byte [eax + ebx], 0x55
inc eax
cmp eax, esi
jl 0x407e7b
lea eax, [ebp - 0x108]
push 2
push eax
call dword [sym.imp.KERNEL32.dll__lcreat]
mov edi, eax
cmp edi, 0xffffffff
je 0x407ead
push esi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll__lwrite]
push edi
mov dword [ebp + 0xc], eax
call dword [sym.imp.KERNEL32.dll__lclose]
push ebx
call fcn.00426ffa
xor ebx, ebx
cmp edi, 0xffffffff
pop ecx
je 0x407ed4
test esi, esi
jle 0x407ed4
mov eax, dword [ebp + 8]
push dword [eax]
lea eax, [ebp - 0x108]
push eax
call fcn.00406de1
pop ecx
mov ebx, eax
pop ecx
lea eax, [ebp - 0x108]
push eax
call fcn.004176e0
test ebx, ebx
pop ecx
je 0x407efd
test esi, esi
jle 0x407efd
cmp esi, dword [ebp + 0x10]
jne 0x407efd
cmp edi, 0xffffffff
je 0x407efd
cmp dword [ebp + 0xc], esi
jne 0x407efd
push 1
pop eax
jmp 0x407eff
xor eax, eax
pop esi
jmp 0x407f11
mov ecx, dword [ebp + 8]
push 0x458744
call fcn.00426b8f
xor eax, eax
pop edi
pop ebx
leave
ret 0xc
Function at 0x40b1a0
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x44105c
call fcn.00416678
push ecx
push ecx
push esi
push edi
call fcn.00404542
mov esi, dword [ebp + 8]
push 3
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
mov edi, eax
push str._could_not_be_started.
lea eax, [ebp - 0x14]
push esi
push eax
call fcn.00426c9b
and dword [ebp - 4], 0
mov esi, 0x458744
push esi
lea ecx, [ebp - 0x10]
call fcn.00426a74
cmp edi, 0x1a
mov byte [ebp - 4], 1
jg 0x40b240
je 0x40b239
mov eax, edi
sub eax, 0
je 0x40b232
dec eax
dec eax
je 0x40b22b
dec eax
je 0x40b224
dec eax
dec eax
je 0x40b21d
sub eax, 3
je 0x40b216
sub eax, 3
jne 0x40b296
push str.The_.EXE_file_is_invalid__non_Win32_.EXE_or_error_in_.EXE_image_.
jmp 0x40b27f
push str.There_was_not_enough_memory_to_complete_the_operation.
jmp 0x40b27f
push str.The_operating_system_denied_access_to_the_specified_file.
jmp 0x40b27f
push str.The_specified_path_was_not_found.
jmp 0x40b27f
push str.The_specified_file_was_not_found.
jmp 0x40b27f
push str.The_operating_system_is_out_of_memory_or_resources.
jmp 0x40b27f
push str.A_sharing_violation_occurred.
jmp 0x40b27f
mov eax, edi
sub eax, 0x1b
je 0x40b289
dec eax
je 0x40b27a
dec eax
je 0x40b273
dec eax
je 0x40b26c
dec eax
je 0x40b265
dec eax
jne 0x40b296
push str.The_specified_dynamic_link_library_was_not_found.
lea ecx, [ebp - 0x10]
call fcn.00426b8f
jmp 0x40b2cf
push str.There_is_no_application_associated_with_the_given_filename_extension.
jmp 0x40b27f
push str.The_DDE_transaction_could_not_be_completed_because_other_DDE_transactions_were_being_processed.
jmp 0x40b27f
push str.The_DDE_transaction_failed.
jmp 0x40b27f
push str.The_DDE_transaction_could_not_be_completed_because_the_request_timed_out.
lea ecx, [ebp - 0x10]
call fcn.00426b8f
jmp 0x40b29b
push str.The_filename_association_is_incomplete_or_invalid.
lea ecx, [ebp - 0x10]
call fcn.00426b8f
cmp edi, 0x20
jge 0x40b2cf
push esi
push dword [ebp - 0x10]
call fcn.004161f3
pop ecx
test eax, eax
pop ecx
je 0x40b2c3
push str._n_nThe_reason_was:__n
lea ecx, [ebp - 0x14]
call fcn.00426de2
lea eax, [ebp - 0x10]
lea ecx, [ebp - 0x14]
push eax
call fcn.00426e1e
push 0
push 0x30
push dword [ebp - 0x14]
call fcn.0043237c
and byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.00426a06
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00426a06
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x40beb9
Capabilities:
Create directory
Set current directory
Set file attributes

Disassembly:
mov eax, 0x4413bc
call fcn.00416678
push ecx
mov eax, dword [0x4564ec]
push ebx
push edi
mov dword [ebp - 0x10], eax
push dword [ebp + 8]
xor ebx, ebx
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], ebx
call fcn.00426b8f
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 0x10]
push dword [eax - 8]
call fcn.00426e36
mov edi, eax
cmp byte [edi + 4], bl
lea eax, [edi + 4]
je 0x40bf50
push esi
mov esi, eax
cmp byte [esi], 0x5c
jne 0x40bf4a
push edi
mov byte [esi], bl
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
cmp eax, ebx
jne 0x40bf47
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push 0x102
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push edi
lea ecx, [ebp + 8]
call fcn.00426a74
lea eax, [ebp + 8]
mov byte [ebp - 4], 1
push eax
call fcn.0040c141
mov ecx, eax
call fcn.0040c1d2
lea ecx, [ebp + 8]
mov byte [ebp - 4], bl
call fcn.00426a06
mov byte [esi], 0x5c
inc esi
cmp byte [esi], bl
jne 0x40bef9
pop esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00426a06
mov ecx, dword [ebp - 0xc]
push 1
pop eax
pop edi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x40bf6d
Capabilities:
Get common file path

Disassembly:
mov eax, 0x4413f7
call fcn.00416678
sub esp, 0x3f8
and dword [ebp - 0x1c], 0
lea eax, [ebp - 0x14]
push ebx
push eax
call fcn.004021ac
mov ecx, eax
call fcn.0040189d
push 1
lea eax, [ebp - 0x404]
pop ebx
push eax
push 0x3e8
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x404]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.00426d0f
push str..a2k_
push eax
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 2
push eax
call fcn.00426c9b
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 4
call fcn.00426a06
cmp dword [0x47b99c], 0
jne 0x40c004
push dword [ebp - 0x10]
call fcn.0040beb9
test eax, eax
pop ecx
mov dword [0x47b99c], eax
jne 0x40c004
push eax
push eax
push str.Not_enough_disk_space_or_other_file_error_
call fcn.0043237c
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
call fcn.0042677b
mov dword [ebp - 0x1c], ebx
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], bl
call fcn.00426a06
and byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.00426a06
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x40c03a
Capabilities:
Access peb ldr_data
Get common file path
Get kernel32 base address

Disassembly:
mov eax, 0x44142d
call fcn.00416678
sub esp, 0x3ec
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
mov ecx, dword [0x4564ec]
lea edi, [esi + 4]
xor eax, eax
mov dword [ebp - 4], eax
mov dword [edi], ecx
mov dword [esi + 8], 0x443744
mov dword [esi + 0xc], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x1c], 0x444638
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], 0x11
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], 0xa
lea eax, [ebp - 0x3f8]
mov byte [ebp - 4], 3
push eax
push 0x3e8
mov dword [esi], method.CCommandLineInfo.virtual_0
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea eax, [ebp - 0x3f8]
mov ecx, edi
push eax
call fcn.00426b8f
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x40c215
Capabilities:
Delete directory
Set current directory

Disassembly:
mov eax, 0x4414b4
call fcn.00416678
sub esp, 0xc
mov eax, dword [0x4564ec]
push esi
push edi
mov esi, ecx
mov dword [ebp - 0x10], eax
and dword [ebp - 4], 0
mov dword [ebp - 0x18], eax
push dword [esi + 4]
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov eax, dword [esi + 0x28]
neg eax
sbb eax, eax
test eax, eax
mov dword [ebp - 0x14], eax
je 0x40c275
lea edi, [esi + 0x1c]
lea eax, [ebp - 0x18]
mov ecx, edi
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.0040d6e9
push dword [ebp - 0x10]
call fcn.004176e0
cmp dword [ebp - 0x14], 0
pop ecx
jne 0x40c253
mov eax, dword [esi + 0x10]
test eax, eax
jle 0x40c29e
lea edi, [eax - 1]
test edi, edi
jl 0x40c29e
mov eax, dword [esi + 0xc]
lea ecx, [ebp - 0x10]
lea eax, [eax + edi*4]
push eax
call fcn.00426b3f
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
dec edi
jns 0x40c283
and byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.00426a06
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00426a06
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret