joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40b9a0
Capabilities:
Get socket status
Receive data
Receive data on socket
Send data
Send data on socket
Set socket configuration

Disassembly:
mov eax, 0x112c
call fcn.00414fd0
push ebx
mov ebx, ecx
push ebp
push esi
lea ebp, [ebx + 0x20]
push edi
mov ecx, 0x41
mov esi, ebp
lea edi, [esp + 0x28]
lea eax, [ebx + 0x10]
rep movsd dword es:[edi], dword [esi]
push eax
push 0
lea ecx, [esp + 0x30]
push 0
push ecx
push 0
call sub.WSOCK32.dll_select
cmp eax, 0xffffffff
mov dword [ebx + 0x18], eax
jne 0x40b9f1
pop edi
pop esi
mov dword [ebx + 0x124], 4
pop ebp
pop ebx
add esp, 0x112c
ret
test eax, eax
je 0x40bb4c
mov eax, dword [ebp]
mov dword [esp + 0x10], 0
test eax, eax
jle 0x40bb4c
lea edi, [ebx + 0x24]
mov eax, dword [edi]
lea edx, [esp + 0x28]
push edx
push eax
call sub.WSOCK32.dll___WSAFDIsSet
test eax, eax
je 0x40bb35
mov eax, dword [edi]
mov ecx, dword [ebx + 0x128]
cmp eax, ecx
jne 0x40ba9d
cmp dword [ebp], 0x40
jae 0x40ba8c
lea edx, [esp + 0x14]
lea eax, [esp + 0x18]
push edx
push eax
push ecx
mov dword [esp + 0x20], 0x10
call sub.WSOCK32.dll_accept
mov esi, eax
mov eax, dword [ebx + 0x148]
push eax
call sub.WSOCK32.dll_inet_addr
cmp dword [esp + 0x1c], eax
jne 0x40ba86
mov eax, dword [ebp]
cmp eax, 0x40
jae 0x40ba8c
mov dword [ebx + eax*4 + 0x24], esi
mov eax, dword [ebp]
inc eax
mov dword [ebp], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebx + 0x144], eax
jmp 0x40bb35
push esi
call sub.WSOCK32.dll_closesocket
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebx + 0x144], eax
jmp 0x40bb35
push 0
lea ecx, [esp + 0x130]
push 0x100d
push ecx
push eax
call sub.WSOCK32.dll_recv
test eax, eax
jle 0x40baf4
mov cl, byte [ebx + 8]
test cl, cl
je 0x40bad0
push 0
push eax
mov eax, dword [edi]
lea edx, [esp + 0x134]
push edx
push eax
call sub.WSOCK32.dll_send
mov ecx, dword [ebx + 4]
push 0
push 0
push 0x5f4
mov edx, dword [ecx + 0x1c]
push edx
call dword [sym.imp.USER32.dll_PostMessageA]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebx + 0x144], eax
jmp 0x40bb35
mov eax, dword [edi]
push eax
call sub.WSOCK32.dll_closesocket
mov edx, dword [ebp]
xor eax, eax
test edx, edx
jbe 0x40bb35
mov esi, dword [edi]
lea ecx, [ebx + 0x24]
cmp dword [ecx], esi
je 0x40bb18
inc eax
add ecx, 4
cmp eax, edx
jb 0x40bb0a
jmp 0x40bb35
dec edx
cmp eax, edx
jae 0x40bb32
lea ecx, [ebx + eax*4 + 0x24]
mov edx, dword [ecx + 4]
inc eax
mov dword [ecx], edx
mov edx, dword [ebp]
add ecx, 4
dec edx
cmp eax, edx
jb 0x40bb21
dec dword [ebp]
mov eax, dword [esp + 0x10]
mov ecx, dword [ebp]
inc eax
add edi, 4
cmp eax, ecx
mov dword [esp + 0x10], eax
jl 0x40ba0f
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x112c
ret

Function at 0x40bb90
Capabilities:
Initialize winsock library

Disassembly:
mov eax, dword [0x44c5c0]
sub esp, 0x190
lea edx, [esp]
push esi
mov esi, ecx
push edx
push 0x101
mov dword [esi + 0x30], eax
mov ecx, dword [0x44c5c0]
mov dword [esi + 0x38], ecx
call sub.WSOCK32.dll_WSAStartup
test eax, eax
jne 0x40bbe3
cmp word [esp + 4], 0x101
je 0x40bbcf
push eax
call fcn.00415406
add esp, 4
mov dword [esi], 0xffffffff
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 1
mov eax, esi
pop esi
add esp, 0x190
ret
Function at 0x40bbf0
Capabilities:
Access peb ldr_data
Terminate thread

Disassembly:
push 0xffffffffffffffff
push 0x43a6ab
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
mov dword [esp + 4], esi
push 0xa
mov dword [esi + 0x1c], 0x10
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [esi], 0xffffffff
je 0x40bc40
mov eax, dword [esi + 0x18]
push 0x100
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, dword [esi]
push ecx
call sub.WSOCK32.dll_closesocket
mov dword [esi], 0xffffffff
call sub.WSOCK32.dll_WSACleanup
lea ecx, [esi + 0x38]
mov dword [esp + 0x14], 0
call fcn.00427141
lea ecx, [esi + 0x30]
mov dword [esp + 0x14], 0xffffffff
call fcn.00427141
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x40be60
Capabilities:
Create thread
Create udp socket
Set socket configuration

Disassembly:
mov eax, dword [esp + 4]
sub esp, 8
push esi
push edi
mov esi, ecx
push 0
push 2
push 2
mov dword [esi + 0x14], eax
call sub.WSOCK32.dll_socket
cmp eax, 0xffffffff
mov dword [esi], eax
jne 0x40be8a
pop edi
xor al, al
pop esi
add esp, 8
ret 8
lea edi, [esi + 4]
push 0
mov word [edi], 2
call sub.WSOCK32.dll_htonl
mov ecx, dword [esp + 0x18]
mov dword [esi + 8], eax
push ecx
call sub.WSOCK32.dll_htons
mov edx, dword [esi]
push 0x10
push edi
push edx
mov word [esi + 6], ax
call sub.WSOCK32.dll_bind
test eax, eax
je 0x40becb
mov eax, dword [esi]
push eax
call sub.WSOCK32.dll_closesocket
pop edi
xor al, al
pop esi
add esp, 8
ret 8
mov edx, dword [esi]
lea ecx, [esp + 0x14]
push 4
push ecx
push 0x1005
mov edi, 0xbb8
push 0xffff
push edx
mov dword [esp + 0x28], edi
call sub.WSOCK32.dll_setsockopt
cmp eax, 0xffffffff
jne 0x40bf04
mov eax, dword [esi]
push eax
call sub.WSOCK32.dll_closesocket
pop edi
xor al, al
pop esi
add esp, 8
ret 8
mov edx, dword [esi]
lea ecx, [esp + 8]
push 4
push ecx
push 0x1006
push 0xffff
push edx
mov dword [esp + 0x1c], edi
call sub.WSOCK32.dll_setsockopt
cmp eax, 0xffffffff
jne 0x40bf38
mov eax, dword [esi]
push eax
call sub.WSOCK32.dll_closesocket
pop edi
xor al, al
pop esi
add esp, 8
ret 8
lea ecx, [esp + 0xc]
push ecx
push 0
push esi
push 0x40bc80
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
mov dword [esi + 0x18], eax
pop edi
setne al
pop esi
add esp, 8
ret 8

Function at 0x40bf60
Capabilities:
Send data
Send data on socket

Disassembly:
mov edx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
lea eax, [ecx + 0x20]
push 0x10
push eax
mov eax, dword [ecx]
push 0
push esi
push edx
push eax
call sub.WSOCK32.dll_sendto
cmp eax, esi
pop esi
je 0x40bf8f
push 0
call fcn.00415406
add esp, 4
xor al, al
ret 8
mov al, 1
ret 8

Function at 0x40bfc0
Capabilities:
Set socket configuration

Disassembly:
push ebx
push esi
push edi
mov edi, dword [esp + 0x10]
mov esi, ecx
push edi
lea ecx, [esi + 0x30]
call fcn.004272ca
mov ebx, dword [esp + 0x14]
push edi
mov word [esi + 0x34], bx
mov word [esi + 0x20], 2
call sub.WSOCK32.dll_inet_addr
push ebx
mov dword [esi + 0x24], eax
call sub.WSOCK32.dll_htons
mov word [esi + 0x22], ax
pop edi
pop esi
pop ebx
ret 8
Function at 0x423b88
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x423bc0
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004275d3
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004275ab
jmp 0x423bcc
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x425506
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 0x425548
call fcn.004357d4
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x425548
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x42553f
xor eax, eax
jmp 0x425550
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00425556
pop edi
pop esi
pop ebx
ret 4
Function at 0x426ad5
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x43a944
call fcn.00415768
sub esp, 0x18
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], esi
mov eax, dword [esi + 0x48]
mov edi, dword [esi + 0x44]
mov dword [ebp - 0x18], eax
call fcn.004357d4
cmp dword [esi + 0x40], 0
mov ebx, dword [eax + 0xc]
je 0x426b14
call fcn.004357d4
mov ebx, dword [eax + 0xc]
push 5
push dword [esi + 0x40]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x426b22
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x426b30
or eax, 0xffffffff
jmp 0x426c18
mov ecx, esi
call fcn.00426a4b
mov dword [ebp - 0x14], eax
call fcn.004236d7
xor edi, edi
cmp dword [ebp - 0x14], edi
mov dword [ebp - 0x20], edi
je 0x426b67
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x426b67
push edi
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x20], 1
push esi
mov dword [ebp - 4], edi
call fcn.0042368b
push dword [ebp - 0x14]
call fcn.004231bd
push ebx
push eax
push dword [ebp - 0x18]
mov ecx, esi
call fcn.004267e3
cmp eax, edi
je 0x426bda
test byte [esi + 0x24], 0x10
je 0x426ba8
push 4
mov ecx, esi
pop ebx
call fcn.00425d9a
test ah, 1
je 0x426ba0
push 5
pop ebx
push ebx
mov ecx, esi
call fcn.0042575d
cmp dword [esi + 0x1c], edi
je 0x426bda
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.00425efd
jmp 0x426bda
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x20], edi
je 0x426bee
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x426c07
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x1c]
jne 0x426c07
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x58]
mov ecx, esi
call fcn.00426a85
mov eax, dword [esi + 0x2c]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x435c5b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov dword [ebp - 8], ecx
call fcn.004357d4
mov esi, dword [eax + 0xc]
push 0xf1
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x435c98
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x435c98
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x435c9c
xor eax, eax
jmp 0x435d1a
movzx eax, word [esi + 6]
push ebx
push edi
shl eax, 2
push eax
call fcn.004265d5
and dword [ebp - 4], 0
cmp word [esi + 6], 0
pop ecx
mov ebx, eax
jbe 0x435cd4
mov ecx, ebx
lea eax, [esi + 8]
movzx edx, word [eax]
inc dword [ebp - 4]
mov dword [ecx], edx
movzx edx, word [esi + 6]
inc eax
add ecx, 4
inc eax
cmp dword [ebp - 4], edx
jl 0x435cbe
movzx eax, word [esi + 6]
mov ecx, dword [ebp - 8]
push eax
push ebx
call fcn.00435e0b
push ebx
mov edi, eax
call fcn.004265fe
test edi, edi
pop ecx
je 0x435d16
movzx ecx, word [esi + 4]
movzx eax, word [esi + 2]
lea esi, [ecx + 7]
push ecx
mov ecx, dword [ebp - 8]
lea edx, [eax + 7]
push eax
push esi
push edx
call fcn.00435bd4
push dword [ebp + 8]
mov ecx, dword [ebp - 8]
call fcn.00435d1f
mov edi, eax
mov eax, edi
pop edi
pop ebx
pop esi
leave
ret 4
Function at 0x4b4d7e
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
xor ebx, ebx
push 1
push ebx
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ebx
call fcn.004b1446
mov dword [ebp - 0x18], eax
and eax, edx
add esp, 0x10
mov dword [ebp - 0x14], edx
cmp eax, 0xffffffff
je 0x4b4e04
push 2
push ebx
push ebx
push dword [ebp + 8]
call fcn.004b1446
mov ecx, eax
and ecx, edx
add esp, 0x10
cmp ecx, 0xffffffff
je 0x4b4e04
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
sub esi, eax
sbb edi, edx
js 0x4b4e99
jg 0x4b4ddd
cmp esi, ebx
jbe 0x4b4e99
mov ebx, 0x1000
push ebx
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 4], eax
test eax, eax
jne 0x4b4e10
call fcn.004a9385
mov dword [eax], 0xc
call fcn.004a9385
mov eax, dword [eax]
pop edi
pop esi
pop ebx
leave
ret
push 0x8000
push dword [ebp + 8]
call fcn.004b4f32
pop ecx
pop ecx
mov dword [ebp - 8], eax
test edi, edi
jl 0x4b4e30
jg 0x4b4e2c
cmp esi, ebx
jb 0x4b4e30
mov eax, ebx
jmp 0x4b4e32
mov eax, esi
push eax
push dword [ebp - 4]
push dword [ebp + 8]
call fcn.004af512
add esp, 0xc
cmp eax, 0xffffffff
je 0x4b4e7c
cdq
sub esi, eax
sbb edi, edx
js 0x4b4e53
jg 0x4b4e22
test esi, esi
ja 0x4b4e22
mov esi, dword [ebp - 0x10]
push dword [ebp - 8]
push dword [ebp + 8]
call fcn.004b4f32
pop ecx
pop ecx
push dword [ebp - 4]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor ebx, ebx
jmp 0x4b4f02
call fcn.004a9398
cmp dword [eax], 5
jne 0x4b4e91
call fcn.004a9385
mov dword [eax], 0xd
or esi, 0xffffffff
mov dword [ebp - 0xc], esi
jmp 0x4b4e56
cmp edi, ebx
jg 0x4b4f0e
jl 0x4b4ea3
cmp esi, ebx
jae 0x4b4f0e
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004b1446
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
je 0x4b4e04
push dword [ebp + 8]
call fcn.004a7830
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
neg eax
sbb eax, eax
neg eax
dec eax
cdq
mov dword [ebp - 0x10], eax
and eax, edx
mov dword [ebp - 0xc], edx
cmp eax, 0xffffffff
jne 0x4b4f0e
call fcn.004a9385
mov dword [eax], 0xd
call fcn.004a9398
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
mov esi, dword [ebp - 0x10]
and esi, dword [ebp - 0xc]
cmp esi, 0xffffffff
je 0x4b4e04
push ebx
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push dword [ebp + 8]
call fcn.004b1446
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
je 0x4b4e04
xor eax, eax
jmp 0x4b4e0b

Function at 0x433002
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
call 0x43300c
pop eax
nop
nop
nop
nop
nop
add eax, 0x40a063
nop
nop
sub eax, 0x40a009
nop
nop
nop
mov ebx, dword [eax]
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x433030
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x43301e
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x100011d0
Capabilities:
Get file size

Disassembly:
mov ecx, dword [esp + 4]
lea eax, [esp + 4]
push esi
push eax
mov edx, dword [ecx]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x100011f4
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x10001217
mov eax, dword [esp + 8]
push 1
push 0
push 0
push eax
call fcn.10009560
mov ecx, eax
xor eax, eax
add ecx, esi
adc edx, eax
mov eax, dword [esp + 0xc]
mov dword [eax], ecx
mov dword [eax + 4], edx
xor eax, eax
pop esi
ret

Function at 0x100014e0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
xor edi, edi
push esi
mov dword [esi + 0x30], edi
mov dword [esi + 0x4c], edi
mov dword [esi + 0x20], edi
call fcn.10001530
add esp, 4
xor edx, edx
add esi, 0x70
mov eax, edx
mov ecx, 8
mov edi, eax
and edi, 1
dec edi
not edi
and edi, 0xedb88320
shr eax, 1
xor eax, edi
dec ecx
jne 0x10001506
mov dword [esi], eax
inc edx
add esi, 4
cmp edx, 0x100
jb 0x100014ff
pop edi
pop esi
ret

Function at 0x10005e80
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 8]
mov edx, 1
shl edx, cl
mov ecx, dword [esp + 0xc]
xor eax, eax
or ecx, edx
cmp ecx, 1
je 0x10005ecc
push ebx
push esi
mov esi, dword [esp + 0x18]
push edi
mov edi, dword [esp + 0x10]
mov edx, ecx
and ecx, 1
shr edx, 1
xor ebx, ebx
mov bx, word [edi + edx*2]
neg ecx
sar ecx, 4
shr ebx, 4
and ecx, 0x7f
xor ebx, ecx
mov ecx, dword [esi + ebx*4]
add eax, ecx
mov ecx, edx
cmp ecx, 1
jne 0x10005ea3
pop edi
pop esi
pop ebx
ret

Function at 0x10005f20
Capabilities:
Encode data using xor

Disassembly:
push edi
mov edi, dword [esp + 0xc]
xor eax, eax
mov edx, 1
test edi, edi
je 0x10005f6a
push ebx
push ebp
push esi
mov esi, dword [esp + 0x1c]
mov ebp, dword [esp + 0x14]
mov ecx, esi
xor ebx, ebx
and ecx, 1
mov bx, word [ebp + edx*2]
mov ebp, ecx
neg ebp
sar ebp, 4
shr ebx, 4
and ebp, 0x7f
add edx, edx
xor ebx, ebp
mov ebp, dword [esp + 0x20]
shr esi, 1
add eax, dword [ebp + ebx*4]
or edx, ecx
dec edi
jne 0x10005f37
pop esi
pop ebp
pop ebx
pop edi
ret

Function at 0x10006c70
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, dword [esp + 0x14]
push ebp
mov ebp, dword [esp + 0x10]
push esi
mov esi, dword [esp + 0x18]
push edi
mov edi, 0x100
or esi, edi
mov eax, esi
mov ecx, edi
shr eax, 7
and eax, 1
mov edx, esi
shl ebx, 1
push eax
and ecx, ebx
mov eax, edi
shr edx, 8
add eax, ecx
add edx, eax
lea ecx, [ebp + edx*2]
mov edx, dword [esp + 0x18]
push ecx
push edx
call fcn.10006bc0
shl esi, 1
mov eax, esi
add esp, 0xc
xor eax, ebx
not eax
and edi, eax
cmp esi, 0x10000
jb 0x10006c87
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x10008220
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0xc]
push ebx
push esi
mov esi, dword [esp + 0xc]
xor eax, eax
push edi
or ch, 1
mov edi, ecx
xor ebx, ebx
shr edi, 8
mov bx, word [esi + edi*2]
mov edi, ecx
shr edi, 7
and edi, 1
neg edi
sar edi, 4
shr ebx, 4
and edi, 0x7f
xor ebx, edi
shl ecx, 1
mov edi, dword [edx + ebx*4]
add eax, edi
cmp ecx, 0x10000
jb 0x10008234
pop edi
pop esi
pop ebx
ret

Function at 0x10008270
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 8]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x18]
xor eax, eax
push edi
mov edx, 0x100
or ch, 1
shl esi, 1
mov edi, edx
mov ebx, ecx
and edi, esi
mov ebp, edx
shr ebx, 8
add ebp, edi
xor edi, edi
add ebx, ebp
mov ebp, dword [esp + 0x14]
mov di, word [ebp + ebx*2]
mov ebx, ecx
shr ebx, 7
and ebx, 1
neg ebx
sar ebx, 4
shr edi, 4
and ebx, 0x7f
xor edi, ebx
mov ebx, dword [esp + 0x20]
shl ecx, 1
mov ebp, dword [ebx + edi*4]
mov edi, ecx
xor edi, esi
add eax, ebp
not edi
and edx, edi
cmp ecx, 0x10000
jb 0x10008286
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x10009360
Capabilities:
Create thread

Disassembly:
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
lea eax, [esp + 0xc]
push eax
push 0
push ecx
push edx
push 0
push 0
call dword [sym.imp.MSVCRT.dll__beginthreadex]
mov ecx, dword [esp + 0x1c]
push eax
mov dword [ecx], eax
call fcn.100092f0
add esp, 0x1c
ret

Function at 0x401f95
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4050e0
cmp edx, dword [eax]
je 0x401fb7
add eax, 8
inc ecx
cmp eax, 0x405170
jl 0x401fa8
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4050e0]
jne 0x4020e5
mov eax, dword [0x405564]
cmp eax, 1
je 0x4020bf
test eax, eax
jne 0x401fe8
cmp dword [0x405034], 1
je 0x4020bf
cmp edx, 0xfc
je 0x4020e5
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40201f
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00402540
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004026b0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x402062
lea eax, [ebp - 0x1a4]
push eax
call fcn.004026b0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4043d0
push edi
call fcn.00403340
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00402540
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00402550
lea eax, [ebp - 0xa0]
push 0x4043b0
push eax
call fcn.00402550
push dword [esi + 0x4050e4]
lea eax, [ebp - 0xa0]
push eax
call fcn.00402550
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.004032ae
add esp, 0x2c
pop edi
jmp 0x4020e5
lea eax, [ebp + 8]
lea esi, [esi + 0x4050e4]
push 0
push eax
push dword [esi]
call fcn.004026b0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x10069b9
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
lea eax, [ebp + 8]
push eax
mov eax, dword [ebp + 8]
push dword [eax + 0x14]
xor ebx, ebx
push dword [0x1024f90]
mov dword [ebp - 4], ebx
call fcn.0100450c
test al, al
je 0x10069e0
mov edi, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
lea ecx, [edi + 0x44]
mov eax, dword [ecx]
jmp 0x1006986
lea esi, [eax - 0xb4]
cmp edx, esi
je 0x10069ca
mov eax, dword [eax]
cmp eax, ecx
jne 0x100697a
lea eax, [edx + 0xb4]
mov edx, dword [ecx + 4]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov dword [edx], eax
xor esi, esi
mov dword [ecx + 4], eax
mov eax, dword [ebp + 8]
inc esi
mov dword [eax + 0xbc], esi
cmp dword [reloc.msvcrt.dll___p__commode], ebx
mov dword [ebp - 4], esi
jne 0x10069d3
cmp dword [reloc.msvcrt.dll___p__commode], 0x5dc
jbe 0x10069d3
cmp dword [ebp + 0x10], ebx
je 0x10069ce
mov dword [edi + 0x18], esi
jmp 0x10069e0
xor eax, eax
jmp 0x10069e3
mov dword [edi + 0x28], esi
jmp 0x10069e0
cmp dword [ebp + 0x10], ebx
je 0x10069dd
mov dword [edi + 0x18], ebx
jmp 0x10069e0
mov dword [edi + 0x28], ebx
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x1009f5b
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [reloc.msvcrt.dll___p__commode]
xor eax, dword [ebp + 4]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebx + 8]
push edi
xor edi, edi
cmp dword [ebp + 8], edi
mov dword [ebp - 4], eax
jl 0x1009f0a
mov eax, dword [ebp + 8]
mov ecx, dword [reloc.msvcrt.dll___p__commode]
imul eax, eax, 0x5c
test byte [eax + ecx + 1], 0x40
je 0x1009f0a
cmp dword [esi], edi
je 0x1009f73
push dword [esi + 4]
call fcn.0101a9bf
cmp eax, edi
push dword [ebp + 8]
mov dword [ebp + 0xc], eax
je 0x1009f43
call fcn.0100bc1d
test eax, eax
je 0x1009f2a
mov eax, dword [ebp + 8]
jmp 0x1009f2d
or eax, reloc.msvcrt.dll___p__commode
push edi
push eax
push dword [esi + 0x60]
push dword [ebp + 0xc]
call fcn.01010987
mov ecx, eax
cmp ecx, edi
jne 0x1009f59
push dword [ebp + 8]
push 0x1001608
lea eax, [ebp - 0x10]
push 9
push eax
call dword [sym.imp.msvcrt.dll__snprintf]
add esp, 0x10
jmp 0x1009fcb
mov eax, dword [ecx + 0x5c]
mov edx, dword [reloc.msvcrt.dll___p__commode]
imul eax, eax, 0x5c
test byte [eax + edx + 1], 0x40
je 0x1009f78
mov eax, dword [ebx + 8]
cmp dword [eax], edi
jne 0x1009f78
push 0xfffffffffffffffc
pop eax
jmp 0x1009fcd
cmp dword [ecx + 0x10], edi
mov eax, dword [ebx + 8]
jne 0x1009fba
cmp dword [eax + 0x4c], edi
je 0x1009fb2
lea edx, [ecx + 0x48]
xor eax, eax
mov edi, edx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov byte [ecx + 0x4a], 0xe1
mov byte [ecx + 0x4b], 1
mov word [edx], 8
mov eax, dword [ebx + 8]
mov eax, dword [eax + 0x4c]
mov al, byte [eax + 7]
push 0
push ecx
push dword [ebp + 0xc]
mov byte [ecx + 0x4f], al
call fcn.01016604
push ebx
call fcn.01007f95
jmp 0x1009fcb
push edi
push ebx
mov dword [eax + 0xc], edi
push dword [ecx + 0x5c]
add ecx, 0xc
push ecx
call fcn.01009b2c
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop edi
pop esi
pop ebx
call fcn.0101ed84
leave
ret 8