joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1001c880
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.1001c7f0

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, dword [ebp + 8]
push edi
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x14]
lea eax, [eax + ecx*2]
add eax, 0xc
push eax
call dword [0x1007d2e4]
mov edi, eax
add esp, 4
test edi, edi
jne 0x1001e3ed
pop edi
pop esi
mov esp, ebp
pop ebp
ret
lea ecx, [edi + 0xc]
mov dword [edi], esi
mov dword [edi + 4], ecx
mov eax, dword [esi + 0xc]
add eax, ecx
push ebx
mov ebx, dword [ebp + 0x10]
mov dword [edi + 8], eax
cmp ebx, dword [esi + 0x10]
jbe 0x1001e434
mov eax, dword [esi]
push ecx
call eax
mov eax, dword [esi + 4]
push ebx
push dword [ebp + 0xc]
push dword [edi + 4]
call eax
mov eax, dword [edi + 8]
add eax, dword [esi + 0xc]
push dword [edi + 4]
mov dword [ebp - 4], eax
push eax
mov eax, dword [esi + 8]
call eax
mov ebx, dword [esi + 0x14]
add esp, 0x18
mov dword [ebp + 0x10], ebx
jmp 0x1001e43a
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
push dword [edi + 4]
mov eax, dword [esi]
call eax
push dword [edi + 8]
mov eax, dword [esi]
call eax
mov eax, dword [ebp + 0x10]
add esp, 8
xor ebx, ebx
test eax, eax
je 0x1001e49a
mov ebx, dword [ebp - 4]
mov dword [ebp - 8], eax
lea ebx, [ebx]
movzx eax, byte [ebx]
xor al, 0x36
mov byte [ebp + 0xb], al
lea eax, [ebp + 0xb]
push 1
push eax
push dword [edi + 4]
mov eax, dword [esi + 4]
call eax
movzx eax, byte [ebx]
lea ebx, [ebx + 1]
xor al, 0x5c
mov byte [ebp + 0xb], al
lea eax, [ebp + 0xb]
push 1
push eax
push dword [edi + 8]
mov eax, dword [esi + 4]
call eax
add esp, 0x18
dec dword [ebp + 0x10]
jne 0x1001e460
mov ebx, dword [ebp - 8]
cmp ebx, dword [esi + 0x10]
jae 0x1001e4c7
nop
mov eax, dword [esi + 4]
push 1
push str.6:_u
push dword [edi + 4]
call eax
mov eax, dword [esi + 4]
push 1
push 0x1006ebe7
push dword [edi + 8]
call eax
inc ebx
add esp, 0x18
cmp ebx, dword [esi + 0x10]
jb 0x1001e4a0
pop ebx
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x1001e800
Capabilities:
Convert ip address from string

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x1007e820]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x18]
push eax
push esi
push 2
call dword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
jg 0x1001e847
lea eax, [ebp - 0x14]
push eax
push esi
push 0x17
call dword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
jg 0x1001e847
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100528f7
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.100528f7
mov esp, ebp
pop ebp
ret

Function at 0x1001e860
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x1001e881
cmp dword [esi + 0x84], 0
je 0x1001e881
push 2
push 3
push esi
call fcn.1003e830
add esp, 0xc
push dword [ebp + 0xc]
call fcn.1001d8a0
add esp, 4
test esi, esi
je 0x1001e8a4
cmp dword [esi + 0x84], 0
je 0x1001e8a4
push 3
push esi
call fcn.1003e870
add esp, 8
pop esi
pop ebp
ret
Function at 0x1001e9b0
Capabilities:
Create udp socket

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x1001e9f3
mov eax, dword [esi + 0x7c]
cmp byte [eax + 0x10c], 0
jne 0x1001e9e1
push 0
call fcn.1001e9b0
add esp, 4
test al, al
mov eax, dword [esi + 0x7c]
setne cl
inc cl
mov byte [eax + 0x10c], cl
mov ecx, dword [esi + 0x7c]
xor eax, eax
pop esi
cmp byte [ecx + 0x10c], 2
sete al
pop ebp
ret
push 0
push 2
push 0x17
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
jne 0x1001ea10
xor esi, esi
xor eax, eax
test esi, esi
pop esi
setg al
pop ebp
ret
push eax
mov esi, 1
call dword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
test esi, esi
pop esi
setg al
pop ebp
ret
Function at 0x1001f730
Capabilities:
Convert ip address from string

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, edi
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x1001f740
push dword [ebp + 8]
xorps xmm0, xmm0
mov eax, 2
movdqu xmmword [ebp - 0x14], xmm0
sub esi, ecx
mov word [ebp - 0x14], ax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x12], ax
lea eax, [ebp - 4]
push eax
push str.127.0.0.1
push 2
call dword [sym.imp.WS2_32.dll_inet_pton]
cmp eax, 1
jge 0x1001f785
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 4]
mov dword [ebp - 0x10], eax
lea eax, [esi + 0x31]
push eax
push 1
call dword [0x1007d2f4]
mov esi, eax
add esp, 8
test esi, esi
je 0x1001f77d
movdqu xmm0, xmmword [ebp - 0x14]
lea eax, [esi + 0x20]
mov dword [esi], 0
mov dword [esi + 0x18], eax
mov edx, edi
mov dword [esi + 4], 2
mov dword [esi + 8], 1
mov dword [esi + 0xc], 6
mov dword [esi + 0x10], 0x10
movdqu xmmword [eax], xmm0
mov ecx, dword [esi + 0x18]
add ecx, 0x10
mov dword [esi + 0x14], ecx
lea esp, [esp]
mov al, byte [edx]
lea edx, [edx + 1]
mov byte [ecx], al
lea ecx, [ecx + 1]
test al, al
jne 0x1001f7e0
push edi
push dword [ebp + 8]
call fcn.1001f810
add esp, 8
test eax, eax
jne 0x1001f806
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
pop edi
mov dword [eax + 0x1c], esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x1001f810
Capabilities:
Convert ip address from string

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x1007e820]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0xc]
mov ecx, esi
push edi
lea edx, [ecx + 1]
lea ebx, [ebx]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1001f830
sub ecx, edx
lea eax, [ecx + 0x3d]
push eax
push 1
call dword [0x1007d2f4]
mov edi, eax
add esp, 8
test edi, edi
jne 0x1001f860
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100528f7
mov esp, ebp
pop ebp
ret
push dword [ebp + 8]
mov eax, 0x17
mov word [ebp - 0x30], ax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x2e], ax
lea eax, [ebp - 0x14]
push eax
push 0x1006ec68
push 0x17
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x18], 0
call dword [sym.imp.WS2_32.dll_inet_pton]
cmp eax, 1
jl 0x1001f84e
movdqu xmm0, xmmword [ebp - 0x14]
push 0x1c
lea ecx, [ebp - 0x30]
mov dword [edi], 0
lea eax, [edi + 0x20]
mov dword [edi + 4], 0x17
push ecx
push eax
movdqu xmmword [ebp - 0x28], xmm0
mov dword [edi + 8], 1
mov dword [edi + 0xc], 6
mov dword [edi + 0x10], 0x1c
mov dword [edi + 0x1c], 0
mov dword [edi + 0x18], eax
call fcn.10053390
mov ecx, dword [edi + 0x18]
add esp, 0xc
add ecx, 0x1c
mov dword [edi + 0x14], ecx
jmp 0x1001f8f0
mov al, byte [esi]
lea esi, [esi + 1]
mov byte [ecx], al
lea ecx, [ecx + 1]
test al, al
jne 0x1001f8f0
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.100528f7
mov esp, ebp
pop ebp
ret
Function at 0x1001f970
Capabilities:
Convert ip address from string

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
mov eax, dword [0x1007e820]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
xor edi, edi
mov dword [ebp - 0x48], eax
cmp byte [eax + 0x68a], 0
mov dword [ebp - 0x4c], esi
je 0x1001fb3d
cmp byte [esi + 0x18], 0
push ebx
lea ebx, [esi + 0x18]
je 0x1001fb3c
lea eax, [ebp - 0x70]
push eax
push ebx
push 2
call dword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
jg 0x1001fb3c
lea eax, [ebp - 0x44]
push eax
push ebx
push 0x17
call dword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
jg 0x1001fb3c
mov ecx, dword [ebp - 0x4c]
mov eax, str._none_
cmp byte [ebx], 0
mov esi, dword [esi]
cmovne eax, ebx
mov ebx, dword [ebp - 0x48]
push dword [ecx + 0x14]
push eax
push str.Host__s:_d_was_resolved.
push ebx
call fcn.10010b50
lea eax, [ebp - 0x6c]
push 0x400
push eax
call fcn.10013100
lea eax, [ebp - 0x5c]
push 0x400
push eax
call fcn.10013100
add esp, 0x20
test esi, esi
je 0x1001fab4
mov edi, edi
mov ecx, dword [esi + 4]
cmp ecx, 0x17
je 0x1001fa2d
cmp ecx, 2
jne 0x1001faa6
xor eax, eax
mov byte [ebp - 0x34], 0
cmp ecx, 2
lea ebx, [ebp - 0x6c]
setne al
shl eax, 4
add ebx, eax
sub ecx, 2
je 0x1001fa5c
sub ecx, 0x15
jne 0x1001fa70
push 0x2e
lea eax, [ebp - 0x34]
push eax
mov eax, dword [esi + 0x18]
add eax, 8
push eax
push 0x17
jmp 0x1001fa6b
push 0x2e
lea eax, [ebp - 0x34]
push eax
mov eax, dword [esi + 0x18]
add eax, 4
push eax
push 2
call sub.WS2_32.dll_inet_ntop
push ebx
call fcn.10013130
add esp, 4
test eax, eax
je 0x1001fa8f
push 2
push 0x1006be20
push ebx
call fcn.100130c0
add esp, 0xc
mov edi, eax
test edi, edi
jne 0x1001fad2
lea eax, [ebp - 0x34]
push eax
push ebx
call fcn.10013060
mov edi, eax
add esp, 8
test edi, edi
jne 0x1001fad2
mov esi, dword [esi + 0x1c]
test esi, esi
jne 0x1001fa20
mov ebx, dword [ebp - 0x48]
lea eax, [ebp - 0x5c]
push eax
call fcn.10013130
add esp, 4
test eax, eax
je 0x1001fae4
lea eax, [ebp - 0x5c]
push eax
call fcn.10013140
add esp, 4
jmp 0x1001fae9
push str.too_many_IP__cant_show
push dword [ebp - 0x48]
call fcn.10010b50
add esp, 8
jmp 0x1001fb27
mov eax, str._none_
push eax
push str.IPv6:__s
push ebx
call fcn.10010b50
lea eax, [ebp - 0x6c]
push eax
call fcn.10013130
add esp, 0x10
test eax, eax
je 0x1001fb13
lea eax, [ebp - 0x6c]
push eax
call fcn.10013140
add esp, 4
jmp 0x1001fb18
mov eax, str._none_
push eax
push str.IPv4:__s
push ebx
call fcn.10010b50
add esp, 0xc
lea eax, [ebp - 0x6c]
push eax
call fcn.100130d0
lea eax, [ebp - 0x5c]
push eax
call fcn.100130d0
add esp, 8
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.100528f7
mov esp, ebp
pop ebp
ret
Function at 0x1002acb0
Capabilities:
Create new key via cryptacquirecontext
Hash data using md4
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0xf0000040
push 1
push 0
push 0
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
mov dword [ebp - 4], 0
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x1002ad01
lea eax, [ebp - 4]
push eax
push 0
push 0
push 0x8002
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x1002ad0a
push eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, 2
mov esp, ebp
pop ebp
ret
push dword [ebp + 0x10]
call fcn.1004fd20
add esp, 4
push 0
push eax
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call fcn.1002ada0
add esp, 8
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x100347c0
Capabilities:
Convert ip address from string

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
cmp ebx, 0x20
jbe 0x100347e4
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
push esi
mov esi, dword [sym.imp.WS2_32.dll_inet_pton]
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
push 2
call esi
cmp eax, 1
jne 0x1003480b
lea eax, [ebp - 8]
push eax
push dword [ebp + 0xc]
push 2
call esi
cmp eax, 1
je 0x10034813
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
test ebx, ebx
je 0x10034849
cmp ebx, 0x20
je 0x10034849
mov esi, dword [sym.imp.WS2_32.dll_htonl]
push edi
push dword [ebp - 4]
call esi
push dword [ebp - 8]
mov edi, eax
call esi
mov ecx, 0x20
or edx, 0xffffffff
sub ecx, ebx
xor eax, edi
shl edx, cl
pop edi
test edx, eax
pop esi
sete al
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
cmp ecx, dword [ebp - 8]
pop esi
sete al
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10034860
Capabilities:
Convert ip address from string

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x1007e820]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x10]
test ebx, ebx
push esi
mov esi, dword [sym.imp.WS2_32.dll_inet_pton]
mov dword [ebp - 0x28], ecx
mov ecx, 0x80
push edi
cmove ebx, ecx
lea ecx, [ebp - 0x24]
push ecx
push eax
mov edi, ebx
and ebx, 7
push 0x17
shr edi, 3
call esi
cmp eax, 1
jne 0x100348c0
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x28]
push 0x17
call esi
cmp eax, 1
jne 0x100348c0
cmp edi, 0x10
jg 0x100348c0
jne 0x100348d3
test ebx, ebx
je 0x100348d7
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100528f7
mov esp, ebp
pop ebp
ret
test edi, edi
je 0x10034927
mov esi, edi
lea ecx, [ebp - 0x24]
lea edx, [ebp - 0x14]
sub esi, 4
jb 0x100348f5
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x100348fa
add ecx, 4
add edx, 4
sub esi, 4
jae 0x100348e4
cmp esi, 0xfffffffc
je 0x10034927
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x100348c0
cmp esi, 0xfffffffd
je 0x10034927
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x100348c0
cmp esi, 0xfffffffe
je 0x10034927
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x100348c0
cmp esi, 0xffffffff
je 0x10034927
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
jne 0x100348c0
test ebx, ebx
je 0x1003494d
movzx eax, byte [ebp + edi - 0x24]
mov ecx, 8
movzx edx, byte [ebp + edi - 0x14]
sub ecx, ebx
xor edx, eax
mov eax, 0xff
shl eax, cl
test eax, edx
je 0x100348c0
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100528f7
mov esp, ebp
pop ebp
ret
Function at 0x10037d60
Capabilities:
Generate random numbers via winapi

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
mov ecx, 0x2b
test edi, edi
je 0x10037dee
mov ebx, dword [ebp + 0xc]
mov edx, dword [0x1007fc48]
jmp 0x10037d80
mov esi, 4
cmp edi, esi
cmovb esi, edi
cmp byte [0x1007fc44], 0
jne 0x10037dbf
push 2
push 4
lea eax, [ebp + 0x10]
mov dword [ebp + 0x10], 0
push eax
push 0
call sub.bcrypt.dll_BCryptGenRandom
mov ecx, eax
neg ecx
sbb ecx, ecx
and ecx, 2
jne 0x10037dee
mov eax, dword [ebp + 0x10]
mov edx, dword [0x1007fc48]
jmp 0x10037dd8
imul edx, edx, 0x41c64e6d
add edx, 0x3039
mov eax, edx
mov dword [0x1007fc48], edx
rol eax, 0x10
xor ecx, ecx
test esi, esi
je 0x10037dea
lea esp, [esp]
mov byte [ebx], al
dec edi
inc ebx
shr eax, 8
dec esi
jne 0x10037de0
test edi, edi
jne 0x10037d80
pop edi
pop esi
mov eax, ecx
pop ebx
pop ebp
ret

Function at 0x10037e00
Capabilities:
Generate random numbers via winapi

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
dec edi
je 0x10037e7a
mov ecx, dword [0x1007fc48]
mov ebx, 0x3e
lea ebx, [ebx]
cmp byte [0x1007fc44], 0
jne 0x10037e4e
push 2
push 4
lea eax, [ebp + 0x10]
mov dword [ebp + 0x10], 0
push eax
push 0
call sub.bcrypt.dll_BCryptGenRandom
test eax, eax
jne 0x10037e84
mov eax, dword [ebp + 0x10]
mov ecx, dword [0x1007fc48]
jmp 0x10037e65
imul ecx, ecx, 0x41c64e6d
add ecx, 0x3039
mov eax, ecx
mov dword [0x1007fc48], ecx
rol eax, 0x10
cmp eax, 0xfffffffc
jae 0x10037e20
xor edx, edx
div ebx
mov al, byte [edx + 0x10071e30]
mov byte [esi], al
inc esi
dec edi
jne 0x10037e20
pop edi
mov byte [esi], 0
xor eax, eax
pop esi
pop ebx
pop ebp
ret
pop edi
pop esi
mov eax, 2
pop ebx
pop ebp
ret

Function at 0x10037f20
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
lea eax, [ebp - 0x10]
push edi
push eax
call fcn.10047c50
push dword [ebp + 8]
movdqu xmm0, xmmword [eax]
movdqu xmmword [ebp - 0x10], xmm0
call fcn.10069869
push dword [ebp + 0xc]
mov edi, eax
call fcn.10069869
mov ebx, dword [sym.imp.KERNEL32.dll_MoveFileExA]
add esp, 0xc
mov esi, eax
push 1
push esi
push edi
call ebx
test eax, eax
jne 0x10037fad
lea eax, [ebp - 0x20]
push eax
call fcn.10047c50
movdqu xmm0, xmmword [ebp - 0x10]
sub esp, 0xc
mov ecx, esp
sub esp, 0x10
movdqu xmmword [ecx], xmm0
mov ecx, esp
movdqu xmm0, xmmword [eax]
movdqu xmmword [ecx], xmm0
call fcn.10047cf0
add esp, 0x20
test edx, edx
ja 0x10037fd0
jb 0x10037f9b
cmp eax, 0x3e8
ja 0x10037fd0
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
push 1
push esi
push edi
call ebx
test eax, eax
je 0x10037f62
test edi, edi
je 0x10037fba
push edi
call fcn.100532c1
add esp, 4
test esi, esi
je 0x10037fc7
push esi
call fcn.100532c1
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test edi, edi
je 0x10037fdd
push edi
call fcn.100532c1
add esp, 4
test esi, esi
je 0x10037fea
push esi
call fcn.100532c1
add esp, 4
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1003a020
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x1003a03b
cmp dword [edi], 0
jne 0x1003a04d
test esi, esi
je 0x1003a044
cmp dword [esi], 0
jne 0x1003a04d
test ebx, ebx
je 0x1003a096
cmp dword [ebx], 0
je 0x1003a096
push dword [ebp + 0x1c]
lea eax, [ebp - 8]
push dword [ebp + 0x18]
push eax
call fcn.10047b80
add esp, 0xc
test ebx, ebx
je 0x1003a068
cmp dword [ebx], 0
jne 0x1003a06a
xor ebx, ebx
test esi, esi
je 0x1003a073
cmp dword [esi], 0
jne 0x1003a075
xor esi, esi
test edi, edi
je 0x1003a07e
cmp dword [edi], 0
jne 0x1003a080
xor edi, edi
push eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
inc eax
push eax
call dword [sym.imp.WS2_32.dll_select]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0x18]
mov eax, ecx
mov edx, dword [ebp + 0x1c]
or eax, edx
mov dword [ebp - 4], edx
je 0x1003a0e2
test edx, edx
jg 0x1003a0cf
jl 0x1003a0af
test ecx, ecx
jae 0x1003a0c4
push 0x2726
call dword [sym.imp.WS2_32.dll_WSASetLastError]
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
test edx, edx
jl 0x1003a0db
jg 0x1003a0cf
cmp ecx, 0xffffffff
jb 0x1003a0db
mov ecx, 0xfffffffe
mov dword [ebp - 4], 0
push ecx
call dword [sym.imp.KERNEL32.dll_Sleep]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1003e7a0
Capabilities:
Create new key via cryptacquirecontext
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
lea eax, [ebp - 8]
push 0xf0000040
push 0x18
push 0
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x1003e7c8
mov eax, 0x1b
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 4]
push eax
push 0
push 0
push 0x800c
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x1003e7f5
push eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, 2
mov esp, ebp
pop ebp
ret
push dword [ebp + 0x10]
call fcn.1004fd20
add esp, 4
push 0
push eax
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
lea ecx, [ebp - 8]
push ecx
push dword [ebp + 8]
call fcn.1003e6e0
add esp, 8
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x10044470
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push edi
push str.kernel32
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 4], eax
test eax, eax
jne 0x10044490
pop edi
mov esp, ebp
pop ebp
ret
push ebx
push esi
push 0x10074e5c
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, dword [ebp + 8]
mov ebx, eax
push 0x10074e6c
push esi
mov dword [ebp - 8], ebx
call fcn.1005748e
add esp, 8
test eax, eax
je 0x100444dc
test ebx, ebx
je 0x100444cc
push 8
push 0
push esi
call ebx
pop esi
mov edi, eax
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
pop esi
mov edi, eax
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
test ebx, ebx
je 0x10044505
push str.AddDllDirectory
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10044505
push 0x800
push 0
push esi
call ebx
pop esi
mov edi, eax
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edx, eax
mov dword [ebp - 4], edx
test edx, edx
je 0x100445b0
mov ecx, esi
lea ebx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10044521
sub ecx, ebx
lea eax, [edx + 1]
add eax, ecx
push eax
call dword [0x1007d2e4]
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x100445a6
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x100445a6
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10044552
sub ecx, edx
mov eax, 0x5c
mov word [ecx + ebx], ax
mov ecx, ebx
lea edx, [ecx + 1]
lea esp, [esp]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10044570
sub ecx, edx
add ecx, ebx
sub ecx, esi
lea ecx, [ecx]
mov al, byte [esi]
lea esi, [esi + 1]
mov byte [ecx + esi - 1], al
test al, al
jne 0x10044580
mov eax, dword [ebp - 8]
test eax, eax
je 0x1004459d
push 8
push 0
push ebx
call eax
jmp 0x100445a4
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
push ebx
call dword [0x1007d2e8]
add esp, 4
pop esi
pop ebx
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x10044620
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x1007e820]
xor eax, ebp
mov dword [ebp - 4], eax
test byte [ebp + 8], 2
je 0x10044679
lea eax, [ebp - 0x194]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x10044666
mov eax, dword [ebp - 0x194]
cmp al, 2
jne 0x10044660
shr eax, 8
cmp al, 2
je 0x10044679
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 2
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100528f7
mov esp, ebp
pop ebp
ret
push esi
push edi
push str.iphlpapi.dll
call fcn.10044470
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
add esp, 4
mov dword [0x1007fc5c], eax
test eax, eax
je 0x100446b0
push str.if_nametoindex
push eax
call edi
mov ecx, dword [0x1007fc4c]
test eax, eax
cmovne ecx, eax
mov dword [0x1007fc4c], ecx
push str.ws2_32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov esi, eax
test esi, esi
je 0x100446e8
push str.FreeAddrInfoExW
push esi
call edi
push str.GetAddrInfoExCancel
push esi
mov dword [0x1007fc50], eax
call edi
push str.GetAddrInfoExW
push esi
mov dword [0x1007fc54], eax
call edi
mov dword [0x1007fc58], eax
push 3
push 2
push 0
push 0
push 6
call fcn.1004fa60
push 3
push 2
push 0
test al, al
push 2
push 6
setne byte [0x10080c19]
call fcn.1004fa60
add esp, 0x28
test al, al
setne byte [0x10080c18]
push 0x10080c20
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.100528f7
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push 0
mov byte [ebp + 0xa], cl
lea ecx, [ebp + 8]
push 3
mov eax, dword [esi + 0x18]
push ecx
mov byte [ebp + 8], 0xff
mov byte [ebp + 9], bl
push dword [eax + 0x1a0]
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x10045888
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push esi
call fcn.10010a90
add esp, 0xc
push dword [ebp + 0x10]
push ebx
push str.SENT
push esi
call fcn.10045150
add esp, 0x10
pop esi
pop ebx
pop ebp
ret