joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404230
Capabilities:
Get socket status
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x11c
mov eax, dword [0x425040]
xor eax, esp
mov dword [esp + 0x118], eax
mov eax, dword [ecx + 0x24]
mov edx, dword [ecx + 0x18]
mov dword [esp + 8], eax
mov eax, dword [ecx + 0x1c]
push ebx
mov dword [esp + 0xc], eax
mov eax, dword [ecx + 4]
push esi
mov esi, dword [ecx + 0x20]
push edi
mov edi, dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
lea ebx, [eax + 1]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], 1
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], esi
lea eax, [esp + 0x10]
push eax
push 0
lea eax, [esp + 0x20]
push eax
push 0
push ebx
call dword [sym.imp.WS2_32.dll_select]
mov esi, eax
test esi, esi
jns 0x4042a9
call edi
cmp dword [eax], 4
je 0x404285
test esi, esi
jle 0x404307
mov esi, dword [esp + 0xc]
mov ecx, dword [esi + 4]
call fcn.00402a80
test al, al
je 0x404307
mov ebx, dword [ebp + 0xc]
mov eax, closesocket
cmp ebx, eax
cmova ebx, eax
mov eax, dword [esi + 4]
mov dword [esp + 0xc], eax
nop
push 0
push ebx
push dword [ebp + 8]
push eax
call dword [sym.imp.WS2_32.dll_send]
mov esi, eax
test esi, esi
jns 0x4042ee
call edi
cmp dword [eax], 4
mov eax, dword [esp + 0xc]
je 0x4042d0
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x118]
xor ecx, esp
call fcn.0041b5e8
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [esp + 0x124]
or eax, 0xffffffff
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0041b5e8
mov esp, ebp
pop ebp
ret 8

Function at 0x4043a0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x90
mov eax, dword [0x425040]
xor eax, esp
mov dword [esp + 0x8c], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [esp + 8]
push edi
mov edi, dword [ebp + 0xc]
push eax
lea eax, [esp + 0x14]
mov dword [esp + 0x10], 0x80
push eax
push dword [ecx + 4]
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x4043f3
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0x10]
push edi
push esi
call fcn.00402ea0
add esp, 8
mov ecx, dword [esp + 0x94]
pop edi
pop esi
xor ecx, esp
call fcn.0041b5e8
mov esp, ebp
pop ebp
ret 8
Function at 0x4048c0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41ca48
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x425040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
xorps xmm0, xmm0
movups xmmword [edi], xmm0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0xf
mov byte [edi], 0
mov dword [ebp - 4], 0
mov dword [edi + 0x18], 0xffffffff
movups xmmword [edi + 0x1c], xmm0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0xf
mov byte [edi + 0x1c], 0
lea esi, [edi + 0x34]
mov byte [ebp - 4], 1
push 0x40
mov dword [ebp - 0x14], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.0041b6d6
xorps xmm0, xmm0
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
mov eax, edi
movups xmmword [edi + 0x3c], xmm0
mov dword [edi + 0x4c], 0
mov dword [edi + 0x50], 0xf
mov byte [edi + 0x3c], 0
movups xmmword [edi + 0x54], xmm0
mov dword [edi + 0x64], 0
mov dword [edi + 0x68], 0xf
mov byte [edi + 0x54], 0
mov dword [edi + 0x6c], 0
mov dword [edi + 0x94], 0
mov dword [edi + 0xbc], 0
mov word [edi + 0xc0], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40d740
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
mov edx, 0x811c9dc5
push edi
mov edi, dword [ebp + 8]
mov ecx, 0
sub esi, edi
je 0x40d771
nop dword [eax]
movzx eax, byte [ecx + edi]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, esi
jb 0x40d760
pop edi
mov eax, edx
pop esi
pop ebp
ret 8
Function at 0x40e180
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
mov dword [ebp - 8], ecx
cmp edx, eax
je 0x40e2f4
cmp dword [edx + 0x1c], 0xf
mov eax, dword [ecx + 4]
mov dword [ebp - 0x1c], eax
mov eax, dword [ecx + 0xc]
push ebx
mov dword [ebp - 0x18], eax
lea ebx, [edx + 8]
mov eax, dword [edx + 4]
push esi
mov dword [ebp - 0xc], eax
mov esi, edx
jbe 0x40e1b9
mov ebx, dword [edx + 8]
mov eax, dword [edx + 0x18]
xor edx, edx
push edi
mov edi, 0x811c9dc5
test eax, eax
je 0x40e1e4
mov ecx, eax
nop word [eax + eax]
movzx eax, byte [edx + ebx]
inc edx
xor eax, edi
imul edi, eax, 0x1000193
cmp edx, ecx
jb 0x40e1d0
mov ecx, dword [ebp - 8]
mov eax, dword [ecx + 0x18]
mov ecx, dword [ebp - 0x18]
and eax, edi
lea eax, [ecx + eax*8]
mov ecx, dword [eax]
mov dword [ebp - 0x10], eax
mov eax, dword [eax + 4]
mov dword [ebp - 4], ecx
mov dword [ebp - 0x14], eax
nop dword [eax]
mov edi, esi
mov ebx, esi
mov esi, dword [esi]
push ecx
lea ecx, [edi + 8]
call fcn.00413d10
push 0x38
push edi
call fcn.0041b957
mov eax, dword [ebp - 8]
add esp, 8
dec dword [eax + 8]
cmp ebx, dword [ebp - 0x14]
je 0x40e24e
mov eax, dword [ebp + 0xc]
cmp esi, eax
jne 0x40e200
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 8]
jne 0x40e2e9
mov ecx, dword [ebp - 0x10]
pop edi
mov dword [ecx], esi
mov ecx, dword [ebp - 0xc]
mov dword [ecx], esi
mov dword [esi + 4], ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 8]
mov ecx, dword [ebp - 0x10]
jne 0x40e260
mov eax, dword [ebp - 0x1c]
mov dword [ecx], eax
jmp 0x40e263
mov eax, dword [ebp - 0xc]
mov dword [ecx + 4], eax
mov eax, dword [ebp + 0xc]
cmp esi, eax
je 0x40e2e9
nop dword [eax]
cmp dword [esi + 0x1c], 0xf
lea edi, [esi + 8]
jbe 0x40e27c
mov edi, dword [esi + 8]
mov ebx, dword [esi + 0x18]
xor ecx, ecx
mov edx, 0x811c9dc5
test ebx, ebx
je 0x40e2a1
nop word [eax + eax]
movzx eax, byte [ecx + edi]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, ebx
jb 0x40e290
mov ecx, dword [ebp - 8]
mov eax, dword [ecx + 0x18]
mov ecx, dword [ebp - 0x18]
and eax, edx
lea eax, [ecx + eax*8]
mov dword [ebp - 4], eax
mov eax, dword [eax + 4]
mov dword [ebp - 0x14], eax
mov edi, esi
mov ebx, esi
mov esi, dword [esi]
push ecx
lea ecx, [edi + 8]
call fcn.00413d10
push 0x38
push edi
call fcn.0041b957
mov ecx, dword [ebp - 8]
add esp, 8
mov eax, dword [ebp + 0xc]
dec dword [ecx + 8]
cmp ebx, dword [ebp - 0x14]
je 0x40e2fa
cmp esi, eax
jne 0x40e2b8
mov ecx, dword [ebp - 4]
mov dword [ecx], esi
mov ecx, dword [ebp - 0xc]
pop edi
mov dword [ecx], esi
mov dword [esi + 4], ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x1c]
mov dword [ecx], edx
mov dword [ecx + 4], edx
cmp esi, eax
jne 0x40e270
mov ecx, dword [ebp - 0xc]
pop edi
mov dword [ecx], esi
mov dword [esi + 4], ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x41c031
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x41c070
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41c070
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41c070
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x41c070
cmp dword [ecx + 0x74], 0xe
jbe 0x41c070
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x4025c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, ecx
mov dword [ebp - 0x10], edx
push esi
push edi
mov eax, dword [ebx]
mov edi, dword [ebx + 4]
xor edi, eax
mov dword [ebp - 0xc], eax
mov eax, edi
mov ecx, edi
and eax, 0xfffffffc
mov esi, edi
add eax, 4
and cl, 3
cmovne esi, eax
mov ecx, esi
call fcn.00402f7f
mov dword [ebp - 4], eax
test eax, eax
je 0x40263a
shr esi, 2
lea edx, [ebx + 8]
xor ebx, ebx
and dword [ebp - 8], ebx
lea ecx, [edx + esi*4]
mov esi, ecx
sub esi, edx
add esi, 3
shr esi, 2
cmp edx, ecx
cmova esi, dword [ebp - 8]
test esi, esi
je 0x40262e
mov ecx, eax
sub ecx, edx
mov eax, dword [edx]
xor eax, dword [ebp - 0xc]
inc ebx
mov dword [ecx + edx], eax
lea edx, [edx + 4]
cmp ebx, esi
jb 0x40261e
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x402637
mov dword [eax], edi
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x402646
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, ecx
push ebx
push esi
mov dword [ebp - 4], eax
mov ecx, dword [eax]
mov ebx, dword [eax + 4]
xor ebx, ecx
mov dword [ebp - 0xc], ecx
push edi
mov dword [ebp - 0x14], ebx
lea esi, [ebx + 1]
mov eax, esi
mov edx, esi
and eax, 0xfffffffc
add eax, 4
and dl, 3
cmovne esi, eax
lea ecx, [esi + esi]
call fcn.00402f7f
mov edi, eax
mov dword [ebp - 0x10], edi
test edi, edi
je 0x4026f1
mov eax, dword [ebp - 4]
and dword [ebp - 4], 0
add eax, 8
shr esi, 2
lea ecx, [eax + esi*4]
mov esi, edi
mov edx, ecx
sub edx, eax
add edx, 3
shr edx, 2
cmp eax, ecx
cmova edx, dword [ebp - 4]
test edx, edx
je 0x4026eb
mov ebx, eax
xor edi, edi
mov ecx, dword [ebx]
lea ebx, [ebx + 4]
xor ecx, dword [ebp - 0xc]
movzx eax, cl
mov word [esi], ax
mov eax, ecx
shr eax, 8
lea esi, [esi + 8]
movzx eax, al
mov word [esi - 6], ax
shr ecx, 0x10
movzx eax, cl
shr ecx, 8
inc edi
mov word [esi - 4], ax
movzx eax, cl
mov word [esi - 2], ax
cmp edi, edx
jb 0x4026af
mov edi, dword [ebp - 0x10]
mov ebx, dword [ebp - 0x14]
xor eax, eax
mov word [edi + ebx*2], ax
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4026fa
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, ecx
push esi
push edi
mov ecx, dword [ebx]
mov eax, dword [ebx + 4]
xor eax, ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 0x10], eax
lea edi, [eax + 1]
mov eax, edi
mov edx, edi
and eax, 0xfffffffc
add eax, 4
and dl, 3
cmovne edi, eax
mov ecx, edi
call fcn.00402f7f
mov esi, eax
mov dword [ebp - 0xc], esi
test esi, esi
je 0x40278c
and dword [ebp - 4], 0
add ebx, 8
shr edi, 2
xor eax, eax
mov edx, esi
lea ecx, [ebx + edi*4]
mov edi, ecx
sub edi, ebx
add edi, 3
shr edi, 2
cmp ebx, ecx
cmova edi, eax
test edi, edi
je 0x402785
mov esi, dword [ebp - 4]
mov ecx, dword [ebx]
lea ebx, [ebx + 4]
xor ecx, dword [ebp - 8]
mov byte [edx], cl
mov eax, ecx
shr eax, 8
lea edx, [edx + 4]
shr ecx, 0x10
mov byte [edx - 3], al
mov byte [edx - 2], cl
shr ecx, 8
inc esi
mov byte [edx - 1], cl
cmp esi, edi
jb 0x40275c
mov esi, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
mov byte [esi + eax], 0
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x402abc
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
and dword [ebp - 0xc], 0
xor edx, edx
mov dword [ebp - 0x10], 0x2cda3edd
mov dword [ebp - 8], 0x6c91
imul eax, dword [ebp - 8], 0xe
push ebx
push 0x1a
mov ebx, ecx
pop ecx
mov dword [ebp - 8], eax
add dword [ebp - 8], 0xffff35c1
shr dword [ebp - 8], 0x10
xor dword [ebp - 8], 0xdc5e46d2
mov eax, dword [ebp - 8]
div ecx
push 0x2b
mov dword [ebp - 8], eax
xor edx, edx
add dword [ebp - 8], 0xffff1431
mov eax, dword [ebp - 8]
pop ecx
div ecx
push 0x17
mov dword [ebp - 8], eax
xor edx, edx
xor dword [ebp - 8], 0x327046
mov dword [ebp - 4], 0xba61
shr dword [ebp - 4], 2
add dword [ebp - 4], 0xffff19d5
xor dword [ebp - 4], 0xffff486b
mov dword [ebp - 4], 0xf533
add dword [ebp - 4], 0x2d0f
shl dword [ebp - 4], 3
mov eax, dword [ebp - 4]
pop ecx
div ecx
push 0x6e
mov dword [ebp - 4], eax
xor edx, edx
shl dword [ebp - 4], 0x10
xor dword [ebp - 4], 0x65fccd5
mov eax, dword [ebp - 4]
pop ecx
div ecx
mov dword [ebp - 4], eax
xor dword [ebp - 4], 0xe5a00d
cmp byte [ebx], 0
je 0x402bfb
push esi
push edi
mov edi, dword [ebp - 8]
xor edx, edx
mov dword [ebp - 4], 0xba61
shr dword [ebp - 4], 2
add dword [ebp - 4], 0xffff19d5
xor dword [ebp - 4], 0xffff486b
mov cl, byte [ebp - 4]
mov esi, dword [ebp - 8]
mov dword [ebp - 4], 0xf533
add dword [ebp - 4], 0x2d0f
shl dword [ebp - 4], 3
mov eax, dword [ebp - 4]
shl esi, cl
push 0x17
pop ecx
div ecx
xor edx, edx
mov dword [ebp - 4], eax
shl dword [ebp - 4], 0x10
xor dword [ebp - 4], 0x65fccd5
mov eax, dword [ebp - 4]
push 0x6e
pop ecx
div ecx
mov dword [ebp - 4], eax
xor dword [ebp - 4], 0xe5a00d
mov cl, byte [ebp - 4]
mov edx, dword [ebp - 8]
movsx eax, byte [ebx]
mov dword [ebp - 8], eax
add dword [ebp - 8], esi
shl edx, cl
add dword [ebp - 8], edx
sub dword [ebp - 8], edi
inc ebx
cmp byte [ebx], 0
jne 0x402b7a
pop edi
pop esi
mov eax, dword [ebp - 8]
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x402d6e
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov ebx, ecx
mov dword [ebp - 8], edx
push esi
push edi
xor esi, esi
mov eax, dword [ebx + 0x3c]
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], esi
mov edi, dword [eax + ebx + 0x78]
add edi, ebx
mov eax, dword [edi + 0x1c]
mov ecx, dword [edi + 0x20]
add eax, ebx
mov dword [ebp - 0x14], eax
add ecx, ebx
mov eax, dword [edi + 0x24]
add eax, ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], eax
mov eax, esi
cmp dword [edi + 0x18], esi
jbe 0x402dfa
mov ecx, dword [ecx + eax*4]
add ecx, ebx
call fcn.00402abc
xor eax, 0x32cb8335
cmp eax, dword [ebp - 8]
mov eax, dword [ebp - 4]
je 0x402dd1
mov ecx, dword [ebp - 0xc]
inc eax
mov dword [ebp - 4], eax
cmp eax, dword [edi + 0x18]
jb 0x402dac
jmp 0x402dfa
mov ecx, dword [ebp - 0x10]
mov esi, dword [ebp - 0x14]
movzx eax, word [ecx + eax*2]
mov esi, dword [esi + eax*4]
add esi, ebx
cmp esi, edi
jb 0x402dfa
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + ebx + 0x7c]
add eax, edi
cmp esi, eax
jae 0x402dfa
mov ecx, esi
call fcn.00402e3a
mov esi, eax
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x402e03
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0x30]
push ebx
push esi
push edi
mov edi, dword [eax + 0xc]
mov ebx, ecx
add edi, 0xc
mov esi, dword [edi]
jmp 0x402e2b
mov ecx, dword [esi + 0x30]
call fcn.00402c03
xor eax, 0x73988a87
cmp eax, ebx
je 0x402e35
mov esi, dword [esi]
cmp esi, edi
jne 0x402e18
xor eax, eax
pop edi
pop esi
pop ebx
ret
mov eax, dword [esi + 0x18]
jmp 0x402e31

Function at 0x402fe0
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, ecx
push edi
mov dword [ebp - 4], eax
call fcn.004030d7
mov edi, eax
mov dword [ebp - 0x10], edi
test edi, edi
je 0x4030d2
push esi
push 0x40
push 0x3000
push dword [edi + 0x50]
mov edx, 0xb1a257f
mov ecx, 0xfce66cf5
push 0
push 0x274
call fcn.00402ec3
pop ecx
call eax
mov esi, eax
test esi, esi
je 0x4030cf
movzx ecx, word [edi + 0x14]
lea eax, [edi + 0x18]
mov edx, dword [ebp - 4]
add eax, ecx
movzx ecx, word [edi + 6]
push ebx
push dword [edi + 0x54]
imul ebx, ecx, 0x28
mov ecx, esi
mov dword [ebp - 8], eax
add ebx, eax
call fcn.00402f5b
pop ecx
mov ecx, dword [ebp - 8]
cmp ecx, ebx
jae 0x403098
sub ebx, ecx
mov edi, dword [ebp - 4]
lea eax, [ecx + 0x10]
xor edx, edx
mov dword [ebp - 0xc], eax
push 0x28
lea eax, [ebx - 1]
mov ebx, dword [ebp - 0xc]
pop ecx
div ecx
inc eax
mov dword [ebp - 8], eax
mov ecx, dword [ebx]
cmp dword [ebx - 8], ecx
mov edx, dword [ebx + 4]
cmovb ecx, dword [ebx - 8]
add edx, edi
push ecx
mov ecx, dword [ebx - 4]
add ecx, esi
call fcn.00402f5b
dec dword [ebp - 8]
lea ebx, [ebx + 0x28]
pop ecx
jne 0x403073
mov edi, dword [ebp - 0x10]
mov edx, edi
mov ecx, esi
call fcn.004031b0
mov edx, edi
mov ecx, esi
call fcn.00403105
pop ebx
test eax, eax
jne 0x4030cf
push 0x8000
push eax
push esi
push 0x23e
mov edx, 0xc8395c62
mov ecx, 0xfce66cf5
call fcn.00402ec3
pop ecx
call eax
xor esi, esi
mov eax, esi
pop esi
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x4030d7
Capabilities:
Parse pe header

Disassembly:
cmp edx, 0x40
jae 0x4030df
xor eax, eax
ret
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x4030dc
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x4030dc
mov edx, 0x10b
xor ecx, ecx
cmp word [eax + 0x18], dx
cmovne eax, ecx
ret
Function at 0x99677c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x9967a3
call fcn.00938d18
mov dword [eax], esi
call fcn.00938d05
push 0x16
pop esi
mov dword [eax], esi
call fcn.0093995a
mov eax, esi
jmp 0x9967f8
test dword [ebp + 0xc], 0xfffffff9
jne 0x996789
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x9967d0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00938d2b
pop ecx
call fcn.00938d05
mov eax, dword [eax]
jmp 0x9967f8
test al, 0x10
jne 0x9967f6
test al, 1
je 0x9967f6
test byte [ebp + 0xc], 2
je 0x9967f6
call fcn.00938d18
mov dword [eax], 5
call fcn.00938d05
mov dword [eax], 0xd
jmp 0x9967c7
xor eax, eax
pop esi
pop ebp
ret

Function at 0x104120b0
Capabilities:
Decompress data using aplib

Disassembly:
call 0x10412200
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 0x104120d6
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x104120c2
add dl, dl
jne 0x104120e1
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x10412134
xor eax, eax
add dl, dl
jne 0x104120ee
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x104121d5
add dl, dl
jne 0x104120fd
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x10412108
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x10412113
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1041211e
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x1041212a
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x104120cd
mov eax, 1
add dl, dl
jne 0x10412142
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1041214d
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x10412139
sub eax, ebx
mov ebx, 1
jne 0x10412180
mov ecx, 1
add dl, dl
jne 0x10412166
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x10412171
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1041215d
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x104120cd
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x10412197
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x104121a2
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1041218e
cmp eax, 0x7d00
jae 0x104121c5
cmp eax, 0x500
jb 0x104121c0
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x104120cd
cmp eax, 0x7f
ja 0x104121c8
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x104120cd
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x104121f6
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 0x104120cd
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x99677c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x9967a3
call fcn.00938d18
mov dword [eax], esi
call fcn.00938d05
push 0x16
pop esi
mov dword [eax], esi
call fcn.0093995a
mov eax, esi
jmp 0x9967f8
test dword [ebp + 0xc], 0xfffffff9
jne 0x996789
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x9967d0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00938d2b
pop ecx
call fcn.00938d05
mov eax, dword [eax]
jmp 0x9967f8
test al, 0x10
jne 0x9967f6
test al, 1
je 0x9967f6
test byte [ebp + 0xc], 2
je 0x9967f6
call fcn.00938d18
mov dword [eax], 5
call fcn.00938d05
mov dword [eax], 0xd
jmp 0x9967c7
xor eax, eax
pop esi
pop ebp
ret
Function at 0x401366
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4013bd
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4013ae
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, dword [esp + 0x10]
lea ecx, [esi + eax]
and edx, 0xf
jbe 0x4013aa
cmp esi, ecx
jae 0x4013ae
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
dec edx
jne 0x40139a
cmp esi, ecx
jb 0x4013b2
xor eax, eax
jmp 0x4013bc
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x404540
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
mov eax, dword [0x435280]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, ecx
call fcn.00411edb
mov dword [edi + 0x14], eax
call fcn.00411edb
mov word [edi], ax
call fcn.00411edb
mov word [edi + 0x12], ax
mov esi, dword [edi + 0x14]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea ecx, [esi + 4]
mov dword [ebp - 0x60], 0x67452301
imul ecx, esi
lea edx, [ebp - 8]
xor esi, esi
mov dword [ebp - 0x5c], 0xefcdab89
push 4
mov dword [ebp - 0x64], esi
mov dword [ebp - 0x68], esi
add ecx, 7
mov dword [ebp - 0x58], 0x98badcfe
add eax, ecx
mov dword [ebp - 0x54], 0x10325476
lea ecx, [ebp - 0x68]
mov dword [ebp - 8], eax
call fcn.004053e0
pop ecx
mov edx, esi
mov eax, edx
mov ecx, edx
sar eax, 2
and ecx, 3
shl ecx, 3
mov eax, dword [ebp + eax*4 - 0x68]
shr eax, cl
mov byte [ebp + edx - 0xc], al
inc edx
cmp edx, 8
jl 0x4045b8
mov eax, dword [ebp - 0x68]
mov edx, 0x42f700
push 0xfffffffffffffff7
shr eax, 3
pop ecx
sub ecx, eax
and ecx, 0x3f
inc ecx
push ecx
lea ecx, [ebp - 0x68]
call fcn.004053e0
push 8
lea edx, [ebp - 0xc]
lea ecx, [ebp - 0x68]
call fcn.004053e0
pop ecx
pop ecx
mov eax, esi
mov ecx, esi
sar eax, 2
and ecx, 3
shl ecx, 3
mov eax, dword [ebp + eax*4 - 0x60]
shr eax, cl
mov byte [edi + esi + 2], al
inc esi
cmp esi, 0x10
jl 0x404601
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00410875
mov esp, ebp
pop ebp
ret
Function at 0x4054bd
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4280f5
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x435280]
xor eax, esp
mov dword [esp + 0x48], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x435280]
xor eax, esp
push eax
lea eax, [esp + 0x60]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [esp + 0x70]
xor ebp, ebp
push 7
pop ecx
xor eax, eax
mov dword [esp + 0x28], ecx
mov dword [esp + 0x24], ebp
mov word [esp + 0x14], ax
mov dword [esp + 0x68], ebp
mov dword [esp + 0x40], ecx
mov dword [esp + 0x3c], ebp
mov word [esp + 0x2c], ax
lea ecx, [esp + 0x44]
mov byte [esp + 0x68], 1
call fcn.0040562b
mov ebx, eax
lea eax, [esp + 0x2c]
cmp eax, ebx
je 0x405546
push ebp
push 1
mov ecx, eax
call fcn.00405930
push ebx
lea ecx, [esp + 0x30]
call fcn.004057d7
push ebp
push 1
lea ecx, [esp + 0x4c]
call fcn.00405930
push 0x42f740
lea ecx, [esp + 0x30]
call fcn.00405771
lea ecx, [esp + 0x14]
cmp ecx, eax
je 0x405571
push 0xffffffffffffffff
push ebp
push eax
call fcn.00405a93
push 0xffffffffffffffff
push ebp
push edi
lea ecx, [esp + 0x20]
call fcn.00405974
lea eax, [esp + 0x14]
cmp eax, edi
je 0x405591
push 0xffffffffffffffff
push ebp
push edi
mov ecx, eax
call fcn.00405a93
cmp dword [esi + 0x14], 8
jb 0x405599
mov esi, dword [esi]
push esi
push 0x65
push ebp
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
push ebp
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
cmp dword [esp + 0x28], 8
lea ecx, [esp + 0x14]
push 0x42f744
cmovae ecx, dword [esp + 0x18]
mov ebx, eax
push ecx
call fcn.00412062
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x4055f4
push esi
push 1
push ebx
push edi
call fcn.0041229a
push esi
call fcn.00411f9a
add esp, 0x14
push ebp
push 1
lea ecx, [esp + 0x34]
call fcn.00405930
push ebp
push 1
lea ecx, [esp + 0x1c]
call fcn.00405930
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.00410875
add esp, 0x58
ret