joyce8/EMBER2024-capa huggingface dataset:
Function at 0x439710
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x43973b
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x43975f
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x43977a
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
Function at 0x43c9f9
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov eax, ebx
push edi
mov edi, ecx
shr eax, 0x10
test ax, ax
mov dword [edi + 0x40], ebx
jne 0x43ca1b
cmp dword [edi + 0x3c], 0
jne 0x43ca1b
movzx eax, bx
mov dword [edi + 0x3c], eax
call fcn.00449f84
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
mov ecx, edi
push dword [esp + 0x18]
push eax
call fcn.0043ca48
pop edi
pop esi
pop ebx
ret 8

Function at 0x43e0b8
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x43e0f0
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00441210
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004411e8
jmp 0x43e0fc
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x43e100
Capabilities:
Get graphical window text

Disassembly:
push esi
push edi
mov edi, dword [esp + 0x10]
mov esi, ecx
push 0x46f240
mov ecx, edi
call fcn.00440ef2
cmp dword [esi + 0x34], 0
push dword [esp + 0xc]
jne 0x43e153
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, eax
test esi, esi
je 0x43e166
push esi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
push eax
mov ecx, edi
call fcn.00441210
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowTextA]
push 0xffffffffffffffff
mov ecx, edi
call fcn.004411e8
jmp 0x43e166
mov ecx, esi
call fcn.0044024e
test eax, eax
je 0x43e166
push edi
mov ecx, eax
call fcn.0043e0b8
mov eax, dword [edi]
pop edi
pop esi
mov eax, dword [eax - 8]
ret 8

Function at 0x43fa0d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x43fa4f
call fcn.00449f84
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x43fa4f
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x43fa46
xor eax, eax
jmp 0x43fa57
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0043fa5d
pop edi
pop esi
pop ebx
ret 4
Function at 0x44abe5
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov dword [ebp - 8], ecx
call fcn.00449f84
mov esi, dword [eax + 0xc]
push 0xf1
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x44ac22
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x44ac22
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x44ac26
xor eax, eax
jmp 0x44aca4
movzx eax, word [esi + 6]
push ebx
push edi
shl eax, 2
push eax
call fcn.0043d181
and dword [ebp - 4], 0
cmp word [esi + 6], 0
pop ecx
mov ebx, eax
jbe 0x44ac5e
mov ecx, ebx
lea eax, [esi + 8]
movzx edx, word [eax]
inc dword [ebp - 4]
mov dword [ecx], edx
movzx edx, word [esi + 6]
inc eax
add ecx, 4
inc eax
cmp dword [ebp - 4], edx
jl 0x44ac48
movzx eax, word [esi + 6]
mov ecx, dword [ebp - 8]
push eax
push ebx
call fcn.0044ad95
push ebx
mov edi, eax
call fcn.0043d1aa
test edi, edi
pop ecx
je 0x44aca0
movzx ecx, word [esi + 4]
movzx eax, word [esi + 2]
lea esi, [ecx + 7]
push ecx
mov ecx, dword [ebp - 8]
lea edx, [eax + 7]
push eax
push esi
push edx
call fcn.0044ab5e
push dword [ebp + 8]
mov ecx, dword [ebp - 8]
call fcn.0044aca9
mov edi, eax
mov eax, edi
pop edi
pop ebx
pop esi
leave
ret 4

Function at 0x44bd50
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x44bd7e
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x44bd9c
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0044bcb6
jmp 0x44bd9c
mov eax, dword [esi + 0x14]
test eax, eax
je 0x44bd9c
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0044bcb6
test edi, edi
mov eax, edi
jne 0x44bd86
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x402768
Capabilities:
Encode data using xor

Disassembly:
push 0x402b0c
call fcn.00402760
add byte [eax], al
add byte [eax], al
add byte [eax], al
xor byte [eax], al
add byte [eax], al
push 0x48000000
add byte [eax], al
add byte [edi - 0x5b302b37], cl
adc al, 0x40
mov bl, 0xa5
inc edi
arpl word [ecx], bx
adc dword [edx + 0x19], ebp
add byte [eax], al
add byte [ecx], al
add byte [eax], al
add byte [eax], ch
push ebx
popal
jb 0x402776
cmpsd dword [esi], dword es:[edi]
mov esp, 0xb1cfc9ae
test al, 0xca
std
mov esi, 0xd6e9d1dd
movsb byte es:[edi], byte [esi]
mov ecx, 0xdfbea4
popal
arpl word [ebp - 0x2f], sp
cmpsd dword [esi], dword es:[edi]
leave
cli
rol ch, 1
iretd
Function at 0x410923
Capabilities:
Hash data using sha1

Disassembly:
mov eax, dword [esp + 4]
and dword [eax], 0
and dword [eax + 4], 0
mov dword [eax + 8], 0x67452301
mov dword [eax + 0xc], 0xefcdab89
mov dword [eax + 0x10], 0x98badcfe
mov dword [eax + 0x14], 0x10325476
mov dword [eax + 0x18], 0xc3d2e1f0
ret

Function at 0x412656
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x46a4cc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
test eax, eax
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x1c], eax
je 0x412786
push edi
mov edi, dword [ebp + 0x10]
test edi, edi
je 0x412785
cmp edi, 0x40
jbe 0x4126a0
lea ecx, [ebp - 0x18]
push ecx
push edi
push eax
call fcn.00412505
add esp, 0xc
push 0x14
lea eax, [ebp - 0x18]
pop edi
mov dword [ebp - 0x1c], eax
push ebx
push 0x40
lea eax, [esi + 0x5c]
push 0x36
push eax
call fcn.0042b67a
push 0x40
lea ebx, [esi + 0x9c]
push 0x5c
push ebx
call fcn.0042b67a
add esp, 0x18
test edi, edi
jbe 0x4126d8
mov ecx, dword [ebp - 0x1c]
mov eax, ebx
mov dl, byte [ecx]
xor byte [eax - 0x40], dl
mov dl, byte [ecx]
xor byte [eax], dl
inc ecx
inc eax
dec edi
jne 0x4126ca
push esi
call fcn.00410923
add esp, 4
lea eax, [esi + 0x5c]
test eax, eax
push 0x40
pop ebx
mov dword [ebp - 0x1c], eax
je 0x412774
mov ecx, dword [esi]
mov edi, ecx
push ebx
and edi, 0x3f
pop eax
add ecx, ebx
sub eax, edi
cmp ecx, ebx
mov dword [ebp - 0x20], eax
mov dword [esi], ecx
jae 0x41270b
inc dword [esi + 4]
test edi, edi
je 0x412741
cmp eax, 0x40
ja 0x412741
push eax
push dword [ebp - 0x1c]
lea eax, [edi + esi + 0x1c]
push eax
call fcn.0042b680
add esp, 0xc
lea eax, [esi + 0x1c]
mov ecx, esi
call fcn.00410952
mov eax, dword [ebp - 0x20]
add dword [ebp - 0x1c], eax
push 0x40
pop ebx
sub ebx, eax
xor edi, edi
cmp ebx, 0x40
jb 0x41275f
mov eax, ebx
shr eax, 6
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x1c]
mov ecx, esi
call fcn.00410952
add dword [ebp - 0x1c], 0x40
sub ebx, 0x40
dec dword [ebp - 0x20]
jne 0x412749
test ebx, ebx
jbe 0x412774
push ebx
push dword [ebp - 0x1c]
lea eax, [edi + esi + 0x1c]
push eax
call fcn.0042b680
add esp, 0xc
push 0x14
lea eax, [ebp - 0x18]
push 0
push eax
call fcn.0042b67a
add esp, 0xc
pop ebx
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0042b035
leave
ret

Function at 0x412994
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
and dword [eax], 0
and dword [eax + 4], 0
mov dword [eax + 8], 0x67452301
mov dword [eax + 0xc], 0xefcdab89
mov dword [eax + 0x10], 0x98badcfe
mov dword [eax + 0x14], 0x10325476
ret
Function at 0x4136ca
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x46a4cc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
test eax, eax
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x18], eax
je 0x4137fa
push edi
mov edi, dword [ebp + 0x10]
test edi, edi
je 0x4137f9
cmp edi, 0x40
jbe 0x413714
lea ecx, [ebp - 0x14]
push ecx
push edi
push eax
call fcn.00413579
add esp, 0xc
push 0x10
lea eax, [ebp - 0x14]
pop edi
mov dword [ebp - 0x18], eax
push ebx
push 0x40
lea eax, [esi + 0x58]
push 0x36
push eax
call fcn.0042b67a
push 0x40
lea ebx, [esi + 0x98]
push 0x5c
push ebx
call fcn.0042b67a
add esp, 0x18
test edi, edi
jbe 0x41374c
mov ecx, dword [ebp - 0x18]
mov eax, ebx
mov dl, byte [ecx]
xor byte [eax - 0x40], dl
mov dl, byte [ecx]
xor byte [eax], dl
inc ecx
inc eax
dec edi
jne 0x41373e
push esi
call fcn.00412994
add esp, 4
lea eax, [esi + 0x58]
test eax, eax
push 0x40
pop ebx
mov dword [ebp - 0x18], eax
je 0x4137e8
mov ecx, dword [esi]
mov edi, ecx
push ebx
and edi, 0x3f
pop eax
add ecx, ebx
sub eax, edi
cmp ecx, ebx
mov dword [ebp - 0x1c], eax
mov dword [esi], ecx
jae 0x41377f
inc dword [esi + 4]
test edi, edi
je 0x4137b5
cmp eax, 0x40
ja 0x4137b5
push eax
push dword [ebp - 0x18]
lea eax, [edi + esi + 0x18]
push eax
call fcn.0042b680
add esp, 0xc
lea eax, [esi + 0x18]
mov ecx, esi
call fcn.004129bc
mov eax, dword [ebp - 0x1c]
add dword [ebp - 0x18], eax
push 0x40
pop ebx
sub ebx, eax
xor edi, edi
cmp ebx, 0x40
jb 0x4137d3
mov eax, ebx
shr eax, 6
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x18]
mov ecx, esi
call fcn.004129bc
add dword [ebp - 0x18], 0x40
sub ebx, 0x40
dec dword [ebp - 0x1c]
jne 0x4137bd
test ebx, ebx
jbe 0x4137e8
push ebx
push dword [ebp - 0x18]
lea eax, [edi + esi + 0x18]
push eax
call fcn.0042b680
add esp, 0xc
push 0x10
lea eax, [ebp - 0x14]
push 0
push eax
call fcn.0042b67a
add esp, 0xc
pop ebx
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0042b035
leave
ret

Function at 0x41b780
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x456363
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
call fcn.0041bd90
mov dword [esi], 0x45c9f0
mov eax, dword [0x46ac90]
xor edi, edi
mov ecx, 0x46ac90
mov dword [esp + 0x14], edi
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi + 0x1c], eax
mov ecx, dword [esp + 0xc]
mov dword [esi + 0x20], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0xc], 0x13
mov dword [esi + 0x18], 0xffffffff
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x4261b0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x456dbb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x78
mov eax, dword [0x46a4cc]
push ebx
push ebp
push esi
mov dword [esp + 0x80], eax
push edi
mov esi, ecx
mov edi, dword [esp + 0x98]
xor ebp, ebp
mov dword [esp + 0x90], ebp
mov dword [esp + 0x10], edi
cmp edi, ebp
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], ebp
jne 0x426229
mov ecx, dword [esi + 0x14]
lea eax, [esp + 0x44]
push eax
push ecx
call dword [0x458768]
mov edi, eax
lea edx, [esp + 0x4c]
push edx
lea eax, [esp + 0x18]
push eax
mov dword [esp + 0x18], edi
call dword [0x4586e4]
jmp 0x426238
mov edx, dword [esi + 0x14]
lea ecx, [esp + 0x14]
push ecx
push edx
call dword [0x4587e4]
lea eax, [esp + 0x14]
push eax
push edi
lea ecx, [esp + 0x2c]
call fcn.00426000
mov ebx, dword [esp + 0x24]
mov byte [esp + 0x90], 2
xor edi, edi
mov ecx, dword [esi + 8]
cmp ecx, ebp
je 0x42627a
mov eax, dword [esi + 0xc]
sub eax, ecx
sar eax, 2
cmp edi, eax
jae 0x42627a
lea eax, [ecx + edi*4]
mov ecx, dword [eax]
cmp ecx, ebp
je 0x426277
mov edx, dword [ecx]
push ebx
call dword [edx + 4]
inc edi
jmp 0x426255
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x38]
push 0xcc0020
push eax
push ecx
push ebx
sub edx, eax
push edx
mov edx, dword [esp + 0x48]
sub edx, ecx
push edx
push eax
mov eax, dword [esp + 0x44]
push ecx
push eax
call dword [0x4580e8]
mov ecx, dword [esp + 0x40]
push ecx
push ebx
call dword [0x4580f8]
mov eax, dword [esp + 0x3c]
cmp eax, ebp
je 0x4262c0
push eax
call dword [0x458118]
cmp ebx, ebp
je 0x4262cb
push ebx
call dword [0x4580f4]
cmp dword [esp + 0x98], ebp
jne 0x4262e3
mov eax, dword [esi + 0x14]
lea edx, [esp + 0x44]
push edx
push eax
call dword [0x45876c]
mov ecx, dword [esp + 0x88]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x78]
pop ebx
call fcn.0042b035
add esp, 0x84
ret 4
Function at 0x1000117e
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
lea eax, [esp]
push esi
mov esi, ecx
push eax
push 0x202
mov dword [esi + 0x10810], 0xea60
mov dword [esi], 0x100061bc
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x100011b2
and byte [esi + 0x10007], 0
or dword [esi + 0x1080c], 0xffffffff
mov eax, esi
pop esi
add esp, 0x190
ret

Function at 0x100012df
Capabilities:
Send data
Send data on socket
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
mov dword [ebp - 8], 0xcffa001d
je 0x100013ca
lea eax, [ebp - 0x14]
mov dword [ebp - 8], 0xcffa0017
push eax
lea eax, [ebp - 0x10]
push eax
push 0x13
push 0xff
mov dword [ebp - 0x10], 1
push dword [ebp + 8]
mov dword [ebp - 0x14], 4
call dword [sym.imp.WS2_32.dll_getsockopt]
cmp eax, 0xffffffff
je 0x100013ca
mov eax, dword [ebp + 0x10]
cmp eax, dword [ebp - 0x10]
jbe 0x100013b4
push esi
mov dword [ebp - 0xc], ebx
mov byte [ebp - 1], bl
push 0x14
lea eax, [ebp - 0x28]
push ebx
push eax
call fcn.10003d80
add esp, 0xc
push ebx
push ebx
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp esi, ebx
jne 0x10001384
cmp eax, 0x3e5
jne 0x1000139b
lea eax, [ebp - 0xc]
push 1
push eax
lea eax, [ebp - 0x28]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
jne 0x1000139f
mov byte [ebp - 1], 1
mov eax, dword [ebp + 0x10]
cmp dword [ebp - 0xc], eax
jae 0x100013ac
cmp byte [ebp - 1], bl
je 0x1000133d
cmp byte [ebp - 1], bl
pop esi
jne 0x100013ca
jmp 0x100013c7
push ebx
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x100013ca
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
pop ebx
leave
ret 0xc
Function at 0x100013d2
Capabilities:
Read file on windows
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 4], 0xcffa0017
jne 0x100013f0
mov dword [ebp + 0x10], 0xffff
push 4
mov ebx, dword [ebp + 0x14]
pop esi
lea eax, [ebp - 8]
push eax
lea eax, [ebp + 0x14]
push eax
push 0x13
push 0xff
mov dword [ebx], edi
push dword [ebp + 8]
mov dword [ebp + 0x14], 1
mov dword [ebp - 8], esi
call dword [sym.imp.WS2_32.dll_getsockopt]
cmp eax, 0xffffffff
je 0x10001562
push edi
mov edi, dword [ebp + 0xc]
push esi
push edi
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
je 0x10001562
add dword [ebx], esi
xor eax, eax
mov ah, byte [edi]
movzx esi, ax
movzx eax, byte [edi + 1]
and esi, 0xffffff00
or esi, eax
xor eax, eax
mov ah, byte [edi + 2]
movzx eax, ax
shl esi, 0x10
or esi, eax
movzx eax, byte [edi + 3]
or esi, eax
lea eax, [esi + 4]
cmp eax, dword [ebp + 0x10]
ja 0x10001557
xor eax, eax
cmp esi, eax
je 0x10001562
cmp esi, dword [ebp + 0x14]
jbe 0x1000153b
and byte [ebp + 0x13], al
push 0x14
mov dword [ebp + 0xc], eax
push eax
lea eax, [ebp - 0x20]
xor ebx, ebx
push eax
call fcn.10003d80
add esp, 0xc
xor eax, eax
push eax
push eax
push 1
push eax
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp + 0xc]
push eax
lea eax, [edi + ebx + 4]
push dword [ebp + 0x14]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebp - 0xc], 0
jne 0x100014f1
cmp eax, 0x3e5
je 0x100014f1
test eax, eax
mov byte [ebp + 0x13], 1
jg 0x100014e5
mov dword [ebp - 4], eax
jmp 0x10001513
and eax, 0xffff
or eax, 0x80070000
jmp 0x100014e0
lea eax, [ebp + 0xc]
push 1
push eax
lea eax, [ebp - 0x20]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
add ebx, dword [ebp + 0xc]
mov eax, esi
sub eax, ebx
cmp eax, dword [ebp + 0x14]
jae 0x10001513
mov dword [ebp + 0x14], eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
cmp ebx, esi
jae 0x10001526
cmp byte [ebp + 0x13], 0
je 0x100014a9
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [ebp + 0x13], 0
jne 0x10001562
and dword [ebp - 4], 0
jmp 0x10001562
push eax
add edi, 4
push esi
push edi
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
je 0x10001562
and dword [ebp - 4], 0
add dword [ebx], esi
jmp 0x10001562
test esi, esi
je 0x10001562
mov dword [ebp - 4], 0xcffa001f
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x10001674
Capabilities:
Connect socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xec0
push ebx
mov ebx, dword [ebp + 8]
xor ecx, ecx
mov dword [ebp - 4], 0xcffa001c
cmp ebx, ecx
je 0x10001806
mov eax, dword [ebp + 0xc]
cmp eax, ecx
je 0x10001806
and byte [ebp - 0x36], cl
and byte [ebp - 0x35], cl
and byte [ebp - 0x34], cl
and byte [ebp - 0x33], cl
push esi
push edi
mov dword [ebx], ecx
mov esi, 0x10008058
lea edi, [ebp - 0x32]
mov dword [eax], ecx
mov word [ebp - 0x38], 0x1a
xor eax, eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea edi, [ebp - 0x26]
push ecx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosb byte es:[edi], al
mov edi, dword [sym.imp.WS2_32.dll_socket]
xor eax, eax
inc eax
mov dword [ebp - 0x18], 0xe87
push eax
push 0x1a
mov dword [ebp - 0x14], eax
call edi
cmp eax, 0xffffffff
mov dword [ebp - 0xc], eax
je 0x100017f6
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0xec0]
push ecx
push 0x10
push 0xff
push eax
call dword [sym.imp.WS2_32.dll_getsockopt]
cmp eax, 0xffffffff
je 0x100017e0
and dword [ebp - 8], 0
cmp dword [ebp - 0xec0], 0
jbe 0x100017e0
lea eax, [ebp - 0xebc]
mov dword [ebp + 8], eax
push 4
lea eax, [ebp - 0x36]
push dword [ebp + 8]
push eax
call fcn.10003de0
add esp, 0xc
push 0
push 1
push 0x1a
call edi
lea ecx, [ebp - 0x14]
push 4
push ecx
push 0x16
push 0xff
push eax
mov dword [ebp - 0x10], eax
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x100017c1
lea eax, [ebp - 0x38]
push 0x20
push eax
push dword [ebp - 0x10]
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x100017c1
inc dword [ebx]
mov eax, dword [ebx]
shl eax, 2
push eax
call dword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov eax, dword [esi]
test eax, eax
je 0x100017ab
mov ecx, dword [ebx]
lea ecx, [ecx*4 - 4]
push ecx
push eax
push dword [ebp - 4]
call fcn.10003de0
add esp, 0xc
push dword [esi]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x10]
and dword [ebp - 4], 0
mov dword [esi], eax
mov eax, dword [ebx]
mov eax, dword [esi + eax*4 - 4]
mov dword [eax], ecx
jmp 0x100017ca
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 4], eax
inc dword [ebp - 8]
add dword [ebp + 8], 0x1d
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0xec0]
jb 0x1000172a
push 2
push dword [ebp - 0xc]
call dword [sym.imp.WS2_32.dll_shutdown]
push dword [ebp - 0xc]
call dword [sym.imp.WS2_32.dll_closesocket]
jmp 0x100017ff
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
pop edi
pop esi
jmp 0x1000180b
mov eax, 0xcffa001d
pop ebx
leave
ret 8
Function at 0x10002224
Capabilities:
Check os version
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb8
push ebx
push esi
push edi
mov esi, ecx
push dword [ebp + 0xc]
mov dword [esi + 0x70], 0x100080e0
mov dword [0x10008220], esi
push dword [ebp + 8]
mov dword [esi], 0x84
mov dword [esi + 0x64], 0x300
push esi
call fcn.10003555
xor ebx, ebx
cmp dword [ebp + 0x10], ebx
je 0x10002271
push 0x10
push dword [ebp + 0x10]
push 0x10008238
call fcn.10003de0
add esp, 0xc
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_HeapCreate]
mov edi, 0x94
mov dword [esi + 0x18], eax
push edi
lea eax, [ebp - 0xb8]
push ebx
push eax
call fcn.10003d80
add esp, 0xc
lea eax, [ebp - 0xb8]
mov dword [ebp - 0xb8], edi
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp dword [ebp - 0xa8], 2
jne 0x100022c2
cmp dword [ebp - 0xb4], 5
jae 0x10002315
mov eax, dword [ebp - 0x10]
cmp eax, 1
jbe 0x10002315
or dword [esi + 0x74], 0xffffffff
add eax, eax
xor ecx, ecx
test eax, eax
js 0x100022e1
shr dword [esi + 0x74], 1
add eax, eax
inc ecx
cmp ecx, 0x20
jl 0x100022d2
shr dword [esi + 0x74], 1
mov eax, dword [esi + 0x74]
lea eax, [eax*4 + 4]
push eax
push ebx
push dword [esi + 0x18]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [esi + 0x78], eax
xor edi, edi
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_HeapCreate]
mov ecx, dword [esi + 0x78]
mov dword [ecx + edi*4], eax
inc edi
cmp edi, dword [esi + 0x74]
jbe 0x100022fe
jmp 0x1000231b
mov dword [esi + 0x78], ebx
mov dword [esi + 0x74], ebx
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret 0xc