joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4c8ba0
Capabilities:
Hash data with md5

Disassembly:
sub esp, 0x94
mov eax, dword [esp + 0x9c]
push esi
push 0x40
lea ecx, [esp + 0x1c]
xor esi, esi
push eax
push ecx
mov dword [esp + 0x24], 0x67452301
mov dword [esp + 0x28], 0xefcdab89
mov dword [esp + 0x2c], 0x98badcfe
mov dword [esp + 0x30], 0x10325476
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], esi
call fcn.004c89b0
lea edx, [esp + 0x24]
lea eax, [esp + 0x10]
push edx
push eax
call fcn.004c8ae0
mov esi, dword [esp + 0xb0]
add esp, 0x14
xor edx, edx
mov cl, byte [esp + edx + 4]
mov al, cl
and cl, 0xf
sar al, 4
and al, 0xf
cmp al, 0xa
movsx eax, al
jge 0x4c8c1a
add eax, 0x30
jmp 0x4c8c1d
add eax, 0x57
mov byte [esi], al
cmp cl, 0xa
movsx eax, cl
jge 0x4c8c2c
add eax, 0x30
jmp 0x4c8c2f
add eax, 0x57
mov byte [esi + 1], al
inc edx
add esi, 2
cmp edx, 0x10
jl 0x4c8c00
pop esi
add esp, 0x94
ret

Function at 0x4c8c50
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x84
push ebx
mov ebx, dword [esp + 0x90]
push ebp
mov ebp, dword [esp + 0x90]
push esi
push edi
mov ecx, 0x10
xor eax, eax
mov edi, ebp
mov esi, dword [esp + 0xa0]
rep stosd dword es:[edi], eax
mov ecx, 8
mov edi, ebx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x20
xor eax, eax
lea edi, [esp + 0x14]
rep stosd dword es:[edi], eax
test esi, esi
mov dword [esp + 0x14], 0x9d14e9a1
mov dword [esp + 0x18], 0x593b6b0e
je 0x4c8cdb
mov edi, esi
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 0x28
jne 0x4c8cbf
mov byte [esi + 0x20], al
mov ecx, 0x20
jmp 0x4c8cc9
cmp ecx, 0x38
jle 0x4c8cc9
mov ecx, 0x38
mov eax, ecx
lea edi, [esp + 0x1c]
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, 0x6bf88c
test ecx, ecx
je 0x4c8d0f
mov edi, ecx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 0x38
jle 0x4c8cfa
mov ecx, 0x38
xor eax, eax
test ecx, ecx
jle 0x4c8d0f
mov dl, byte [eax + 0x6bf88c]
xor byte [esp + eax + 0x1c], dl
inc eax
cmp eax, ecx
jl 0x4c8d00
lea eax, [esp + 0x14]
push eax
push ebp
call fcn.004c8ba0
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, str.01d0a8e3
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
lea esi, [edx + ebp]
sub edi, ecx
mov eax, ecx
mov dword [esp + 0x10], esi
mov esi, edi
mov edi, dword [esp + 0x10]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, edx
cdq
and edx, 3
and ecx, 3
add eax, edx
rep movsb byte es:[edi], byte [esi]
sar eax, 2
xor ecx, ecx
test eax, eax
jle 0x4c8d74
mov esi, ebp
mov dl, byte [esi]
add esi, 4
mov byte [ecx + ebx], dl
inc ecx
cmp ecx, eax
jl 0x4c8d67
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x84
ret
Function at 0x4c9940
Capabilities:
Encode data using base64
Terminate process

Disassembly:
sub esp, 0x118
mov ecx, 0x3f
mov eax, 0x80808080
push ebx
push ebp
push esi
push edi
lea edi, [esp + 0x28]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, 0x41
mov cl, al
sub cl, 0x41
mov byte [esp + eax + 0x28], cl
inc eax
cmp eax, 0x5a
jle 0x4c9962
mov eax, 0x61
mov dl, al
sub dl, 0x47
mov byte [esp + eax + 0x28], dl
inc eax
cmp eax, 0x7a
jle 0x4c9976
mov eax, 0x30
mov cl, al
add cl, 4
mov byte [esp + eax + 0x28], cl
inc eax
cmp eax, 0x39
jle 0x4c998a
mov edi, dword [esp + 0x12c]
or ecx, 0xffffffff
xor eax, eax
xor ebp, ebp
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov byte [esp + 0x53], 0x3e
mov byte [esp + 0x57], 0x3f
mov byte [esp + 0x65], 0
mov dword [esp + 0x18], ebp
je 0x4c9b1d
mov ebx, dword [esp + 0x130]
mov dword [esp + 0x10], 3
mov dword [esp + 0x14], 4
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x12c]
xor eax, eax
lea esi, [edx + ecx]
movsx ecx, byte [esi + eax]
mov dl, byte [esp + ecx + 0x28]
test dl, 0x80
jne 0x4c9aee
mov byte [esp + eax + 0x20], cl
mov byte [esp + eax + 0x1c], dl
inc eax
cmp eax, 4
jl 0x4c99ec
mov esi, dword [esp + 0x138]
mov edx, dword [esp + 0x10]
cmp edx, dword [esi]
jle 0x4c9a56
mov eax, dword [esp + 0x14]
push eax
call fcn.004d3eb7
mov ecx, dword [esi]
mov esi, ebx
mov edx, ecx
mov edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebx
and ecx, 3
mov dword [esp + 0x2c], eax
rep movsb byte es:[edi], byte [esi]
call fcn.004d3dce
mov ecx, dword [esp + 0x140]
mov eax, dword [esp + 0x18]
mov ebx, dword [esp + 0x2c]
add esp, 8
mov dword [ecx], eax
mov ecx, dword [esp + 0x1c]
mov edi, dword [esp + 0x10]
mov dl, ch
mov al, cl
sar dl, 4
shl al, 2
or dl, al
mov eax, dword [esp + 0x14]
mov byte [ebx + ebp], dl
inc ebp
inc eax
mov cl, ch
mov dword [esp + 0x14], eax
mov al, byte [esp + 0x1e]
mov dl, al
inc edi
sar dl, 2
shl cl, 4
or dl, cl
mov ecx, dword [esp + 0x14]
shl al, 6
or al, byte [esp + 0x1f]
mov byte [ebx + ebp], dl
inc ebp
mov edx, edi
inc ecx
inc edx
mov byte [ebx + ebp], al
mov al, byte [esp + 0x22]
inc ebp
inc ecx
inc edx
mov dword [esp + 0x10], edi
cmp al, 0x3d
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], edx
je 0x4c9b03
mov cl, byte [esp + 0x23]
xor eax, eax
cmp cl, 0x3d
setne al
add eax, 2
cmp eax, 3
jl 0x4c9b03
mov edx, dword [esp + 0x18]
mov edi, dword [esp + 0x12c]
or ecx, 0xffffffff
xor eax, eax
add edx, 4
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x18], edx
cmp edx, ecx
jae 0x4c9b24
jmp 0x4c99dc
push ecx
push str.Illegal_character__c_in_input._n
call fcn.004d5117
add esp, 8
push 1
call fcn.004d52e8
mov eax, dword [esp + 0x134]
mov byte [ebx + ebp], 0
pop edi
pop esi
mov dword [eax], ebp
mov eax, ebx
pop ebp
pop ebx
add esp, 0x118
ret
mov ebx, dword [esp + 0x130]
mov ecx, dword [esp + 0x134]
mov byte [ebx + ebp], 0
pop edi
pop esi
mov dword [ecx], ebp
mov eax, ebx
pop ebp
pop ebx
add esp, 0x118
ret
Function at 0x4e6524
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4e655c
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.004e45ae
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004e4586
jmp 0x4e6568
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4e7c12
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 0x4e7c54
call fcn.004ed8f8
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4e7c54
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4e7c4b
xor eax, eax
jmp 0x4e7c5c
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004e7c62
pop edi
pop esi
pop ebx
ret 4

Function at 0x4ede28
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 0x4ede56
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4ede74
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004edd8e
jmp 0x4ede74
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4ede74
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004edd8e
test edi, edi
mov eax, edi
jne 0x4ede5e
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x10001a20
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using aes via winapi
Encrypt or decrypt via wincrypt
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x10057230]
push esi
push edi
mov edi, dword [0x10057238]
push 0xf0000000
xor esi, esi
push 0x18
push esi
push esi
lea ecx, [ebp - 8]
push ecx
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x10001af6
mov eax, dword [ebp - 8]
lea edx, [ebp - 4]
push edx
push esi
push esi
push 0x800c
push eax
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x10001aea
mov ecx, dword [ebp - 4]
push esi
push 0x80
push str.VP6xD1l641p5CrMKbgvnQoD20qUxdortl591yX0dNNGQeTiWITjLGfOgtBE1yS14WodB90cSQObezPtfScLWAIjNbqj31IFVZMdwWY12DfrWFyuZnqBPWXOc8gTndiPN
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x10001ae0
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
lea edx, [ebp - 0xc]
push edx
push 1
push eax
push 0x6610
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptDeriveKey]
test eax, eax
je 0x10001ae0
mov eax, dword [ebp - 0xc]
lea edx, [ebp - 0x10]
push edx
push edi
push esi
push 1
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
je 0x10001ad1
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp + 8]
mov dword [edx], ecx
mov esi, 1
jmp 0x10001ad6
mov eax, dword [ebp + 8]
mov dword [eax], esi
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, dword [ebp - 8]
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10001b00
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x100554b0]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x104
lea eax, [ebp - 0x108]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [ebp - 0x108]
push 0x5c
push ecx
call fcn.10035f50
mov byte [eax], 0
mov eax, str.donottrace.txt
add esp, 8
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10001b42
push esi
push edi
lea edi, [ebp - 0x108]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x10001b54
mov ecx, eax
shr ecx, 2
push 0
mov esi, edx
rep movsd dword es:[edi], dword [esi]
push 0x80
push 3
push 0
push 0
mov ecx, eax
push connect
lea edx, [ebp - 0x108]
and ecx, 3
push edx
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0
push eax
mov dword [0x10057228], eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 4
push 0x3000
push eax
push 0
mov dword [0x10057230], eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ecx, dword [0x10057230]
mov edx, dword [0x10057228]
push 0
push 0x10057234
push ecx
push eax
push edx
mov dword [0x10057238], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [0x10057228]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x10c]
push ecx
mov dword [ebp - 0x10c], 0
call fcn.10001a20
mov ecx, dword [ebp - 4]
add esp, 4
pop edi
xor ecx, ebp
pop esi
call fcn.10035d36
mov esp, ebp
pop ebp
ret

Function at 0x100020f0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x100554b0]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
cmp dword [esi + 0x530], eax
push 4
lea ecx, [ebp - 0x14]
push ecx
setne al
push 8
push 0xffff
push edi
mov dword [ebp - 0x14], eax
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x10002143
push edi
push str.Failed_to_set_SO_KEEPALIVE_on_fd__d_n
push esi
call fcn.10022c60
add esp, 0xc
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10035d36
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x534]
mov dword [ebp - 0x10], 1
call fcn.10033d50
imul eax, eax, 0x3e8
mov dword [ebp - 0xc], eax
mov eax, dword [esi + 0x538]
call fcn.10033d50
imul eax, eax, 0x3e8
push 0
push 0
lea edx, [ebp - 0x18]
push edx
push 0
push 0
push 0xc
mov dword [ebp - 0x14], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
push 0x98000004
push edi
call dword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x100021ad
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
push str.Failed_to_set_SIO_KEEPALIVE_VALS_on_fd__d:__d_n
push esi
call fcn.10022c60
add esp, 0x10
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10035d36
mov esp, ebp
pop ebp
ret
Function at 0x10002840
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x100554b0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, edx
cmp dword [esi + 0x8c], 2
mov ebx, dword [esi]
push edi
mov edi, ecx
mov dword [ebp - 0x10c], esi
mov dword [ebp - 0x114], ebx
je 0x10002a19
cmp dword [esi + 0x270], 0
jne 0x10002a12
cmp dword [esi + 0x2e0], 0
jne 0x10002a12
lea eax, [ebp - 0x110]
push eax
lea ecx, [ebp - 0x108]
push ecx
push edi
mov dword [ebp - 0x110], 0x80
call dword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x100028e1
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
push esi
call fcn.10027b30
push eax
push edi
push str.getpeername___failed_with_errno__d:__s
push ebx
call fcn.10022ce0
add esp, 0x14
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10035d36
mov esp, ebp
pop ebp
ret
push 0x80
lea edx, [ebp - 0x88]
push 0
push edx
mov dword [ebp - 0x110], 0x80
call fcn.1003e2a0
add esp, 0xc
lea eax, [ebp - 0x110]
push eax
lea ecx, [ebp - 0x88]
push ecx
push edi
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x10002949
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
push esi
call fcn.10027b30
push eax
push edi
push str.getsockname___failed_with_errno__d:__s
push ebx
call fcn.10022ce0
add esp, 0x14
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10035d36
mov esp, ebp
pop ebp
ret
lea eax, [esi + 0x102]
lea ebx, [esi + 0x130]
lea edi, [ebp - 0x108]
mov dword [ebp - 0x118], eax
call fcn.100027f0
test eax, eax
jne 0x1000299f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push esi
call fcn.10027b30
mov edx, dword [ebp - 0x114]
push eax
push edi
push str.ssrem_inet_ntop___failed_with_errno__d:__s
push edx
call fcn.10022ce0
add esp, 0x14
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10035d36
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x10c]
lea edi, [esi + 0x58]
mov esi, dword [ebp - 0x118]
mov ecx, 0xb
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
lea ebx, [eax + 0x164]
add eax, 0x134
lea edi, [ebp - 0x88]
call fcn.100027f0
test eax, eax
jne 0x10002a0c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [ebp - 0x10c]
push eax
call fcn.10027b30
mov ecx, dword [ebp - 0x114]
push eax
push edi
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push ecx
call fcn.10022ce0
add esp, 0x14
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10035d36
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 0x10c]
mov eax, esi
call fcn.10002780
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10035d36
mov esp, ebp
pop ebp
ret
Function at 0x10002e10
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push 4
mov edi, eax
mov esi, dword [edi]
lea eax, [ebp - 4]
push eax
push 1
push 6
push ecx
mov dword [ebp - 4], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x10002e59
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push edi
mov edi, eax
call fcn.10027b30
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.10022c60
add esp, 0x10
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push str.TCP_NODELAY_set_n
push esi
call fcn.10022c60
add esp, 8
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x10002e70
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x10057338]
mov dword [ebp - 8], 0x4020
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 4
test eax, eax
jne 0x10002eb7
call fcn.10027c70
test eax, eax
je 0x10002eab
mov dword [0x10057338], 2
mov esp, ebp
pop ebp
ret
mov dword [0x10057338], 1
jmp 0x10002ebc
cmp eax, 2
je 0x10002ef8
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 4]
push ecx
push 0x1001
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x10002ee1
mov edx, dword [ebp - 4]
cmp edx, dword [ebp - 8]
jg 0x10002ef8
push 4
lea eax, [ebp - 8]
push eax
push 0x1001
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
mov esp, ebp
pop ebp
ret
Function at 0x10003410
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [eax + 0x1d8], 0
je 0x10003423
xor eax, eax
mov esp, ebp
pop ebp
ret
mov eax, dword [eax + 0x190]
cmp eax, 0xffffffff
je 0x1000341d
push 2
push 1
lea ecx, [ebp - 1]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_recv]
neg eax
sbb eax, eax
neg eax
mov esp, ebp
pop ebp
ret

Function at 0x10004db0
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0x10]
push ebx
xor ebx, ebx
lea ecx, [ebp - 0x10]
push ecx
mov ecx, dword [ebp + 8]
mov dword [eax], ebx
mov eax, dword [ebp + 0xc]
push edx
push eax
push ecx
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov dword [ebp - 8], eax
cmp eax, ebx
jne 0x10004f40
push edi
mov edi, dword [ebp - 0x10]
cmp edi, ebx
je 0x10004f22
push esi
nop
cmp dword [edi + 4], 2
jne 0x10004eaa
cmp dword [edi + 0x18], ebx
je 0x10004eaa
mov eax, dword [edi + 0x10]
cmp eax, ebx
jbe 0x10004eaa
cmp eax, 0x10
jb 0x10004eaa
push 0x20
call dword [0x100560e8]
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x10004eb7
mov edx, dword [edi]
mov dword [esi], edx
mov eax, dword [edi + 4]
mov dword [esi + 4], eax
mov ecx, dword [edi + 8]
mov dword [esi + 8], ecx
mov edx, dword [edi + 0xc]
push 0x10
mov dword [esi + 0xc], edx
mov dword [esi + 0x10], 0x10
mov dword [esi + 0x18], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x1c], ebx
call dword [0x100560e8]
add esp, 4
mov dword [esi + 0x18], eax
cmp eax, ebx
je 0x10004ec0
mov ecx, dword [edi + 0x18]
mov edx, dword [ecx]
mov dword [eax], edx
mov edx, dword [ecx + 4]
mov dword [eax + 4], edx
mov edx, dword [ecx + 8]
mov dword [eax + 8], edx
mov ecx, dword [ecx + 0xc]
mov dword [eax + 0xc], ecx
mov eax, dword [edi + 0x14]
cmp eax, ebx
je 0x10004e95
push eax
call dword [0x100560f4]
add esp, 4
mov dword [esi + 0x14], eax
cmp eax, ebx
je 0x10004ed3
cmp dword [ebp - 4], ebx
jne 0x10004e9d
mov dword [ebp - 4], esi
mov eax, dword [ebp - 0xc]
cmp eax, ebx
je 0x10004ea7
mov dword [eax + 0x1c], esi
mov dword [ebp - 0xc], esi
mov edi, dword [edi + 0x1c]
cmp edi, ebx
jne 0x10004df0
jmp 0x10004eee
mov dword [ebp - 8], 8
jmp 0x10004eee
push esi
mov dword [ebp - 8], 8
call dword [0x100560ec]
add esp, 4
jmp 0x10004eee
mov edx, dword [esi + 0x18]
push edx
mov dword [ebp - 8], 8
call dword [0x100560ec]
push esi
call dword [0x100560ec]
add esp, 8
mov eax, dword [ebp - 0x10]
pop esi
cmp eax, ebx
je 0x10004efd
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
cmp dword [ebp - 8], ebx
je 0x10004f1d
mov eax, dword [ebp - 4]
call fcn.10004d70
mov ecx, dword [ebp + 0x10]
mov eax, ebx
pop edi
mov dword [ebp - 4], ebx
mov dword [ecx], eax
mov eax, dword [ebp - 8]
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 4], ebx
jne 0x10004f34
push 0x2af9
mov dword [ebp - 8], 0x2af9
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
mov eax, dword [ebp - 8]
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10005d60
Capabilities:
Get hostname

Disassembly:
push 0x401
push esi
mov byte [esi], 0
call dword [sym.imp.WS2_32.dll_gethostname]
mov byte [esi + 0x400], 0
test eax, eax
jne 0x10005d8e
push 0x2e
push esi
call fcn.10036d80
add esp, 8
test eax, eax
je 0x10005d8c
mov byte [eax], 0
xor eax, eax
ret

Function at 0x10005e40
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using des via winapi
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x100554b0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0xf0000000
push 1
push 0
push 0
lea eax, [ebp - 0x1c]
mov esi, 8
push eax
mov dword [ebp - 0x20], esi
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x10005ecb
xor eax, eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 0x10], esi
lea esi, [ebp - 0xc]
mov eax, ebx
mov word [ebp - 0x18], 0x208
mov dword [ebp - 0x14], 0x6601
call fcn.10005db0
mov eax, esi
call fcn.10005130
mov eax, dword [ebp - 0x1c]
lea ecx, [ebp - 0x24]
push ecx
push 0
push 0
push 0x14
lea edx, [ebp - 0x18]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
jne 0x10005edc
mov ecx, dword [ebp - 0x1c]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10035d36
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x20]
push ecx
mov dword [edi], edx
mov eax, dword [eax + 4]
lea edx, [ebp - 0x20]
push edx
push edi
push 0
push 0
mov dword [edi + 4], eax
mov eax, dword [ebp - 0x24]
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov edx, dword [ebp - 0x1c]
push 0
push edx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 1
pop esi
call fcn.10035d36
mov esp, ebp
pop ebp
ret
Function at 0x10006070
Capabilities:
Hash data using md4
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov edi, eax
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10006080
sub eax, edx
mov esi, eax
lea eax, [esi + esi]
push eax
mov dword [ebp - 0xc], eax
call dword [0x100560e8]
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x100060ab
pop edi
pop esi
lea eax, [ebx + 0x1b]
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, ebx
call fcn.10006010
push 0xf0000000
push 1
push 0
push 0
lea eax, [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x1000612a
mov edx, dword [ebp - 8]
lea ecx, [ebp - 4]
push ecx
push 0
push 0
push 0x8002
push edx
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x1000611e
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 4]
push 0
push eax
push ebx
push ecx
mov dword [ebp - 0x10], 0x10
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
push 0
lea edx, [ebp - 0x10]
push edx
push eax
push 2
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, dword [ebp - 8]
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov ecx, dword [ebp + 8]
xor eax, eax
mov dword [ecx + 0x10], eax
push ebx
mov byte [ecx + 0x14], al
call dword [0x100560ec]
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10006de0
Capabilities:
Create thread

Disassembly:
push 0
push 0
push eax
push 0x10001110
push 0
push 0
call fcn.1003781c
add esp, 0x18
test eax, eax
je 0x10006dff
cmp eax, 0xffffffff
jne 0x10006e01
xor eax, eax
ret

Function at 0x10007490
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x198
mov eax, dword [0x100554b0]
xor eax, esp
mov dword [esp + 0x194], eax
lea eax, [esp]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x100074e5
mov eax, dword [esp]
cmp al, 2
jne 0x100074df
shr eax, 8
cmp al, 2
jne 0x100074df
xor eax, eax
mov ecx, dword [esp + 0x194]
xor ecx, esp
call fcn.10035d36
mov esp, ebp
pop ebp
ret
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [esp + 0x194]
xor ecx, esp
mov eax, 2
call fcn.10035d36
mov esp, ebp
pop ebp
ret