joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1006ea51
Capabilities:
Allocate or change rwx memory

Disassembly:
mov edx, dword [0x100ebc20]
push esi
xor esi, esi
jmp 0x1006ea63
cmp dword [edx + 4], esi
jne 0x1006eaaf
mov edx, dword [edx]
test edx, edx
jne 0x1006ea5c
push 0x40
push 0x3000
push 0x1000
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edx, eax
test edx, edx
je 0x1006eabc
push edi
push 0x20
lea ecx, [edx + 0x20]
mov dword [edx + 8], esi
pop edi
mov dword [ecx], esi
mov eax, ecx
mov dword [edx + 4], ecx
add edi, 0x20
add ecx, 0x20
mov esi, eax
cmp edi, 0xfe0
jbe 0x1006ea8a
mov eax, dword [0x100ebc20]
pop edi
mov dword [edx], eax
mov dword [0x100ebc20], edx
mov eax, dword [edx + 4]
pop esi
mov ecx, dword [eax]
inc dword [edx + 8]
mov dword [edx + 4], ecx
ret
xor eax, eax
pop esi
ret

Function at 0x8ccbc4
Capabilities:
Encode data using xor

Disassembly:
mov edx, 0x8cc92e
inc esi
call fcn.008ccbef
or ebx, ebx
sub esi, esi
mov ebx, ebx
xor dword [ecx], edx
sub ebx, esi
sub ebx, 1
inc ecx
push ebx
pop esi
cmp ecx, eax
jne fcn.008ccbc4
sub ebx, ebx
ret
Function at 0x49eae0
Capabilities:
Encode data using xor

Disassembly:
cmp eax, 0xdb31c5f1
popal
mov ecx, 0x92e1dc13
sub eax, 0xf88ec9d9
cli
cli
enter 0x10b2, 0x49
add esp, dword [ebx + 0x4e]
push ecx
xor dword [eax - 0x19], reloc.kernel32.dll_WideCharToMultiByte
cmpsd dword [esi], dword es:[edi]
xchg edi, eax
inc edi
sub edx, ebp
jge 0x49ea53
sti
adc cl, byte [ebx]
not byte [0xdf0e04f5]
cmc
add al, 0xe
fild qword [ecx + 0x45]
imul eax, dword [ebp - 0x73], 0x81c4ef36
je 0x49ea67
jp 0x49ead2
int3
and dword [edx], esp
pop ss
push 0x168ac749
jl 0x49ea3b
arpl word [eax + 0x52], di
xor dword [ebx - 0x15], edx
imul edx, dword [esi + reloc.kernel32.dll_WideCharToMultiByte], 0x2e53592e
adc byte [ebx + 0x2076e2a8], al
mov bh, 0x1e
jmp 0x49ea64
invalid
inc eax
jl 0x49ea7c
jg 0x49eaa4
jno 0x49ea98
sub byte [edi + 0x6c], bh
and byte [ebx - 0x2eb6822e], dl
mov ebp, 0xd9436c3d
add ebx, edx
inc esp
lahf
imul edx, dword [esi], reloc.kernel32.dll_WideCharToMultiByte
Function at 0x1791a43
Capabilities:
Check for trap flag exception

Disassembly:
push ebx
jmp 0x177888a
pushfd
or dword [esp], reloc.kernel32.dll_WideCharToMultiByte
popfd
cpuid
nop
jmp 0x17788a1
pop ebx
ret
jmp 0x177887e

Function at 0x18a6650
Capabilities:
Access peb ldr_data

Disassembly:
call fcn.018a6097
push dword [esp + 1]
mov dword [esp + 0x2c], edi
lea esp, [esp + 0x2c]
jmp 0x18a666f
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
jmp 0x18a66ec
push eax
jmp 0x18a6092
mov eax, dword [eax + 0x1c]
mov eax, dword [eax]
mov eax, dword [eax + 8]
jmp 0x18a66b5
Function at 0x403492
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
xor eax, eax
push ebx
mov ebx, 0xbb40e64e
cmp dword [0x4014ac], eax
je 0x4034b4
cmp dword [0x4014ac], ebx
jne 0x40354d
push esi
push eax
push eax
push 1
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapSetInformation]
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov esi, dword [ebp - 8]
xor esi, dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor esi, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor esi, eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [ebp - 0x10]
xor eax, dword [ebp - 0x14]
xor esi, eax
lea eax, [ebp - 4]
push eax
push 0x40
push 4
push 0x4014ac
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov dword [0x4014ac], esi
test esi, esi
jne 0x403523
mov dword [0x4014ac], ebx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
mov esi, 0x4014ac
push 4
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push 4
push esi
call fcn.00551000
mov eax, dword [0x4014ac]
not eax
mov dword [0x407248], eax
pop esi
pop ebx
leave
ret

Function at 0x403550
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4014ac]
jne 0x4039bf
ret
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x328
mov dword [0x4073f8], eax
mov dword [0x4073f4], ecx
mov dword [0x4073f0], edx
mov dword [0x4073ec], ebx
mov dword [0x4073e8], esi
mov dword [0x4073e4], edi
mov word [0x407410], ss
mov word [0x407404], cs
mov word [0x4073e0], ds
mov word [0x4073dc], es
mov word [0x4073d8], fs
mov word [0x4073d4], gs
pushfd
pop dword [0x407408]
mov eax, dword [ebp]
mov dword [0x4073fc], eax
mov eax, dword [ebp + 4]
mov dword [0x407400], eax
lea eax, [ebp + 8]
mov dword [0x40740c], eax
mov eax, dword [ebp - 0x320]
mov dword [0x407348], 0x10001
mov eax, dword [0x407400]
mov dword [0x4072fc], eax
mov dword [0x4072f0], 0xc0000409
mov dword [0x4072f4], 1
mov eax, dword [0x4014ac]
mov dword [ebp - 0x328], eax
mov eax, dword [0x407248]
mov dword [ebp - 0x324], eax
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x407340], eax
push 1
call sub.MSVCR100.dll__crt_debugger_hook
pop ecx
push 0
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
push 0x4014b8
call dword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x407340], 0
jne 0x403aab
push 1
call sub.MSVCR100.dll__crt_debugger_hook
pop ecx
push 0xc0000409
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
leave
ret
Function at 0x40383b
Capabilities:
Terminate process

Disassembly:
push 0x5c
push 0x405340
call fcn.00403d60
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
cmp dword [0x407680], ebx
jne 0x4035d6
push ebx
push ebx
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_HeapSetInformation]
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x24], ebx
mov edi, 0x407674
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x403610
cmp eax, esi
jne 0x403603
xor esi, esi
inc esi
mov dword [ebp - 0x24], esi
jmp 0x403613
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4035ea
xor esi, esi
inc esi
mov eax, dword [0x407670]
cmp eax, esi
jne 0x403626
push 0x1f
call sub.MSVCR100.dll__amsg_exit
pop ecx
jmp 0x403661
mov eax, dword [0x407670]
test eax, eax
jne 0x40365b
mov dword [0x407670], esi
push 0x40118c
push 0x40117c
call sub.MSVCR100.dll__initterm_e
pop ecx
pop ecx
test eax, eax
je 0x403661
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x40377b
mov dword [0x4072e8], esi
mov eax, dword [0x407670]
cmp eax, esi
jne 0x403685
push 0x401178
push 0x40116c
call sub.MSVCR100.dll__initterm
pop ecx
pop ecx
mov dword [0x407670], 2
cmp dword [ebp - 0x24], ebx
jne 0x403692
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x407684], ebx
je 0x4036b3
push 0x407684
call fcn.00403c98
pop ecx
test eax, eax
je 0x4036b3
push ebx
push 2
push ebx
call dword [0x407684]
mov eax, dword [sym.imp.MSVCR100.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x20], esi
mov al, byte [esi]
cmp al, 0x20
ja 0x40370c
cmp al, bl
je 0x4036cc
cmp dword [ebp - 0x1c], ebx
jne 0x40370c
mov al, byte [esi]
cmp al, bl
je 0x4036dc
cmp al, 0x20
ja 0x4036dc
inc esi
mov dword [ebp - 0x20], esi
jmp 0x4036cc
test byte [ebp - 0x40], 1
je 0x4036e8
movzx eax, word [ebp - 0x3c]
jmp 0x4036eb
push 0xa
pop eax
push eax
push esi
push ebx
push 0x400000
call main
mov dword [0x4072e4], eax
cmp dword [0x4072d8], ebx
jne 0x403761
push eax
call dword [sym.imp.MSVCR100.dll_exit]
cmp al, 0x22
jne 0x40371b
xor ecx, ecx
cmp dword [ebp - 0x1c], ebx
sete cl
mov dword [ebp - 0x1c], ecx
movzx eax, al
push eax
call dword [sym.imp.MSVCR100.dll__ismbblead]
pop ecx
test eax, eax
je 0x40372e
inc esi
mov dword [ebp - 0x20], esi
inc esi
jmp 0x4036ba
cmp dword [0x4072e8], ebx
jne 0x40376f
call dword [sym.imp.MSVCR100.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x4072e4]
call fcn.00403da5
ret
call fcn.00403492
jmp 0x4035a8
Function at 0x427e60
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x1b000]
push edi
jmp 0x427e7a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x427e81
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x427e70
mov eax, 1
add ebx, ebx
jne 0x427e93
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x427e88
jne 0x427ea4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x427e88
xor ecx, ecx
sub eax, 3
jb 0x427eb8
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x427f2a
mov ebp, eax
add ebx, ebx
jne 0x427ec3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x427ed0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x427ef4
inc ecx
add ebx, ebx
jne 0x427ee0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x427ed5
jne 0x427ef1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x427ed5
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x427f14
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x427f05
jmp 0x427e76
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x427f14
add edi, ecx
jmp 0x427e76
pop esi
mov edi, esi
mov ecx, 0x91a
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x427f32
cmp byte [edi], 9
jne 0x427f32
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 0x427f37
lea edi, [esi + 0x25000]
mov eax, dword [edi]
or eax, eax
je 0x427faf
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x30e1c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x30efc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x427f64
mov ecx, edi
jns 0x427f93
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 + 0x30f04]
or eax, eax
je 0x427fa9
mov dword [ebx], eax
add ebx, 4
jmp 0x427f81
call dword [esi + 0x30f00]
mov ebp, dword [esi + 0x30f08]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x17f]
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 0x427fe3
sub esp, 0xffffff80
jmp 0x41382f
Function at 0x432005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
mov eax, section..text
nop
mov ebx, 0x40c7d0
nop
mov ecx, 0x195819a5
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43204e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x432024
nop
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42f314
mov ecx, 0x52ab1b02
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x432084
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
add eax, 4
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x43206c
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x431000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43100c
nop
nop
pop eax
nop
nop
nop
add eax, 0x403e6a
nop
sub eax, 0x403e10
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x431030
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43101e
nop
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp fcn.00401219
Function at 0x407d9c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004033fc
xor eax, eax
push ebp
push 0x407e75
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp byte [eax], 0x5c
jne 0x407dd4
mov eax, dword [ebp - 4]
call fcn.004071d0
jmp 0x407ddc
mov eax, dword [ebp - 4]
call fcn.00407bd4
call fcn.00404ae8
mov esi, eax
test esi, esi
jle 0x407e28
mov ebx, 1
lea edx, [ebp - 8]
mov eax, ebx
call fcn.004049d0
mov eax, dword [ebp - 8]
cmp byte [eax], 0x5c
jne 0x407e12
lea edx, [ebp - 0xc]
mov eax, ebx
call fcn.004049d0
mov eax, dword [ebp - 0xc]
call fcn.004071d0
jmp 0x407e24
lea edx, [ebp - 0x10]
mov eax, ebx
call fcn.004049d0
mov eax, dword [ebp - 0x10]
call fcn.00407bd4
inc ebx
dec esi
jne 0x407dec
push 1
push dword [ebp - 4]
push 0x407e8c
lea edx, [ebp - 0x18]
xor eax, eax
call fcn.00406f34
push dword [ebp - 0x18]
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.004032cc
mov eax, dword [ebp - 0x14]
call fcn.0040340c
push eax
call sub.kernel32.dll_WinExec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407e7c
lea eax, [ebp - 0x18]
mov edx, 6
call fcn.004030b8
ret

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

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

Disassembly:
push 0xffffffffffffffff
push 0x444468
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
push edi
mov edi, ecx
lea ecx, [esp + 8]
call fcn.0042314c
push 0x104
push 0x104
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c], 0
call fcn.00423615
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0xffffffffffffffff
lea ecx, [esp + 0xc]
call fcn.00423664
push str.winhlp32.exe
lea ecx, [esp + 0xc]
call fcn.004235c1
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x4025f9
push 0x6a
push esi
call dword [sym.imp.USER32.dll_LoadCursorA]
test eax, eax
je 0x4025f9
push eax
call dword [sym.imp.USER32.dll_CopyIcon]
mov dword [edi + 0xa0], eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [esp + 8]
mov dword [esp + 0x14], 0xffffffff
call fcn.00423297
mov ecx, dword [esp + 0xc]
mov eax, edi
pop edi
mov dword fs:[0], ecx
pop esi
add esp, 0x10
ret

Function at 0x403390
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x444636
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x114
push ebx
push ebp
push esi
lea eax, [esp + 0x18]
push edi
mov esi, ecx
push eax
push 0x105
mov dword [esp + 0x20], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push 0x461
mov ecx, esi
call fcn.00427ef8
lea ecx, [esp + 0x10]
mov edi, eax
call fcn.0042314c
xor ebx, ebx
lea ecx, [esp + 0x10]
mov dword [esp + 0x12c], ebx
call fcn.00423222
mov ecx, dword [edi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push ebx
push ebx
push 0x18b
push ecx
xor esi, esi
call ebp
cmp eax, ebx
jle 0x4034a4
lea ecx, [esp + 0x14]
call fcn.0042314c
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push esi
mov byte [esp + 0x134], 1
call fcn.004381f3
cmp esi, 1
jle 0x40343c
push 0x4572bc
lea ecx, [esp + 0x14]
call fcn.004235c1
lea eax, [esp + 0x14]
lea ecx, [esp + 0x10]
push eax
call fcn.004235fd
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x1c]
push ecx
push edx
call fcn.004108b0
add esp, 8
cmp eax, ebx
je 0x403484
lea ecx, [esp + 0x14]
mov byte [esp + 0x12c], bl
call fcn.00423297
mov eax, dword [edi + 0x1c]
push ebx
push ebx
push 0x18b
push eax
inc esi
call ebp
cmp esi, eax
jl 0x40340b
jmp 0x4034a4
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [esp + 0x14]
mov byte [esp + 0x12c], bl
call fcn.00423297
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x1c]
push eax
add ecx, 0x234
call fcn.004233df
lea ecx, [esp + 0x10]
mov dword [esp + 0x12c], 0xffffffff
call fcn.00423297
mov ecx, dword [esp + 0x124]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x120
ret
Function at 0x4035d0
Capabilities:
Get common file path
Set current directory

Disassembly:
sub esp, 0x20c
mov ax, word [0x45c06c]
push ebx
push ebp
push esi
mov ebp, ecx
push edi
mov word [esp + 0x114], ax
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x116]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, 0x45c068
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x114]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
xor ebx, ebx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [esp + 0x224]
and ecx, 3
cmp eax, ebx
rep movsb byte es:[edi], byte [esi]
jne 0x40363f
mov dword [ebp + 0x8c], 0x4572c0
jmp 0x403645
mov dword [ebp + 0x8c], eax
mov esi, dword [esp + 0x228]
lea ecx, [ebp + 0x244]
push esi
call fcn.00423390
mov ecx, dword [esi]
lea edx, [esp + 0x10]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [esp + 0x10]
mov dword [ebp + 0x248], 1
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
jne 0x4036e7
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea ecx, [esp + 0x10]
push 0x4572bc
push ecx
call fcn.00410da0
add esp, 8
test eax, eax
je 0x4036bf
lea edx, [esp + 0x10]
push edx
call esi
dec eax
cmp eax, ebx
jl 0x4036d1
mov cl, byte [esp + eax + 0x10]
mov byte [esp + eax + 0x10], bl
cmp cl, 0x5c
je 0x4036d1
dec eax
jns 0x4036ad
jmp 0x4036d1
lea eax, [esp + 0x10]
push eax
push 0x104
call edi
mov dword [ebp + 0x248], ebx
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
je 0x40368b
mov esi, dword [esp + 0x228]
mov eax, dword [esp + 0x220]
mov dword [ebp + 0x5c], 0x4c
cmp eax, ebx
jne 0x4036fd
xor eax, eax
jmp 0x403700
mov eax, dword [eax + 0x1c]
mov dword [ebp + 0x60], eax
call fcn.0043cce0
mov eax, dword [eax + 0xc]
lea edx, [esp + 0x114]
mov dword [ebp + 0x64], eax
mov dword [ebp + 0x78], edx
mov edx, dword [ebp]
lea eax, [esp + 0x10]
mov ecx, ebp
mov dword [ebp + 0x68], ebx
mov dword [ebp + 0x6c], ebx
mov dword [ebp + 0x70], ebx
mov dword [ebp + 0x74], ebx
mov dword [ebp + 0x7c], 0x105
mov dword [ebp + 0x80], ebx
mov dword [ebp + 0x84], ebx
mov dword [ebp + 0x88], eax
mov word [ebp + 0x94], bx
mov word [ebp + 0x96], bx
mov dword [ebp + 0x98], ebx
mov dword [ebp + 0x90], 0x1824
call dword [edx + 0xc0]
cmp eax, 1
jne 0x40378f
add ebp, 0x234
mov ecx, esi
push ebp
call fcn.00423390
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20c
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x20c
ret 0xc
Function at 0x4037a0
Capabilities:
Create directory
Get common file path
Set current directory

Disassembly:
push 0xffffffffffffffff
push 0x44468c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x11c
push ebx
push ebp
push esi
lea eax, [esp + 0x20]
push edi
push eax
mov esi, ecx
push 0x105
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea ecx, [esp + 0x14]
add esi, 0x234
push 3
push ecx
mov ecx, esi
call fcn.00420e63
mov edx, dword [esi]
lea ecx, [esp + 0x10]
mov dword [esp + 0x134], 0
mov eax, dword [edx - 8]
sub eax, 3
push eax
push ecx
mov ecx, esi
call fcn.00420de6
lea edx, [esp + 0x18]
push 1
push edx
lea ecx, [esp + 0x18]
mov byte [esp + 0x13c], 1
call fcn.00420de6
mov eax, dword [eax]
mov esi, 0x4572bc
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x40384c
test cl, cl
je 0x403848
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x40384c
add eax, 2
add esi, 2
test cl, cl
jne 0x403824
xor eax, eax
jmp 0x403851
sbb eax, eax
sbb eax, 0xffffffff
xor ebx, ebx
lea ecx, [esp + 0x18]
test eax, eax
setne bl
call fcn.00423297
test bl, bl
je 0x403873
push 0x4572bc
lea ecx, [esp + 0x14]
call fcn.004235c1
mov ebp, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push 0x5c
lea ecx, [esp + 0x14]
call fcn.004236ac
mov edi, eax
test edi, edi
jle 0x4039b2
lea eax, [esp + 0x18]
push 1
push eax
lea ecx, [esp + 0x1c]
call fcn.00420de6
mov eax, dword [eax]
mov esi, 0x4572bc
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x4038cd
test cl, cl
je 0x4038c9
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x4038cd
add eax, 2
add esi, 2
test cl, cl
jne 0x4038a5
xor eax, eax
jmp 0x4038d2
sbb eax, eax
sbb eax, 0xffffffff
xor ebx, ebx
lea ecx, [esp + 0x18]
test eax, eax
setne bl
call fcn.00423297
test bl, bl
je 0x4038f4
push 0x4572bc
lea ecx, [esp + 0x18]
call fcn.004235c1
lea eax, [esp + 0x20]
push edi
push eax
lea ecx, [esp + 0x18]
call fcn.00420e63
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x138], 2
call fcn.004235fd
lea ecx, [esp + 0x20]
mov byte [esp + 0x134], 1
call fcn.00423297
mov ecx, dword [esp + 0x14]
push ecx
call ebp
test eax, eax
jne 0x403941
mov edx, dword [esp + 0x14]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x403982
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x1c]
mov ecx, dword [eax - 8]
sub ecx, edi
dec ecx
push ecx
push edx
lea ecx, [esp + 0x18]
call fcn.00420de6
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x138], 3
call fcn.00423390
lea ecx, [esp + 0x1c]
mov byte [esp + 0x134], 1
call fcn.00423297
jmp 0x403879
lea eax, [esp + 0x24]
push eax
call ebp
lea ecx, [esp + 0x10]
mov byte [esp + 0x134], 0
call fcn.00423297
lea ecx, [esp + 0x14]
mov dword [esp + 0x134], 0xffffffff
call fcn.00423297
xor eax, eax
jmp 0x4039e3
lea ecx, [esp + 0x24]
push ecx
call ebp
lea ecx, [esp + 0x10]
mov byte [esp + 0x134], 0
call fcn.00423297
lea ecx, [esp + 0x14]
mov dword [esp + 0x134], 0xffffffff
call fcn.00423297
mov eax, 1
mov ecx, dword [esp + 0x12c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x128
ret