joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10022cbf
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0x10]
push edi
xor edi, edi
test ebx, ebx
jne 0x10022ce2
mov eax, dword [ebp + 8]
mov dword [eax + 8], edi
mov dword [eax], 1
mov dword [eax + 4], edi
jmp 0x10022d7f
push esi
lea eax, [ebp + 0x10]
mov dword [ebp + 0x10], edi
push eax
push ebx
call fcn.10022979
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x10022d05
push ebx
call fcn.101b712c
mov eax, dword [ebp + 8]
mov dword [eax], esi
jmp 0x10022d5b
mov esi, dword [ebp + 0x10]
xor eax, eax
inc eax
test esi, esi
cmovne eax, esi
push eax
call dword [0x10288028]
mov dword [ebp - 4], eax
pop ecx
push ebx
test eax, eax
jne 0x10022d30
call fcn.101b712c
mov eax, dword [ebp + 8]
mov dword [eax], 3
jmp 0x10022d5b
push esi
push 1
push eax
call fcn.101b8ec4
push ebx
mov esi, eax
call fcn.101b712c
add esp, 0x14
cmp esi, dword [ebp + 0x10]
je 0x10022d64
push dword [ebp - 4]
call dword [0x1028802c]
mov eax, dword [ebp + 8]
mov dword [eax], 2
pop ecx
mov dword [eax + 8], edi
mov dword [eax + 4], edi
jmp 0x10022d7e
push dword [ebp + 0x18]
mov ecx, dword [ebp + 0xc]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp - 4]
push dword [ebp + 8]
call fcn.10022c6a
mov eax, dword [ebp + 8]
pop esi
pop edi
pop ebx
leave
ret

Function at 0x10034613
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 0x10]
mov esi, ecx
push dword [ebp + 0xc]
lea eax, [esi + 0x16c]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
mov ecx, esi
test eax, eax
jne 0x10034639
call fcn.1002911d
jmp 0x10034665
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.100285df
mov eax, dword [esi + 0x17c]
xor ecx, ecx
cmp dword [eax - 8], ecx
je 0x10034665
push 1
push ecx
push ecx
push eax
push str.open
push ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
pop esi
pop ebp
ret 0xc
Function at 0x10042186
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push 0x101f6c78
push dword [ebp + 8]
call fcn.101b8c58
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x100421e3
push ebx
push edi
push esi
call fcn.101ba408
push eax
call fcn.101ba546
mov edi, eax
pop ecx
pop ecx
cmp edi, dword [ebp + 0x10]
jbe 0x100421c2
push 0x7a
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor ebx, ebx
jmp 0x100421d8
push esi
push edi
push 1
push dword [ebp + 0xc]
call fcn.101b8ec4
xor ebx, ebx
add esp, 0x10
cmp edi, eax
sete bl
push esi
call fcn.101b712c
pop ecx
pop edi
mov eax, ebx
pop ebx
pop esi
pop ebp
ret

Function at 0x1004223d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push dword [ebp + 0xc]
mov esi, ecx
push dword [ebp + 8]
call fcn.10042d58
mov ebx, eax
test ebx, ebx
je 0x10042273
push ebx
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test edi, edi
je 0x10042273
cmp dword [ebp + 0x14], edi
jae 0x1004227c
push 0x7a
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 0x10
push ebx
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x10042273
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x10042273
push edi
push eax
push dword [ebp + 0x10]
call fcn.101a6860
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
xor eax, eax
inc eax
jmp 0x10042275
Function at 0x10043d89
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1804
call fcn.1018f810
mov eax, dword [0x1028dc74]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov ebx, ecx
push edi
mov edi, dword [ebp + 8]
push edi
mov ecx, dword [ebx + 8]
call fcn.10043f11
test eax, eax
jne 0x10043e73
mov ecx, dword [0x1029aca8]
test ecx, ecx
je 0x10043dcc
call fcn.1002db55
mov esi, eax
jmp 0x10043dce
xor esi, esi
push dword [edi + 4]
mov ebx, 0x800
lea eax, [ebp - 0x1804]
push dword [edi]
push str.Warning:_no_ojbect__s_of_type:_d_in_SOUI__
push 0xffffffffffffffff
push ebx
push eax
call fcn.10017090
mov edi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea eax, [ebp - 0x1804]
add esp, 0x18
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push 0xffffffffffffffff
push eax
push ecx
push ecx
call edi
cmp eax, ebx
jae 0x10043e27
push 0
push 0
push eax
lea eax, [ebp - 0x804]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x1804]
push eax
push 0
push 0
call edi
test esi, esi
je 0x10043e62
mov eax, dword [esi]
mov ecx, esi
push 3
push 0
call dword [eax + 0x2c]
test al, al
je 0x10043e62
push dword [ebp + 4]
mov eax, dword [esi]
lea ecx, [ebp - 0x804]
push str.SOUI::SObjectFactoryMgr::CreateObject
push 0x3d
push str.d:youqu_job_soui_soui_srccore_sobjectfactory.cpp
push ecx
push str.soui
push 3
push 0
mov ecx, esi
call dword [eax + 0x34]
jmp 0x10043e6f
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
xor eax, eax
jmp 0x10043e8f
mov ecx, dword [ebx + 8]
push edi
call fcn.10043bc6
mov ecx, dword [eax]
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, eax
mov ecx, ebx
push esi
call fcn.1004412b
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1018ea37
leave
ret 4
Function at 0x10049b10
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ax, word [ecx + 0x20c]
add ax, word [ebp + 0xc]
push esi
cwde
push edi
cdq
push 0x78
pop esi
idiv esi
xor esi, esi
mov dword [ebp - 4], ecx
movzx eax, ax
mov dword [ebp + 0xc], eax
cwde
mov word [ecx + 0x20c], dx
cdq
xor eax, edx
sub eax, edx
movzx edi, ax
xor eax, eax
cmp ax, di
jge 0x10049ba8
push ebx
xor ebx, ebx
cmp word [ebp + 0xc], ax
setle bl
mov eax, dword [ecx]
push 0
push ebx
push 1
call dword [eax + 0xf8]
test eax, eax
je 0x10049b6e
mov ecx, dword [ebp - 4]
inc esi
cmp si, di
jl 0x10049b54
pop ebx
cmp si, di
jge 0x10049ba5
push dword [ebp + 0x14]
mov edx, edi
push dword [ebp + 0x10]
sub edx, esi
mov eax, edx
neg eax
cmp word [ebp + 0xc], 0
movzx ecx, ax
movzx eax, dx
cmovg ecx, eax
movsx eax, cx
mov ecx, dword [ebp - 4]
imul eax, eax, 0x78
movzx eax, ax
push eax
push dword [ebp + 8]
call fcn.1002877b
mov ecx, dword [ebp - 4]
test di, di
je 0x10049be5
call fcn.10006ee0
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
movzx edx, word [ebp + 0x14]
mov edi, eax
movzx ecx, word [ebp + 0x10]
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
shl edx, 0x10
or edx, ecx
push edx
push dword [ebp + 8]
push 0x200
push edi
call esi
push 0x2000001
push edi
push 0x20
push edi
call esi
pop edi
xor eax, eax
pop esi
leave
ret 0x10

Function at 0x1004bc9e
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x1028dc74]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, 0x11c
lea eax, [ebp - 0x120]
push esi
push 0
push eax
call fcn.101a8300
add esp, 0xc
mov dword [ebp - 0x120], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
lea eax, [ebp - 0x120]
push eax
call esi
test eax, eax
jne 0x1004bcf9
lea eax, [ebp - 0x120]
mov dword [ebp - 0x120], 0x114
push eax
call esi
test eax, eax
je 0x1004bd0d
cmp byte [ebp - 6], 1
jne 0x1004bd0d
cmp dword [ebp - 0x11c], 6
jne 0x1004bd0d
xor eax, eax
inc eax
jmp 0x1004bd0f
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.1018ea37
leave
ret
Function at 0x10055086
Capabilities:
Log keystrokes via polling

Disassembly:
push 0x5c
mov eax, 0x101f27b6
call fcn.1018f762
mov esi, ecx
push esi
lea ecx, [ebp - 0x68]
call fcn.10054495
mov eax, dword [esi]
lea ecx, [ebp - 0x68]
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
and dword [ebp - 4], 0
push ecx
mov ecx, esi
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x48], edi
call dword [eax + 0x8c]
cmp dword [ebp - 0x40], 0
jne 0x10055268
cmp dword [ebp + 0x10], 0
je 0x100550e4
imul ecx, edi, 0xc
xor eax, eax
add ecx, dword [esi + 0x268]
cmp dword [ecx + 8], eax
sete al
mov dword [ecx + 8], eax
jmp 0x1005522b
cmp dword [esi + 0x260], 0
jne 0x100550f6
cmp dword [esi + 0x25c], 0
je 0x1005510e
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x1005510e
cmp edi, 0xffffffff
je 0x10055239
jmp 0x100550cb
cmp dword [esi + 0x260], 0
jne 0x10055124
cmp dword [esi + 0x25c], 0
je 0x100551bf
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x100551bf
cmp edi, 0xffffffff
je 0x10055239
xor eax, eax
cmp ebx, 0xffffffff
cmovne eax, ebx
mov ebx, eax
mov eax, edi
cmp ebx, edi
mov dword [ebp + 8], ebx
mov ecx, ebx
cmovg eax, ebx
cmp eax, ebx
mov dword [ebp - 0x14], eax
cmove ecx, edi
and dword [ebp + 0x10], 0
mov dword [ebp - 0x10], ecx
mov ecx, esi
call fcn.10054da9
test eax, eax
jle 0x10055239
mov edi, dword [ebp + 0x10]
xor ebx, ebx
mov eax, dword [esi + 0x268]
add eax, ebx
mov ecx, dword [eax + 8]
cmp edi, dword [ebp - 0x10]
jl 0x10055196
cmp edi, dword [ebp - 0x14]
jg 0x10055196
xor edx, edx
inc edx
mov dword [eax + 8], edx
mov eax, edx
jmp 0x1005519c
and dword [eax + 8], 0
xor eax, eax
cmp ecx, eax
je 0x100551a8
push edi
mov ecx, esi
call fcn.1005573f
mov ecx, esi
inc edi
add ebx, 0xc
call fcn.10054da9
cmp edi, eax
jl 0x10055177
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
jmp 0x10055239
or dword [esi + 0x21c], 0xffffffff
mov ecx, esi
and dword [ebp + 0x10], 0
call fcn.10054da9
test eax, eax
jle 0x10055216
mov ebx, dword [ebp + 0x10]
xor ecx, ecx
mov dword [ebp + 0xc], ecx
mov eax, dword [esi + 0x268]
cmp ebx, edi
je 0x100551fe
cmp dword [eax + ecx + 8], 0
je 0x100551fe
and dword [eax + ecx + 8], 0
mov ecx, esi
push ebx
call fcn.1005573f
mov ecx, dword [ebp + 0xc]
add ecx, 0xc
inc ebx
mov dword [ebp + 0xc], ecx
mov ecx, esi
call fcn.10054da9
mov ecx, dword [ebp + 0xc]
cmp ebx, eax
jl 0x100551dd
mov ebx, dword [ebp + 8]
cmp edi, 0xffffffff
je 0x10055239
imul eax, edi, 0xc
add eax, dword [esi + 0x268]
mov dword [eax + 8], 1
push edi
mov ecx, esi
mov dword [esi + 0x21c], edi
call fcn.1005573f
push esi
lea ecx, [ebp - 0x3c]
call fcn.100083f0
mov dword [ebp - 0x3c], 0x101feee8
mov dword [ebp - 0x34], 0x101feefc
mov eax, dword [esi]
lea ecx, [ebp - 0x3c]
push ecx
mov ecx, esi
mov byte [ebp - 4], 1
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], edi
call dword [eax + 0x8c]
call fcn.1018f73c
ret 0xc
Function at 0x100588fe
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov eax, esi
push edi
mov edi, ecx
sub eax, 9
je 0x1005895f
sub eax, 1
je 0x10058941
sub eax, 3
je 0x10058941
test dword [edi + 0x37c], 0x2000
je 0x1005897a
push esi
call fcn.101ba5c0
pop ecx
test eax, eax
jne 0x1005897a
cmp esi, 0x2d
je 0x1005897a
cmp esi, 0x2e
je 0x1005897a
cmp esi, 0x2c
je 0x1005897a
jmp 0x10058995
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x8000
test cx, ax
jne 0x1005897a
test dword [edi + 0x37c], 0x1000
jmp 0x10058978
test byte [edi + 0x380], 0x80
jne 0x1005897a
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x8000
test cx, ax
je 0x10058995
mov eax, dword [edi + 0x38c]
push 0
mov ecx, dword [eax + 0xc]
mov eax, dword [edi + 0x70]
mov edx, dword [ecx]
push dword [eax + 8]
push dword [eax + 4]
push dword [eax]
call dword [edx + 0xc]
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x10058c39
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0xd
push esi
mov esi, ecx
jne 0x10058c69
test dword [esi + 0x37c], 0x1000
jne 0x10058c69
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x8000
test cx, ax
jne 0x10058c69
and dword [esi + 0x10], 0
jmp 0x10058c84
mov eax, dword [esi + 0x38c]
push 0
mov ecx, dword [eax + 0xc]
mov eax, dword [esi + 0x70]
mov edx, dword [ecx]
push dword [eax + 8]
push dword [eax + 4]
push dword [eax]
call dword [edx + 0xc]
pop esi
pop ebp
ret 0xc

Function at 0x1005b051
Capabilities:
Log keystrokes via polling

Disassembly:
push 0x28
mov eax, 0x101efdde
call fcn.1018f762
mov ebx, ecx
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x12
call esi
push 0x11
mov edi, eax
call esi
and eax, 0x8000
push 0x10
mov dword [ebp - 0x10], eax
call esi
and eax, 0x8000
and edi, 0x8000
jne 0x1005b0b7
cmp dword [ebp - 0x10], edi
jne 0x1005b09d
test eax, eax
jne 0x1005b096
inc eax
xor ecx, ecx
jmp 0x1005b0ee
push 2
pop eax
push 4
jmp 0x1005b0ed
test eax, eax
jne 0x1005b0a8
push 4
pop eax
push 2
jmp 0x1005b0ed
push 6
pop eax
push 0x10
mov word [ebx + 0x16c], ax
pop eax
jmp 0x1005b0f5
mov ecx, dword [ebp - 0x10]
test ecx, ecx
jne 0x1005b0cc
test eax, eax
jne 0x1005b0c8
push 8
pop eax
inc ecx
jmp 0x1005b0ee
test ecx, ecx
je 0x1005b0db
test eax, eax
jne 0x1005b0d7
push 0x40
pop eax
push 3
jmp 0x1005b0ed
test ecx, ecx
jne 0x1005b0e6
test eax, eax
je 0x1005b0e6
push 0x20
pop eax
push 5
jmp 0x1005b0ed
mov eax, 0x80
push 7
pop ecx
mov word [ebx + 0x16c], cx
test word [ebx + 0x170], ax
je 0x1005b10c
mov ax, word [ebx + 0x172]
mov word [ebx + 0x16c], ax
push ebx
lea ecx, [ebp - 0x34]
call fcn.100083f0
mov dword [ebp - 0x34], 0x101ffb64
mov dword [ebp - 0x2c], 0x101ffb78
mov ax, word [ebx + 0x16c]
lea ecx, [ebp - 0x34]
and dword [ebp - 4], 0
mov word [ebp - 0x12], ax
mov ax, word [ebx + 0x16e]
mov word [ebp - 0x14], ax
mov eax, dword [ebx]
push ecx
mov ecx, ebx
call dword [eax + 0x8c]
call fcn.1018f73c
ret
Function at 0x1006ccf6
Capabilities:
Log keystrokes

Disassembly:
push 4
mov eax, 0x101f3968
call fcn.1018f762
and dword [ebp - 0x10], 0
mov esi, dword [ebp + 8]
mov eax, dword [0x10288004]
mov dword [esi], eax
mov ecx, dword [ebp + 0xc]
xor edi, edi
and dword [ebp - 4], 0
inc edi
movzx edx, cx
mov dword [ebp - 0x10], edi
cmp edx, 0x24
ja 0x1006cd7c
je 0x1006cd72
mov eax, edx
sub eax, 0xd
je 0x1006cd68
sub eax, 0xe
je 0x1006cd5e
sub eax, 6
je 0x1006cd54
sub eax, edi
je 0x1006cd4a
sub eax, edi
jne 0x1006cdab
push 0x102024d4
jmp 0x1006ceca
push str.PageDown
jmp 0x1006ceca
push str.PageUp
jmp 0x1006ceca
push 0x10202488
jmp 0x1006ceca
push 0x10202490
jmp 0x1006ceca
push str.Home
jmp 0x1006ceca
mov eax, edx
sub eax, 0x25
je 0x1006cec5
sub eax, 1
je 0x1006cebe
sub eax, 1
je 0x1006ceb7
sub eax, 1
je 0x1006ceb0
sub eax, 5
je 0x1006cea9
cmp cx, 0x30
jb 0x1006cdb7
cmp cx, 0x39
jbe 0x1006cdc0
lea eax, [ecx - 0x41]
cmp ax, 0x19
ja 0x1006cdd7
movzx eax, cx
mov ecx, esi
mov dword [ebp + 0xc], eax
lea eax, [ebp + 0xc]
push eax
push edi
call fcn.100016e0
jmp 0x1006ced1
lea eax, [ecx - 0x60]
cmp ax, 9
ja 0x1006cdfb
lea eax, [edx - 0x60]
push eax
push str.Num__d
lea eax, [ebp + 0xc]
push eax
push esi
call fcn.100018b0
add esp, 0x10
mov dword [ebp - 4], edi
jmp 0x1006ce51
cmp cx, 0x6a
jne 0x1006ce0b
push 0x10202520
jmp 0x1006ceca
cmp cx, 0x6b
jne 0x1006ce1b
push str.Num_
jmp 0x1006ceca
cmp cx, 0x6e
jne 0x1006ce2b
push str.Num_Del
jmp 0x1006ceca
lea eax, [ecx - 0x70]
cmp ax, 0xb
ja 0x1006ce66
lea eax, [edx - 0x6f]
push eax
push 0x10202548
lea eax, [ebp + 0xc]
push eax
push esi
call fcn.100018b0
add esp, 0x10
mov dword [ebp - 4], 2
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff4
cmp ecx, dword [section..data]
je 0x1006ced1
call fcn.100012a0
jmp 0x1006ced1
push 2
push edx
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
cmp al, 0x3d
jg 0x1006ce87
je 0x1006ce93
cmp al, 0x27
je 0x1006ce93
cmp al, 0x2b
jle 0x1006ced1
cmp al, 0x2f
jle 0x1006ce93
cmp al, 0x3b
je 0x1006ce93
jmp 0x1006ced1
cmp al, 0x5b
jl 0x1006ced1
cmp al, 0x5d
jle 0x1006ce93
cmp al, 0x60
jne 0x1006ced1
cbw
mov ecx, esi
movzx eax, ax
mov dword [ebp + 0xc], eax
lea eax, [ebp + 0xc]
push eax
push edi
call fcn.100063a0
jmp 0x1006ced1
push str.Insert
jmp 0x1006ceca
push str.Down
jmp 0x1006ceca
push str.Right
jmp 0x1006ceca
push 0x1020249c
jmp 0x1006ceca
push str.Left
mov ecx, esi
call fcn.10001780
mov eax, esi
call fcn.1018f73c
ret 8

Function at 0x1006de4c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 9
jne 0x1006de87
push dword [ecx + 4]
call fcn.10044a8a
pop ecx
test eax, eax
je 0x1006de70
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x90]
test al, 2
jne 0x1006de87
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x8000
test cx, ax
jne 0x1006de87
xor eax, eax
inc eax
jmp 0x1006de89
xor eax, eax
pop ebp
ret 4
Function at 0x1006df72
Capabilities:
Log keystrokes via polling

Disassembly:
push 4
mov eax, 0x101f39ae
call fcn.1018f762
mov ebx, ecx
mov edi, dword [ebp + 8]
push edi
call fcn.1006de4c
test eax, eax
je 0x1006dfad
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
mov ecx, ebx
and al, 1
movzx eax, al
push eax
call fcn.1006da09
xor eax, eax
inc eax
jmp 0x1006e0af
push dword [ebx + 4]
call fcn.10044a8a
mov esi, eax
mov dword [ebp - 0x10], esi
pop ecx
test esi, esi
je 0x1006e059
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x60]
test eax, eax
je 0x1006e059
cmp edi, 0x25
je 0x1006dfe6
cmp edi, 0x27
je 0x1006dff4
cmp edi, 0x26
je 0x1006dfe6
cmp edi, 0x28
jne 0x1006e059
cmp edi, 0x27
je 0x1006dff4
cmp edi, 0x28
je 0x1006dff4
push 2
jmp 0x1006dff6
push 3
pop edi
jmp 0x1006e004
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x60]
test eax, eax
jne 0x1006e043
push edi
mov ecx, esi
call fcn.10027049
mov esi, eax
test esi, esi
jne 0x1006dff9
mov ecx, dword [ebp - 0x10]
cmp edi, 3
setne al
push eax
call fcn.10026d8d
mov ecx, eax
jmp 0x1006e033
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x60]
test eax, eax
jne 0x1006e043
push edi
mov ecx, esi
call fcn.10027049
mov esi, eax
test esi, esi
jne 0x1006e025
jmp 0x1006dfa5
push 1
mov ecx, esi
call fcn.10006f00
push eax
mov ecx, ebx
call fcn.1006e313
jmp 0x1006dfa5
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x10
call esi
shr eax, 0xf
and al, 1
movzx eax, al
push eax
push 0x12
call esi
shr eax, 0xf
and al, 1
movzx eax, al
push eax
push 0x11
call esi
shr eax, 0xf
lea ecx, [ebp + 8]
and al, 1
movzx eax, al
push eax
push edi
call fcn.1006cb9b
and dword [ebp - 4], 0
lea eax, [ebp + 8]
push eax
mov ecx, ebx
call fcn.1006e103
xor ebx, ebx
lea ecx, [ebp + 8]
test al, al
setne bl
call sym.nsocks.dll_FindStringByName
mov eax, ebx
call fcn.1018f73c
ret 4

Function at 0x1007362c
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push dword [esi + 0x244]
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x10073694
mov ecx, esi
call fcn.10073699
push 0
push dword [esi + 0x244]
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [esi + 0x3a4]
test ecx, ecx
je 0x1007366f
push 0
call fcn.100292f3
and dword [esi + 0x3a4], 0
mov ecx, dword [0x1029adf8]
lea ecx, [ecx + 8]
call fcn.1002b200
mov ecx, dword [esi + 0x39c]
test ecx, ecx
je 0x10073694
pop esi
mov ecx, dword [ecx + 0x170]
pop ebp
jmp fcn.100740f7
pop esi
pop ebp
ret 4

Function at 0x10075690
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x1028dc74]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x194]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x100756e0
mov eax, dword [ebp - 0x194]
cmp al, 2
jne 0x100756da
shr eax, 8
cmp al, 2
jne 0x100756da
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1018ea37
mov esp, ebp
pop ebp
ret
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [ebp - 4]
mov eax, 2
xor ecx, ebp
call fcn.1018ea37
mov esp, ebp
pop ebp
ret
Function at 0x1007cdb0
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
xor edx, edx
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, 0x1505
add eax, esi
mov ecx, eax
sub ecx, esi
push edi
xor edi, edi
cmp esi, eax
cmova ecx, edx
mov dword [ebp + 8], ecx
test ecx, ecx
je 0x1007cdf9
mov al, byte [esi]
push eax
call fcn.1008ad20
movsx ecx, al
lea esi, [esi + 1]
mov eax, ebx
inc edi
shl eax, 5
add esp, 4
add eax, ebx
xor ecx, eax
mov ebx, ecx
cmp edi, dword [ebp + 8]
jb 0x1007cdd7
pop edi
pop esi
movzx eax, bl
pop ebx
pop ebp
ret

Function at 0x1007e0c0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x1007e0de
cmp dword [esi + 0x6c], 0
je 0x1007e0de
push 2
push 3
push esi
call fcn.1008b2c0
add esp, 0xc
push dword [ebp + 0xc]
call fcn.1008b730
add esp, 4
test esi, esi
je 0x1007e0fe
cmp dword [esi + 0x6c], 0
je 0x1007e0fe
push 3
push esi
call fcn.1008b300
add esp, 8
pop esi
pop ebp
ret

Function at 0x1007eca0
Capabilities:
Create udp socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp dword [eax + 0x2d0], 2
jne 0x1007ecb5
pop ebp
jmp fcn.1007ec50
mov al, 1
pop ebp
ret
Function at 0x10087050
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 8]
cmp dword [edi + 0x608], 0
je 0x10087094
push esi
push 1
push edi
call fcn.10079690
push dword [edi + 0x594]
mov eax, dword [edi + 0x608]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call eax
push 0
push edi
mov esi, eax
call fcn.10079690
add esp, 0x24
mov eax, esi
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp + 0xc]
cmp eax, 2
ja 0x100870ca
push dword [edi + 0x590]
lea eax, [eax + eax*2]
push 1
add eax, 0x10206260
push 2
push eax
call fcn.101b6f06
push dword [edi + 0x590]
push 1
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.101b6f06
add esp, 0x20
xor eax, eax
pop edi
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push eax
push edi
mov esi, dword [edi + eax*4 + 0x1a8]
call fcn.100879e0
add esp, 8
push 0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push esi
call dword [sym.imp.WS2_32.dll_send]
mov ebx, eax
mov eax, dword [ebp + 0x18]
mov dword [eax], 0
cmp ebx, 0xffffffff
jne 0x10087534
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
cmp esi, 0x2733
jne 0x1008750c
mov eax, dword [ebp + 0x18]
pop edi
pop esi
pop ebx
mov dword [eax], 0x51
xor eax, eax
pop ebp
ret
push esi
push edi
call fcn.100757e0
push eax
push str.Send_failure:__s
push dword [edi]
call fcn.100870d0
mov eax, dword [edi]
add esp, 0x14
mov dword [eax + 0xd34], esi
mov eax, dword [ebp + 0x18]
mov dword [eax], 0x37
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
mov eax, ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
shl eax, 4
push edi
lea esi, [ebx + 0x1cc]
add esi, eax
mov eax, dword [ebx + 0x2c8]
mov edi, dword [esi + 4]
sub edi, dword [esi + 8]
test byte [eax + 0x40], 3
je 0x10087aa8
cmp dword [ebx + ecx*4 + 0x1bc], 0x10087400
jne 0x10087aa8
cmp dword [esi], 0
je 0x10087a29
test edi, edi
je 0x10087aa8
mov eax, dword [ebx + ecx*4 + 0x1a8]
push 0
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push eax
mov dword [ebp + 0xc], eax
call fcn.10086c00
add esp, 0x14
cmp eax, 0xffffffff
je 0x10087aa8
test al, 1
je 0x10087aa8
mov ecx, dword [esi]
test ecx, ecx
jne 0x10087a83
mov eax, dword [ebx]
mov eax, dword [eax + 0x900]
add eax, eax
push eax
mov dword [esi + 4], eax
call dword [0x102884a4]
mov edi, dword [esi + 4]
mov ecx, eax
add esp, 4
mov dword [esi], ecx
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
test ecx, ecx
je 0x10087aa1
mov eax, dword [esi + 8]
push 0
push edi
add eax, ecx
push eax
push dword [ebp + 0xc]
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x10087aa8
add dword [esi + 8], eax
pop edi
pop esi
pop ebx
pop ebp
ret
mov dword [esi + 4], 0
pop edi
pop esi
pop ebx
pop ebp
ret