joyce8/EMBER2024-capa huggingface dataset:
Function at 0x486378
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov ebx, edx
mov edi, eax
mov esi, 0x1f4
mov eax, ebx
mov edx, 0x1f4
call fcn.00405150
mov word [ebp - 4], 0
mov word [ebp - 2], di
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
push esi
mov eax, ebx
call fcn.0040501c
push eax
mov eax, dword [0x48e6ac]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_ReadConsoleOutputCharacterA
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x4864bc
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa0
push ebx
xor eax, eax
mov dword [ebp - 0x60], eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4865a7
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
xor ecx, ecx
mov edx, 0x44
call fcn.00403528
mov dword [ebp - 0x4c], 0x44
mov dword [ebp - 0x20], 1
mov word [ebp - 0x1c], 2
mov ecx, dword [0x48e478]
mov ecx, dword [ecx]
lea eax, [ebp - 0x60]
mov edx, 0x4865c0
call fcn.00404e10
mov eax, dword [ebp - 0x60]
call fcn.00404fc4
mov dword [ebp - 0x40], eax
mov eax, dword [0x48e668]
push dword [eax]
push 0x4865dc
mov eax, dword [0x48e478]
push dword [eax]
lea eax, [ebp - 4]
mov edx, 3
call fcn.00404e84
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x4c]
push eax
mov eax, dword [0x48e668]
mov eax, dword [eax]
call fcn.00404fc4
push eax
push 0
push 0x4000000
push 0xffffffffffffffff
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00404fc4
push eax
push 0
call sub.kernel32.dll_CreateProcessA
push 0xffffffffffffffff
mov eax, dword [ebp - 0x5c]
push eax
call sub.kernel32.dll_WaitForSingleObject
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0x5c]
push eax
call sub.kernel32.dll_GetExitCodeProcess
mov ebx, dword [ebp - 8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4865ae
lea eax, [ebp - 0x60]
call fcn.00404b04
lea eax, [ebp - 4]
call fcn.00404b04
ret
Function at 0x487b28
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push ebx
push esi
push edi
mov esi, eax
mov eax, esi
call fcn.00404fc4
mov edi, eax
push edi
call sub.kernel32.dll_GetFileAttributesA
mov ebx, eax
test ebx, 1
jbe 0x487b4e
dec ebx
push ebx
push edi
call sub.kernel32.dll_SetFileAttributesA
pop edi
pop esi
pop ebx
ret

Function at 0x487b54
Capabilities:
Create process on windows
Create process suspended
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa4
push ebx
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call fcn.00404fb4
xor eax, eax
push ebp
push 0x487c70
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
xor ecx, ecx
mov edx, 0x44
call fcn.00403528
mov dword [ebp - 0x4c], 0x44
mov dword [ebp - 0x20], 1
mov word [ebp - 0x1c], 2
mov eax, 0x487c80
mov dword [ebp - 0x40], eax
mov eax, dword [0x48e478]
mov edx, dword [ebp - 4]
call fcn.00404b58
lea eax, [ebp - 4]
call fcn.00482a14
mov eax, dword [0x48e668]
mov eax, dword [eax]
call fcn.00409bf8
mov eax, dword [ebp - 4]
call fcn.00487b28
push 0
push 0x487c80
push 0
call sub.user32.dll_FindWindowA
push eax
call sub.user32.dll_ShowWindow
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x4c]
push eax
mov eax, dword [0x48e668]
mov eax, dword [eax]
call fcn.00404fc4
push eax
push 0
call fcn.0048284c
add eax, 0x4000000
push eax
push 0xffffffffffffffff
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00404fc4
push eax
push 0
call sub.kernel32.dll_CreateProcessA
mov eax, dword [0x48e328]
mov eax, dword [eax]
mov eax, dword [eax + 0x44c]
mov edx, dword [eax]
call dword [edx + 0xc8]
mov edx, eax
xor dl, 1
lea eax, [ebp - 0x5c]
call fcn.00487894
push 0xffffffffffffffff
mov eax, dword [ebp - 0x5c]
push eax
call sub.kernel32.dll_WaitForSingleObject
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0x5c]
push eax
call sub.kernel32.dll_GetExitCodeProcess
cmp dword [ebp - 8], 0
jne 0x487c58
mov bl, 1
jmp 0x487c5a
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x487c77
lea eax, [ebp - 4]
call fcn.00404b04
ret

Function at 0x487e34
Capabilities:
Hide graphical window
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef8
call sub.kernel32.dll_AllocConsole
push 0x104
lea eax, [ebp - 0x108]
push eax
call sub.kernel32.dll_GetConsoleTitleA
push 0
lea eax, [ebp - 0x108]
push eax
push 0
call sub.user32.dll_FindWindowA
push eax
call sub.user32.dll_ShowWindow
mov eax, dword [0x48e53c]
mov eax, dword [eax]
call fcn.0047e270
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle_1
mov dword [0x48fd0c], eax
mov word [ebp - 4], 0x1f4
mov word [ebp - 2], 0x32
push dword [ebp - 4]
mov eax, dword [0x48fd0c]
push eax
call sub.kernel32.dll_SetConsoleScreenBufferSize
mov word [ebp - 4], 0
mov word [ebp - 2], 0
push dword [ebp - 4]
mov eax, dword [0x48fd0c]
push eax
call sub.kernel32.dll_SetConsoleCursorPosition
mov eax, dword [0x48fd08]
mov eax, dword [eax + 0x344]
xor edx, edx
call fcn.00480da8
mov eax, dword [0x48fd08]
mov eax, dword [eax + 0x350]
xor edx, edx
call fcn.00480da8
mov esp, ebp
pop ebp
ret
Function at 0x487ee0
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffedc
push ebx
xor ecx, ecx
mov dword [ebp - 0x11c], ecx
mov ebx, edx
xor edx, edx
push ebp
push 0x487fae
push dword fs:[edx]
mov dword fs:[edx], esp
test al, al
je 0x487f82
lea eax, [ebp - 8]
push eax
call sub.kernel32.dll_QueryPerformanceFrequency
lea eax, [ebp - 0x10]
push eax
call sub.kernel32.dll_QueryPerformanceCounter
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
mov ecx, dword [ebp + 8]
sub eax, dword [ecx - 0x10]
sbb edx, dword [ecx - 0xc]
mov dword [ebp - 0x124], eax
mov dword [ebp - 0x120], edx
fild qword [ebp - 0x124]
fild qword [ebp - 8]
fdivp st(1)
add esp, 0xfffffff4
fstp xword [esp]
wait
lea eax, [ebp - 0x11c]
call fcn.0040aa64
mov edx, dword [ebp - 0x11c]
lea eax, [ebp - 0x118]
mov ecx, 0xff
call fcn.00404da0
lea edx, [ebp - 0x118]
lea eax, [ebp - 0x16]
mov cl, 5
call fcn.004033e0
mov eax, ebx
lea edx, [ebp - 0x16]
call fcn.00404d68
jmp 0x487f95
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
push eax
call sub.kernel32.dll_QueryPerformanceCounter
mov eax, ebx
call fcn.00404b04
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x487fb5
lea eax, [ebp - 0x11c]
call fcn.00404b04
ret
Function at 0x487fbc
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x488181
push dword fs:[eax]
mov dword fs:[eax], esp
mov word [ebp - 0x18], 0
mov word [ebp - 0x16], 0
xor eax, eax
mov dword [ebp - 0x14], eax
call fcn.00487e34
push ebp
lea edx, [ebp - 0x1c]
xor eax, eax
call fcn.00487ee0
pop ecx
xor eax, eax
call fcn.00482f04
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x364]
call fcn.00405b58
mov esi, eax
test esi, esi
jl 0x4880ea
inc esi
xor ebx, ebx
mov edi, ebx
shl edi, 3
sub edi, ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x364]
cmp byte [eax + edi*4], 0
jne 0x4880e2
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x364]
mov edx, dword [eax + edi*4 + 4]
mov eax, dword [ebp - 4]
call fcn.00487b54
test al, al
je 0x488062
push ebp
mov dl, 1
mov eax, ebx
call fcn.00487ca0
pop ecx
jmp 0x48806d
push ebp
xor edx, edx
mov eax, ebx
call fcn.00487ca0
pop ecx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x364]
call fcn.00405b50
mov dword [ebp - 0x20], eax
fild dword [ebp - 0x20]
lea eax, [ebx + 1]
mov dword [ebp - 0x24], eax
fild dword [ebp - 0x24]
fdivrp st(1)
fmul dword [0x488190]
call fcn.00402f88
mov edx, eax
mov eax, dword [0x48fd08]
mov eax, dword [eax + 0x350]
call fcn.00480da8
mov eax, dword [0x48fd08]
mov eax, dword [eax + 0x348]
xor edx, edx
call fcn.0045e404
push dword [ebp - 0x18]
mov eax, dword [0x48fd0c]
push eax
call sub.kernel32.dll_SetConsoleCursorPosition
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x18]
push 0x5dc
push 0
mov eax, dword [0x48fd0c]
push eax
call sub.kernel32.dll_FillConsoleOutputCharacterA
inc ebx
dec esi
jne 0x488022
mov eax, dword [0x48fd08]
mov eax, dword [eax + 0x344]
mov edx, 0x64
call fcn.00480da8
mov eax, dword [0x48fd08]
mov eax, dword [eax + 0x350]
mov edx, 0x64
call fcn.00480da8
mov al, 1
call fcn.00482f04
mov eax, dword [0x48fd08]
mov eax, dword [eax + 0x324]
mov dl, 1
call fcn.0045eb68
mov eax, dword [0x48fd08]
mov eax, dword [eax + 0x330]
mov dl, 1
call fcn.0045eb68
push ebp
lea edx, [ebp - 0x28]
mov al, 1
call fcn.00487ee0
pop ecx
mov edx, dword [ebp - 0x28]
mov eax, dword [0x48fd08]
mov eax, dword [eax + 0x330]
call fcn.0045ec78
call sub.kernel32.dll_FreeConsole
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x488188
lea eax, [ebp - 0x28]
call fcn.00404b04
lea eax, [ebp - 0x1c]
call fcn.00404b04
ret
Function at 0x489d18
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov bl, 1
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.00404fc4
push eax
call sub.kernel32.dll_GetFileAttributesA
mov esi, eax
test esi, 1
jbe 0x489d7e
push 0x24
mov eax, 0x489d8c
call fcn.00483da4
push eax
mov eax, 0x489da4
call fcn.00483da4
mov edx, eax
mov eax, dword [0x48e53c]
mov eax, dword [eax]
pop ecx
call fcn.0047e938
cmp eax, 6
jne 0x489d7c
dec esi
push esi
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.00404fc4
push eax
call sub.kernel32.dll_SetFileAttributesA
mov bl, 1
jmp 0x489d7e
xor ebx, ebx
mov eax, ebx
pop esi
pop ebx
pop ebp
ret

Function at 0x48b6c4
Capabilities:
Create http request
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbe8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x418], ecx
mov dword [ebp - 0x14], ecx
mov ebx, edx
mov edi, eax
lea esi, [ebp - 0x10]
xor eax, eax
push ebp
push 0x48b7ec
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x418]
mov eax, dword [0x48e53c]
mov eax, dword [eax]
call fcn.0047ee68
mov eax, dword [ebp - 0x418]
lea edx, [ebp - 0x14]
call fcn.00409abc
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 0x14]
call fcn.00404fc4
push eax
call sub.wininet.dll_InternetOpenA
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x48b7c4
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
push 0
push 0
mov eax, edi
call fcn.00404fc4
push eax
mov eax, dword [ebp - 8]
push eax
call sub.wininet.dll_InternetOpenUrlA
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x48b7a6
push dword fs:[eax]
mov dword fs:[eax], esp
push esi
push 0x400
lea eax, [ebp - 0x414]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.wininet.dll_InternetReadFile
lea edx, [ebp - 0x414]
mov ecx, dword [esi]
mov eax, ebx
call fcn.0041c808
cmp dword [esi], 0
jne 0x48b761
mov byte [ebp - 1], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48b7ad
mov eax, dword [ebp - 0xc]
push eax
call sub.wininet.dll_InternetCloseHandle
ret

Function at 0x402343
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
lea eax, [eax + eax + 1]
test eax, eax
jle 0x40236e
mov edx, eax
push esi
xor ecx, ecx
mov eax, dword [ebp + 8]
lea eax, [eax + ecx*2]
mov esi, 0x9234
xor word [eax], si
inc ecx
cmp ecx, 0x32
jl 0x402356
dec edx
jne 0x402354
pop esi
pop ebp
ret
Function at 0x68f418c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strlen]
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x68f4191b
cmp byte [esi + ebx - 1], 0xa
je 0x68f418ef
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x68f470a4], eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_fwrite]
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
Function at 0x403380
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
test ecx, ecx
jne 0x403387
xor eax, eax
ret
push esi
not eax
cmp edx, 8
jb 0x403464
mov esi, edx
shr esi, 3
push edi
lea esp, [esp]
movzx edi, byte [ecx]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x4163b0]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
inc ecx
shr eax, 8
xor eax, dword [edi*4 + 0x4163b0]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
inc ecx
shr eax, 8
xor eax, dword [edi*4 + 0x4163b0]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x4163b0]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x4163b0]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x4163b0]
movzx edi, byte [ecx + 1]
inc ecx
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x4163b0]
movzx edi, byte [ecx + 1]
inc ecx
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x4163b0]
inc ecx
sub edx, 8
sub esi, 1
jne 0x4033a0
pop edi
test edx, edx
je 0x40348b
jmp 0x403470
movzx esi, byte [ecx]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x4163b0]
inc ecx
sub edx, 1
jne 0x403470
not eax
pop esi
ret

Function at 0x403490
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
mov eax, dword [edx]
movsx ecx, cl
xor ecx, eax
shr eax, 8
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x4163b0]
xor ecx, eax
movzx eax, cl
add eax, dword [edx + 4]
mov dword [edx], ecx
mov ecx, dword [edx + 8]
imul eax, eax, 0x8088405
inc eax
mov dword [edx + 4], eax
shr eax, 0x18
xor eax, ecx
and eax, 0xff
shr ecx, 8
xor ecx, dword [eax*4 + 0x4163b0]
mov dword [edx + 8], ecx
ret

Function at 0x4034e0
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
mov ecx, dword [esi + 8]
push ebx
mov edx, ecx
and edx, 0xfffd
or edx, 2
mov ebx, edx
xor ebx, 1
imul ebx, edx
mov edx, dword [esi]
shr ebx, 8
push edi
xor al, bl
movsx edi, al
xor edi, edx
shr edx, 8
and edi, 0xff
mov ebx, dword [edi*4 + 0x4163b0]
xor ebx, edx
movzx edx, bl
add edx, dword [esi + 4]
mov dword [esi], ebx
imul edx, edx, 0x8088405
inc edx
mov dword [esi + 4], edx
shr edx, 0x18
xor edx, ecx
and edx, 0xff
shr ecx, 8
xor ecx, dword [edx*4 + 0x4163b0]
pop edi
mov dword [esi + 8], ecx
pop ebx
ret

Function at 0x403c90
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, ebx
imul esi, dword [esp + 8]
cmp byte [edi], 0
je 0x403cc2
mov ecx, dword [edi + 4]
push 0
lea eax, [esp + 0xc]
push eax
push esi
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x403cb8
mov byte [edi + 8], 1
mov eax, dword [esp + 8]
xor edx, edx
div ebx
pop esi
ret
mov ecx, dword [edi + 0x1c]
mov eax, dword [edi + 0x18]
push ebp
lea ebp, [ecx + esi]
cmp ebp, eax
pop ebp
jbe 0x403cd5
sub eax, ecx
mov esi, eax
mov eax, dword [edi + 0x14]
push esi
add eax, ecx
push eax
push edx
call fcn.0040b1f0
add dword [edi + 0x1c], esi
mov eax, esi
add esp, 0xc
xor edx, edx
div ebx
pop esi
ret
Function at 0x403cf0
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
cmp byte [esi], 0
push edi
mov edi, 1
je 0x403d23
mov edx, dword [esi + 4]
push 0
lea eax, [esp + 0xc]
push eax
push edi
lea ecx, [esp + 0x13]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x403d1d
mov byte [esi + 8], 1
mov edi, dword [esp + 8]
jmp 0x403d4f
mov eax, dword [esi + 0x18]
push ebx
mov ebx, dword [esi + 0x1c]
lea ecx, [ebx + 1]
cmp ecx, eax
jbe 0x403d35
sub eax, ebx
mov edi, eax
mov edx, dword [esi + 0x14]
push edi
add edx, ebx
push edx
lea eax, [esp + 0x13]
push eax
call fcn.0040b1f0
add esp, 0xc
add ebx, edi
mov dword [esi + 0x1c], ebx
pop ebx
cmp edi, 1
pop edi
jne 0x403d66
movzx ecx, byte [esp + 3]
mov edx, dword [esp + 0xc]
mov dword [edx], ecx
xor eax, eax
add esp, 8
ret
cmp byte [esi], 0
je 0x403d60
cmp byte [esi + 8], 0
je 0x403d60
or eax, 0xffffffff
add esp, 8
ret
Function at 0x403e00
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x18
cmp byte [esi], 0
je 0x403e45
cmp byte [esi + 1], 0
je 0x403e4d
mov eax, dword [esi + 4]
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp byte [esi], 0
push ebp
je 0x403e62
cmp byte [esi + 1], 0
je 0x403e54
mov edx, dword [esi + 4]
push 1
push 0
push 0
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ebp, eax
sub ebp, dword [esi + 0xc]
mov dword [esp + 4], ebp
jmp 0x403e6b
mov ecx, dword [esi + 0x18]
mov dword [esi + 0x1c], ecx
jmp 0x403e1e
or eax, 0xffffffff
add esp, 0x18
ret
mov dword [esp + 4], 0
mov ebp, dword [esp + 4]
jmp 0x403e6b
mov eax, dword [esi + 0x1c]
mov dword [esp + 4], eax
mov ebp, eax
push edi
mov edi, 0xffff
mov dword [esp + 0xc], edi
cmp ebp, edi
jae 0x403e7f
mov dword [esp + 0xc], ebp
mov edi, ebp
push ebx
push 0x404
call fcn.004075cf
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x403e9d
pop ebx
pop edi
or eax, 0xffffffff
pop ebp
add esp, 0x18
ret
mov eax, 4
mov dword [esp + 0x18], 0xffffffff
cmp edi, eax
jbe 0x403fb1
jmp 0x403ec0
mov edi, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov ebp, dword [esp + 0xc]
add eax, 0x400
mov dword [esp + 0x14], edi
cmp eax, edi
ja 0x403ed1
mov dword [esp + 0x14], eax
mov eax, ebp
sub eax, dword [esp + 0x14]
sub ebp, eax
mov dword [esp + 0x20], eax
cmp ebp, 0x404
jbe 0x403eea
mov ebp, 0x404
cmp byte [esi], 0
je 0x403f0f
cmp byte [esi + 1], 0
je 0x403fb1
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 4]
push 0
push 0
add ecx, eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x403f12
mov dword [esi + 0x1c], eax
cmp byte [esi], 0
mov edi, ebp
je 0x403f3a
mov ecx, dword [esi + 4]
push 0
lea eax, [esp + 0x20]
push eax
push ebp
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x403f34
mov byte [esi + 8], 1
mov eax, dword [esp + 0x1c]
jmp 0x403f60
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x18]
lea edx, [eax + ebp]
cmp edx, ecx
jbe 0x403f4b
sub ecx, eax
mov edi, ecx
mov ecx, dword [esi + 0x14]
push edi
add ecx, eax
push ecx
push ebx
call fcn.0040b1f0
add esp, 0xc
add dword [esi + 0x1c], edi
mov eax, edi
xor edx, edx
div ebp
cmp eax, 1
jne 0x403fb1
lea eax, [ebp - 3]
test eax, eax
jl 0x403f9c
dec eax
cmp byte [eax + ebx], 0x50
jne 0x403f8c
cmp byte [eax + ebx + 1], 0x4b
jne 0x403f8c
cmp byte [eax + ebx + 2], 5
jne 0x403f8c
cmp byte [eax + ebx + 3], 6
je 0x403f92
test eax, eax
jge 0x403f70
jmp 0x403f9c
mov edx, dword [esp + 0x20]
add eax, edx
mov dword [esp + 0x18], eax
cmp dword [esp + 0x18], 0
jne 0x403fb1
mov eax, dword [esp + 0x10]
cmp dword [esp + 0x14], eax
jb 0x403eb4
push ebx
call fcn.00407423
mov eax, dword [esp + 0x1c]
add esp, 4
pop ebx
pop edi
pop ebp
add esp, 0x18
ret
Function at 0x404980
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0xc
push ebx
push ebp
mov ebp, dword [esp + 0x18]
push edi
mov edi, eax
xor ebx, ebx
cmp edi, ebx
jne 0x40499e
pop edi
pop ebp
mov eax, 0xffffff9a
pop ebx
add esp, 0xc
ret
cmp dword [edi + 0x18], ebx
je 0x404992
cmp dword [edi + 0x7c], ebx
je 0x4049ad
call fcn.00404d60
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x1c]
push edx
call fcn.004046f0
add esp, 0xc
test eax, eax
je 0x4049d4
pop edi
pop ebp
mov eax, 0xffffff99
pop ebx
add esp, 0xc
ret
push esi
push 0x84
call fcn.004075cf
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x404a15
push 0x4000
call fcn.004075cf
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
add esp, 4
mov dword [esi], eax
mov dword [esi + 0x44], ecx
mov dword [esi + 0x48], edx
mov dword [esi + 0x4c], ebx
cmp eax, ebx
jne 0x404a22
push esi
call fcn.00407423
add esp, 4
pop esi
pop edi
pop ebp
mov eax, 0xffffff98
pop ebx
add esp, 0xc
ret
mov dword [esi + 0x40], ebx
mov ecx, dword [edi + 0x3c]
xor eax, eax
cmp dword [edi + 0x34], ebx
mov dword [esi + 0x54], ecx
mov dword [esi + 0x50], ebx
mov edx, dword [edi + 0x34]
sete al
mov dword [esi + 0x64], edx
mov ecx, dword [edi]
mov dword [esi + 0x60], ecx
mov edx, dword [edi + 0xc]
mov dword [esi + 0x68], edx
mov dword [esi + 0x18], ebx
cmp eax, ebx
jne 0x404a6a
lea eax, [esi + 4]
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
call fcn.004037a0
test eax, eax
jne 0x404a6a
mov dword [esi + 0x40], 1
mov eax, dword [edi + 0x40]
mov dword [esi + 0x58], eax
mov ecx, dword [edi + 0x44]
mov dword [esi + 0x5c], ecx
mov dl, byte [edi + 0x30]
and dl, 1
mov byte [esi + 0x6c], dl
mov eax, dword [edi + 0x30]
shr eax, 3
test al, 1
je 0x404a94
mov cl, byte [edi + 0x39]
mov byte [esi + 0x80], cl
jmp 0x404a9d
mov dl, byte [edi + 0x3f]
mov byte [esi + 0x80], dl
movzx eax, byte [esi + 0x6c]
neg eax
sbb eax, eax
and eax, 0xc
lea edx, [esi + 0x70]
mov dword [esi + 0x7c], eax
mov dword [edx], 0x12345678
mov dword [esi + 0x74], 0x23456789
mov dword [esi + 0x78], 0x34567890
cmp ebp, ebx
je 0x404ad7
mov cl, byte [ebp]
cmp cl, bl
je 0x404ad7
call fcn.00403490
add ebp, 1
jne 0x404ac6
mov ecx, dword [edi + 0x78]
mov edx, dword [esp + 0x18]
lea eax, [ecx + edx + 0x1e]
mov dword [esi + 0x3c], eax
mov dword [esi + 8], ebx
mov dword [edi + 0x7c], esi
pop esi
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret
Function at 0x404e60
Capabilities:
Get common file path

Disassembly:
push ecx
cmp dword [esi], 0
push edi
jne 0x404f01
cmp dword [esi + 4], 0xffffffff
jne 0x404f01
lea edi, [esi + 0x244]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov eax, edi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x404e90
sub eax, edx
sar eax, 1
movzx eax, word [esi + eax*2 + 0x242]
cmp ax, 0x5c
je 0x404ec9
cmp ax, 0x2f
je 0x404ec9
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x404eb6
mov eax, dword [0x4169a8]
mov dword [edi], eax
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0xc]
push ecx
call fcn.00403bf0
add esp, 4
test eax, eax
jne 0x404ee7
mov eax, dword [esp + 0xc]
pop edi
pop ecx
ret 4
call fcn.00403fd0
mov dword [esi], eax
neg eax
sbb eax, eax
and eax, 0xfffffe00
add eax, 0x200
pop edi
pop ecx
ret 4
mov eax, 0x1000000
pop edi
pop ecx
ret 4

Function at 0x405890
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x412508
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
mov eax, dword [0x418174]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
xor eax, eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 8], 0xc
cmp dword [eax - 4], 1
jle 0x4058e6
mov eax, dword [eax - 0xc]
push eax
lea ecx, [esp + 0x28]
push ecx
call fcn.00406b90
mov eax, dword [esp + 0x24]
lea edx, [esp + 8]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov esi, eax
mov dword [esp + 0x1c], 0xffffffff
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40591c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x18
ret