joyce8/EMBER2024-capa huggingface dataset:
Function at 0x422126
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x42dc00
call fcn.00428e0c
mov edi, 0x94
mov eax, edi
call fcn.00421d20
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x4363fc], ecx
mov eax, dword [esi + 4]
mov dword [0x436408], eax
mov edx, dword [esi + 8]
mov dword [0x43640c], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x436400], esi
cmp ecx, 2
je 0x422186
or esi, 0x8000
mov dword [0x436400], esi
shl eax, 8
add eax, edx
mov dword [0x436404], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x4221c1
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4221c1
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x4221d9
cmp eax, 0x20b
je 0x4221c6
mov dword [ebp - 0x1c], esi
jmp 0x4221ed
cmp dword [ecx + 0x84], 0xe
jbe 0x4221c1
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x4221e7
cmp dword [ecx + 0x74], 0xe
jbe 0x4221c1
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push esi
call fcn.00423377
pop ecx
test eax, eax
jne 0x422219
cmp dword [0x4363ec], 1
jne 0x422206
call fcn.004290d9
push 0x1c
call fcn.00428f61
push 0xff
call fcn.00422302
pop ecx
pop ecx
call fcn.004296d7
mov dword [ebp - 4], esi
call fcn.00424866
test eax, eax
jge 0x422232
push 0x1b
call fcn.00422101
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x437a34], eax
call fcn.004295b5
mov dword [0x4363e4], eax
call fcn.00429513
test eax, eax
jge 0x422258
push 8
call fcn.00422101
pop ecx
call fcn.004292e0
test eax, eax
jge 0x422269
push 9
call fcn.00422101
pop ecx
push 1
call fcn.00422332
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x42227f
push eax
call fcn.00422101
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.00429283
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x4222a0
movzx eax, word [ebp - 0x40]
jmp 0x4222a3
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.0041b040
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x4222c1
push edi
call fcn.0042245d
call fcn.0042247f
jmp 0x4222f3
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.00428e47
ret
Function at 0x42239c
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
inc esi
cmp dword [0x43643c], esi
push edi
jne 0x4223bc
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp dword [ebp + 0xc], 0
mov al, byte [ebp + 0x10]
mov dword [0x436438], esi
mov byte [0x436434], al
jne 0x422422
mov ecx, dword [0x437a2c]
test ecx, ecx
je 0x422403
mov eax, dword [0x437a28]
sub eax, 4
cmp eax, ecx
jmp 0x4223fc
mov eax, dword [eax]
test eax, eax
je 0x4223ee
call eax
mov eax, dword [0x437a28]
sub eax, 4
cmp eax, dword [0x437a2c]
mov dword [0x437a28], eax
jae 0x4223e6
mov eax, 0x434030
mov esi, 0x434038
cmp eax, esi
mov edi, eax
jae 0x422422
mov eax, dword [edi]
test eax, eax
je 0x42241b
call eax
add edi, 4
cmp edi, esi
jb 0x422413
mov eax, 0x43403c
mov esi, 0x434044
cmp eax, esi
mov edi, eax
jae 0x422441
mov eax, dword [edi]
test eax, eax
je 0x42243a
call eax
add edi, 4
cmp edi, esi
jb 0x422432
cmp dword [ebp + 0x10], 0
pop edi
pop esi
jne 0x42245b
push dword [ebp + 8]
mov dword [0x43643c], 1
call fcn.00422302
pop ebp
ret
Function at 0x422e21
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [ebp + 8]
cmp esi, dword [0x4378e8]
push edi
jae 0x422ff8
mov eax, esi
sar eax, 5
lea edi, [eax*4 + 0x437900]
mov eax, dword [edi]
and esi, 0x1f
shl esi, 3
add eax, esi
mov dl, byte [eax + 4]
test dl, 1
je 0x422ff8
and dword [ebp - 0xc], 0
cmp dword [ebp + 0x10], 0
mov ebx, dword [ebp + 0xc]
mov ecx, ebx
je 0x422ecc
test dl, 2
jne 0x422ecc
test dl, 0x48
je 0x422e96
cmp byte [eax + 5], 0xa
je 0x422e96
mov eax, dword [edi]
mov al, byte [eax + esi + 5]
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea ecx, [ebx + 1]
mov dword [ebp - 0xc], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push ecx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x422edf
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop ecx
cmp eax, ecx
jne 0x422ec7
mov dword [0x4363f4], ecx
jmp 0x422fff
cmp eax, 0x6d
jne 0x422ed3
xor eax, eax
jmp 0x42300c
push eax
call fcn.00428c51
pop ecx
jmp 0x423009
mov eax, dword [ebp - 0x10]
mov ecx, dword [edi]
add dword [ebp - 0xc], eax
test byte [ecx + esi + 4], 0x80
je 0x422ff3
test eax, eax
je 0x422f06
cmp byte [ebx], 0xa
jne 0x422f06
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x422f0f
mov eax, dword [edi]
lea eax, [eax + esi + 4]
and byte [eax], 0xfb
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0xc]
add ecx, eax
cmp eax, ecx
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], ecx
jae 0x422fed
mov eax, dword [ebp - 8]
mov al, byte [eax]
cmp al, 0x1a
je 0x422fdd
cmp al, 0xd
je 0x422f41
mov byte [ebx], al
inc ebx
inc dword [ebp - 8]
jmp 0x422fcf
dec ecx
cmp dword [ebp - 8], ecx
jae 0x422f5b
mov eax, dword [ebp - 8]
inc eax
cmp byte [eax], 0xa
jne 0x422f56
add dword [ebp - 8], 2
jmp 0x422faf
mov dword [ebp - 8], eax
jmp 0x422fcb
inc dword [ebp - 8]
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [edi]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x422f83
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x422fcb
cmp dword [ebp - 0x10], 0
je 0x422fcb
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x422fa4
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x422faf
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x422fce
cmp ebx, dword [ebp + 0xc]
jne 0x422fb4
cmp byte [ebp - 1], 0xa
jne 0x422fb4
mov byte [ebx], 0xa
jmp 0x422fce
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0042a129
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x422fcf
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 0xc]
cmp dword [ebp - 8], ecx
jb 0x422f25
jmp 0x422fed
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x422fed
lea esi, [eax + esi + 4]
or byte [esi], 2
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 0xc], ebx
mov eax, dword [ebp - 0xc]
jmp 0x42300c
and dword [0x4363f4], 0
mov dword [0x4363f0], 9
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x424a11
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a4]
sub esp, 0x424
mov eax, dword [0x43450c]
mov ecx, dword [ebp + 0x3ac]
push ebx
push esi
xor eax, ebp
cmp ecx, dword [0x4378e8]
push edi
mov edi, dword [ebp + 0x3b0]
mov dword [ebp + 0x3a0], eax
mov dword [ebp - 0x78], edi
jae 0x424bb3
mov eax, ecx
sar eax, 5
lea ebx, [eax*4 + 0x437900]
mov eax, dword [ebx]
mov esi, ecx
and esi, 0x1f
shl esi, 3
mov al, byte [eax + esi + 4]
test al, 1
mov dword [ebp - 0x80], ebx
je 0x424bb3
and dword [ebp - 0x70], 0
and dword [ebp - 0x7c], 0
cmp dword [ebp + 0x3b4], 0
jne 0x424a87
xor eax, eax
jmp 0x424bc7
test al, 0x20
je 0x424a9a
push 2
push 0
push 0
push ecx
call fcn.0042a129
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x424b2f
and dword [ebp - 0x68], 0
cmp dword [ebp + 0x3b4], 0
mov dword [ebp - 0x6c], edi
jbe 0x424b90
mov ecx, dword [ebp - 0x6c]
xor edi, edi
sub ecx, dword [ebp - 0x78]
lea eax, [ebp - 0x64]
cmp ecx, dword [ebp + 0x3b4]
jae 0x424af4
mov edx, dword [ebp - 0x6c]
inc dword [ebp - 0x6c]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x424ae5
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc edi
mov ebx, dword [ebp - 0x80]
mov byte [eax], dl
inc eax
inc edi
cmp edi, 0x400
jl 0x424ac7
mov edi, eax
lea eax, [ebp - 0x64]
sub edi, eax
push 0
lea eax, [ebp - 0x74]
push eax
push edi
lea eax, [ebp - 0x64]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x424b54
mov eax, dword [ebp - 0x74]
add dword [ebp - 0x70], eax
cmp eax, edi
jl 0x424b5d
mov eax, dword [ebp - 0x6c]
sub eax, dword [ebp - 0x78]
cmp eax, dword [ebp + 0x3b4]
jb 0x424abc
jmp 0x424b5d
push 0
lea ecx, [ebp - 0x74]
push ecx
push dword [ebp + 0x3b4]
push edi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x424b54
mov eax, dword [ebp - 0x74]
and dword [ebp - 0x68], 0
mov dword [ebp - 0x70], eax
jmp 0x424b5d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x70]
test eax, eax
jne 0x424bae
cmp dword [ebp - 0x68], eax
je 0x424b8d
push 5
pop eax
cmp dword [ebp - 0x68], eax
jne 0x424b82
mov dword [0x4363f0], 9
mov dword [0x4363f4], eax
jmp 0x424bc4
push dword [ebp - 0x68]
call fcn.00428c51
pop ecx
jmp 0x424bc4
mov edi, dword [ebp - 0x78]
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x424ba2
cmp byte [edi], 0x1a
je 0x424a80
mov dword [0x4363f0], 0x1c
jmp 0x424bbd
sub eax, dword [ebp - 0x7c]
jmp 0x424bc7
mov dword [0x4363f0], 9
and dword [0x4363f4], 0
or eax, 0xffffffff
mov ecx, dword [ebp + 0x3a0]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00428b59
add ebp, 0x3a4
leave
ret
Function at 0x428d28
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.00421d20
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x428dc3
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x4363fc]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x428dc3
cmp eax, 1
je 0x428de4
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x428dc3
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x428d90
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x428dbf
xor eax, eax
inc eax
jmp 0x428e03
cmp edi, eax
jae 0x428dc7
xor eax, eax
jmp 0x428e03
cmp eax, esi
jae 0x428dce
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x4363fc]
jmp 0x428de7
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x428f61
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x90]
sub esp, 0x110
mov eax, dword [0x43450c]
mov ecx, dword [ebp + 0x98]
push ebx
xor eax, ebp
push esi
mov dword [ebp + 0x8c], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x4349a8]
je 0x428f98
inc eax
cmp eax, 0x13
jb 0x428f89
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x4349a8]
jne 0x4290bb
mov eax, dword [0x4363ec]
cmp eax, 1
je 0x429096
cmp eax, edx
jne 0x428fc8
cmp dword [0x4344b4], 1
je 0x429096
cmp ecx, 0xfc
je 0x4290bb
push 0x104
lea eax, [ebp - 0x7c]
push eax
push edx
mov byte [ebp + 0x88], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x428ffe
lea eax, [ebp - 0x7c]
push str._program_name_unknown_
push eax
call fcn.00428a30
pop ecx
pop ecx
lea edi, [ebp - 0x7c]
mov eax, edi
push eax
call fcn.004272c0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x429032
mov eax, edi
push eax
call fcn.004272c0
mov edi, eax
lea eax, [ebp - 0x7c]
sub eax, 0x3b
push 3
add edi, eax
push 0x432108
push edi
call fcn.00420940
add esp, 0x10
push edi
call fcn.004272c0
push dword [esi + 0x4349ac]
mov ebx, eax
call fcn.004272c0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00421d20
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00428a30
push edi
push ebx
call fcn.00428a40
push 0x4320e8
push ebx
call fcn.00428a40
push dword [esi + 0x4349ac]
push ebx
call fcn.00428a40
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.0042bcea
add esp, 0x2c
jmp 0x4290bb
push edx
lea eax, [ebp - 0x80]
push eax
lea esi, [esi + 0x4349ac]
push dword [esi]
call fcn.004272c0
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]
lea esp, [ebp - 0x8c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x8c]
xor ecx, ebp
call fcn.00428b59
add ebp, 0x90
leave
ret
Function at 0x42be7f
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.00421d20
mov eax, dword [0x43450c]
push ebx
mov ebx, dword [ebp + 8]
xor eax, ebp
push esi
xor esi, esi
cmp ebx, dword [0x4378e8]
mov dword [ebp - 4], eax
jae 0x42bfca
mov eax, ebx
sar eax, 5
mov eax, dword [eax*4 + 0x437900]
mov ecx, ebx
and ecx, 0x1f
test byte [eax + ecx*8 + 4], 1
je 0x42bfca
push 1
push esi
push ebx
call fcn.0042249d
add esp, 0xc
cmp eax, 0xffffffff
mov dword [ebp - 0x1008], eax
je 0x42bfd4
push 2
push esi
push ebx
call fcn.0042249d
add esp, 0xc
cmp eax, 0xffffffff
je 0x42bfd4
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x42bf74
push 0x1000
lea eax, [ebp - 0x1004]
push esi
push eax
call fcn.00428b70
push 0x8000
push ebx
call fcn.0042c869
add esp, 0x14
mov dword [ebp - 0x100c], eax
mov eax, 0x1000
cmp edi, eax
jge 0x42bf30
mov eax, edi
push eax
lea eax, [ebp - 0x1004]
push eax
push ebx
call fcn.00424a11
add esp, 0xc
cmp eax, 0xffffffff
je 0x42bf4e
sub edi, eax
test edi, edi
jg 0x42bf25
jmp 0x42bf64
cmp dword [0x4363f4], 5
jne 0x42bf61
mov dword [0x4363f0], 0xd
or esi, 0xffffffff
push dword [ebp - 0x100c]
push ebx
call fcn.0042c869
pop ecx
pop ecx
jmp 0x42bfb4
jge 0x42bfb4
push 0
push dword [ebp + 0xc]
push ebx
call fcn.0042249d
push ebx
call fcn.004298ed
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov esi, eax
neg esi
sbb esi, esi
neg esi
dec esi
cmp esi, 0xffffffff
jne 0x42bfb4
mov dword [0x4363f0], 0xd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x4363f4], eax
push 0
push dword [ebp - 0x1008]
push ebx
call fcn.0042249d
add esp, 0xc
mov eax, esi
pop edi
jmp 0x42bfd7
mov dword [0x4363f0], 9
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00428b59
leave
ret
Function at 0xc3e1e3
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
je 0x85f578
mov eax, dword [eax + ecx + 0x7c]
push ebx
clc
push edi
mov dword [ebp - 0x10], eax
clc
mov dword [ebp - 8], 0xffffffff
clc
cmp esi, 0xffff
ja 0xccef0d
mov eax, esi
test eax, edx
clc
sub eax, dword [edx + ecx + 0x10]
jmp 0xc8a3d3
jne 0x85f578
mov edx, dword [eax + ecx + 0x78]
test bp, si
stc
mov dword [ebp - 4], edx
test edx, edx
jmp 0x791647
mov eax, dword [ecx + 0x3c]
cmp esp, 0x3a9e0388
cmp ecx, edx
cmp dword [eax + ecx], 0x4550
jmp 0x7c3dab
lea eax, [eax + ecx]
test dh, 0x68
cmc
xor ebx, ebx
jmp 0x85ecef
mov eax, dword [ebp + 8]
btc edx, 0x59
bsr dx, di
mov ecx, dword [ebp - 4]
movsx edx, si
mov edx, dword [ecx + eax + 0x24]
xchg cx, cx
lea ecx, [edx + esi*2]
rcl edx, 0x1a
movzx edx, word [ecx + eax]
cmp si, 0x6184
mov dword [ebp - 8], edx
and cx, 0x734c
mov ecx, eax
or ah, 0x88
xor edx, 0x729441b0
mov edx, dword [ebp - 4]
dec eax
sbb al, 0x37
bswap eax
mov eax, dword [ebp - 8]
test dx, si
cmp eax, dword [edx + ecx + 0x14]
jmp 0xc32e0e
dec edi
jmp 0xbce838
je 0x7cd156
sub eax, eax
pop esi
jmp 0xbf8c68
je 0x84e6df
mov eax, dword [edx + ecx + 0x20]
stc
test bx, 0x78bb
jmp 0x82efa2
jle 0x84e69d
lea ebx, [esi + 1]
btr ecx, 0x7b
mov ecx, dword [ebp + 8]
cmp ebx, edi
jmp 0xc00656
mov dword [ebp - 0xc], eax
js 0x84e6df
jmp 0xc4f4e9
mov esp, ebp
pop ebp
jmp 0xc73813
jle 0xc4f4e6
jmp 0x84e6d7
push edx
mov dx, bp
mov edx, dword [ebp + 0xc]
clc
add eax, ecx
jmp 0xcabfb5
push ebp
mov ebp, esp
xor cx, ax
mov ecx, dword [ebp + 8]
lea esp, [esp - 0x114]
push esi
stc
test ecx, ecx
jmp 0xcb3801
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp + 0x10]
lea esi, [edi + ebx]
sar esi, 1
cmp si, si
mov eax, dword [eax + esi*4]
jmp 0xc1b57c
jmp 0x84e6df
ret
mov dword [ebp - 8], eax
jmp 0xc5055b
call fcn.0086b877
add esp, 4
clc
test eax, eax
jmp 0xcdfc06
je 0x85f578
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x85f578
mov eax, 0x5a4d
stc
cmp esi, 0xcad645a
cmp esp, ebp
cmp word [ecx], ax
jmp 0x85f572
mov edi, dword [edx + ecx + 0x18]
test edi, edi
jmp 0x88dba6
jns 0xbb3bd9
lea edi, [esi - 1]
jmp 0xbb3be6

Function at 0xc363bd
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.00c363bd
ret
Function at 0x431000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
push 4
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x431072
nop
mov ebx, 0x40915c
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x3ead62d9
nop
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
loop 0x431060
nop
nop
nop
nop
nop
mov eax, section..data
cmp eax, 0
nop
nop
nop
nop
je 0x4310d2
nop
nop
nop
nop
mov ebx, 0x42f3f8
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
pop eax
nop
nop
nop
nop
nop
nop
mov esi, 0x3dac58d4
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x4310c0
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x1042e058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x1042e1a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x1042e07e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1042e06a
add dl, dl
jne 0x1042e089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1042e0dc
xor eax, eax
add dl, dl
jne 0x1042e096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1042e17d
add dl, dl
jne 0x1042e0a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1042e0b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1042e0bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1042e0c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x1042e0d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x1042e075
mov eax, 1
add dl, dl
jne 0x1042e0ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1042e0f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1042e0e1
sub eax, ebx
mov ebx, 1
jne 0x1042e128
mov ecx, 1
add dl, dl
jne 0x1042e10e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1042e119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1042e105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1042e075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1042e13f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1042e14a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1042e136
cmp eax, 0x7d00
jae 0x1042e16d
cmp eax, 0x500
jb 0x1042e168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1042e075
cmp eax, 0x7f
ja 0x1042e170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1042e075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x1042e19e
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 0x1042e075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x401440
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
mov ebx, dword [ebp + 8]
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll_strlen]
mov esi, eax
xor eax, eax
test esi, esi
je 0x401498
cmp byte [ebx + esi - 1], 0xa
je 0x40146c
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x405084], eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], esi
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll_fwrite]
add esp, 0x10
pop ebx
pop esi
pop ebp
ret
Function at 0x401ab0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xe0
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [esp], eax
call dbg.__wine_dbg_get_channel_flags
movzx eax, al
bt eax, esi
jae 0x401c74
mov edx, dword fs:[0x18]
xor eax, eax
mov edi, dword [0x405084]
cmp dword [edx + 0x24], edi
je 0x401b97
test byte [0x402018], 8
jne 0x401c20
lea ebx, [ebp - 0xd4]
mov edi, ebx
test byte [0x402028], 8
jne 0x401be3
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
mov dword [esp + 4], str._04x:
mov dword [esp], edi
mov dword [esp + 8], eax
call dbg.sprintf
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x401b39
cmp esi, 3
jbe 0x401ba2
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov ecx, ebx
mov edi, eax
mov esi, dword [ecx]
add ecx, 4
lea edx, [esi - 0x1010101]
not esi
and edx, esi
and edx, 0x80808080
je 0x401b4a
mov esi, edx
mov dword [esp + 0xc], edi
shr esi, 0x10
test edx, 0x8080
mov dword [esp + 4], 1
cmove edx, esi
lea esi, [ecx + 2]
mov dword [esp], ebx
cmove ecx, esi
mov eax, edx
add al, dl
sbb ecx, 3
sub ecx, ebx
mov dword [esp + 8], ecx
call dword [sym.imp.ucrtbase.dll_fwrite]
add esp, 0xe0
pop ebx
pop esi
pop edi
pop ebp
ret
add eax, edi
mov edi, dword [ebp + 0x10]
mov dword [esp + 8], str._s:_s:_s
mov dword [esp], eax
mov dword [esp + 0x14], edi
mov edi, dword [ebp + 0xc]
lea edx, [edi + 1]
mov dword [esp + 0x10], edx
mov edx, dword [esi*4 + 0x4040e4]
mov dword [esp + 0xc], edx
mov edx, ebx
sub edx, eax
add edx, 0xc8
mov dword [esp + 4], edx
call sym._snprintf.constprop.2
jmp 0x401b39
mov dword [esp], 0x402028
call dbg.__wine_dbg_get_channel_flags
test al, 8
je 0x401b10
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x20]
mov dword [esp], edi
mov dword [esp + 4], str._04x:
mov dword [esp + 8], eax
call dbg.sprintf
add edi, eax
jmp 0x401b10
mov dword [esp], 0x402018
call dbg.__wine_dbg_get_channel_flags
test al, 8
je 0x401afb
call dword [sym.imp.kernel32.dll_GetTickCount]
mov edx, 0x10624dd3
lea ebx, [ebp - 0xd4]
mov dword [esp + 4], str._3u._03u:
mov ecx, eax
mul edx
mov dword [esp], ebx
shr edx, 6
imul eax, edx, 0x3e8
mov dword [esp + 8], edx
sub ecx, eax
mov dword [esp + 0xc], ecx
call dbg.sprintf
lea edi, [ebx + eax]
jmp 0x401b03
mov eax, 0xffffffff
jmp 0x401b97

Function at 0x401ce0
Capabilities:
Get process heap flags
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xc
mov dword [esp], 1
call sym.__configure_wide_argv
call sym.__initialize_wide_environment
call sym.___p___argc
mov ebx, dword [eax]
call sym.___p___wargv
mov esi, dword [eax]
call sym.__get_initial_wide_environment
mov edi, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov edx, dword [eax + 8]
mov eax, dword [edx + 0x3c]
cmp word [edx + eax + 0x5c], 2
sete dl
movzx edx, dl
add edx, 1
mov dword [esp], edx
call sym.__set_app_type
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call dbg.wmain
mov dword [esp], eax
call sym._exit
nop
nop
nop