joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10089130
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd0
push esi
mov esi, ecx
mov dword [ebp - 0xd0], 0x5100a02
push edi
mov edi, edx
mov dword [ebp - 0xcc], 0x40d0901
mov dword [ebp - 0xc8], 0xd4d3d2d1
mov ecx, dword [esi + 0x30c]
mov edx, ecx
add edx, edx
mov dword [ebp - 0xc4], 0xd8d7d6d5
mov dword [ebp - 0xc0], 0xf2e0730
mov dword [ebp - 0xbc], 0x8120c03
lea eax, [ecx + 1]
mov dword [ebp - 0xb8], 0xe2d062f
mov dword [esi + 0x30c], eax
mov dword [ebp - 0xb4], 0xe4e3e2e1
mov dword [ebp - 0xb0], 0xe8e7e6e5
mov dword [ebp - 0xac], 0x15181613
mov dword [ebp - 0xa8], 0x171d141e
mov dword [ebp - 0xa4], 0xdcdbdad9
mov dword [ebp - 0xa0], 0xe0dfdedd
mov dword [ebp - 0x9c], 0x25282623
mov dword [ebp - 0x98], 0x272b242c
mov dword [ebp - 0x94], 0x64636261
mov dword [ebp - 0x90], 0x68676665
mov dword [ebp - 0x8c], 0x5c5b5a59
mov dword [ebp - 0x88], 0x605f5e5d
mov dword [ebp - 0x84], 0x74737271
mov dword [ebp - 0x80], 0x78777675
mov dword [ebp - 0x7c], 0x7c7b7a79
mov dword [ebp - 0x78], 0x807f7e7d
mov dword [ebp - 0x74], 0x84838281
mov dword [ebp - 0x70], 0x88878685
mov dword [ebp - 0x6c], 0x8c8b8a89
mov dword [ebp - 0x68], 0x908f8e8d
mov dword [ebp - 0x64], 0x94939291
mov dword [ebp - 0x60], 0x98979695
mov dword [ebp - 0x5c], 0x9c9b9a99
mov dword [ebp - 0x58], 0xa09f9e9d
mov dword [ebp - 0x54], 0xa4a3a2a1
mov dword [ebp - 0x50], 0xa8a7a6a5
mov dword [ebp - 0x4c], 0xacabaaa9
mov dword [ebp - 0x48], 0xb0afaead
mov dword [ebp - 0x44], 0xb4b3b2b1
mov dword [ebp - 0x40], 0xb8b7b6b5
mov dword [ebp - 0x3c], 0xbcbbbab9
mov dword [ebp - 0x38], 0xc0bfbebd
mov dword [ebp - 0x34], 0xc4c3c2c1
mov dword [ebp - 0x30], 0xc8c7c6c5
mov dword [ebp - 0x2c], 0xcccbcac9
mov dword [ebp - 0x28], 0xd0cfcecd
mov dword [ebp - 0x24], 0x54535251
mov dword [ebp - 0x20], 0x58575655
mov dword [ebp - 0x1c], 0x11310b1c
mov dword [ebp - 0x18], 0x43422120
mov dword [ebp - 0x14], 0x47464544
mov dword [ebp - 0x10], 0x33324948
mov dword [ebp - 0xc], 0x37363534
mov dword [ebp - 8], 0x293a3938
mov byte [ebp - 4], 0
movzx eax, byte [ebp + edi - 0xd0]
pop edi
mov byte [esi + edx*8 + 0xc], 1
mov dword [esi + edx*8 + 0x10], eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x100e3e30
Capabilities:
Decompress data using quicklz

Disassembly:
push ecx
push ebx
mov ebx, edx
shr ebx, 0x16
push esi
and ebx, 0xf
push edi
mov edi, ecx
cmp ebx, 0xe
je 0x100e3edf
cmp ebx, 0xf
je 0x100e3edf
mov ecx, dword [edi + 0x30c]
sub esp, 0xc
mov esi, ecx
add esi, esi
lea eax, [ecx + 1]
mov ecx, edx
mov dword [edi + 0x30c], eax
and ecx, 0x800
mov eax, edx
shl ecx, 3
and eax, 0x2000
mov byte [edi + esi*8 + 0xc], 2
or ecx, eax
mov eax, edx
shr eax, 6
and eax, 0xfff00000
shl ecx, 5
or ecx, eax
mov eax, edx
shr eax, 4
and edx, 0x7ff
shl ecx, 0xb
and eax, 0x3f000
sar ecx, 0xb
add edx, edx
or eax, ecx
mov ecx, edi
or eax, edx
cdq
mov dword [edi + esi*8 + 0x14], edx
mov edx, ebx
mov dword [edi + esi*8 + 0x10], eax
call fcn.100ddcc0
add esp, 0xc
sub eax, 0
je 0x100e3ef5
sub eax, 1
je 0x100e3ed5
sub eax, 2
je 0x100e3f37
xor eax, eax
pop edi
pop esi
pop ebx
pop ecx
ret
mov eax, 1
pop edi
pop esi
pop ebx
pop ecx
ret
mov eax, edx
shr eax, 4
sub eax, 0xf3bf8f4
je 0x100e3f0c
sub eax, 1
je 0x100e3f04
sub eax, 1
je 0x100e3efc
xor eax, eax
pop edi
pop esi
pop ebx
pop ecx
ret
mov dword [edi], 0x951
jmp 0x100e3f12
mov dword [edi], 0x94b
jmp 0x100e3f12
mov dword [edi], 0x94c
mov eax, dword [edi + 0x30c]
mov ecx, eax
add ecx, ecx
inc eax
mov dword [edi + 0x30c], eax
and edx, 0xf
mov byte [edi + ecx*8 + 0xc], 2
mov dword [edi + ecx*8 + 0x10], edx
mov dword [edi + ecx*8 + 0x14], 0
pop edi
pop esi
mov eax, 3
pop ebx
pop ecx
ret

Function at 0x100eb5a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0xc]
test ebx, ebx
jne 0x100eb5b6
mov eax, dword [ebp + 8]
pop edi
pop ebx
pop ebp
ret
add ebx, 0xffffffff
je 0x100eb5ff
push esi
nop dword [eax]
movzx eax, byte [edi]
mov esi, ebx
and esi, 0x1f
inc edi
mov ecx, esi
neg ecx
mov edx, dword [eax*4 + section..data]
and ecx, 0x1f
mov eax, edx
shr eax, cl
mov ecx, esi
shl edx, cl
mov ecx, dword [ebp + 8]
or eax, edx
xor ecx, eax
mov dword [ebp + 8], ecx
sub ebx, 1
jne 0x100eb5c0
movzx eax, byte [edi]
pop esi
pop edi
pop ebx
mov eax, dword [eax*4 + section..data]
xor eax, ecx
pop ebp
ret
movzx eax, byte [edi]
mov ecx, dword [ebp + 8]
pop edi
pop ebx
mov eax, dword [eax*4 + section..data]
xor eax, ecx
pop ebp
ret
Function at 0x10111020
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push ebx
push esi
push edi
cmp eax, 0x40
jb 0x10111090
mov edx, 0x5a4d
cmp word [ecx], dx
jne 0x10111095
mov edx, dword [ecx + 0x3c]
test edx, edx
js 0x10111095
lea esi, [edx + 0x18]
cmp eax, esi
jb 0x10111095
add edx, ecx
add esi, 0xe0
cmp dword [edx], 0x4550
jne 0x10111095
movzx edi, word [edx + 4]
mov ebx, 0x14c
cmp di, bx
je 0x10111071
mov ebx, 0x8664
cmp di, bx
jne 0x10111095
cmp eax, esi
jbe 0x10111095
mov esi, 0x2000
test word [edx + 0x16], si
jne 0x10111095
mov eax, dword [edx + 0x28]
xor edx, edx
add eax, dword [ebp + 0x10]
pop edi
adc edx, dword [ebp + 0x14]
pop esi
pop ebx
pop ebp
ret
cmp eax, 0x10
jb 0x101110b2
cmp dword [ecx], 0x464c457f
jne 0x101110b2
movzx edx, byte [ecx + 4]
mov esi, edx
sub esi, 1
je 0x101110c1
sub esi, 1
jne 0x101110b2
cmp eax, 0x40
jae 0x101110c6
pop edi
pop esi
mov eax, 0xfabadaff
mov edx, 0xfffabada
pop ebx
pop ebp
ret
cmp eax, 0x34
jb 0x101110b2
sub edx, 1
je 0x101110e2
sub edx, 1
jne 0x101110b2
cmp word [ecx + 0x10], 2
jne 0x101110b2
mov eax, dword [ecx + 0x18]
mov edx, dword [ecx + 0x1c]
pop edi
pop esi
pop ebx
pop ebp
ret
cmp word [ecx + 0x10], 2
jne 0x101110b2
mov eax, dword [ecx + 0x18]
xor edx, edx
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x1011b170
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
push esi
cmp ecx, 0x40
jb 0x1011b2eb
mov eax, dword [ebp + 8]
mov edx, 0x5a4d
cmp word [eax], dx
jne 0x1011b2eb
mov edx, dword [eax + 0x3c]
test edx, edx
js 0x1011b2eb
lea esi, [edx + 0x18]
cmp ecx, esi
jb 0x1011b2eb
add edx, eax
cmp dword [edx], 0x4550
jne 0x1011b2eb
lea eax, [esi + 0xe0]
cmp ecx, eax
jb 0x1011b2eb
push ebx
mov ebx, 0x20b
mov eax, 0xf0
cmp word [edx + 0x18], bx
push edi
mov edi, 0xe0
cmovne eax, edi
add eax, esi
pop edi
pop ebx
cmp ecx, eax
jb 0x1011b2eb
movzx ecx, word [edx + 4]
test cx, cx
je 0x1011b2e6
mov eax, 0x1d3
cmp cx, ax
je 0x1011b2e6
mov eax, 0x8664
cmp cx, ax
je 0x1011b2e6
mov eax, 0x1c0
cmp cx, ax
je 0x1011b2e6
mov eax, 0x1c4
cmp cx, ax
je 0x1011b2e6
mov eax, 0xaa64
cmp cx, ax
je 0x1011b2e6
mov eax, 0xebc
cmp cx, ax
je 0x1011b2e6
mov eax, 0x14c
cmp cx, ax
je 0x1011b2e6
mov eax, 0x200
cmp cx, ax
je 0x1011b2e6
mov eax, 0x9041
cmp cx, ax
je 0x1011b2e6
mov eax, 0x266
cmp cx, ax
je 0x1011b2e6
mov eax, 0x366
cmp cx, ax
je 0x1011b2e6
mov eax, 0x466
cmp cx, ax
je 0x1011b2e6
mov eax, 0x1f0
cmp cx, ax
je 0x1011b2e6
mov eax, 0x1f1
cmp cx, ax
je 0x1011b2e6
mov eax, 0x166
cmp cx, ax
je 0x1011b2e6
mov eax, 0x1a2
cmp cx, ax
je 0x1011b2e6
mov eax, 0x1a3
cmp cx, ax
je 0x1011b2e6
mov eax, 0x1a6
cmp cx, ax
je 0x1011b2e6
mov eax, 0x1a8
cmp cx, ax
je 0x1011b2e6
mov eax, 0x1c2
cmp cx, ax
je 0x1011b2e6
mov eax, 0x169
cmp cx, ax
jne 0x1011b2eb
mov eax, edx
pop esi
pop ebp
ret
xor eax, eax
pop esi
pop ebp
ret
Function at 0x1011b2f0
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
xor esi, esi
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [edi + 8]
mov dword [ebp - 0x10], ecx
movzx eax, word [ecx + 0x14]
add ecx, 0x18
add ecx, eax
mov eax, dword [edi + 8]
xor edx, edx
mov dword [ebp - 8], edx
movzx eax, word [eax + 6]
mov dword [ebp - 0x14], eax
cmp ax, 0x60
mov dword [ebp - 0xc], edx
movzx eax, ax
jb 0x1011b336
mov eax, 0x60
cmp edx, eax
jge 0x1011b3d3
mov eax, dword [edi + 4]
cmp eax, 0x28
jb 0x1011b424
mov edx, dword [edi]
cmp ecx, edx
jb 0x1011b424
add eax, 0xffffffd8
add eax, edx
cmp ecx, eax
ja 0x1011b424
mov edx, dword [ecx + 0xc]
mov eax, edx
cmp dword [ebp - 4], edx
cmovbe eax, dword [ebp - 4]
cmp dword [ebp + 0x10], 0
mov dword [ebp - 4], eax
jb 0x1011b3a1
ja 0x1011b37d
cmp dword [ebp + 0xc], edx
jb 0x1011b3a1
cmp ebx, edx
ja 0x1011b3a1
mov eax, dword [ebp - 0x10]
mov ebx, edx
mov esi, dword [ecx + 0x14]
mov edi, dword [eax + 0x3c]
mov eax, dword [ecx + 0x10]
mov dword [ebp - 8], eax
cmp edi, 0x200
jae 0x1011b3b0
test edi, edi
jne 0x1011b3b5
mov edi, dword [ebp + 8]
mov edx, dword [ebp - 0xc]
add ecx, 0x28
mov eax, dword [ebp - 0x14]
inc edx
jmp 0x1011b325
mov edi, 0x200
xor edx, edx
mov eax, esi
div edi
mov edi, dword [ebp + 8]
test edx, edx
je 0x1011b3a1
mov eax, dword [ebp - 0x14]
sub esi, edx
mov edx, dword [ebp - 0xc]
add ecx, 0x28
inc edx
jmp 0x1011b325
cmp dword [ebp + 0x10], 0
ja 0x1011b3ec
jb 0x1011b3e3
mov eax, dword [ebp - 4]
cmp dword [ebp + 0xc], eax
jae 0x1011b3ec
mov edx, dword [edi + 4]
xor ebx, ebx
xor esi, esi
jmp 0x1011b3ef
mov edx, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
sub ecx, ebx
sbb eax, 0
test eax, eax
ja 0x1011b424
jb 0x1011b404
cmp ecx, edx
jae 0x1011b424
xor edx, edx
sub esi, ebx
sbb edx, edx
add esi, dword [ebp + 0xc]
adc edx, dword [ebp + 0x10]
test edx, edx
jg 0x1011b424
jl 0x1011b41b
cmp esi, dword [edi + 4]
jae 0x1011b424
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
or eax, 0xffffffff
pop esi
or edx, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10138a50
Capabilities:
Check if file exists

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push esi
push dword [esp + 0x14]
call fcn.101797e0
push 0x62
push esi
mov edi, eax
mov ebx, 1
call fcn.1024d740
add esp, 0x10
mov ecx, 0x11
test eax, eax
cmove ebx, ecx
test edi, edi
jne 0x10138b09
call fcn.10123440
push str.BIO_new_file
push 0x43
push str.crypto_bio_bss_file.c
call fcn.10123540
add esp, 0xc
push esi
push dword [esp + 0x14]
push str.calling_fopen__s___s_
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 2
call fcn.101235f0
add esp, 0x14
call fcn.1025cba7
cmp dword [eax], 2
je 0x10138ad9
call fcn.1025cba7
cmp dword [eax], 6
je 0x10138ad9
mov esi, 0x80002
mov edi, 0x4d
jmp 0x10138ae1
mov esi, 0x80
lea edi, [esi - 0x35]
call fcn.10123440
push str.BIO_new_file
push edi
push str.crypto_bio_bss_file.c
call fcn.10123540
push 0
push esi
push 0x20
call fcn.101235f0
add esp, 0x18
xor eax, eax
pop edi
pop esi
pop ebx
ret
push 0x10297e24
call fcn.1012e3e0
mov esi, eax
add esp, 4
test esi, esi
jne 0x10138b2b
push edi
call fcn.1025d221
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
ret
push 0
push esi
call fcn.1012dcb0
push edi
push ebx
push 0x6a
push esi
call fcn.1012dce0
add esp, 0x18
mov eax, esi
pop edi
pop esi
pop ebx
ret

Function at 0x10148b60
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
mov cl, byte [esp + 0x10]
movzx eax, cl
push esi
mov esi, dword [esp + 0x10]
and eax, 1
test esi, esi
je 0x10148ba2
push ebx
mov ebx, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0x14]
add edi, esi
add ebx, esi
movzx edx, byte [edi - 1]
lea edi, [edi - 1]
movzx ecx, cl
lea ebx, [ebx - 1]
xor edx, ecx
mov cl, byte [esp + 0x1c]
add eax, edx
mov byte [ebx], al
shr eax, 8
sub esi, 1
jne 0x10148b81
pop edi
pop ebx
pop esi
ret
Function at 0x1014a0b0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp dword [0x104f027c], 0
push esi
mov esi, dword [ebp + 8]
jne 0x1014a1bd
mov eax, 1
lock xadd dword [0x104f0280], eax
inc eax
cmp eax, 1
jne 0x1014a1ac
test esi, esi
jne 0x1014a1a1
push ebx
push edi
push str.advapi32.dll
mov dword [ebp + 8], esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov esi, eax
test esi, esi
je 0x1014a181
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x1029b1e4
push esi
call edi
mov ebx, eax
test ebx, ebx
je 0x1014a181
push str.CryptGenRandom
push esi
call edi
mov dword [ebp - 8], eax
test eax, eax
je 0x1014a181
push 0x1029b20c
push esi
call edi
mov edi, eax
test edi, edi
je 0x1014a181
push 0xf0000000
push 1
push 0
push 0
lea eax, [ebp + 8]
push eax
call ebx
test eax, eax
je 0x1014a181
lea eax, [ebp - 4]
push eax
push 4
push dword [ebp + 8]
call dword [ebp - 8]
push 0
push dword [ebp + 8]
mov esi, eax
call edi
test esi, esi
je 0x1014a181
mov eax, dword [ebp - 4]
movzx esi, al
shl esi, 8
movzx eax, ah
or esi, eax
movzx eax, byte [ebp - 2]
shl esi, 8
or esi, eax
movzx eax, byte [ebp - 1]
shl esi, 8
or esi, eax
jmp 0x1014a195
push 0
call fcn.1025af90
add esp, 4
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor esi, eax
test esi, esi
mov eax, 1
pop edi
cmove esi, eax
pop ebx
mov dword [0x104f027c], esi
pop esi
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.KERNEL32.dll_SwitchToThread]
call esi
cmp dword [0x104f027c], 0
je 0x1014a1b2
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1014a1d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
add ecx, 0xdeadbeef
push ebx
mov ebx, dword [ebp + 8]
add ecx, edx
push esi
mov esi, ecx
mov dword [ebp + 0x10], esi
push edi
mov edi, ecx
cmp edx, 0xc
jbe switch.0x1014a2dc
add edx, 0xfffffff3
mov eax, 0xaaaaaaab
mul edx
mov eax, edx
shr eax, 3
inc eax
mov dword [ebp - 4], eax
nop dword [eax + eax]
movzx esi, byte [ebx + 7]
movzx eax, byte [ebx + 6]
movzx edx, byte [ebx + 0xb]
shl esi, 8
add esi, eax
shl edx, 8
movzx eax, byte [ebx + 5]
shl esi, 8
add esi, eax
movzx eax, byte [ebx + 4]
add edi, eax
shl esi, 8
movzx eax, byte [ebx + 0xa]
add edi, esi
movzx esi, byte [ebx + 8]
add edx, eax
movzx eax, byte [ebx + 9]
add esi, ecx
shl edx, 8
add edx, eax
shl edx, 8
add esi, edx
mov edx, dword [ebp + 8]
mov ebx, esi
rol ebx, 4
movzx ecx, byte [edx + 3]
movzx eax, byte [edx + 2]
shl ecx, 8
add ecx, eax
movzx eax, byte [edx + 1]
shl ecx, 8
add ecx, eax
movzx eax, byte [edx]
shl ecx, 8
add ecx, eax
sub ecx, esi
add esi, edi
add ecx, dword [ebp + 0x10]
xor ebx, ecx
sub edi, ebx
mov eax, ebx
add ebx, esi
rol eax, 6
xor eax, edi
sub esi, eax
mov edx, eax
rol edx, 8
add eax, ebx
xor edx, esi
sub ebx, edx
mov esi, edx
rol esi, 0x10
add edx, eax
xor esi, ebx
mov ebx, dword [ebp + 8]
mov edi, esi
sub eax, esi
ror edi, 0xd
add esi, edx
xor edi, eax
mov dword [ebp + 0x10], esi
sub edx, edi
mov ecx, edi
rol ecx, 4
add ebx, 0xc
xor ecx, edx
mov dword [ebp + 8], ebx
mov edx, dword [ebp + 0xc]
add edi, esi
sub edx, 0xc
sub dword [ebp - 4], 1
mov dword [ebp + 0xc], edx
jne 0x1014a210
cmp edx, 0xc
ja 0x1014a348
jmp dword [edx*4 + 0x1014a398]
movzx eax, byte [ebx + 0xb]
shl eax, 0x18
add ecx, eax
movzx eax, byte [ebx + 0xa]
shl eax, 0x10
add ecx, eax
movzx eax, byte [ebx + 9]
shl eax, 8
add ecx, eax
movzx eax, byte [ebx + 8]
add ecx, eax
movzx eax, byte [ebx + 7]
shl eax, 0x18
add edi, eax
movzx eax, byte [ebx + 6]
shl eax, 0x10
add edi, eax
movzx eax, byte [ebx + 5]
shl eax, 8
add edi, eax
movzx eax, byte [ebx + 4]
add edi, eax
movzx eax, byte [ebx + 3]
shl eax, 0x18
add esi, eax
movzx eax, byte [ebx + 2]
shl eax, 0x10
add esi, eax
movzx eax, byte [ebx + 1]
shl eax, 8
add esi, eax
movzx eax, byte [ebx]
add esi, eax
mov dword [ebp + 0x10], esi
xor ecx, edi
mov eax, edi
rol eax, 0xe
sub ecx, eax
mov eax, ecx
mov esi, ecx
xor esi, dword [ebp + 0x10]
rol eax, 0xb
sub esi, eax
xor edi, esi
mov eax, esi
ror eax, 7
sub edi, eax
mov eax, edi
xor ecx, edi
rol eax, 0x10
sub ecx, eax
mov eax, ecx
mov edx, ecx
rol eax, 4
xor edx, esi
sub edx, eax
mov eax, edx
xor edi, edx
rol eax, 0xe
sub edi, eax
mov eax, edi
xor ecx, edi
ror eax, 8
sub ecx, eax
pop edi
pop esi
mov eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1016b7d0
Capabilities:
Get common file path

Disassembly:
mov eax, 0x230
call fcn.1024a9d0
mov eax, dword [0x10391724]
xor eax, esp
mov dword [esp + 0x22c], eax
cmp dword [0x104f0590], 0
mov dword [esp], 0x10293ca8
mov dword [esp + 4], 0x1016b1c0
mov dword [esp + 8], str.getnameinfo
mov dword [esp + 0xc], 0x1016b580
mov dword [esp + 0x10], str.freeaddrinfo
mov dword [esp + 0x14], 0x1016b170
jne 0x1016b92b
push 0x104
lea eax, [esp + 0x128]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x1016b921
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x134]
push eax
lea eax, [esp + 0x2c]
push 0x10c
push eax
call fcn.1025b4eb
push 0x1029f9f8
lea eax, [esp + 0x38]
push 0x10c
push eax
call fcn.1025c792
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea eax, [esp + 0x40]
add esp, 0x18
push eax
call esi
mov ebp, dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov edi, eax
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
test edi, edi
je 0x1016b89f
push 0x10293ca8
push edi
call ebx
test eax, eax
jne 0x1016b8e6
push edi
call ebp
lea eax, [esp + 0x134]
push eax
lea eax, [esp + 0x2c]
push 0x10c
push eax
call fcn.1025b4eb
push str.wship6
lea eax, [esp + 0x38]
push 0x10c
push eax
call fcn.1025c792
add esp, 0x18
lea eax, [esp + 0x28]
push eax
call esi
mov edi, eax
test edi, edi
je 0x1016b91d
push 0x10293ca8
push edi
call ebx
test eax, eax
je 0x1016b91a
xor esi, esi
push dword [esp + esi*8 + 0x10]
push edi
call ebx
mov dword [esp + esi*8 + 0x14], eax
test eax, eax
je 0x1016b91a
inc esi
cmp esi, 3
jl 0x1016b8e8
mov eax, dword [esp + 0x14]
mov dword [0x10390994], eax
mov eax, dword [esp + 0x1c]
mov dword [0x1039099c], eax
mov eax, dword [esp + 0x24]
mov dword [0x103909a4], eax
jmp 0x1016b91d
push edi
call ebp
pop edi
pop esi
pop ebp
pop ebx
mov dword [0x104f0590], 1
movzx eax, word [esp + 0x234]
mov ecx, dword [esp + 0x22c]
xor ecx, esp
mov eax, dword [eax*8 + 0x10390994]
call fcn.1024a5e7
add esp, 0x230
ret 4
Function at 0x1016b960
Capabilities:
Resolve dns

Disassembly:
mov eax, 0x820
call fcn.1024a9d0
mov eax, dword [0x10391724]
xor eax, esp
mov dword [esp + 0x81c], eax
push ebx
mov ebx, dword [esp + 0x83c]
lea eax, [esp + 0x18]
push ebp
push esi
mov esi, dword [esp + 0x830]
push edi
push 0x401
push 0
push eax
mov dword [esp + 0x28], esi
mov dword [esp + 0x24], ebx
mov dword [esp + 0x1c], 0
call fcn.1024b810
push 0x401
lea eax, [esp + 0x438]
push 0
push eax
call fcn.1024b810
push 0x400
push esi
lea eax, [esp + 0x44]
push 0x401
push eax
mov dword [esp + 0x3c], eax
lea ebp, [esp + 0x450]
call fcn.1025365f
add esp, 0x28
push esi
mov edi, ebx
mov dword [ebx], 0
mov byte [ebp], 0
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov ebx, eax
test ebx, ebx
je 0x1016bb2f
cmp word [ebx + 8], 2
jne 0x1016ba52
cmp word [ebx + 0xa], 4
jne 0x1016ba52
mov esi, dword [ebx + 0xc]
mov eax, dword [esi]
test eax, eax
je 0x1016ba52
nop word [eax + eax]
push dword [eax]
push dword [esp + 0x844]
push dword [esp + 0x844]
push dword [esp + 0x844]
call fcn.1016bb90
mov dword [edi], eax
test eax, eax
je 0x1016bb28
add esi, 4
lea edi, [eax + 0x1c]
mov eax, dword [esi]
test eax, eax
jne 0x1016ba20
push 0x400
push dword [ebx]
push 0x401
push ebp
call fcn.1025365f
mov ebx, dword [esp + 0x28]
xor esi, esi
add esp, 0x10
cmp dword [ebx], esi
jne 0x1016bae0
mov ecx, ebp
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1016ba76
sub ecx, edx
je case.0x1016bb3f.11003
mov edi, dword [esp + 0x14]
mov ecx, ebp
mov eax, edi
nop dword [eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x1016bab0
test dl, dl
je 0x1016baac
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x1016bab0
add eax, 2
add ecx, 2
test dl, dl
jne 0x1016ba90
xor eax, eax
jmp 0x1016bab5
sbb eax, eax
or eax, 1
test eax, eax
je case.0x1016bb3f.11003
mov esi, dword [esp + 0x10]
inc esi
mov dword [esp + 0x10], esi
cmp esi, 0x10
je case.0x1016bb3f.11003
mov esi, dword [esp + 0x1c]
mov eax, edi
mov dword [esp + 0x14], ebp
mov ebp, eax
jmp 0x1016b9e2
cmp dword [esp + 0x844], esi
je 0x1016bb59
mov ecx, ebp
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1016baf0
sub ecx, edx
lea ebx, [ecx + 1]
push ebx
push 1
call fcn.1025b1a3
mov edi, eax
add esp, 8
test edi, edi
je 0x1016bb18
push ebp
push ebx
push edi
call fcn.1025b4eb
add esp, 0xc
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx]
mov dword [eax + 0x14], edi
mov eax, dword [ecx]
cmp dword [eax + 0x14], esi
jne 0x1016bb59
mov esi, 8
jmp 0x1016bb59
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
add eax, 0xffffd507
cmp eax, 3
ja case.0x1016bb3f.11001
jmp dword [eax*4 + 0x1016bb78]
mov esi, 0x2afa
jmp 0x1016bb59
mov esi, 0x2afb
jmp 0x1016bb59
mov esi, 0x2af9
mov ecx, dword [esp + 0x82c]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1024a5e7
add esp, 0x820
ret 0x18
Function at 0x10269bb8
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.10269a2e

Function at 0x1026ac3d
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1026abbf

Function at 0x1026e2da
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1026de2d
Function at 0x4035ac
Capabilities:
Generate random numbers using the delphi lcg

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

Function at 0x41cc40
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 0x41cc71
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cc59
add dl, dl
jne 0x41cc7c
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cccd
xor eax, eax
add dl, dl
jne 0x41cc89
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cd6a
add dl, dl
jne 0x41cc98
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cca3
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41ccae
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41ccb9
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x41ccc3
mov ebx, edi
sub ebx, eax
mov al, byte [ebx]
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x41cc68
mov eax, 1
add dl, dl
jne 0x41ccdb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cce6
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41ccd2
sub eax, ebx
mov ebx, 1
jne 0x41cd19
mov ecx, 1
add dl, dl
jne 0x41ccff
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41cd0a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41ccf6
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41cc68
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x41cd30
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41cd3b
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cd27
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 0x41cc68
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x41cd8b
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 0x41cc68
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