joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41a2ab
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x42e6dc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.0040ff7a
mov dword [ebp - 0x14], eax
cmp dword [0x431050], edi
jne 0x41a39c
push 0x800
push edi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x41a329
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x41a47c
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x41a47c
push str.MessageBoxW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x41a47c
push eax
call ebx
push str.GetActiveWindow
push esi
mov dword [0x431050], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push esi
mov dword [0x431054], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x431058], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x431060], eax
test eax, eax
je 0x41a399
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x43105c], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x41a3c1
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x41a3b4
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x41a3d6
push 4
pop eax
jmp 0x41a47e
cmp dword [ebp - 0x14], edi
je 0x41a3d6
push dword [0x431050]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x41a3bb
mov eax, dword [0x43105c]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x41a434
cmp dword [0x431060], esi
je 0x41a434
push eax
call ebx
push dword [0x431060]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x41a434
test eax, eax
je 0x41a434
call ecx
test eax, eax
je 0x41a429
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x41a429
test byte [ebp - 8], 1
jne 0x41a434
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x41a464
mov eax, dword [0x431054]
cmp eax, esi
je 0x41a461
push eax
call ebx
test eax, eax
je 0x41a461
call eax
mov edi, eax
test edi, edi
je 0x41a461
mov eax, dword [0x431058]
cmp eax, esi
je 0x41a461
push eax
call ebx
test eax, eax
je 0x41a461
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x431050]
call ebx
test eax, eax
je 0x41a47c
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x41a47e
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040af8f
leave
ret
Function at 0x41ddcf
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.00414bc1
mov esi, dword [ebp + 8]
push 2
mov edi, eax
lea eax, [ebp - 4]
push eax
mov ecx, esi
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x41de07
xor eax, eax
jmp 0x41de33
cmp esi, dword [ebp - 4]
je 0x41de30
cmp dword [ebp + 0xc], 0
je 0x41de30
push dword [edi + 0x9c]
call fcn.0041d9dd
push dword [edi + 0x9c]
mov esi, eax
call fcn.00410327
pop ecx
pop ecx
cmp esi, eax
je 0x41de03
xor eax, eax
inc eax
pop edi
pop esi
leave
ret
Function at 0xc3655d
Capabilities:
Encode data using xor

Disassembly:
xor al, al
mov al, byte [edi]
xor al, bl
mov byte [edi], al
inc edi
cmp edi, ecx
jne fcn.00c3655d
ret
Function at 0x4035ac
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x539008], 0x8088405
inc edx
mov dword [ebx + 0x539008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x41d2ec
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push ebp
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 8]
cld
mov dl, 0x80
mov al, byte [esi]
add esi, 1
mov byte [edi], al
add edi, 1
mov ebx, 2
add dl, dl
jne 0x41d31d
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41d305
add dl, dl
jne 0x41d328
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41d379
xor eax, eax
add dl, dl
jne 0x41d335
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41d416
add dl, dl
jne 0x41d344
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41d34f
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41d35a
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41d365
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x41d36f
mov ebx, edi
sub ebx, eax
mov al, byte [ebx]
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x41d314
mov eax, 1
add dl, dl
jne 0x41d387
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41d392
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41d37e
sub eax, ebx
mov ebx, 1
jne 0x41d3c5
mov ecx, 1
add dl, dl
jne 0x41d3ab
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41d3b6
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41d3a2
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41d314
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x41d3dc
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41d3e7
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41d3d3
cmp eax, 0x7d00
sbb ecx, 0xffffffff
cmp eax, 0x500
sbb ecx, 0xffffffff
cmp eax, 0x80
adc ecx, 0
cmp eax, 0x80
adc ecx, 0
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41d314
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x41d437
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x41d314
pop ebp
sub edi, dword [ebp - 8]
mov dword [ebp - 0xc], edi
pop edi
pop esi
pop ebx
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x41f504
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov ebx, edx
xor edx, edx
push ebp
push 0x51c9f2
push dword fs:[edx]
mov dword fs:[edx], esp
xor edx, edx
mov dword [ebp - 8], edx
mov esi, ebx
xor ecx, ecx
cmp byte [eax + 0x6a], 0
je 0x41f553
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [esi + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x88]
test edx, edx
je 0x41f572
mov ecx, edx
add ecx, ebx
jmp 0x41f572
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [esi + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x78]
test edx, edx
je 0x41f572
mov ecx, edx
add ecx, ebx
test ecx, ecx
je 0x41f5e4
mov esi, dword [ecx + 0x18]
mov eax, dword [ecx + 0x1c]
add eax, ebx
mov dword [ebp - 0x10], eax
mov edi, dword [ecx + 0x20]
add edi, ebx
mov eax, dword [ecx + 0x24]
add eax, ebx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
cmp eax, 0xffff
jbe 0x41f5cd
test esi, esi
jbe 0x41f5e4
mov eax, dword [edi]
add eax, ebx
mov edx, dword [ebp - 4]
call fcn.004088f4
test eax, eax
jne 0x41f5bf
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
jmp 0x41f5e4
add dword [ebp - 0xc], 2
add edi, 4
dec esi
test esi, esi
ja 0x41f59c
jmp 0x41f5e4
mov edx, eax
sub edx, dword [ecx + 0x10]
cmp edx, dword [ecx + 0x14]
jae 0x41f5e4
mov eax, edx
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x51c9f9
ret
Function at 0x420750
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov word [ebp - 4], cx
mov byte [ebp - 1], dl
xor eax, eax
push ebp
push 0x51dd6b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
call fcn.00404cd0
xor ebx, ebx
mov eax, ebx
and eax, 0x80000001
jns 0x42078b
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
jne 0x4207a4
lea eax, [ebp - 0x10]
mov edx, dword [0x53b73c]
mov edx, dword [edx]
mov edx, dword [edx + 0x14]
call fcn.00404d30
jmp 0x4207b7
lea eax, [ebp - 0x10]
mov edx, dword [0x53b73c]
mov edx, dword [edx]
mov edx, dword [edx + 0x18]
call fcn.00404d30
lea eax, [ebp - 0x10]
mov edx, ebx
sar edx, 1
jns 0x4207c3
adc edx, 0
mov edx, dword [edx*4 + 0x53a538]
call fcn.00404f20
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 0x10]
call fcn.00404f04
push eax
call fcn.00406b1c
mov esi, eax
cmp esi, 0xffffffff
je 0x42093d
mov eax, 0x40
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0x40
push edi
push esi
call fcn.00406d8c
test eax, eax
je 0x420930
mov eax, edi
cmp word [eax], 0x5a4d
jne 0x420930
push 0
push 0
mov eax, dword [eax + 0x3c]
push eax
push esi
call fcn.00406dec
mov eax, edi
call fcn.00403288
mov eax, 0x18
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0x18
push edi
push esi
call fcn.00406d8c
test eax, eax
je 0x420930
mov eax, edi
cmp dword [eax], 0x4550
jne 0x420930
add eax, 4
mov dword [ebp - 0xc], eax
cmp byte [ebp - 1], 0
je 0x4208ce
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x8664
jne 0x4208ce
mov eax, edi
call fcn.00403288
mov eax, 0xf0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0xf0
push edi
push esi
call fcn.00406d8c
test eax, eax
je 0x4208ce
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 4]
jne 0x4208ce
mov eax, dword [eax + 0x10]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404d0c
cmp byte [ebp - 1], 0
jne 0x420930
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x14c
jb 0x420930
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x150
ja 0x420930
mov eax, edi
call fcn.00403288
mov eax, 0xe0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0xe0
push edi
push esi
call fcn.00406d8c
test eax, eax
je 0x420930
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 4]
jne 0x420930
mov eax, dword [eax + 0x10]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404d0c
mov eax, edi
call fcn.00403288
push esi
call fcn.00406ad4
mov eax, dword [ebp + 8]
mov eax, dword [eax]
xor edx, edx
call fcn.0040502c
jne 0x420955
inc ebx
cmp ebx, 0x19
jne 0x42077d
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x51dd72
lea eax, [ebp - 0x10]
call fcn.00404cd0
ret
Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
pop eax
nop
nop
nop
nop
nop
nop
add eax, 0x403ac5
nop
sub eax, 0x403a6b
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x42e030
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
jne 0x42e01e
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp fcn.00401219
Function at 0x4027d7
Capabilities:
Query environment variable

Disassembly:
push ecx
push ecx
mov eax, dword [0x45b0ec]
push ebx
push ebp
mov ebp, dword [sym.imp.kernel32.dll_GetEnvironmentStringsW]
push esi
push edi
sub ebx, ebx
sub esi, esi
sub edi, edi
cmp eax, ebx
jne 0x402825
call ebp
push eax
pop esi
cmp esi, ebx
je 0x402806
mov dword [0x45b0ec], 1
jmp 0x40282e
call dword [sym.imp.kernel32.dll_GetEnvironmentStrings]
push eax
pop edi
cmp edi, ebx
je 0x402900
mov dword [0x45b0ec], 2
jmp 0x4028b4
cmp eax, 1
jne 0x4028af
cmp esi, ebx
jne 0x40283e
call ebp
push eax
pop esi
cmp esi, ebx
je 0x402900
cmp word [esi], bx
push esi
pop eax
je 0x402853
inc eax
inc eax
cmp word [eax], bx
jne 0x402845
inc eax
inc eax
cmp word [eax], bx
jne 0x402845
sbb eax, esi
mov edi, dword [sym.imp.kernel32.dll_WideCharToMultiByte]
sar eax, 1
push ebx
push ebx
inc eax
push ebx
push ebx
push eax
push esi
push ebx
push ebx
mov dword [esp + 0x34], eax
call edi
mov ebp, eax
cmp ebp, ebx
je 0x4028a4
push ebp
call fcn.004038f0
cmp eax, ebx
pop ecx
mov dword [esp + 0x10], eax
je 0x4028a4
push ebx
push ebx
push ebp
push eax
push dword [esp + 0x24]
push esi
push ebx
push ebx
call edi
or eax, eax
jne 0x4028a0
push dword [esp + 0x10]
call fcn.004037ca
pop ecx
mov dword [esp + 0x10], ebx
mov ebx, dword [esp + 0x10]
push esi
call dword [sym.imp.kernel32.dll_FreeEnvironmentStringsW]
push ebx
pop eax
jmp 0x402902
cmp eax, 2
jne 0x402900
cmp edi, ebx
jne 0x4028c4
call dword [sym.imp.kernel32.dll_GetEnvironmentStrings]
push eax
pop edi
cmp edi, ebx
je 0x402900
cmp byte [edi], bl
push edi
pop eax
je 0x4028d4
inc eax
cmp byte [eax], bl
jne 0x4028ca
inc eax
cmp byte [eax], bl
jne 0x4028ca
sbb eax, edi
inc eax
mov ebp, eax
push ebp
call fcn.004038f0
push eax
pop esi
pop ecx
cmp esi, ebx
jne 0x4028ea
sub esi, esi
jmp 0x4028f5
push ebp
push edi
push esi
call fcn.004039f0
add esp, 0xc
push edi
call dword [sym.imp.kernel32.dll_FreeEnvironmentStringsA]
push esi
pop eax
jmp 0x402902
sub eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret
Function at 0x402cf9
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
sub ecx, ecx
mov eax, 0x45aa48
cmp edx, dword [eax]
je 0x402d1b
add eax, 8
inc ecx
cmp eax, 0x45aad8
jl 0x402d0c
push esi
push ecx
pop esi
shl esi, 3
cmp edx, dword [esi + 0x45aa48]
jne 0x402e49
mov eax, dword [0x45af90]
cmp eax, 1
je 0x402e23
or eax, eax
jne 0x402d4c
cmp dword [0x45a710], 1
je 0x402e23
cmp edx, 0xfc
je 0x402e49
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.kernel32.dll_GetModuleFileNameA]
or eax, eax
jne 0x402d83
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00403800
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00403970
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x402dc6
lea eax, [ebp - 0x1a4]
push eax
call fcn.00403970
push eax
pop edi
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4063b8
push edi
call fcn.00404600
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.0t73dx08i4uabv_n_nProgram:
push eax
call fcn.00403800
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00403810
lea eax, [ebp - 0xa0]
push 0x406398
push eax
call fcn.00403810
push dword [esi + 0x45aa4c]
lea eax, [ebp - 0xa0]
push eax
call fcn.00403810
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0040456e
add esp, 0x2c
pop edi
jmp 0x402e49
lea eax, [ebp + 8]
lea esi, [esi + 0x45aa4c]
push 0
push eax
push dword [esi]
call fcn.00403970
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.kernel32.dll_GetStdHandle]
push eax
call dword [sym.imp.kernel32.dll_WriteFile]
pop esi
leave
ret
Function at 0x404850
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
cmp esi, dword [0x45b480]
jae 0x404a2d
push esi
pop eax
and esi, 0x1f
sar eax, 5
shl esi, 3
lea ebx, [eax*4 + 0x45b380]
mov eax, dword [eax*4 + 0x45b380]
add eax, esi
mov dl, byte [eax + 4]
test dl, 1
je 0x404a2d
and dword [ebp - 8], 0
mov edi, dword [ebp + 0xc]
cmp dword [ebp + 0x10], 0
push edi
pop ecx
je 0x404905
test dl, 2
jne 0x404905
test dl, 0x48
je 0x4048c5
mov al, byte [eax + 5]
cmp al, 0xa
je 0x4048c5
dec dword [ebp + 0x10]
mov byte [edi], al
mov eax, dword [ebx]
lea ecx, [edi + 1]
mov dword [ebp - 8], 1
mov byte [eax + esi + 5], 0xa
lea eax, [ebp - 0xc]
push 0
push eax
mov eax, dword [ebx]
push dword [ebp + 0x10]
push ecx
push dword [eax + esi]
call dword [sym.imp.kernel32.dll_ReadFile]
or eax, eax
jne 0x404918
call dword [sym.imp.kernel32.dll_GetLastError]
push 5
pop ecx
cmp eax, ecx
jne 0x404900
mov dword [0x45af98], 9
mov dword [0x45af9c], ecx
jmp 0x404a3e
cmp eax, 0x6d
jne 0x40490c
sub eax, eax
jmp 0x404a41
push eax
call fcn.00405359
pop ecx
jmp 0x404a3e
mov eax, dword [ebx]
mov edx, dword [ebp - 0xc]
add dword [ebp - 8], edx
lea ecx, [eax + esi + 4]
mov al, byte [eax + esi + 4]
test al, 0x80
je 0x404a28
or edx, edx
je 0x40493d
cmp byte [edi], 0xa
jne 0x40493d
or al, 4
jmp 0x40493f
and al, 0xfb
mov byte [ecx], al
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
mov dword [ebp + 0x10], eax
add ecx, eax
cmp eax, ecx
mov dword [ebp - 8], ecx
jae 0x404a22
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x404a12
cmp al, 0xd
je 0x404973
mov byte [edi], al
inc edi
inc dword [ebp + 0x10]
jmp 0x404a04
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x404991
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x404988
add dword [ebp + 0x10], 2
jmp 0x4049e6
mov byte [edi], 0xd
inc edi
mov dword [ebp + 0x10], eax
jmp 0x404a04
lea eax, [ebp - 0xc]
push 0
push eax
inc dword [ebp + 0x10]
lea eax, [ebp - 1]
push 1
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.kernel32.dll_ReadFile]
or eax, eax
jne 0x4049b9
call dword [sym.imp.kernel32.dll_GetLastError]
or eax, eax
jne 0x404a00
cmp dword [ebp - 0xc], 0
je 0x404a00
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x48
je 0x4049db
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x4049e6
mov byte [edi], 0xd
mov ecx, dword [ebx]
inc edi
mov byte [ecx + esi + 5], al
jmp 0x404a04
cmp edi, dword [ebp + 0xc]
jne 0x4049eb
cmp byte [ebp - 1], 0xa
jne 0x4049eb
mov byte [edi], 0xa
jmp 0x404a03
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004052bf
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x404a04
mov byte [edi], 0xd
inc edi
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x404957
jmp 0x404a22
mov eax, dword [ebx]
lea esi, [eax + esi + 4]
mov al, byte [esi]
test al, 0x40
jne 0x404a22
or al, 2
mov byte [esi], al
sub edi, dword [ebp + 0xc]
mov dword [ebp - 8], edi
mov eax, dword [ebp - 8]
jmp 0x404a41
and dword [0x45af9c], 0
mov dword [0x45af98], 9
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x404b52
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov ecx, dword [ebp + 8]
push ebx
cmp ecx, dword [0x45b480]
push esi
push edi
jae 0x404ce6
push ecx
pop eax
push ecx
pop esi
sar eax, 5
and esi, 0x1f
lea ebx, [eax*4 + 0x45b380]
shl esi, 3
mov eax, dword [ebx]
mov al, byte [eax + esi + 4]
test al, 1
je 0x404ce6
sub edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 8], edi
mov dword [ebp - 0x10], edi
jne 0x404ba3
sub eax, eax
jmp 0x404cfa
test al, 0x20
je 0x404bb3
push 2
push edi
push ecx
call fcn.004052bf
add esp, 0xc
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x404c82
mov eax, dword [ebp + 0xc]
cmp dword [ebp + 0x10], edi
mov dword [ebp - 4], eax
mov dword [ebp + 8], edi
jbe 0x404cba
lea eax, [ebp - 0x414]
mov ecx, dword [ebp - 4]
sub ecx, dword [ebp + 0xc]
cmp ecx, dword [ebp + 0x10]
jae 0x404c0d
mov ecx, dword [ebp - 4]
inc dword [ebp - 4]
mov cl, byte [ecx]
cmp cl, 0xa
jne 0x404bf8
inc dword [ebp - 0x10]
mov byte [eax], 0xd
inc eax
mov byte [eax], cl
inc eax
push eax
pop ecx
lea edx, [ebp - 0x414]
sbb ecx, edx
cmp ecx, 0x400
jl 0x404bd9
push eax
pop edi
lea eax, [ebp - 0x414]
sbb edi, eax
lea eax, [ebp - 0xc]
push 0
push eax
lea eax, [ebp - 0x414]
push edi
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.kernel32.dll_WriteFile]
or eax, eax
je 0x404c77
mov eax, dword [ebp - 0xc]
add dword [ebp - 8], eax
cmp eax, edi
jl 0x404c49
mov eax, dword [ebp - 4]
sub eax, dword [ebp + 0xc]
cmp eax, dword [ebp + 0x10]
jb 0x404bd3
sub edi, edi
mov eax, dword [ebp - 8]
cmp eax, edi
jne 0x404ce1
cmp dword [ebp + 8], edi
je 0x404cba
push 5
pop eax
cmp dword [ebp + 8], eax
jne 0x404caf
mov dword [0x45af98], 9
mov dword [0x45af9c], eax
jmp 0x404cf7
call dword [sym.imp.kernel32.dll_GetLastError]
mov dword [ebp + 8], eax
jmp 0x404c49
lea ecx, [ebp - 0xc]
push edi
push ecx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.kernel32.dll_WriteFile]
or eax, eax
je 0x404ca4
mov eax, dword [ebp - 0xc]
mov dword [ebp + 8], edi
mov dword [ebp - 8], eax
jmp 0x404c4b
call dword [sym.imp.kernel32.dll_GetLastError]
mov dword [ebp + 8], eax
jmp 0x404c4b
push dword [ebp + 8]
call fcn.00405359
pop ecx
jmp 0x404cf7
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x404ccf
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0x1a
je 0x404b9c
mov dword [0x45af98], 0x1c
mov dword [0x45af9c], edi
jmp 0x404cf7
sub eax, dword [ebp - 0x10]
jmp 0x404cfa
and dword [0x45af9c], 0
mov dword [0x45af98], 9
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401000
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x20
mov al, 0x45
mov cl, 0x6c
mov byte [esp + 0x11], al
mov byte [esp + 0x14], al
mov al, 0x4c
mov byte [esp + 0x1a], cl
mov byte [esp + 0x15], al
mov byte [esp], al
mov byte [esp + 4], al
mov byte [esp + 0x1b], cl
mov al, 0x72
mov cl, 0x61
push ebp
mov byte [esp + 0xb], al
mov byte [esp + 0xd], al
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov byte [esp + 0xa], cl
mov byte [esp + 0x10], cl
lea eax, [esp + 8]
push edi
lea ecx, [esp + 0x1c]
mov dl, 0x64
push eax
push ecx
mov byte [esp + 0x24], 0x4b
mov byte [esp + 0x26], 0x52
mov byte [esp + 0x27], 0x4e
mov byte [esp + 0x2a], 0x33
mov byte [esp + 0x2b], 0x32
mov byte [esp + 0x2c], 0x2e
mov byte [esp + 0x2d], dl
mov byte [esp + 0x30], 0
mov byte [esp + 0x15], 0x6f
mov byte [esp + 0x17], dl
mov byte [esp + 0x19], 0x69
mov byte [esp + 0x1a], 0x62
mov byte [esp + 0x1e], 0x79
mov byte [esp + 0x1f], 0x41
mov byte [esp + 0x20], 0
call esi
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebp
mov edi, eax
mov eax, dword [esp + 0x30]
test eax, eax
je 0x4010bb
mov edx, dword [esp + 0x38]
push edx
push eax
call ebp
pop edi
pop esi
pop ebp
add esp, 0x20
ret
mov eax, dword [esp + 0x34]
push eax
call esi
test eax, eax
jne 0x4010d1
mov ecx, dword [esp + 0x34]
push ecx
call edi
test eax, eax
je 0x4010e0
mov edx, dword [esp + 0x38]
push edx
push eax
call ebp
pop edi
pop esi
pop ebp
add esp, 0x20
ret
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x20
ret

Function at 0x401140
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x20
mov al, 0x45
mov cl, 0x73
mov byte [esp + 1], al
mov byte [esp + 4], al
mov al, 0x6c
mov byte [esp + 0x18], cl
mov byte [esp + 0xa], al
mov byte [esp + 0xb], al
mov al, 0x65
mov byte [esp + 0x19], cl
mov byte [esp + 0x11], al
mov byte [esp + 0x17], al
mov byte [esp + 0x1b], al
lea eax, [esp + 0x10]
lea ecx, [esp]
push eax
push ecx
push 0
mov byte [esp + 0xc], 0x4b
mov byte [esp + 0xe], 0x52
mov byte [esp + 0xf], 0x4e
mov byte [esp + 0x11], 0x4c
mov byte [esp + 0x12], 0x33
mov byte [esp + 0x13], 0x32
mov byte [esp + 0x14], 0x2e
mov byte [esp + 0x15], 0x64
mov byte [esp + 0x18], 0
mov byte [esp + 0x1c], 0x47
mov byte [esp + 0x1e], 0x74
mov byte [esp + 0x1f], 0x50
mov byte [esp + 0x20], 0x72
mov byte [esp + 0x21], 0x6f
mov byte [esp + 0x22], 0x63
mov byte [esp + 0x26], 0x48
mov byte [esp + 0x28], 0x61
mov byte [esp + 0x29], 0x70
mov byte [esp + 0x2a], 0
call fcn.00401000
mov edx, dword [esp + 0x30]
add esp, 0xc
push edx
push 0
call eax
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
add esp, 0x20
ret