joyce8/EMBER2024-capa huggingface dataset:
Function at 0x55d480
Capabilities:
Compute adler32 checksum

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0xc]
movzx ecx, di
shr edi, 0x10
test esi, esi
jne 0x55d49c
pop edi
mov eax, 1
pop esi
ret
push ebx
mov ebx, dword [esp + 0x18]
test ebx, ebx
jbe 0x55d5ac
push ebp
lea ebx, [ebx]
cmp ebx, 0x15b0
mov eax, ebx
jb 0x55d4bf
mov eax, 0x15b0
sub ebx, eax
cmp eax, 0x10
jl 0x55d56b
mov edx, eax
shr edx, 4
mov ebp, edx
neg ebp
shl ebp, 4
add eax, ebp
jmp 0x55d4e0
movzx ebp, byte [esi]
add ecx, ebp
movzx ebp, byte [esi + 1]
add edi, ecx
add ecx, ebp
movzx ebp, byte [esi + 2]
add edi, ecx
add ecx, ebp
movzx ebp, byte [esi + 3]
add edi, ecx
add ecx, ebp
movzx ebp, byte [esi + 4]
add edi, ecx
add ecx, ebp
movzx ebp, byte [esi + 5]
add edi, ecx
add ecx, ebp
movzx ebp, byte [esi + 6]
add edi, ecx
add ecx, ebp
movzx ebp, byte [esi + 7]
add edi, ecx
add ecx, ebp
movzx ebp, byte [esi + 8]
add edi, ecx
add ecx, ebp
movzx ebp, byte [esi + 9]
add edi, ecx
add ecx, ebp
movzx ebp, byte [esi + 0xa]
add edi, ecx
add ecx, ebp
movzx ebp, byte [esi + 0xb]
add edi, ecx
add ecx, ebp
movzx ebp, byte [esi + 0xc]
add edi, ecx
add ecx, ebp
movzx ebp, byte [esi + 0xd]
add edi, ecx
add ecx, ebp
movzx ebp, byte [esi + 0xe]
add edi, ecx
add ecx, ebp
movzx ebp, byte [esi + 0xf]
add edi, ecx
add ecx, ebp
add edi, ecx
add esi, 0x10
sub edx, 1
jne 0x55d4e0
test eax, eax
je 0x55d57f
nop
movzx edx, byte [esi]
add ecx, edx
add esi, 1
add edi, ecx
sub eax, 1
jne 0x55d570
mov eax, 0x80078071
mul ecx
shr edx, 0xf
imul edx, edx, 0xffff000f
add ecx, edx
mov eax, 0x80078071
mul edi
shr edx, 0xf
imul edx, edx, 0xffff000f
add edi, edx
test ebx, ebx
ja 0x55d4b0
pop ebp
mov eax, edi
pop ebx
shl eax, 0x10
pop edi
or eax, ecx
pop esi
ret
Function at 0x55ece0
Capabilities:
Read file on windows

Disassembly:
cmp dword [esi + 0x3c], 0
jne 0x55ed33
cmp dword [esi + 4], 0
jne 0x55ed3c
call fcn.005683f7
mov dword [eax], 0
mov eax, dword [esi + 0x40]
mov ecx, dword [esi + 0x44]
push eax
push 0x4000
push 1
push ecx
call fcn.00566160
add esp, 0x10
test eax, eax
mov dword [esi + 4], eax
jne 0x55ed37
mov edx, dword [esi + 0x40]
push edx
mov dword [esi + 0x3c], 1
call fcn.00566fe3
add esp, 4
test eax, eax
je 0x55ed33
mov dword [esi + 0x38], 0xffffffff
or eax, 0xffffffff
ret
mov eax, dword [esi + 0x44]
mov dword [esi], eax
mov eax, dword [esi]
add dword [esi + 4], 0xffffffff
mov cl, byte [eax]
add eax, 1
mov dword [esi], eax
movzx eax, cl
ret

Function at 0x55ed50
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, eax
push edi
mov edi, dword [esi + 4]
cmp edi, 2
jae 0x55edc5
test edi, edi
je 0x55ed69
mov eax, dword [esi]
mov ecx, dword [esi + 0x44]
mov dl, byte [eax]
mov byte [ecx], dl
call fcn.005683f7
mov dword [eax], 0
mov eax, dword [esi + 0x40]
mov ecx, edi
push eax
mov eax, dword [esi + 0x44]
mov edx, 0x4000
sar edx, cl
add eax, edi
push edx
push 1
push eax
call fcn.00566160
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x55edaf
mov ecx, dword [esi + 0x40]
push ecx
call fcn.00566fe3
add esp, 4
test eax, eax
je 0x55edaf
mov dword [esi + 0x38], 0xffffffff
add dword [esi + 4], edi
mov eax, dword [esi + 4]
cmp eax, 2
mov edx, dword [esi + 0x44]
mov dword [esi], edx
jae 0x55edc5
pop edi
mov dword [esi + 0x58], eax
pop esi
ret
mov eax, dword [esi]
cmp byte [eax], 0x1f
jne 0x55ee9e
cmp byte [eax + 1], 0x8b
jne 0x55ee9e
add dword [esi + 4], 0xfffffffe
add eax, 2
push ebx
mov dword [esi], eax
call fcn.0055ece0
mov edi, eax
call fcn.0055ece0
cmp edi, 8
mov ebx, eax
jne 0x55ee93
test bl, 0xe0
jne 0x55ee93
mov edi, 6
lea esp, [esp]
call fcn.0055ece0
sub edi, 1
jne 0x55ee10
test bl, 4
je 0x55ee43
call fcn.0055ece0
mov edi, eax
call fcn.0055ece0
shl eax, 8
add edi, eax
mov eax, edi
sub edi, 1
test eax, eax
je 0x55ee43
call fcn.0055ece0
cmp eax, 0xffffffff
jne 0x55ee30
test bl, 8
je 0x55ee56
call fcn.0055ece0
test eax, eax
je 0x55ee56
cmp eax, 0xffffffff
jne 0x55ee48
test bl, 0x10
je 0x55ee6e
jmp 0x55ee60
call fcn.0055ece0
test eax, eax
je 0x55ee6e
cmp eax, 0xffffffff
jne 0x55ee60
test bl, 2
je 0x55ee82
mov edi, 2
call fcn.0055ece0
sub edi, 1
jne 0x55ee78
mov ecx, dword [esi + 0x3c]
neg ecx
sbb ecx, ecx
pop ebx
and ecx, 0xfffffffd
pop edi
mov dword [esi + 0x38], ecx
pop esi
ret
pop ebx
pop edi
mov dword [esi + 0x38], 0xfffffffd
pop esi
ret
pop edi
mov dword [esi + 0x58], 1
pop esi
ret
Function at 0x55ef60
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x55f00b
cmp byte [esi + 0x5c], 0x77
jne 0x55f00b
push ebp
mov ebp, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0x18]
test edi, edi
mov dword [esi], ebp
mov dword [esi + 4], edi
je 0x55eff1
lea ebx, [ebx]
cmp dword [esi + 0x10], 0
jne 0x55efba
mov ecx, dword [esi + 0x40]
mov eax, dword [esi + 0x48]
push ecx
push 0x4000
push 1
push eax
mov dword [esi + 0xc], eax
call fcn.005663b7
add esp, 0x10
cmp eax, 0x4000
jne 0x55efea
mov dword [esi + 0x10], eax
mov edx, dword [esi + 4]
mov eax, dword [esi + 0x10]
add dword [esi + 0x64], edx
add dword [esi + 0x68], eax
push 0
push esi
call fcn.0055d900
mov ecx, dword [esi + 4]
mov edx, dword [esi + 0x10]
sub dword [esi + 0x64], ecx
sub dword [esi + 0x68], edx
add esp, 8
test eax, eax
mov dword [esi + 0x38], eax
jne 0x55eff1
test ecx, ecx
jne 0x55ef90
jmp 0x55eff1
mov dword [esi + 0x38], 0xffffffff
mov eax, dword [esi + 0x4c]
push edi
push ebp
push eax
call fcn.0055d860
add esp, 0xc
mov dword [esi + 0x4c], eax
mov eax, edi
sub eax, dword [esi + 4]
pop edi
pop ebp
pop esi
ret
mov eax, 0xfffffffe
pop esi
ret

Function at 0x55f020
Capabilities:
Write file on windows

Disassembly:
push ebx
push esi
mov esi, eax
xor ebx, ebx
test esi, esi
je 0x55f0d6
cmp byte [esi + 0x5c], 0x77
jne 0x55f0d6
mov dword [esi + 4], ebx
push edi
lea esp, [esp]
mov edi, 0x4000
sub edi, dword [esi + 0x10]
je 0x55f06e
mov eax, dword [esi + 0x40]
mov ecx, dword [esi + 0x48]
push eax
push edi
push 1
push ecx
call fcn.005663b7
add esp, 0x10
cmp eax, edi
jne 0x55f0cc
mov edx, dword [esi + 0x48]
mov dword [esi + 0xc], edx
mov dword [esi + 0x10], 0x4000
test ebx, ebx
jne 0x55f0ba
mov ecx, dword [esp + 0x10]
mov eax, dword [esi + 0x10]
add dword [esi + 0x68], eax
push ecx
push esi
call fcn.0055d900
mov ecx, dword [esi + 0x10]
sub dword [esi + 0x68], ecx
add esp, 8
test edi, edi
mov dword [esi + 0x38], eax
jne 0x55f09b
cmp eax, 0xfffffffb
jne 0x55f09b
mov dword [esi + 0x38], edi
test ecx, ecx
jne 0x55f0a9
cmp dword [esi + 0x38], 1
je 0x55f0a9
xor ebx, ebx
jmp 0x55f0ae
mov ebx, 1
mov eax, dword [esi + 0x38]
test eax, eax
je 0x55f040
cmp eax, 1
je 0x55f040
mov esi, dword [esi + 0x38]
mov eax, esi
sub eax, 1
neg eax
sbb eax, eax
pop edi
and eax, esi
pop esi
pop ebx
ret
or eax, 0xffffffff
pop edi
mov dword [esi + 0x38], eax
pop esi
pop ebx
ret
pop esi
mov eax, 0xfffffffe
pop ebx
ret
Function at 0x56f7d8
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x5c1360]
jne 0x56f7e2
repz ret
jmp fcn.0057af1c

Function at 0x56fe17
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
jne 0x56fe44
call fcn.0056840a
mov dword [eax], esi
call fcn.005683f7
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.005667d6
add esp, 0x14
push 0x16
pop eax
pop esi
ret
test dword [esp + 0xc], 0xfffffff9
jne 0x56fe20
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x56fe73
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0056841d
pop ecx
call fcn.005683f7
mov eax, dword [eax]
pop esi
ret
test al, 0x10
jne 0x56fe9a
test al, 1
je 0x56fe9a
test byte [esp + 0xc], 2
je 0x56fe9a
call fcn.0056840a
mov dword [eax], 5
call fcn.005683f7
mov dword [eax], 0xd
jmp 0x56fe6a
xor eax, eax
pop esi
ret
Function at 0x5752d6
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0056a56c
xor ebx, ebx
cmp dword [0x2621c0c], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x5753ab
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x575316
xor eax, eax
jmp 0x57546f
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x59b4c8
push edi
call esi
cmp eax, ebx
je 0x57530f
push eax
call fcn.0056a509
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x2621c0c], eax
call esi
push eax
call fcn.0056a509
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x2621c10], eax
call esi
push eax
call fcn.0056a509
mov dword [0x2621c14], eax
lea eax, [ebp - 8]
push eax
call fcn.00563406
test eax, eax
pop ecx
pop ecx
je 0x575379
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.005666da
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x5753ab
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.0056a509
cmp eax, ebx
pop ecx
mov dword [0x2621c1c], eax
je 0x5753ab
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0056a509
pop ecx
mov dword [0x2621c18], eax
mov eax, dword [0x2621c18]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x575424
cmp dword [0x2621c1c], esi
je 0x575424
push eax
call fcn.0056a575
pop ecx
call eax
cmp eax, ebx
je 0x5753f1
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x2621c1c]
call fcn.0056a575
pop ecx
call eax
test eax, eax
je 0x5753f1
test byte [ebp - 0x18], 1
jne 0x575424
lea eax, [ebp - 0xc]
push eax
call fcn.00563479
test eax, eax
pop ecx
je 0x57540c
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.005666da
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x57541b
or dword [ebp + 0x10], 0x200000
jmp 0x575455
or dword [ebp + 0x10], 0x40000
jmp 0x575455
mov eax, dword [0x2621c10]
cmp eax, esi
je 0x575455
push eax
call fcn.0056a575
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x575455
mov eax, dword [0x2621c14]
cmp eax, esi
je 0x575455
push dword [ebp - 4]
push eax
call fcn.0056a575
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x2621c0c]
call fcn.0056a575
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x405010
Capabilities:
Initialize winsock library

Disassembly:
push esi
push str.Winsock_init._n
call fcn.00401430
push 0x590
call fcn.004064a5
push str.About_to_call_WSAStartup_n
mov esi, eax
call fcn.00401430
add esp, 0xc
push esi
push 0x101
call sub.WSOCK32.dll_WSAStartup
test eax, eax
je 0x40505b
push eax
push str.Winsock_failed_to_initialise___error_code__d._n
call fcn.00401430
push esi
call fcn.0040649a
add esp, 0xc
xor al, al
pop esi
ret
push str.Winsock_initialised_OK_n
call fcn.00401430
mov ax, word [esi]
add esp, 4
mov cl, al
xor cl, 1
jne 0x4050aa
and eax, 0xffff
mov edx, eax
xor edx, 0x100
test edx, 0xffffff00
jne 0x4050aa
mov ecx, eax
and eax, 0xff
shr ecx, 8
push ecx
push eax
push str.Winsock_version_is__d._d_n
call fcn.00401430
push esi
call fcn.0040649a
add esp, 0x10
mov al, 1
pop esi
ret
push str.Winsock_version_is_less_than_1.1_n
call fcn.00401430
push esi
call fcn.0040649a
add esp, 8
xor al, al
pop esi
ret
Function at 0x409131
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x40f408
cmp edx, dword [eax]
je 0x409153
add eax, 8
inc ecx
cmp eax, 0x40f498
jl 0x409144
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x40f408]
jne 0x409281
mov eax, dword [0x4d4fd0]
cmp eax, 1
je 0x40925b
test eax, eax
jne 0x409184
cmp dword [0x40f324], 1
je 0x40925b
cmp edx, 0xfc
je 0x409281
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4091bb
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0040a7b0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004086b0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4091fe
lea eax, [ebp - 0x1a4]
push eax
call fcn.004086b0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x40d548
push edi
call fcn.00406880
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0040a7b0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0040a7c0
lea eax, [ebp - 0xa0]
push 0x40d528
push eax
call fcn.0040a7c0
push dword [esi + 0x40f40c]
lea eax, [ebp - 0xa0]
push eax
call fcn.0040a7c0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0040b958
add esp, 0x2c
pop edi
jmp 0x409281
lea eax, [ebp + 8]
lea esi, [esi + 0x40f40c]
push 0
push eax
push dword [esi]
call fcn.004086b0
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 0x4035ac
Capabilities:
Generate random numbers using the delphi lcg

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

Function at 0x41d254
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 0x41d285
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41d26d
add dl, dl
jne 0x41d290
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41d2e1
xor eax, eax
add dl, dl
jne 0x41d29d
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41d37e
add dl, dl
jne 0x41d2ac
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41d2b7
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41d2c2
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41d2cd
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x41d2d7
mov ebx, edi
sub ebx, eax
mov al, byte [ebx]
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x41d27c
mov eax, 1
add dl, dl
jne 0x41d2ef
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41d2fa
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41d2e6
sub eax, ebx
mov ebx, 1
jne 0x41d32d
mov ecx, 1
add dl, dl
jne 0x41d313
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41d31e
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41d30a
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41d27c
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x41d344
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41d34f
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41d33b
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 0x41d27c
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x41d39f
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 0x41d27c
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 0x41f3b0
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 0x21b289e
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 0x41f3ff
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 0x41f41e
mov ecx, edx
add ecx, ebx
jmp 0x41f41e
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 0x41f41e
mov ecx, edx
add ecx, ebx
test ecx, ecx
je 0x41f490
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 0x41f479
test esi, esi
jbe 0x41f490
mov eax, dword [edi]
add eax, ebx
mov edx, dword [ebp - 4]
call fcn.004088f4
test eax, eax
jne 0x41f46b
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 0x41f490
add dword [ebp - 0xc], 2
add edi, 4
dec esi
test esi, esi
ja 0x41f448
jmp 0x41f490
mov edx, eax
sub edx, dword [ecx + 0x10]
cmp edx, dword [ecx + 0x14]
jae 0x41f490
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 0x21b28a5
ret
Function at 0x4205fc
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 0x21b3c17
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 0x420637
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
jne 0x420650
lea eax, [ebp - 0x10]
mov edx, dword [0x21d15f0]
mov edx, dword [edx]
mov edx, dword [edx + 0x14]
call fcn.00404d30
jmp 0x420663
lea eax, [ebp - 0x10]
mov edx, dword [0x21d15f0]
mov edx, dword [edx]
mov edx, dword [edx + 0x18]
call fcn.00404d30
lea eax, [ebp - 0x10]
mov edx, ebx
sar edx, 1
jns 0x42066f
adc edx, 0
mov edx, dword [edx*4 + 0x21d03fc]
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 0x4207e9
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 0x4207dc
mov eax, edi
cmp word [eax], 0x5a4d
jne 0x4207dc
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 0x4207dc
mov eax, edi
cmp dword [eax], 0x4550
jne 0x4207dc
add eax, 4
mov dword [ebp - 0xc], eax
cmp byte [ebp - 1], 0
je 0x42077a
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x8664
jne 0x42077a
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 0x42077a
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 4]
jne 0x42077a
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 0x4207dc
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x14c
jb 0x4207dc
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x150
ja 0x4207dc
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 0x4207dc
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 4]
jne 0x4207dc
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 0x420801
inc ebx
cmp ebx, 0x19
jne 0x420629
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x21b3c1e
lea eax, [ebp - 0x10]
call fcn.00404cd0
ret
Function at 0x4b4de0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x92000]
push edi
or ebp, 0xffffffff
jmp 0x4b4e02
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4b4e09
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4b4df8
mov eax, 1
add ebx, ebx
jne 0x4b4e1b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4b4e2c
jne 0x4b4e3c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4b4e3c
dec eax
add ebx, ebx
jne 0x4b4e38
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4b4e10
xor ecx, ecx
sub eax, 3
jb 0x4b4e54
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4b4ec6
sar eax, 1
mov ebp, eax
jmp 0x4b4e5f
add ebx, ebx
jne 0x4b4e5f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x4b4e6c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x4b4e90
inc ecx
add ebx, ebx
jne 0x4b4e7c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4b4e71
jne 0x4b4e8d
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4b4e71
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4b4eb0
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4b4ea1
jmp 0x4b4dfe
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4b4eb0
add edi, ecx
jmp 0x4b4dfe
pop esi
mov edi, esi
mov ecx, 0x58f
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4b4ece
cmp byte [edi], 5
jne 0x4b4ece
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 eax, ebx
loop 0x4b4ed3
lea edi, [esi + 0xb2000]
mov eax, dword [edi]
or eax, eax
je 0x4b4f4b
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xb5184]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xb51c0]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4b4f00
mov ecx, edi
jns 0x4b4f2f
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 + 0xb51c4]
or eax, eax
je 0x4b4f45
mov dword [ebx], eax
add ebx, 4
jmp 0x4b4f1d
call dword [esi + 0xb51c8]
popal
jmp 0x406a9c
Function at 0x401600
Capabilities:
Write file on windows

Disassembly:
push ebp
push edi
push esi
xor esi, esi
push ebx
sub esp, 0x1cc
mov ebx, dword [esp + 0x1e4]
mov ecx, dword [0x42eaa0]
mov edi, dword [esp + 0x1e0]
mov eax, dword [ecx + ebx*4]
mov ecx, dword [0x42eb30]
mov dword [esp + 0x1c], eax
mov ebp, dword [ecx + ebx*4]
mov ebx, 1
cmp ebx, ebp
jg 0x40168e
mov edx, dword [0x42eb10]
mov ecx, dword [0x42dd20]
mov dword [esp + 0x18], edx
lea esi, [esi]
mov edx, dword [esp + 0x1c]
mov eax, dword [edx + ebx*4]
mov edx, dword [esp + 0x18]
mov eax, dword [edx + eax*4]
mov edx, dword [ecx + eax*4]
mov eax, 1
cmp eax, esi
jg 0x40167f
lea esi, [esi]
cmp edx, dword [esp + eax*4 + 0x20]
je 0x401760
inc eax
cmp eax, esi
jle 0x401670
cmp esi, 0x63
jg 0x401689
inc esi
mov dword [esp + esi*4 + 0x20], edx
inc ebx
cmp ebx, ebp
jle 0x401650
mov dword [esp + 4], esi
lea ebp, [esp + 0x20]
mov ebx, 1
mov dword [esp], ebp
call fcn.0040df10
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0x1e
mov dword [esp + 4], 1
mov dword [esp], 0x4015d0
call sub.msvcrt.dll_fwrite
cmp ebx, esi
jg 0x401703
mov esi, esi
lea edi, [edi]
test ebx, ebx
mov eax, ebx
js 0x401758
and eax, 0xfffffff8
mov ebp, ebx
sub ebp, eax
mov ecx, ebp
dec ecx
je 0x401732
mov ebp, dword [esp + ebx*4 + 0x20]
inc ebx
mov dword [esp + 4], 0x4015ef
mov dword [esp + 8], ebp
mov dword [esp], edi
call sub.msvcrt.dll_fprintf
cmp ebx, esi
jle 0x4016d0
mov esi, dword [edi + 4]
dec esi
test esi, esi
mov dword [edi + 4], esi
js 0x401720
mov ebx, dword [edi]
mov byte [ebx], 0xa
inc dword [edi]
add esp, 0x1cc
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 4], edi
mov dword [esp], 0xa
call sub.msvcrt.dll__flsbuf
jmp 0x401715
mov edx, dword [edi + 4]
dec edx
test edx, edx
mov dword [edi + 4], edx
js 0x401746
mov ecx, dword [edi]
mov byte [ecx], 0xa
inc dword [edi]
jmp 0x4016e6
mov dword [esp + 4], edi
mov dword [esp], 0xa
call sub.msvcrt.dll__flsbuf
jmp 0x4016e6
lea eax, [ebx + 7]
jmp 0x4016da
cmp eax, esi
jle 0x401689
jmp 0x40167f