joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100885a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x100d51c8
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
mov ebx, dword [esp + 0x2c]
push ebp
mov ebp, dword [esp + 0x38]
push esi
push edi
push ebx
mov edi, ecx
push ebp
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push ebx
push ebp
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
xor ebx, ebx
cmp eax, ebx
je 0x10088640
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
cmp eax, ebx
je 0x10088665
mov ebp, 0x100e3e48
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], ebp
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], esi
mov dword [esp + 0x18], esi
mov byte [esp + 0x1c], bl
mov eax, dword [esp + 0x3c]
lea ecx, [esp + 0x10]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x38], ebx
call fcn.10088700
mov byte [esp + 0x38], al
mov eax, dword [esp + 0x14]
cmp eax, ebx
mov dword [esp + 0x10], ebp
je 0x1008863a
cmp byte [esp + 0x1c], bl
je 0x1008863a
push eax
call fcn.10032716
add esp, 4
mov al, byte [esp + 0x38]
jmp 0x10088667
lea edx, [edi + 0x44]
mov edi, str.Unable_to_load_resource_
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
xor al, al
mov ecx, dword [esp + 0x28]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret 0xc
Function at 0x100a5ff0
Capabilities:
Enumerate pe sections

Disassembly:
mov eax, dword [esp + 0xc]
sub esp, 8
cmp eax, 3
push ebx
push esi
jne 0x100a6059
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov cx, word [eax + 0x118]
test cx, cx
jne 0x100a601b
test byte [eax + 0x230], 1
jne 0x100a6038
movzx si, byte [edx]
cmp si, cx
jbe 0x100a6038
push str.Invalid_background_palette_index
push eax
call fcn.1009e690
add esp, 8
pop esi
pop ebx
add esp, 8
ret
mov cl, byte [edx]
push 1
mov byte [esp + 0xc], cl
lea edx, [esp + 0xc]
push edx
push str.bKGD
push eax
call fcn.100a4e30
add esp, 0x10
pop esi
pop ebx
add esp, 8
ret
test al, 2
je 0x100a60d1
mov esi, dword [esp + 0x18]
xor eax, eax
lea ecx, [esp + 8]
mov ax, word [esi + 2]
push eax
push ecx
call fcn.100a4e10
xor edx, edx
lea eax, [esp + 0x12]
mov dx, word [esi + 4]
push edx
push eax
call fcn.100a4e10
xor ecx, ecx
lea edx, [esp + 0x1c]
mov cx, word [esi + 6]
push ecx
push edx
call fcn.100a4e10
mov eax, dword [esp + 0x2c]
add esp, 0x18
cmp byte [eax + 0x127], 8
jne 0x100a60ca
mov cl, byte [esp + 0xc]
mov bl, byte [esp + 0xa]
mov dl, byte [esp + 8]
or cl, bl
or cl, dl
je 0x100a60ca
push str.Ignoring_attempt_to_write_16_bit_bKGD_chunk_when_bit_depth_is_8
push eax
call fcn.1009e690
add esp, 8
pop esi
pop ebx
add esp, 8
ret
push 6
jmp 0x100a6040
mov ecx, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
xor eax, eax
mov edx, 1
mov ax, word [ecx + 8]
mov cl, byte [esi + 0x127]
shl edx, cl
cmp eax, edx
jl 0x100a6104
push str.Ignoring_attempt_to_write_bKGD_chunk_out_of_range_for_bit_depth
push esi
call fcn.1009e690
add esp, 8
pop esi
pop ebx
add esp, 8
ret
push eax
lea eax, [esp + 0xc]
push eax
call fcn.100a4e10
lea ecx, [esp + 0x10]
push 2
push ecx
push str.bKGD
push esi
call fcn.100a4e30
add esp, 0x18
pop esi
pop ebx
add esp, 8
ret
Function at 0x100a87a0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x14], 0xca
jne 0x100a87d0
push esi
call fcn.100a8ca0
mov al, byte [esi + 0x40]
add esp, 4
test al, al
je 0x100a87c9
mov dword [esi + 0x14], 0xcf
mov al, 1
pop esi
ret
mov dword [esi + 0x14], 0xcb
mov eax, dword [esi + 0x14]
cmp eax, 0xcb
jne 0x100a8853
mov eax, dword [esi + 0x190]
mov cl, byte [eax + 0x10]
test cl, cl
je 0x100a883f
mov eax, dword [esi + 8]
test eax, eax
je 0x100a87f4
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x190]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x100a883b
cmp eax, 2
je 0x100a883f
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x100a87e7
cmp eax, 3
je 0x100a881a
cmp eax, 1
jne 0x100a87e7
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x100a87e7
mov edx, dword [esi + 0x11c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x100a87e7
xor al, al
pop esi
ret
mov eax, dword [esi + 0x7c]
push esi
mov dword [esi + 0x84], eax
call fcn.100a8880
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x100a8873
mov ecx, dword [esi]
push esi
mov dword [ecx + 0x14], 0x14
mov edx, dword [esi]
mov eax, dword [esi + 0x14]
mov dword [edx + 0x18], eax
mov ecx, dword [esi]
call dword [ecx]
add esp, 4
push esi
call fcn.100a8880
add esp, 4
pop esi
ret

Function at 0x100a9720
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 0xc]
cmp ecx, 0xc
jb 0x100a97da
mov eax, dword [esp + 8]
cmp byte [eax], 0x41
jne 0x100a97da
cmp byte [eax + 1], 0x64
jne 0x100a97da
cmp byte [eax + 2], 0x6f
jne 0x100a97da
cmp byte [eax + 3], 0x62
jne 0x100a97da
cmp byte [eax + 4], 0x65
jne 0x100a97da
push ebx
xor ecx, ecx
mov cl, byte [eax + 7]
push ebp
push esi
push edi
mov edi, ecx
xor edx, edx
mov dl, byte [eax + 8]
xor ecx, ecx
mov cl, byte [eax + 9]
mov esi, dword [esp + 0x14]
shl edi, 8
add edi, edx
mov ebp, ecx
xor edx, edx
xor ecx, ecx
mov dl, byte [eax + 0xa]
mov cl, byte [eax + 0xb]
shl ebp, 8
add ebp, edx
xor edx, edx
mov dl, byte [eax + 5]
xor ebx, ebx
mov bl, byte [eax + 6]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esi]
mov dword [ecx + 0x1c], edi
shl edx, 8
add ecx, 0x18
add edx, ebx
mov ebx, dword [esp + 0x1c]
push 1
mov dword [ecx], edx
mov dword [ecx + 8], ebp
mov dword [ecx + 0xc], ebx
mov eax, dword [esi]
push esi
mov dword [eax + 0x14], 0x4c
mov ecx, dword [esi]
call dword [ecx + 4]
add esp, 8
mov byte [esi + 0x108], 1
mov byte [esi + 0x109], bl
pop edi
pop esi
pop ebp
pop ebx
ret
mov eax, dword [esp + 4]
push 1
push eax
mov edx, dword [eax]
mov dword [edx + 0x14], 0x4e
mov edx, dword [esp + 0x18]
add ecx, edx
mov edx, dword [eax]
mov dword [edx + 0x18], ecx
mov ecx, dword [eax]
call dword [ecx + 4]
add esp, 8
ret
Function at 0x100aa650
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x28]
mov esi, dword [edi + 0x18]
mov dword [esp + 0x10], esi
mov ebp, dword [esi + 4]
mov ebx, dword [esi]
test ebp, ebp
jne 0x100aa67f
push edi
call dword [esi + 0xc]
add esp, 4
test al, al
je 0x100aa8cb
mov ebx, dword [esi]
mov ebp, dword [esi + 4]
xor eax, eax
dec ebp
mov ah, byte [ebx]
inc ebx
test ebp, ebp
mov dword [esp + 0x28], eax
jne 0x100aa6a5
push edi
call dword [esi + 0xc]
add esp, 4
test al, al
je 0x100aa8cb
mov ebx, dword [esi]
mov ebp, dword [esi + 4]
mov eax, dword [esp + 0x28]
xor ecx, ecx
dec ebp
mov cl, byte [ebx]
add eax, ecx
inc ebx
sub eax, 2
test eax, eax
mov dword [esp + 0x28], eax
jle 0x100aa8a9

Function at 0x100bcfe0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov eax, ebx
push edi
mov edi, ecx
shr eax, 0x10
test ax, ax
mov dword [edi + 0x40], ebx
jne 0x100bd002
cmp dword [edi + 0x3c], 0
jne 0x100bd002
movzx eax, bx
mov dword [edi + 0x3c], eax
call fcn.100c76cf
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
mov ecx, edi
push dword [esp + 0x18]
push eax
call fcn.100bd02f
pop edi
pop esi
pop ebx
ret 8

Function at 0x100be646
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x100be67e
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.100c1525
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.100c14fc
jmp 0x100be68a
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x100be68e
Capabilities:
Get graphical window text

Disassembly:
push esi
push edi
mov edi, dword [esp + 0x10]
mov esi, ecx
push 0x1010b338
mov ecx, edi
call fcn.100c11fe
cmp dword [esi + 0x34], 0
push dword [esp + 0xc]
jne 0x100be6e1
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, eax
test esi, esi
je 0x100be6f4
push esi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
push eax
mov ecx, edi
call fcn.100c1525
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0xffffffffffffffff
mov ecx, edi
call fcn.100c14fc
jmp 0x100be6f4
mov ecx, esi
call fcn.100c0556
test eax, eax
je 0x100be6f4
push edi
mov ecx, eax
call fcn.100be646
mov eax, dword [edi]
pop edi
pop esi
mov eax, dword [eax - 8]
ret 8
Function at 0x100bfe12
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x100bfe54
call fcn.100c76cf
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
cmp eax, edi
je 0x100bfe54
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x100bfe4b
xor eax, eax
jmp 0x100bfe5c
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.100bfe62
pop edi
pop esi
pop ebx
ret 4
Function at 0x100c6147
Capabilities:
Get file version info

Disassembly:
mov eax, 0x100d1f47
call fcn.10030644
sub esp, 0x28
mov eax, dword [0x100fd4c0]
push ebx
push esi
xor esi, esi
push edi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x1c], eax
push 1
pop ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x30]
mov byte [ebp - 4], 2
push eax
call fcn.100c6357
push eax
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 3
call fcn.100c11ae
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 2
call fcn.100c1067
mov eax, dword [ebp - 0x28]
lea ecx, [ebp - 0x28]
push dword [eax - 8]
call fcn.100c14ac
push esi
push eax
mov dword [ebp - 0x34], eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
push eax
mov dword [ebp - 0x30], eax
call fcn.100325dc
pop ecx
mov edi, eax
push edi
push dword [ebp - 0x30]
push esi
push dword [ebp - 0x34]
call sub.VERSION.dll_GetFileVersionInfoW
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x18], esi
push eax
lea eax, [ebp - 0x18]
push eax
push str.VarFileInfoTranslation
push edi
mov dword [ebp - 0x2c], esi
call sub.VERSION.dll_VerQueryValueW
mov eax, dword [0x100fd4c0]
mov dword [ebp - 0x24], eax
mov byte [ebp - 4], 4
mov dword [ebp - 0x20], eax
mov byte [ebp - 4], 5
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x18]
mov esi, str.000_x
mov byte [ebp - 4], 6
movzx eax, word [eax]
push eax
lea eax, [ebp - 0x14]
push esi
push eax
call fcn.100baf9f
add esp, 0xc
lea eax, [ebp - 0x34]
lea ecx, [ebp - 0x14]
push 4
push eax
call fcn.100bab15
push eax
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 7
call fcn.100c11ae
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 6
call fcn.100c1067
mov eax, dword [ebp - 0x18]
movzx eax, word [eax + 2]
push eax
lea eax, [ebp - 0x14]
push esi
push eax
call fcn.100baf9f
add esp, 0xc
lea eax, [ebp - 0x34]
lea ecx, [ebp - 0x14]
push 4
push eax
call fcn.100bab15
push eax
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 8
call fcn.100c1494
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 6
call fcn.100c1067
push dword [ebp - 0x20]
lea eax, [ebp - 0x24]
push str.StringFileInfo_sProductVersion
push eax
call fcn.100baf9f
add esp, 0xc
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 0x24]
push eax
lea eax, [ebp - 0x18]
push eax
push 0x100
call fcn.100c1525
push eax
push edi
call sub.VERSION.dll_VerQueryValueW
push 0xffffffffffffffff
lea ecx, [ebp - 0x24]
call fcn.100c14fc
push dword [ebp - 0x18]
lea eax, [ebp - 0x14]
push 0x10103754
push eax
call fcn.100baf9f
add esp, 0xc
lea eax, [ebp - 0x14]
lea ecx, [ebp - 0x1c]
push eax
call fcn.100c11ae
push edi
call fcn.10032716
mov dword [esp], 0x10109648
push 0x10102160
lea ecx, [ebp - 0x1c]
call fcn.100ba8eb
push 0x100fc7d8
push 0x100fb700
lea ecx, [ebp - 0x1c]
call fcn.100ba8eb
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x1c]
push eax
call fcn.100c0dd4
mov dword [ebp - 0x10], ebx
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 5
call fcn.100c1067
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 4
call fcn.100c1067
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 2
call fcn.100c1067
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], bl
call fcn.100c1067
and byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.100c1067
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x404560
Capabilities:
Receive data
Receive data on socket

Disassembly:
pop ds
mov ebp, esp
push ecx
mov eax, dword [0x41404c]
sbb cl, byte [ebx + 0x57560815]
push ebx
push eax
movsd dword es:[edi], dword [esi]
ficom dword [edx]
add byte [eax], al
mov cl, 0x40
inc eax
inc ecx
add byte [edx - 0x36dc05], dh
xor eax, eax
sub dword [ebx + 0x405cac60], ecx
add byte [ecx + edx*8 + 0x49], bh
cmp ecx, 7
jbe 0x408b6d
fild dword [edi]
push str.http:__
push ebx
call esi
add esp, 0xc
test eax, eax
iretd
push eax
mov dword [ebp - 4], 0xb000008e
mov dword [ebp - 8], 0x4500
call dword [sym.imp.WS2_32.dll_WSARecv]
or dword [edi], 0xffffffff
fisttp qword [ebx + 0x7c3d8b57]
rol dword [eax], 0xf4
bound eax, qword [ebp - 0x76f58a40]
cwde
pop edi
pop esi
outsd dx, dword [esi]
in eax, 0x5d
ret 0xc
Function at 0x406fa0
Capabilities:
Resolve dns

Disassembly:
push ebp
mov eax, dword [edx - 0x29dbc57d]
push esi
mov eax, dword [edx]
or al, 0x33
fstp xword [ebx]
push edi
xchg esp, eax
jne 0x406fa7
jne 0x406fba
je 0x406ff7
hlt
mov al, byte [esi]
cmp al, 0x30
xor eax, 0x6200b98c
jle 0x406fff
jg 0x40707d
push str.0123456789.
push esi
enter 0x1c15, 0xffffffffffffffc1
inc eax
test eax, 0xfeb3d08b
aas
leave
push dword [eax]
add esp, 8
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp edx, ecx
nop dword [eax + eax - 0x66aa0000]
adc eax, sym.imp.WSOCK32.dll_inet_addr
mov dword [eax], edi
cmpsb byte [esi], byte es:[edi]
lea eax, [ebp - 8]
add byte [ecx + 0x458da638], cl
clc
stosb byte es:[edi], al
dec ebp
in al, dx
push cs
push ebp
fmul qword [ecx + 0x5d89ec45]
invalid
push bp
sbb al, 0x6a
cmp byte [edx - 0x43], dl
xor al, 0xda
invalid
push esi
call dword [sym.imp.WSOCK32.dll_gethostbyname]
cmp esi, ebx
mov dword [ebp + 0xc], eax
jne 0x4070c7
mov esi, dword [sym.imp.WSOCK32.dll_WSAGetLastError]
call [edx]
test eax, eax
je 0x4070c6
call esi
pop edi
pop esi
add eax, 0x960afc80
adc eax, 0xc35de58b
mov al, byte [0x56894953]
add al, 0x89
jae 0x4070d2
mov eax, dword [ebp - 0x54]
pop edx
mov dword [ebx + ecx*4], 0x263e89de
test byte [eax - 0x14], cl
cmp dword [edi], 0x11
jne 0x407021
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov ebp, 0xe854ec81
add byte [eax], al
mov ecx, dword [ebp + 0xc]
push ebx
push esi
xor esi, esi
mov eax, dword [ecx]
mov ecx, dword [eax + 4]
mov dword [ebp - 0xc], eax
fadd dword [ebp + 0x10]
push edi
mov dword [ebp - 0x14], esi
sbb al, byte [eax]
xor dword [ebp - 4], 0xffffff84
xchg edx, eax
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x24], edx
je 0x4153fa
sub al, 0x5d
adc al, 0x8c
jo 0x407182
cmp al, 0x8b
inc ebp
hlt
jp 0x407184
or dword [edx + 0x57], 0x33
cmp ebx, ebp
adc ah, bl
or eax, 0x407878
xor edx, esp
add al, byte [edi]
mov ecx, dword [ecx]
jg 0x40719d
inc ecx
and eax, 2
insd dword es:[edi], dx
ret 0x850f
and byte [eax], al
inc ebx
add byte [edi], cl
dec esi
add byte [eax + eax + 0x49], al
add byte [eax + eax + 0x49], dl
add byte [edi], cl
dec esi
add byte [ebx], dl
and byte [eax], al
dec edi
add byte [esi], al
and byte [eax], al
inc ecx
add byte [esi], cl
pop ecx
add byte [eax], ah
add byte [ebx], cl
dec ecx
add byte [esi], cl
inc esp
add byte [eax + eax], ch
and byte [eax], al
add byte gs:[ecx], ch
je 0x415432
push 0x72006500
add byte [eax], ah
add byte [ebp], ah
js 0x41543e

Function at 0x408b40
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp - 0x46]
jnp 0x408b4f
lea ecx, [eax + edi*8]
push 0
mov cl, 6
push edx
mov esp, dword [eax]
or byte [ecx + 0x458df045], cl
fcomp dword [ebp + ecx*2 + 0x428b50f4]
add al, 0x8d
dec ebp
invalid
Function at 0x8c1058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x8c11a8
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 0x8c107e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x8c106a
add dl, dl
jne 0x8c1089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x8c10dc
xor eax, eax
add dl, dl
jne 0x8c1096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x8c117d
add dl, dl
jne 0x8c10a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8c10b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8c10bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8c10c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x8c10d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x8c1075
mov eax, 1
add dl, dl
jne 0x8c10ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8c10f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x8c10e1
sub eax, ebx
mov ebx, 1
jne 0x8c1128
mov ecx, 1
add dl, dl
jne 0x8c110e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x8c1119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x8c1105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x8c1075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x8c113f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x8c114a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x8c1136
cmp eax, 0x7d00
jae 0x8c116d
cmp eax, 0x500
jb 0x8c1168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x8c1075
cmp eax, 0x7f
ja 0x8c1170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x8c1075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x8c119e
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 0x8c1075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10

Function at 0x103a856c
Capabilities:
Encode data using xor

Disassembly:
jmp 0x103a8576
pushal
call 0x103a857c
pop ebp
sub ebp, 0x10
sub ebp, 0x3a856c
mov al, byte [esp + 0x28]
cmp al, 1
je 0x103a85a0
popal
xor eax, eax
inc eax
ret 0xc
jmp 0x103a85a9
mov eax, 0x3a856c
add eax, ebp
add eax, 0x63
mov ecx, 0x611
mov edx, 0x69fa32d2
xor byte [eax], dl
inc eax
dec ecx
jne 0x103a85c0
jmp 0x103a85d3
pop ecx
pop ds
pop ecx
pop ebx
out dx, al
rcl dl, cl
rcl byte [ebx + 0x13], cl
sub dl, dl
rcl dl, cl
rcr dword [edi], 1
push 0xffffffffffffffd4
rcl dl, cl
shr byte [eax - 6], cl
rcl dl, cl
shl byte [0x591ad130], cl
push ebx
invalid
Function at 0x401ea2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x410284]
jne 0x401eac
repz ret
jmp fcn.00403e53

Function at 0x40bdb9
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
pushal
call 0x40bdc8
pop dword [ebp - 0x28]
mov eax, 0x40bdc8
sub dword [ebp - 0x28], eax
mov dword [ebp - 0x38], 0x87328d1
add dword [ebp - 0x38], 0x45df1c7a
mov dword [ebp - 0x34], 0x7ecefe69
add dword [ebp - 0x34], 0xb3644ddc
mov dword [ebp - 0x30], 0x96f8cc51
add dword [ebp - 0x30], 0xb55377dd
mov dword [ebp - 0x2c], 0x527b8961
sub dword [ebp - 0x2c], 0x527b8961
lea eax, [ebp - 0x38]
push eax
mov eax, sym.imp.kernel32.dll_LoadLibraryA
add eax, dword [ebp - 0x28]
call dword [eax]
mov dword [ebp - 0x38], 0x7e5527e6
add dword [ebp - 0x38], 0xf61d4170
mov dword [ebp - 0x34], 0x644700b7
sub dword [ebp - 0x34], 0x22da9f42
mov dword [ebp - 0x30], 0x8c172401
add dword [ebp - 0x30], 0xd758486b
mov dword [ebp - 0x2c], 0x90d37b5d
add dword [ebp - 0x2c], 0x6f2c84a3
lea ebx, [ebp - 0x38]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x28]
call dword [eax]
push 0x40
push 0x1000
push 0x3a72a
push 0
call eax
mov ecx, 0xa6343914
add ecx, 0x59cc12a2
mov edx, eax
mov ebx, 0x160acbd2
add ebx, 0xea36e42e
add ebx, dword [ebp - 0x28]
mov edi, 0x36c05d3c
mov dword [ebp - 0xc], 0xa460c2d7
mov esi, dword [ebx]
sub dword [ebp - 4], edi
sub esi, edi
xor dword [ebp - 0x1c], eax
mov dword [edx], esi
xor dword [ebp - 8], 0xb0e2a3d6
add edx, 0x321b70c7
sub edx, 0x321b70c3
add ebx, 4
loop 0x40bed5
add eax, 0x9b8712ec
sub eax, 0x9b85f141
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x70c35457
add ecx, 0x8f7caba9
add ecx, dword [ebp - 0x28]
call ebx
leave
ret
Function at 0x402b1c
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00404938
test esi, esi
jne 0x402b52
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00404a28
jmp 0x402b70
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004029d0
mov edi, eax
test esi, esi
je 0x402b70
cmp dword [ebx], 0
je 0x402b70
dec esi
jmp 0x402b59
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x403994
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x4b6020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403a2c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403a0c
xor eax, eax
push ebp
push 0x403a05
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x403a48
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403a0c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x4b6020]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x4b6020], ax
mov esp, ebp
pop ebp
ret

Function at 0x404738
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4b9048], 0
je 0x404799
cmp word [0x4b921c], 0xd7b2
jne 0x404761
cmp dword [0x4b9224], 0
jbe 0x404761
mov eax, 0x4b9218
call dword [0x4b9234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x4b6070
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x4047c0
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4b6030], 0
jne 0x4047b5
push 0
push 0x4b6068
push 0x4b6070
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x4048ec
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.0040272c
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x4b9049], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x4048b4
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc