joyce8/EMBER2024-capa huggingface dataset:
Function at 0x59b240
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5bd47d
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x68cc00]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x20], ebx
mov eax, dword [ebp + 0x14]
lea ecx, [ebp - 0x1c]
mov esi, dword [ebp + 0x10]
xorps xmm0, xmm0
mov edi, dword [ebp + 0xc]
push str.initCrypt_rc2
push eax
mov dword [ebp - 0x24], esi
movq qword [ebp - 0x1c], xmm0
mov dword [ebp - 0x14], 0
call fcn.00447f50
mov dword [ebp - 4], 0
test esi, esi
je 0x59b2d7
mov eax, dword [edi + 8]
cmp eax, 3
je 0x59b2b1
cmp eax, 4
jne 0x59b2d7
push dword [ebx + 0x80]
lea ecx, [edi + 0x34]
call fcn.00402f80
push eax
lea ecx, [edi + 0x34]
call fcn.00438c00
mov ecx, dword [ebp - 0x24]
push eax
add ecx, 0x484
call fcn.00593cb0
mov eax, dword [edi + 0x10]
mov ebx, dword [edi + 0xc8]
cdq
and edx, 7
lea esi, [edx + eax]
sar esi, 3
cmp esi, 0x80
jbe 0x59b2f9
mov esi, 0x80
jmp 0x59b303
mov eax, 1
cmp esi, eax
cmovb esi, eax
mov eax, 0x400
test ebx, ebx
jne 0x59b310
mov ebx, eax
jmp 0x59b315
cmp ebx, eax
cmova ebx, eax
push esi
lea ecx, [edi + 0x14]
call fcn.004386f0
lea ecx, [edi + 0x14]
call fcn.00438c00
cmp esi, 0x80
jbe 0x59b335
xor bl, bl
jmp 0x59b40f
mov edi, dword [ebp - 0x20]
test ebx, ebx
mov ecx, 0x400
push esi
cmove ebx, ecx
add edi, 0x88
push eax
push edi
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
cmp esi, 0x80
jae 0x59b387
mov eax, dword [ebp - 0x20]
mov edx, edi
mov al, byte [esi + eax + 0x87]
movzx ecx, byte [edx]
lea edx, [edx + 1]
movzx eax, al
add ecx, eax
movzx eax, cl
mov al, byte [eax + 0x65a850]
mov byte [edi + esi], al
inc esi
cmp esi, 0x80
jb 0x59b367
mov esi, dword [ebp - 0x20]
lea eax, [ebx + 7]
shr eax, 3
mov edi, 0x80
sub edi, eax
mov dword [ebp - 0x24], eax
add esi, 0x88
neg ebx
add esi, edi
and ebx, 7
mov edx, 0xff
mov ecx, ebx
sar edx, cl
movzx eax, byte [esi]
and edx, eax
mov al, byte [edx + 0x65a850]
mov byte [esi], al
test edi, edi
je 0x59b3de
mov edx, dword [ebp - 0x24]
movzx ecx, byte [esi + edx - 1]
lea esi, [esi - 1]
movzx eax, al
xor ecx, eax
mov al, byte [ecx + 0x65a850]
mov byte [esi], al
sub edi, 1
jne 0x59b3c4
mov edx, dword [ebp - 0x20]
mov esi, 0x3f
add edx, 0x106
mov edi, 0x100
movzx ecx, byte [edx + 1]
lea edx, [edx - 2]
movzx eax, byte [edx + 2]
imul ecx, edi
add cx, ax
mov eax, esi
dec esi
mov word [edx + 2], cx
test eax, eax
jne 0x59b3f1
mov bl, 1
lea ecx, [ebp - 0x1c]
call fcn.00448050
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005af618
mov esp, ebp
pop ebp
ret 0x10
Function at 0x59c0a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push ebx
push edi
xor edi, edi
mov ecx, dword [eax + 0x440]
mov ebx, dword [eax + 0x43c]
mov dword [ebp - 4], ecx
cmp dword [ebp + 0x10], edi
jle 0x59c0fe
push esi
inc bl
movzx ebx, bl
mov edx, dword [eax + ebx*4 + 0x3c]
mov cl, dl
add cl, byte [ebp - 4]
mov eax, dword [ebp + 8]
movzx ecx, cl
mov dword [ebp - 4], ecx
mov esi, dword [ebp - 4]
mov ecx, dword [eax + ecx*4 + 0x3c]
mov dword [eax + ebx*4 + 0x3c], ecx
mov dword [eax + esi*4 + 0x3c], edx
add dl, cl
movzx ecx, dl
mov edx, dword [ebp + 0xc]
mov cl, byte [eax + ecx*4 + 0x3c]
xor byte [edi + edx], cl
inc edi
cmp edi, dword [ebp + 0x10]
jl 0x59c0c0
mov ecx, esi
pop esi
pop edi
mov dword [eax + 0x43c], ebx
mov dword [eax + 0x440], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x59c530
Capabilities:
Encrypt data using salsa20 or chacha

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, str.expand_16_byte_k
movzx ecx, byte [esi + 3]
lea edx, [esi + 0x10]
shl ecx, 8
movzx eax, byte [esi + 2]
or ecx, eax
movzx eax, byte [esi + 1]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi]
shl ecx, 8
or ecx, eax
mov dword [ebx + 0x454], ecx
movzx ecx, byte [esi + 7]
movzx eax, byte [esi + 6]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 5]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 4]
shl ecx, 8
or ecx, eax
mov dword [ebx + 0x458], ecx
movzx ecx, byte [esi + 0xb]
movzx eax, byte [esi + 0xa]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 9]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 8]
shl ecx, 8
or ecx, eax
mov dword [ebx + 0x45c], ecx
movzx ecx, byte [esi + 0xf]
movzx eax, byte [esi + 0xe]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 0xd]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 0xc]
shl ecx, 8
or ecx, eax
cmp dword [ebp + 0x10], 0x100
mov dword [ebx + 0x460], ecx
mov ecx, 0x65a950
cmovne edx, esi
cmove edi, ecx
movzx ecx, byte [edx + 3]
movzx eax, byte [edx + 2]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 1]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx]
shl ecx, 8
or ecx, eax
mov dword [ebx + 0x464], ecx
movzx ecx, byte [edx + 7]
movzx eax, byte [edx + 6]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 5]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 4]
shl ecx, 8
or ecx, eax
mov dword [ebx + 0x468], ecx
movzx ecx, byte [edx + 0xb]
movzx eax, byte [edx + 0xa]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 9]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 8]
shl ecx, 8
or ecx, eax
mov dword [ebx + 0x46c], ecx
movzx ecx, byte [edx + 0xf]
movzx eax, byte [edx + 0xe]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 0xd]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 0xc]
shl ecx, 8
or ecx, eax
mov dword [ebx + 0x470], ecx
movsx ecx, byte [edi + 3]
movsx eax, byte [edi + 2]
shl ecx, 8
or ecx, eax
movsx eax, byte [edi + 1]
shl ecx, 8
or ecx, eax
movsx eax, byte [edi]
shl ecx, 8
or ecx, eax
mov dword [ebx + 0x444], ecx
movsx ecx, byte [edi + 7]
movsx eax, byte [edi + 6]
shl ecx, 8
or ecx, eax
movsx eax, byte [edi + 5]
shl ecx, 8
or ecx, eax
movsx eax, byte [edi + 4]
shl ecx, 8
or ecx, eax
mov dword [ebx + 0x448], ecx
movsx ecx, byte [edi + 0xb]
movsx eax, byte [edi + 0xa]
shl ecx, 8
or ecx, eax
movsx eax, byte [edi + 9]
shl ecx, 8
or ecx, eax
movsx eax, byte [edi + 8]
shl ecx, 8
or ecx, eax
mov dword [ebx + 0x44c], ecx
movsx ecx, byte [edi + 0xf]
movsx eax, byte [edi + 0xe]
shl ecx, 8
or ecx, eax
movsx eax, byte [edi + 0xd]
shl ecx, 8
or ecx, eax
movsx eax, byte [edi + 0xc]
shl ecx, 8
pop edi
or ecx, eax
pop esi
mov dword [ebx + 0x450], ecx
pop ebx
pop ebp
ret 0x10
Function at 0x59c720
Capabilities:
Encrypt data using salsa20 or chacha
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
test ebx, ebx
je 0x59c90e
mov esi, dword [ebp + 8]
lea ecx, [esi + 0x14]
call fcn.00402f80
cmp eax, 0x20
jne 0x59c90e
lea eax, [esi + 0x34]
mov ecx, eax
mov dword [ebp + 0xc], eax
call fcn.00402f80
cmp eax, 0xc
jb 0x59c90e
lea ecx, [esi + 0x14]
call fcn.00438c00
mov ecx, dword [ebp + 0xc]
mov esi, eax
call fcn.00438c00
mov dword [ebx], 0x61707865
mov edi, eax
mov dword [ebx + 4], 0x3320646e
mov dword [ebx + 8], 0x79622d32
mov dword [ebx + 0xc], 0x6b206574
movzx edx, byte [esi + 3]
movzx ecx, byte [esi + 2]
movzx eax, byte [esi + 1]
shl edx, 8
or edx, ecx
shl edx, 8
or edx, eax
movzx eax, byte [esi]
shl edx, 8
or edx, eax
mov dword [ebx + 0x10], edx
movzx ecx, byte [esi + 7]
movzx eax, byte [esi + 6]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 5]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 4]
shl ecx, 8
or ecx, eax
mov dword [ebx + 0x14], ecx
movzx ecx, byte [esi + 0xb]
movzx eax, byte [esi + 0xa]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 9]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 8]
shl ecx, 8
or ecx, eax
mov dword [ebx + 0x18], ecx
movzx ecx, byte [esi + 0xf]
movzx eax, byte [esi + 0xe]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 0xd]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 0xc]
shl ecx, 8
or ecx, eax
mov dword [ebx + 0x1c], ecx
movzx ecx, byte [esi + 0x13]
movzx eax, byte [esi + 0x12]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 0x11]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 0x10]
shl ecx, 8
or ecx, eax
mov dword [ebx + 0x20], ecx
movzx ecx, byte [esi + 0x17]
movzx eax, byte [esi + 0x16]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 0x15]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 0x14]
shl ecx, 8
or ecx, eax
mov dword [ebx + 0x24], ecx
movzx ecx, byte [esi + 0x1b]
movzx eax, byte [esi + 0x1a]
shl ecx, 8
or ecx, eax
shl ecx, 8
movzx eax, byte [esi + 0x19]
or ecx, eax
movzx eax, byte [esi + 0x18]
shl ecx, 8
or ecx, eax
mov dword [ebx + 0x28], ecx
movzx ecx, byte [esi + 0x1f]
movzx eax, byte [esi + 0x1e]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 0x1d]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 0x1c]
shl ecx, 8
or ecx, eax
mov dword [ebx + 0x30], 0
mov dword [ebx + 0x2c], ecx
movzx ecx, byte [edi + 3]
movzx eax, byte [edi + 2]
shl ecx, 8
or ecx, eax
movzx eax, byte [edi + 1]
shl ecx, 8
or ecx, eax
movzx eax, byte [edi]
shl ecx, 8
or ecx, eax
mov dword [ebx + 0x34], ecx
movzx ecx, byte [edi + 7]
movzx eax, byte [edi + 6]
shl ecx, 8
or ecx, eax
movzx eax, byte [edi + 5]
shl ecx, 8
or ecx, eax
movzx eax, byte [edi + 4]
shl ecx, 8
or ecx, eax
mov dword [ebx + 0x38], ecx
movzx ecx, byte [edi + 0xb]
movzx eax, byte [edi + 0xa]
shl ecx, 8
or ecx, eax
movzx eax, byte [edi + 9]
shl ecx, 8
or ecx, eax
movzx eax, byte [edi + 8]
shl ecx, 8
pop edi
or ecx, eax
mov al, 1
pop esi
mov dword [ebx + 0x3c], ecx
pop ebx
pop ebp
ret 8
pop edi
pop esi
xor al, al
pop ebx
pop ebp
ret 8
Function at 0x59f510
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x68cc00]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp + 0x10]
lea ebx, [esi + 8]
mov dword [eax], 0xffffffff
push edi
mov eax, dword [esi + 0x80c]
xor edi, edi
mov dword [ebp - 0x14], ecx
mov dword [ebx], eax
test eax, eax
je 0x59f565
lea edx, [esi + 0xc]
nop dword [eax + eax]
mov eax, dword [edx + 0x804]
lea edx, [edx + 4]
mov dword [edx - 4], eax
inc edi
cmp edi, dword [esi + 0x80c]
jb 0x59f550
cmp dword [ebx], 0
jne 0x59f589
mov eax, dword [ecx]
push str.No_sockets_exists_for_fdSetSelect.
call dword [eax + 0x14]
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005af618
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [ebp + 8]
mov eax, 0x10624dd3
mul ecx
shr edx, 6
imul eax, edx, 0x3e8
mov dword [ebp - 0xc], edx
sub ecx, eax
imul eax, ecx, 0x3e8
cmp byte [ebp + 0xc], 0
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0
je 0x59f5bb
push 0
push ebx
jmp 0x59f5be
push ebx
push 0
push 0
call dword [sym.imp.WS2_32.dll_select]
mov ecx, dword [ebp - 0x10]
mov dword [ecx], eax
cmp eax, 0xffffffff
jne 0x59f5fe
mov ecx, dword [ebp - 0x14]
push str.select_system_call_failed.
mov eax, dword [ecx]
call dword [eax + 0x14]
mov ecx, dword [esi + 4]
mov dword [ebx], 0
mov dword [esi + 0x80c], 0
test ecx, ecx
je 0x59f574
call fcn.004cbb00
jmp 0x59f574
cmp dword [ebx], 0
jne 0x59f621
mov ecx, dword [esi + 4]
mov dword [ebx], 0
mov dword [esi + 0x80c], 0
test ecx, ecx
je 0x59f691
call fcn.004cbb00
jmp 0x59f691
call fcn.004cbb10
mov edi, eax
mov dword [ebp - 0x10], edi
test edi, edi
je 0x59f574
mov eax, dword [ebx]
xor ebx, ebx
mov dword [ebp - 0x14], eax
test eax, eax
jle 0x59f681
nop
mov edx, dword [esi + 0x80c]
xor eax, eax
test edx, edx
jle 0x59f67b
mov edi, dword [esi + ebx*4 + 0xc]
lea ecx, [esi + 0x810]
cmp edi, dword [ecx]
je 0x59f667
inc eax
add ecx, 4
cmp eax, edx
jl 0x59f656
mov edi, dword [ebp - 0x10]
jmp 0x59f67b
mov ecx, dword [esi + 4]
push eax
call fcn.004cbc20
mov edi, dword [ebp - 0x10]
mov ecx, edi
push eax
call fcn.004cbac0
inc ebx
cmp ebx, dword [ebp - 0x14]
jl 0x59f640
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x59f68e
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [esi + 4], edi
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005af618
mov esp, ebp
pop ebp
ret 0x10
Function at 0x5a67e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [esi + 4]
call fcn.00438c00
mov edi, eax
lea ecx, [esi + 0x20]
mov dword [ebp - 4], edi
call fcn.00438c00
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov ebx, dword [ecx + edx*4]
lea edx, [ecx + edx*4]
xor ebx, dword [edi]
xor edi, edi
mov esi, dword [ebp - 4]
mov ecx, dword [edx + 4]
add esi, 8
mov dword [ebp + 8], edx
mov dword [ebp + 0xc], ecx
nop dword [eax]
mov edx, ebx
lea esi, [esi + 8]
and edx, 0xff0000
mov ecx, ebx
or edx, 0x1000000
shr ecx, 0x18
shr edx, 0x10
add edi, 2
mov edx, dword [eax + edx*4]
add edx, dword [eax + ecx*4]
mov ecx, ebx
and ecx, 0xff00
or ecx, 0x20000
shr ecx, 8
xor edx, dword [eax + ecx*4]
movzx ecx, bl
or ecx, 0x300
add edx, dword [eax + ecx*4]
xor edx, dword [esi - 0xc]
mov ecx, dword [ebp + 0xc]
xor ecx, edx
mov edx, ecx
mov dword [ebp + 0xc], ecx
and edx, 0xff0000
shr ecx, 0x18
or edx, 0x1000000
shr edx, 0x10
mov edx, dword [eax + edx*4]
add edx, dword [eax + ecx*4]
mov ecx, dword [ebp + 0xc]
and ecx, 0xff00
or ecx, 0x20000
shr ecx, 8
xor edx, dword [eax + ecx*4]
mov ecx, dword [ebp + 0xc]
movzx ecx, cl
or ecx, 0x300
add edx, dword [eax + ecx*4]
xor edx, dword [esi - 8]
xor ebx, edx
cmp edi, 0xe
jbe 0x5a6820
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
pop edi
pop esi
mov eax, dword [eax + 0x44]
xor eax, dword [ebp + 0xc]
mov dword [ecx + 4], ebx
mov dword [ecx], eax
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x5a6b60
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
mov ebx, ecx
mov dword [ebp - 0x20], 0
push esi
push edi
mov dword [ebp - 0x14], ebx
lea ecx, [ebx + 4]
mov dword [ebp - 0x1c], 0
call fcn.00402f80
cdq
lea ecx, [ebx + 0x20]
and edx, 3
add eax, edx
sar eax, 2
mov dword [ebp - 4], eax
call fcn.00402f80
cdq
lea ecx, [ebx + 4]
and edx, 3
add eax, edx
sar eax, 2
mov dword [ebp - 0x10], eax
call fcn.00438c00
lea ecx, [ebx + 0x20]
mov dword [ebp - 0xc], eax
call fcn.00438c00
cmp dword [ebp - 4], 0
mov edi, eax
mov dword [ebp - 0x18], edi
mov dword [ebp - 8], 0
jle 0x5a6c55
mov esi, dword [ebp + 0xc]
xor edx, edx
mov ebx, dword [ebp - 0xc]
mov edi, dword [ebp + 8]
lea eax, [edx + 1]
movzx ecx, byte [edx + edi]
cdq
idiv esi
shl ecx, 8
movzx esi, byte [edx + edi]
lea eax, [edx + 1]
cdq
or esi, ecx
idiv dword [ebp + 0xc]
shl esi, 8
movzx edi, byte [edx + edi]
lea eax, [edx + 1]
cdq
or edi, esi
mov esi, dword [ebp + 0xc]
idiv esi
mov eax, dword [ebp + 8]
shl edi, 8
movzx ecx, byte [edx + eax]
lea eax, [edx + 1]
cdq
or ecx, edi
idiv esi
mov eax, dword [ebp - 8]
xor dword [ebx + eax*4], ecx
inc eax
mov dword [ebp - 8], eax
cmp eax, dword [ebp - 4]
jl 0x5a6bd5
mov ebx, dword [ebp - 0x14]
xor esi, esi
mov edi, dword [ebp - 0xc]
nop dword [eax]
push 0
lea eax, [ebp - 0x20]
mov ecx, ebx
push eax
call fcn.005a67e0
mov eax, dword [ebp - 0x20]
mov dword [edi + esi*4], eax
mov eax, dword [ebp - 0x1c]
mov dword [edi + esi*4 + 4], eax
add esi, 2
cmp esi, dword [ebp - 4]
jl 0x5a6c30
mov edi, dword [ebp - 0x18]
xor esi, esi
cmp dword [ebp - 0x10], esi
jle 0x5a6c82
nop dword [eax]
push 0
lea eax, [ebp - 0x20]
mov ecx, ebx
push eax
call fcn.005a67e0
mov eax, dword [ebp - 0x20]
mov dword [edi + esi*4], eax
mov eax, dword [ebp - 0x1c]
mov dword [edi + esi*4 + 4], eax
add esi, 2
cmp esi, dword [ebp - 0x10]
jl 0x5a6c60
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x5a9480
Capabilities:
Compute adler32 checksum

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, ecx
mov dword [ebp - 4], esi
mov ecx, dword [esi + 0x18]
mov ebx, ecx
cmp ecx, dword [ebp + 0xc]
cmova ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
test ebx, ebx
jne 0x5a94aa
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8
sub ecx, ebx
cmp byte [esi + 0xc], 0
mov dword [esi + 0x18], ecx
je 0x5a95cf
push edi
mov edi, dword [esi + 0x14]
mov esi, dword [esi + 0x10]
movzx ecx, si
shr esi, 0x10
test edi, edi
jne 0x5a94d2
lea esi, [edi + 1]
jmp 0x5a95c3
mov edx, 0x15b0
cmp ebx, edx
cmovb edx, ebx
sub ebx, edx
mov dword [ebp + 0xc], ebx
cmp edx, 0x10
jb 0x5a9581
mov ebx, edx
shr ebx, 4
nop
movzx eax, byte [edi]
sub edx, 0x10
add ecx, eax
movzx eax, byte [edi + 1]
add esi, ecx
add ecx, eax
movzx eax, byte [edi + 2]
add esi, ecx
add ecx, eax
movzx eax, byte [edi + 3]
add esi, ecx
add ecx, eax
movzx eax, byte [edi + 4]
add esi, ecx
add ecx, eax
movzx eax, byte [edi + 5]
add esi, ecx
add ecx, eax
movzx eax, byte [edi + 6]
add esi, ecx
add ecx, eax
movzx eax, byte [edi + 7]
add esi, ecx
add ecx, eax
movzx eax, byte [edi + 8]
add esi, ecx
add ecx, eax
movzx eax, byte [edi + 9]
add esi, ecx
add ecx, eax
movzx eax, byte [edi + 0xa]
add esi, ecx
add ecx, eax
movzx eax, byte [edi + 0xb]
add esi, ecx
add ecx, eax
movzx eax, byte [edi + 0xc]
add esi, ecx
add ecx, eax
movzx eax, byte [edi + 0xd]
add esi, ecx
add ecx, eax
movzx eax, byte [edi + 0xe]
add esi, ecx
add ecx, eax
movzx eax, byte [edi + 0xf]
add esi, ecx
add edi, 0x10
add ecx, eax
add esi, ecx
sub ebx, 1
jne 0x5a94f0
mov ebx, dword [ebp + 0xc]
test edx, edx
je 0x5a9592
movzx eax, byte [edi]
inc edi
add ecx, eax
add esi, ecx
sub edx, 1
jne 0x5a9585
mov eax, 0x80078071
mul ecx
shr edx, 0xf
imul eax, edx, 0xffff000f
add ecx, eax
mov eax, 0x80078071
mul esi
shr edx, 0xf
imul eax, edx, 0xffff000f
add esi, eax
test ebx, ebx
jne 0x5a94d2
shl esi, 0x10
or esi, ecx
mov eax, dword [ebp - 4]
mov ebx, dword [ebp - 8]
pop edi
mov dword [eax + 0x10], esi
mov esi, eax
push ebx
push dword [esi + 0x14]
push dword [ebp + 8]
call sub.VCRUNTIME140.dll_memcpy
add dword [esi + 0x14], ebx
add esp, 0xc
add dword [esi + 0x1c], ebx
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x5af400
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ccfa0
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x68cc00]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
lea ecx, [edi + 0x10]
mov dword [edi], vtable.BufferedSource.0
mov dword [edi + 8], 0xfa0
mov dword [edi + 0xc], 0
call fcn.00434a70
push 0x1388
lea ecx, [edi + 0x10]
mov dword [ebp - 4], 0
mov dword [edi + 0x2c], 0
mov byte [edi + 0x30], 0
mov dword [edi + 0x38], 0
mov dword [edi + 0x3c], 0
mov byte [edi + 0x40], 0
call fcn.004386f0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x5b06c0
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleW]
test eax, eax
je 0x5b06ff
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x5b06ff
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x5b06ff
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x5b06ff
cmp dword [ecx + 0x74], 0xe
jbe 0x5b06ff
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x406790
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x5000]
push edi
jmp 0x4067aa
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4067b1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4067a0
mov eax, 1
add ebx, ebx
jne 0x4067c3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4067b8
jne 0x4067d4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4067b8
xor ecx, ecx
sub eax, 3
jb 0x4067e8
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x40685a
mov ebp, eax
add ebx, ebx
jne 0x4067f3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x406800
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x406824
inc ecx
add ebx, ebx
jne 0x406810
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x406805
jne 0x406821
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x406805
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x406844
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x406835
jmp 0x4067a6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x406844
add edi, ecx
jmp 0x4067a6
pop esi
mov edi, esi
mov ecx, 0x429
mov al, 0xe8
repne scasb al, byte es:[edi]
jne 0x406878
mov eax, dword [edi]
xchg ah, al
rol eax, 0x10
xchg ah, al
sub eax, edi
add eax, esi
stosd dword es:[edi], eax
jmp 0x406862
lea edi, [esi + 0x4000]
mov eax, dword [edi]
or eax, eax
je 0x4068c0
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x63ec]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x6444]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40687e
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x644c]
or eax, eax
je 0x4068ba
mov dword [ebx], eax
add ebx, 4
jmp 0x40689b
call dword [esi + 0x6448]
mov ebp, dword [esi + 0x6450]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1e7]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x4068f4
sub esp, 0xffffff80
jmp 0x40102d
Function at 0x407010
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40704e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x407046
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x407050
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x407036
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407120
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x407151
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407151
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x407151
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x401000
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
jmp 0x403a1c
mov ecx, ebp
push ebp
mov ebp, esp
mov dword [0x405076], ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x405220], eax
mov dword [0x4051a8], 0x403098
mov dword [0x4051a4], 2
jmp 0x403a4c
mov dword [0x4051ac], 0
mov dword [0x4051b0], 0
mov dword [0x4051a0], 0x30
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
mov dword [0x4051b4], eax
mov dword [0x4051c8], 0x40426e
mov dword [0x4051c0], 0xf
mov dword [0x40506e], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadIconA]
mov dword [0x4051b8], eax
mov dword [0x4051cc], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadCursorA]
mov dword [0x4051bc], eax
push 0x4051a0
call dword [sym.imp.user32.dll_RegisterClassExA]
push 0
push dword [0x40506e]
push 0
push 0
push 0x1e5
push 0x21e
push 0xffffe52a
push 0xfffff588
push 0x40000
push str.justam
push 0x40426e
push 0
call dword [sym.imp.user32.dll_CreateWindowExA]
mov dword [0x405218], eax
push 5
push dword [0x405218]
call dword [sym.imp.user32.dll_ShowWindow]
push dword [0x405218]
call dword [sym.imp.user32.dll_UpdateWindow]
jmp 0x403b1f
push 0
push 0
push 0
push 0x4051d0
call dword [sym.imp.user32.dll_GetMessageA]
or eax, eax
je 0x403b4c
push 0x4051d0
call dword [sym.imp.user32.dll_TranslateMessage]
push 0x4051d0
call dword [sym.imp.user32.dll_DispatchMessageA]
jmp 0x403b1f
mov eax, dword [0x4051d8]
jmp 0x403b59
call 0x402be1
ret