joyce8/EMBER2024-capa huggingface dataset:
Function at 0x488744
Capabilities:
Contain obfuscated stackstrings

Disassembly:
add dword [eax], eax
add byte [ebp - 0x3337b], cl
call dword [eax + 0x6a]
add bh, bh
xchg ebp, eax
enter 0xfffffffffffffffa, 0xffffffffffffffff
call fcn.004878a1
push edx
fild qword [ebx]
salc
invalid
movsd dword es:[edi], dword [esi]
sar ch, 1

Function at 0x491be5
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
add ecx, 0x244
pop ebp
jmp fcn.0048977f

Function at 0x4c93f9
Capabilities:
Get file system object information

Disassembly:
push 0x4c8
mov eax, 0x5a783d
call fcn.0052d215
mov ebx, ecx
mov eax, dword [ebx + 0x14]
sub eax, 0x10
push eax
call fcn.00403660
pop ecx
lea esi, [eax + 0x10]
mov dword [ebp - 0x4d0], esi
and dword [ebp - 4], 0
lea ecx, [ebp - 0x4d0]
push 0
push 0x5ea708
call fcn.004056a0
cmp eax, 0xffffffff
jne 0x4c94ad
push 0
push 0x5bc7e0
lea ecx, [ebp - 0x4d0]
call fcn.004056a0
cmp eax, 0xffffffff
jne 0x4c94ad
push 0
push 0x5b76fc
lea ecx, [ebp - 0x4d0]
call fcn.004056a0
cmp eax, 0xffffffff
jne 0x4c94ad
mov eax, dword [ebx + 0x14]
sub eax, 0x10
push eax
call fcn.00403660
pop ecx
lea edi, [eax + 0x10]
mov dword [ebp - 0x4d4], edi
xor ecx, ecx
mov byte [ebp - 4], 1
push ecx
lea eax, [ebp - 0x218]
push eax
push 0x104
push ecx
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_SearchPathW]
test eax, eax
jne 0x4c9489
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x14]
lea ecx, [edi - 0x10]
mov ebx, eax
call fcn.00402760
jmp 0x4c94dc
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x4d0]
call fcn.00403560
lea ecx, [edi - 0x10]
mov byte [ebp - 4], 0
call fcn.00402760
mov esi, dword [ebp - 0x4d0]
push 0x105
push 0x2b4
lea eax, [ebp - 0x4cc]
push eax
push 0
push esi
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test eax, eax
je 0x4c94d3
mov ebx, dword [ebp - 0x4cc]
jmp 0x4c94dc
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x14]
mov ebx, eax
lea ecx, [esi - 0x10]
call fcn.00402760
mov eax, ebx
call fcn.0052d1c4
ret
Function at 0x480a8e
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.004681a7
mov esi, dword [ebp + 8]
push 2
mov edi, eax
lea eax, [ebp - 4]
push eax
mov ecx, esi
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x480ac6
xor eax, eax
jmp 0x480af2
cmp esi, dword [ebp - 4]
je 0x480aef
cmp dword [ebp + 0xc], 0
je 0x480aef
push dword [edi + 0x9c]
call fcn.0048069c
push dword [edi + 0x9c]
mov esi, eax
call fcn.00465be2
pop ecx
pop ecx
cmp esi, eax
je 0x480ac2
xor eax, eax
inc eax
pop edi
pop esi
leave
ret

Function at 0x4659a0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x457015
lea edi, [esi - 0x56015]
push edi
or ebp, 0xffffffff
jmp 0x4659c2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4659c9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4659b8
mov eax, 1
add ebx, ebx
jne 0x4659db
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4659d0
jne 0x4659ec
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4659d0
xor ecx, ecx
sub eax, 3
jb 0x465a00
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x465a72
mov ebp, eax
add ebx, ebx
jne 0x465a0b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x465a18
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x465a3c
inc ecx
add ebx, ebx
jne 0x465a28
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x465a1d
jne 0x465a39
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x465a1d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x465a5c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x465a4d
jmp 0x4659be
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x465a5c
add edi, ecx
jmp 0x4659be
pop esi
mov edi, esi
mov ecx, 0x33e
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x465a7a
cmp byte [edi], 0
jne 0x465a7a
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 eax, ebx
loop 0x465a7f
lea edi, [esi + 0x63000]
mov eax, dword [edi]
or eax, eax
je 0x465aee
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x651f0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x65254]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x465aac
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x65258]
or eax, eax
je 0x465ae8
mov dword [ebx], eax
add ebx, 4
jmp 0x465ac9
call dword [esi + 0x6525c]
popal
jmp 0x40da18
Function at 0x100032e0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
call fcn.10001020
jmp fcn.10003880

Function at 0x10003d80
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 0xc]
sub eax, 0x10000
push eax
call fcn.10003f30
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 8]
jbe 0x10003e4d
mov edx, dword [ebp - 4]
cmp edx, dword [section..data]
jb 0x10003dca
mov eax, dword [ebp - 4]
cmp eax, dword [0x1000a004]
ja 0x10003dca
mov ecx, dword [ebp - 4]
sub ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x10003d9a
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x10003df0
jmp 0x10003e4d
cmp dword [ebp - 0x14], 0x10000
jne 0x10003e33
cmp dword [ebp - 0x18], 0x10000
jb 0x10003e33
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x10003e26
mov eax, dword [ebp - 8]
jmp 0x10003e4f
mov eax, dword [ebp - 4]
sub eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x10003e48
mov ecx, dword [ebp - 0x20]
sub ecx, 0x10000
push ecx
call fcn.10003f30
add esp, 4
mov dword [ebp - 4], eax
jmp 0x10003d9a
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x10003e60
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 8]
push eax
call fcn.10003f60
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0xc]
jae 0x10003f25
mov edx, dword [ebp - 4]
cmp edx, dword [section..data]
jb 0x10003ea5
mov eax, dword [ebp - 4]
cmp eax, dword [0x1000a004]
ja 0x10003ea5
mov ecx, dword [ebp - 4]
add ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x10003e75
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x10003ecb
jmp 0x10003f25
cmp dword [ebp - 0x14], 0x10000
jne 0x10003f0e
cmp dword [ebp - 0x18], 0x10000
jb 0x10003f0e
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x10003f01
mov eax, dword [ebp - 8]
jmp 0x10003f27
mov eax, dword [ebp - 4]
add eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x10003f20
mov ecx, dword [ebp - 0x24]
add ecx, dword [ebp - 0x18]
push ecx
call fcn.10003f60
add esp, 4
mov dword [ebp - 4], eax
jmp 0x10003e75
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x10003fa0
Capabilities:
Hook routines via microsoft detours

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.10004390
add esp, 0xc
mov dword [ebp - 4], 0
cmp dword [0x1000a0b4], 0
jne 0x10003fdd
cmp dword [0x1000a0b0], 0
je 0x10003fdd
mov eax, dword [0x1000a0b0]
mov dword [0x1000a0b4], eax
cmp dword [0x1000a0b4], 0
je 0x1000405a
mov ecx, dword [0x1000a0b4]
cmp dword [ecx + 8], 0
je 0x1000405a
mov edx, dword [0x1000a0b4]
mov eax, dword [edx + 8]
cmp eax, dword [ebp - 0x10]
jb 0x1000405a
mov ecx, dword [0x1000a0b4]
mov edx, dword [ecx + 8]
cmp edx, dword [ebp - 0xc]
ja 0x1000405a
mov eax, dword [0x1000a0b4]
mov ecx, dword [eax + 8]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
cmp edx, dword [ebp - 0x10]
jb 0x10004029
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0xc]
jbe 0x10004030
xor eax, eax
jmp 0x10004179
mov ecx, dword [0x1000a0b4]
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x40]
mov dword [ecx + 8], eax
push 0x48
push 0xcc
mov ecx, dword [ebp - 4]
push ecx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov eax, dword [ebp - 4]
jmp 0x10004179
mov edx, dword [0x1000a0b0]
mov dword [0x1000a0b4], edx
jmp 0x10004076
mov eax, dword [0x1000a0b4]
mov ecx, dword [eax + 4]
mov dword [0x1000a0b4], ecx
cmp dword [0x1000a0b4], 0
je 0x100040b6
cmp dword [0x1000a0b4], 0
je 0x100040b4
mov edx, dword [0x1000a0b4]
cmp dword [edx + 8], 0
je 0x100040b4
mov eax, dword [0x1000a0b4]
mov ecx, dword [eax + 8]
cmp ecx, dword [ebp - 0x10]
jb 0x100040b4
mov edx, dword [0x1000a0b4]
mov eax, dword [edx + 8]
cmp eax, dword [ebp - 0xc]
ja 0x100040b4
jmp 0x1000400e
jmp 0x10004068
mov ecx, dword [ebp + 8]
and ecx, 0xffff
mov edx, dword [ebp + 8]
sub edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.10004180
add esp, 0xc
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x10004177
mov eax, dword [ebp - 0x18]
mov dword [0x1000a0b4], eax
mov ecx, dword [0x1000a0b4]
mov dword [ecx], 0x52727464
mov edx, dword [0x1000a0b4]
mov dword [edx + 8], 0
mov eax, dword [0x1000a0b4]
mov ecx, dword [0x1000a0b0]
mov dword [eax + 4], ecx
mov edx, dword [0x1000a0b4]
mov dword [0x1000a0b0], edx
mov dword [ebp - 0x14], 0
mov eax, dword [0x1000a0b4]
add eax, 0x48
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0x38c
jmp 0x10004147
mov ecx, dword [ebp - 8]
sub ecx, 1
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 1
jle 0x10004167
imul edx, dword [ebp - 8], 0x48
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x14]
mov dword [eax + edx + 0x40], ecx
imul edx, dword [ebp - 8], 0x48
add edx, dword [ebp - 4]
mov dword [ebp - 0x14], edx
jmp 0x1000413e
mov eax, dword [0x1000a0b4]
mov ecx, dword [ebp - 0x14]
mov dword [eax + 8], ecx
jmp 0x1000400e
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x40164e
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [0x2db546c]
push esi
mov esi, eax
shr esi, 3
push edi
mov edi, dword [0x2db53c4]
test esi, esi
je 0x401694
push ebx
xor ebx, ebx
cmp eax, 0x959
jne 0x40167f
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov ecx, edi
call fcn.004014f2
add edi, 8
dec esi
je 0x401693
mov eax, dword [0x2db546c]
jmp 0x401667
pop ebx
pop edi
pop esi
ret 4
Function at 0x40d069
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x41a36c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00404ed5
mov dword [ebp - 0x14], eax
cmp dword [0x4bbb20], esi
jne 0x40d15c
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40d0e9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40d23c
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40d23c
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40d23c
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x4bbb20], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x4bbb24], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x4bbb28], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4bbb30], eax
test eax, eax
je 0x40d159
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4bbb2c], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40d181
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40d174
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40d196
push 4
pop eax
jmp 0x40d23e
cmp dword [ebp - 0x14], esi
je 0x40d196
push dword [0x4bbb20]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40d17b
mov eax, dword [0x4bbb2c]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40d1f4
cmp dword [0x4bbb30], edi
je 0x40d1f4
push eax
call ebx
push dword [0x4bbb30]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40d1f4
test eax, eax
je 0x40d1f4
call ecx
test eax, eax
je 0x40d1e9
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x40d1e9
test byte [ebp - 8], 1
jne 0x40d1f4
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40d224
mov eax, dword [0x4bbb24]
cmp eax, edi
je 0x40d221
push eax
call ebx
test eax, eax
je 0x40d221
call eax
mov esi, eax
test esi, esi
je 0x40d221
mov eax, dword [0x4bbb28]
cmp eax, edi
je 0x40d221
push eax
call ebx
test eax, eax
je 0x40d221
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x4bbb20]
call ebx
test eax, eax
je 0x40d23c
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40d23e
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040415b
mov esp, ebp
pop ebp
ret
Function at 0x401990
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x1004
call fcn.004036c0
push ebx
push edi
mov ecx, 0x3ff
xor eax, eax
lea edi, [esp + 0xd]
mov byte [esp + 0xc], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0
push 0x80
push 3
push 0
stosb byte es:[edi], al
mov eax, dword [esp + 0x1024]
push 0
push closesocket
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4019e3
pop edi
xor eax, eax
pop ebx
add esp, 0x1004
ret
push ebp
mov ebp, dword [esp + 0x101c]
push esi
mov ecx, 0x400
xor eax, eax
lea edi, [esp + 0x14]
push eax
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x14]
lea edx, [esp + 0x18]
push ecx
push 0x1000
push edx
push ebx
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.DLL_ReadFile]
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x401a4c
mov edi, dword [ebp]
mov eax, dword [esp + 0x1018]
add edi, eax
mov eax, ecx
lea esi, [esp + 0x14]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x10]
mov eax, dword [ebp]
add eax, ecx
mov dword [ebp], eax
jmp 0x4019ec
push ebx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop esi
pop ebp
pop edi
mov eax, 1
pop ebx
add esp, 0x1004
ret
Function at 0x402d80
Capabilities:
Create raw socket
Create thread
Create udp socket
Get hostname
Resolve dns
Set socket configuration

Disassembly:
sub esp, 0x144
push ebx
push ebp
push esi
push 0
push 3
mov ebp, ecx
push 2
call dword [sym.imp.WS2_32.DLL_socket]
cmp eax, 0xffffffff
mov dword [ebp + 0xc], eax
jne 0x402db1
call dword [sym.imp.WS2_32.DLL_WSAGetLastError]
pop esi
pop ebp
pop ebx
add esp, 0x144
ret 8
lea eax, [esp + 0x50]
push 0x100
push eax
call dword [sym.imp.WS2_32.DLL_gethostname]
cmp eax, 0xffffffff
jne 0x402dd8
call dword [sym.imp.WS2_32.DLL_WSAGetLastError]
pop esi
pop ebp
pop ebx
add esp, 0x144
ret 8
lea ecx, [esp + 0x50]
push edi
push ecx
call dword [sym.imp.WS2_32.DLL_gethostbyname]
mov edx, dword [esp + 0x158]
mov esi, eax
mov ax, dx
mov dword [ebp + 0x10], edx
push eax
mov word [esp + 0x20], 2
call dword [sym.imp.WS2_32.DLL_htons]
mov word [esp + 0x1e], ax
mov edx, dword [esi + 0xc]
movsx ecx, word [esi + 0xa]
mov esi, dword [edx]
mov eax, ecx
lea edi, [esp + 0x20]
mov edx, dword [ebp + 0xc]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push 0x10
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x20]
push ecx
push edx
call dword [sym.imp.WS2_32.DLL_bind]
cmp eax, 0xffffffff
pop edi
jne 0x402e4a
call dword [sym.imp.WS2_32.DLL_WSAGetLastError]
pop esi
pop ebp
pop ebx
add esp, 0x144
ret 8
mov ecx, dword [ebp + 0xc]
mov esi, dword [sym.imp.WS2_32.DLL_setsockopt]
lea eax, [esp + 0xc]
push 4
push eax
push 4
mov ebx, 1
push 0xffff
push ecx
mov dword [esp + 0x20], ebx
call esi
mov eax, dword [ebp + 0xc]
lea edx, [esp + 0xc]
push 4
push edx
push 2
push 0
push eax
mov dword [esp + 0x20], ebx
call esi
cmp eax, 0xffffffff
jne 0x402e99
call dword [sym.imp.WS2_32.DLL_WSAGetLastError]
pop esi
pop ebp
pop ebx
add esp, 0x144
ret 8
push 0
lea ecx, [esp + 0x18]
push 0
push ecx
mov ecx, dword [ebp + 0xc]
lea edx, [esp + 0x34]
push 0x28
push edx
lea eax, [esp + 0x24]
push 4
push eax
push 0x98000001
push ecx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], 0
call dword [sym.imp.WS2_32.DLL_WSAIoctl]
cmp eax, 0xffffffff
jne 0x402ee2
call dword [sym.imp.WS2_32.DLL_WSAGetLastError]
pop esi
pop ebp
pop ebx
add esp, 0x144
ret 8
push 0
push 0
push ebp
push 0x402cf0
push 0
push 0
mov byte [ebp + 8], bl
call dword [sym.imp.KERNEL32.DLL_CreateThread]
test eax, eax
mov dword [ebp + 4], eax
jne 0x402f23
mov edx, dword [ebp + 0xc]
mov byte [ebp + 8], al
push edx
call dword [sym.imp.WS2_32.DLL_closesocket]
mov dword [ebp + 0xc], 0xffffffff
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x144
ret 8
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x144
ret 8

Function at 0x402f40
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 4]
mov byte [esi + 8], 0
test eax, eax
je 0x402f68
push 0
push eax
call dword [sym.imp.KERNEL32.DLL_TerminateThread]
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov dword [esi + 4], 0
mov esi, dword [esi + 0xc]
test esi, esi
je 0x402f76
push esi
call dword [sym.imp.WS2_32.DLL_closesocket]
pop esi
ret
Function at 0x403320
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
lea eax, [esp]
push ebx
mov ebx, dword [esp + 0x198]
push esi
push eax
mov esi, ecx
push ebx
call dword [sym.imp.WS2_32.DLL_WSAStartup]
test eax, eax
jne 0x403370
mov ax, word [esp + 8]
cmp al, bl
jne 0x40336a
xor ecx, ecx
xor edx, edx
mov cl, ah
mov dl, bh
cmp cl, dl
jne 0x40336a
mov dword [esi + 4], 1
pop esi
xor eax, eax
pop ebx
add esp, 0x190
ret 4
call dword [sym.imp.WS2_32.DLL_WSACleanup]
call dword [sym.imp.WS2_32.DLL_WSAGetLastError]
pop esi
pop ebx
add esp, 0x190
ret 4

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 0x13142a94
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.131444e8
test esi, esi
jne 0x13142aca
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.131445d8
jmp 0x13142ae8
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.13142948
mov edi, eax
test esi, esi
je 0x13142ae8
cmp dword [ebx], 0
je 0x13142ae8
dec esi
jmp 0x13142ad1
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x13143074
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x1318f008], 0x8088405
inc edx
mov dword [ebx + 0x1318f008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x13143628
Capabilities:
Query or enumerate registry value

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

Function at 0x1314436c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x13191044], 0
je 0x131443cd
cmp word [0x13191218], 0xd7b2
jne 0x13144395
cmp dword [0x13191220], 0
jbe 0x13144395
mov eax, 0x13191214
call dword [0x13191230]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x1318f074
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x131443f4
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x1318f034], 0
jne 0x131443e9
push 0
push 0x1318f06c
push 0x1318f074
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret