joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401c35
Capabilities:
Check for peb beingdebugged flag
Create process on windows
Create thread
Delete file
Enumerate files on windows
Execute anti-debugging instructions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x154
mov eax, dword [0x401120]
xor eax, dword [ebp + 4]
mov dword [ebp - 0xc], eax
rdtsc
xor ecx, ecx
add ecx, eax
rdtsc
sub eax, ecx
cmp eax, 0xfff
jb 0x401c6f
push 0
push 0
push 0
push 0x1234567
push 0
push 0
push eax
call sym.imp.KERNEL32.dll_CreateRemoteThread
cmp dword [ebp + 0x14], 5
jne 0x401c77
jmp 0x401c99
call fcn.00401ab5
push 5
push 0
push 0
push 0x4028c0
push 0x4011b8
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
jmp 0x401d6b
lea eax, [ebp - 0x150]
push eax
push 0x4011b0
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 8], eax
lea eax, [ebp - 0x150]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x401cfb
and byte [ebp - 0x151], 0
movzx eax, byte [ebp - 0x151]
test eax, eax
jne 0x401cf9
lea eax, [ebp - 0x124]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
setne al
mov byte [ebp - 0x151], al
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x401cc9
jmp 0x401cae
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
push fcn.00401ab5
call fcn.00401817
pop ecx
push eax
mov eax, dword fs:[0x18]
mov dword [ebp - 4], eax
pop eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
movzx eax, byte [eax + 2]
test eax, eax
je 0x401d2c
xor eax, eax
mov eax, dword [eax]
push 0x401707
call fcn.004017a1
pop ecx
push dword [ebp + 8]
call fcn.00401876
pop ecx
rdtsc
xor ecx, ecx
add ecx, eax
rdtsc
sub eax, ecx
cmp eax, 0xfff
jb 0x401d66
push 0
push 0
push 0
push 0x1234567
push 0
push 0
push eax
call sym.imp.KERNEL32.dll_CreateRemoteThread
call fcn.004019c7
xor eax, eax
mov ecx, dword [ebp - 0xc]
xor ecx, dword [ebp + 4]
call fcn.00401f1a
leave
ret 0x10

Function at 0x401da4
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov esi, eax
mov al, byte [esi]
cmp al, 0x22
jne 0x401dcd
cmp al, 0x22
je 0x401dc5
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x401db9
cmp byte [esi], 0x22
jne 0x401dd7
inc esi
jmp 0x401dd7
cmp al, 0x20
jle 0x401dd7
inc esi
cmp byte [esi], 0x20
jg 0x401dd1
mov al, byte [esi]
test al, al
je 0x401de1
cmp al, 0x20
jle 0x401dca
and dword [ebp - 0x18], 0
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.00401e4f
push 0x4010dc
push 0x4010d0
call fcn.00401e35
test byte [ebp - 0x18], 1
pop ecx
pop ecx
je 0x401e11
movzx eax, word [ebp - 0x14]
jmp 0x401e14
push 0xa
pop eax
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov esi, eax
call fcn.00401e67
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x402258
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
inc esi
cmp dword [0x402a28], esi
push edi
jne 0x402278
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp dword [ebp + 0xc], 0
mov al, byte [ebp + 0x10]
mov dword [0x402a24], esi
mov byte [0x402a20], al
jne 0x4022de
mov ecx, dword [0x402a44]
test ecx, ecx
je 0x4022bf
mov eax, dword [0x402a40]
sub eax, 4
cmp eax, ecx
jmp 0x4022b8
mov eax, dword [eax]
test eax, eax
je 0x4022aa
call eax
mov eax, dword [0x402a40]
sub eax, 4
cmp eax, dword [0x402a44]
mov dword [0x402a40], eax
jae 0x4022a2
mov eax, 0x4010ec
mov esi, 0x4010f0
cmp eax, esi
mov edi, eax
jae 0x4022de
mov eax, dword [edi]
test eax, eax
je 0x4022d7
call eax
add edi, 4
cmp edi, esi
jb 0x4022cf
mov eax, 0x4010f4
mov esi, 0x4010f8
cmp eax, esi
mov edi, eax
jae 0x4022fd
mov eax, dword [edi]
test eax, eax
je 0x4022f6
call eax
add edi, 4
cmp edi, esi
jb 0x4022ee
cmp dword [ebp + 0x10], 0
pop edi
pop esi
jne 0x402318
push dword [ebp + 8]
mov dword [0x402a28], 1
call fcn.00402228
pop ecx
pop ebp
ret

Function at 0x40232b
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x402a2c], ebx
push esi
push edi
jne 0x4023ab
push 0x401444
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x4023e6
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x401438
push edi
call esi
test eax, eax
mov dword [0x402a2c], eax
je 0x4023e6
push 0x401428
push edi
call esi
push 0x401414
push edi
mov dword [0x402a30], eax
call esi
cmp dword [0x4029e8], 2
mov dword [0x402a34], eax
jne 0x4023ab
push 0x4013f8
push edi
call esi
test eax, eax
mov dword [0x402a3c], eax
je 0x4023ab
push 0x4013e0
push edi
call esi
mov dword [0x402a38], eax
mov eax, dword [0x402a38]
test eax, eax
je 0x4023f0
call eax
test eax, eax
je 0x4023d7
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x402a3c]
test eax, eax
je 0x4023d7
test byte [ebp - 8], 1
jne 0x4023f0
cmp dword [0x4029f4], 4
jb 0x4023ea
or byte [ebp + 0x12], 0x20
jmp 0x40240f
xor eax, eax
jmp 0x40241f
or byte [ebp + 0x12], 4
jmp 0x40240f
mov eax, dword [0x402a30]
test eax, eax
je 0x40240f
call eax
mov ebx, eax
test ebx, ebx
je 0x40240f
mov eax, dword [0x402a34]
test eax, eax
je 0x40240f
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x402a2c]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10001a80
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, 0xc
push edi
push 0xf0000000
xor edi, edi
push 0x18
push edi
push edi
lea eax, [ebp - 8]
push eax
mov dword [ebp - 8], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 4], edi
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x10001b5c
mov edx, dword [ebp - 8]
lea ecx, [ebp - 4]
push ecx
push edi
push edi
push 0x800c
push edx
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x10001b50
mov edx, dword [ebp + 8]
mov eax, edx
push esi
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10001ad3
push 0
sub eax, esi
push eax
mov eax, dword [ebp - 4]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
pop esi
test eax, eax
je 0x10001b46
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
lea ecx, [ebp - 0xc]
push ecx
push 1
push edx
push 0x6610
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDeriveKey]
test eax, eax
je 0x10001b46
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0xc]
lea ecx, [ebp + 0x10]
push ecx
push edx
push 0
push 1
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
je 0x10001b37
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
mov dword [ecx], edx
mov edi, 1
jmp 0x10001b3c
mov eax, dword [ebp + 0x14]
mov dword [eax], edi
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]
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x10001b70
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x10055130]
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.10036b40
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 0x10001bb2
push esi
push edi
lea edi, [ebp - 0x108]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x10001bc4
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 closesocket
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 [0x100564e0], eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 4
push 0x3000
push eax
push 0
mov dword [0x100564e8], eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ecx, dword [0x100564e8]
mov edx, dword [0x100564e0]
push 0
push 0x100564ec
push ecx
push eax
push edx
mov dword [0x100564f0], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [0x100564e0]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [0x100564e8]
mov eax, dword [0x100564f0]
lea ecx, [ebp - 0x10c]
push ecx
push edx
push eax
push str.VP6xD1l641p5CrMKbgvnQoD20qUxdortl591yX0dNNGQeTiWITjLGfOgtBE1yS14WodB90cSQObezPtfScLWAIjNbqj31IFVZMdwWY12DfrWFyuZnqBPWXOc8gTndiPN
call fcn.10001a80
mov ecx, dword [ebp - 4]
add esp, 0x10
pop edi
xor ecx, ebp
pop esi
call fcn.10036a9a
mov esp, ebp
pop ebp
ret

Function at 0x100021c0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x10055130]
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 0x10002213
push edi
push str.Failed_to_set_SO_KEEPALIVE_on_fd__d_n
push esi
call fcn.10023310
add esp, 0xc
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10036a9a
mov esp, ebp
pop ebp
ret
mov edx, dword [esi + 0x534]
push edx
mov dword [ebp - 0x10], 1
call fcn.100348a0
imul eax, eax, 0x3e8
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], eax
mov eax, dword [esi + 0x538]
push eax
call fcn.100348a0
imul eax, eax, 0x3e8
add esp, 8
push 0
push 0
lea ecx, [ebp - 0x18]
push ecx
push 0
push 0
push 0xc
lea edx, [ebp - 0x10]
push edx
push 0x98000004
push edi
mov dword [ebp - 0x14], eax
mov dword [ebp - 8], eax
call dword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x10002285
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.10023310
add esp, 0x10
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10036a9a
mov esp, ebp
pop ebp
ret
Function at 0x10002920
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x10055130]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 0x8c], 2
mov ebx, dword [esi]
mov dword [ebp - 0x108], esi
mov dword [ebp - 0x110], ebx
je 0x10002b09
cmp dword [esi + 0x270], 0
push edi
jne 0x10002aff
cmp dword [esi + 0x2e0], 0
jne 0x10002aff
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 0x10c]
push eax
lea ecx, [ebp - 0x104]
push ecx
push edi
mov dword [ebp - 0x10c], 0x80
call dword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x100029c4
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
push edi
push esi
call fcn.10028200
push eax
push edi
push str.getpeername___failed_with_errno__d:__s
push ebx
call fcn.10023390
add esp, 0x18
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10036a9a
mov esp, ebp
pop ebp
ret
push 0x80
lea edx, [ebp - 0x84]
push 0
push edx
mov dword [ebp - 0x10c], 0x80
call fcn.10036a20
add esp, 0xc
lea eax, [ebp - 0x10c]
push eax
lea ecx, [ebp - 0x84]
push ecx
push edi
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x10002a2d
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
push edi
push esi
call fcn.10028200
push eax
push edi
push str.getsockname___failed_with_errno__d:__s
push ebx
call fcn.10023390
add esp, 0x18
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10036a9a
mov esp, ebp
pop ebp
ret
lea edi, [esi + 0x102]
lea ebx, [esi + 0x130]
lea esi, [ebp - 0x104]
mov dword [ebp - 0x114], edi
call fcn.100028e0
test eax, eax
jne 0x10002a8a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebp - 0x108]
mov esi, eax
push esi
push edx
call fcn.10028200
push eax
mov eax, dword [ebp - 0x110]
push esi
push str.ssrem_inet_ntop___failed_with_errno__d:__s
push eax
call fcn.10023390
add esp, 0x18
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10036a9a
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x108]
mov esi, dword [ebp - 0x114]
lea edi, [eax + 0x58]
mov ecx, 0xb
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
lea ebx, [eax + 0x164]
lea edi, [eax + 0x134]
lea esi, [ebp - 0x84]
call fcn.100028e0
test eax, eax
jne 0x10002af9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x108]
mov esi, eax
push esi
push ecx
call fcn.10028200
mov edx, dword [ebp - 0x110]
push eax
push esi
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push edx
call fcn.10023390
add esp, 0x18
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10036a9a
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 0x108]
push esi
call fcn.10002860
add esp, 4
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.10036a9a
mov esp, ebp
pop ebp
ret
Function at 0x10002b20
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, dword [edi]
push 4
lea eax, [ebp + 8]
push eax
push 1
push 6
push ecx
mov dword [ebp + 8], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x10002b69
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
call fcn.10028200
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.10023310
add esp, 0x14
pop edi
pop esi
pop ebp
ret
push str.TCP_NODELAY_set_n
push esi
call fcn.10023310
add esp, 8
pop edi
pop esi
pop ebp
ret

Function at 0x10002b80
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x10056508]
mov dword [ebp - 8], 0x4020
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 4
test eax, eax
jne 0x10002bd1
push 3
push 2
push eax
push 6
call fcn.10028360
add esp, 0x10
test eax, eax
je 0x10002bc5
mov dword [0x10056508], 2
mov esp, ebp
pop ebp
ret
mov dword [0x10056508], 1
jmp 0x10002bd6
cmp eax, 2
je 0x10002c17
push esi
mov esi, dword [ebp + 8]
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 0x10002bff
mov edx, dword [ebp - 4]
cmp edx, dword [ebp - 8]
jg 0x10002c16
push 4
lea eax, [ebp - 8]
push eax
push 0x1001
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x10002cc0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp dword [eax + 0x1d8], 0
je 0x10002cd3
xor eax, eax
pop ebp
ret
mov eax, dword [eax + 0x190]
cmp eax, 0xffffffff
je 0x10002ccf
push 2
push 1
lea ecx, [ebp + 0xb]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_recv]
neg eax
sbb eax, eax
neg eax
pop ebp
ret
Function at 0x10005000
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0x14]
mov edx, 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 0x10005196
push edi
mov edi, dword [ebp - 0x10]
cmp edi, ebx
je 0x10005178
push esi
cmp dword [edi + 4], 2
jne 0x100050fc
cmp dword [edi + 0x18], ebx
je 0x100050fc
mov eax, dword [edi + 0x10]
cmp eax, ebx
jbe 0x100050fc
cmp eax, 0x10
jb 0x100050fc
push 0x20
call dword [0x100550d8]
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x10005109
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 [0x100550d8]
add esp, 4
mov dword [esi + 0x18], eax
cmp eax, ebx
je 0x10005112
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 0x100050e7
push eax
call dword [0x100550e4]
add esp, 4
mov dword [esi + 0x14], eax
cmp eax, ebx
je 0x10005125
cmp dword [ebp - 4], ebx
jne 0x100050ef
mov dword [ebp - 4], esi
mov eax, dword [ebp - 0xc]
cmp eax, ebx
je 0x100050f9
mov dword [eax + 0x1c], esi
mov dword [ebp - 0xc], esi
mov edi, dword [edi + 0x1c]
cmp edi, ebx
jne 0x10005042
jmp 0x10005140
mov dword [ebp - 8], 8
jmp 0x10005140
push esi
mov dword [ebp - 8], 8
call dword [0x100550dc]
add esp, 4
jmp 0x10005140
mov edx, dword [esi + 0x18]
push edx
mov dword [ebp - 8], 8
call dword [0x100550dc]
push esi
call dword [0x100550dc]
add esp, 8
mov eax, dword [ebp - 0x10]
pop esi
cmp eax, ebx
je 0x1000514f
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
cmp dword [ebp - 8], ebx
je 0x10005173
mov eax, dword [ebp - 4]
push eax
call fcn.10004fc0
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp - 8]
add esp, 4
mov ecx, ebx
pop edi
mov dword [ebp - 4], ebx
mov dword [edx], ecx
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 4], ebx
jne 0x1000518a
push 0x2af9
mov dword [ebp - 8], 0x2af9
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp - 8]
mov dword [edx], ecx
pop edi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10005f00
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push edi
push esi
mov byte [esi], 0
call dword [sym.imp.WS2_32.dll_gethostname]
mov byte [esi + edi - 1], 0
test eax, eax
jne 0x10005f33
push 0x2e
push esi
call fcn.10037200
add esp, 8
test eax, eax
je 0x10005f31
mov byte [eax], 0
xor eax, eax
pop edi
pop esi
pop ebp
ret
Function at 0x10006000
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 [0x10055130]
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 0x10006091
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.10005f70
mov ecx, esi
push 8
push ecx
call fcn.100053c0
mov ecx, dword [ebp - 0x1c]
add esp, 8
lea edx, [ebp - 0x24]
push edx
push 0
push 0
push 0x14
lea eax, [ebp - 0x18]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
jne 0x100060a2
mov edx, dword [ebp - 0x1c]
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10036a9a
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov dword [edi], ecx
mov edx, dword [eax + 4]
mov eax, dword [ebp - 0x20]
push eax
lea ecx, [ebp - 0x20]
push ecx
push edi
push 0
push 0
mov dword [edi + 4], edx
mov edx, dword [ebp - 0x24]
push 0
push edx
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov ecx, dword [ebp - 0x1c]
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 1
pop esi
call fcn.10036a9a
mov esp, ebp
pop ebp
ret
Function at 0x10006210
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, dword [ebp + 0xc]
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10006221
sub eax, edx
mov esi, eax
lea eax, [esi + esi]
push eax
mov dword [ebp - 0xc], eax
call dword [0x100550d8]
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x1000624c
pop edi
pop esi
lea eax, [ebx + 0x1b]
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, ebx
call fcn.10036000
push 0xf0000000
push 1
push 0
push 0
lea eax, [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
mov esi, dword [ebp + 0x10]
test eax, eax
je 0x100062cb
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 0x100062bf
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 - 4]
push 0
lea edx, [ebp - 0x10]
push edx
push esi
push 2
push eax
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov edx, dword [ebp - 8]
push 0
push edx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor eax, eax
mov dword [esi + 0x10], eax
push ebx
mov byte [esi + 0x14], al
call dword [0x100550dc]
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10007020
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push 0
push 0
push eax
push ecx
push 0
push 0
call fcn.100389a9
add esp, 0x18
test eax, eax
je 0x10007044
cmp eax, 0xffffffff
jne 0x10007046
xor eax, eax
pop ebp
ret

Function at 0x100076d0
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x10055130]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x194]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x10007720
mov eax, dword [ebp - 0x194]
cmp al, 2
jne 0x1000771a
shr eax, 8
cmp al, 2
jne 0x1000771a
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10036a9a
mov esp, ebp
pop ebp
ret
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 2
call fcn.10036a9a
mov esp, ebp
pop ebp
ret
Function at 0x10009a90
Capabilities:
Read file on windows

Disassembly:
push edi
mov edi, eax
mov eax, dword [esi]
cmp dword [eax + 4], 3
jne 0x10009ab2
mov ecx, dword [esi + 0xc]
test ecx, ecx
jne 0x10009aa6
xor eax, eax
pop edi
ret
mov eax, dword [eax + 8]
push eax
push edi
push 1
push ebx
call ecx
jmp 0x10009ae2
cmp dword [esi + 8], 0
jne 0x10009ad5
mov ecx, dword [eax + 8]
push 0x10049f34
push ecx
call fcn.10037ddb
add esp, 8
mov dword [esi + 8], eax
test eax, eax
jne 0x10009ad5
or eax, 0xffffffff
pop edi
ret
mov edx, dword [esi + 8]
push edx
push edi
push 1
push ebx
call fcn.10039ac8
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x10009b04
mov eax, dword [esi + 8]
test eax, eax
je 0x10009afe
push eax
call fcn.10037ba5
add esp, 4
mov dword [esi + 8], edi
mov eax, dword [esi]
mov ecx, dword [eax]
mov dword [esi], ecx
mov eax, edi
pop edi
ret