joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100065d0
Capabilities:
Resolve dns

Disassembly:
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
push esi
mov esi, dword [esp + 0x1c]
mov dword [esi], 0
push ecx
mov byte [eax], 0
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov ecx, eax
test ecx, ecx
mov dword [esp + 0x1c], ecx
je 0x10006674
cmp word [ecx + 8], 2
push ebx
push ebp
push edi
jne 0x10006645
cmp word [ecx + 0xa], 4
jne 0x10006645
mov edi, dword [ecx + 0xc]
mov eax, dword [edi]
test eax, eax
je 0x10006645
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x18]
lea esp, [esp]
mov edx, dword [eax]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebx
push ebp
call fcn.10006560
test eax, eax
mov dword [esi], eax
je 0x10006668
add edi, 4
lea esi, [eax + 0x1c]
mov eax, dword [edi]
test eax, eax
jne 0x10006620
mov ecx, dword [esp + 0x28]
mov ecx, dword [ecx]
mov edx, dword [esp + 0x24]
push 0x400
push ecx
push 0x401
push edx
call fcn.10158663
add esp, 0x10
pop edi
pop ebp
pop ebx
xor eax, eax
pop esi
ret 0x18
pop edi
pop ebp
pop ebx
mov eax, 8
pop esi
ret 0x18
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
add eax, 0xffffd507
cmp eax, 3
ja case.0x10006684.11001
jmp dword [eax*4 + 0x100066a8]
mov eax, 0x2af9
pop esi
ret 0x18
mov eax, 0x2afa
pop esi
ret 0x18
mov eax, 0x2afb
pop esi
ret 0x18
Function at 0x10006ee0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x230
mov eax, dword [0x101c6080]
xor eax, esp
mov dword [esp + 0x22c], eax
cmp dword [0x101d3c24], 0
mov dword [esp], str.getaddrinfo
mov dword [esp + 4], 0x10006930
mov dword [esp + 8], str.getnameinfo
mov dword [esp + 0xc], 0x10006c20
mov dword [esp + 0x10], str.freeaddrinfo
mov dword [esp + 0x14], fcn.100068e0
je 0x10006f52
movzx eax, word [esp + 0x234]
mov eax, dword [eax*8 + 0x101c7720]
mov ecx, dword [esp + 0x22c]
xor ecx, esp
call fcn.1013ef23
add esp, 0x230
ret 4
push 0x104
lea ecx, [esp + 0x128]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x1000704f
push ebx
push ebp
push esi
push edi
lea edx, [esp + 0x134]
push edx
lea eax, [esp + 0x2c]
push 0x10c
push eax
call fcn.10153911
push str.ws2_32
lea ecx, [esp + 0x38]
push 0x10c
push ecx
call fcn.1015edc1
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
add esp, 0x18
lea edx, [esp + 0x28]
push edx
call edi
mov ebp, dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x10006fcd
push str.getaddrinfo
push esi
call ebx
test eax, eax
jne 0x10007014
push esi
call ebp
lea eax, [esp + 0x134]
push eax
lea ecx, [esp + 0x2c]
push 0x10c
push ecx
call fcn.10153911
push str.wship6
lea edx, [esp + 0x38]
push 0x10c
push edx
call fcn.1015edc1
add esp, 0x18
lea eax, [esp + 0x28]
push eax
call edi
mov esi, eax
test esi, esi
je 0x1000704b
push str.getaddrinfo
push esi
call ebx
test eax, eax
je 0x1000707f
xor edi, edi
mov ecx, dword [esp + edi*8 + 0x10]
push ecx
push esi
call ebx
test eax, eax
mov dword [esp + edi*8 + 0x14], eax
je 0x1000707f
add edi, 1
cmp edi, 3
jl 0x10007016
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x24]
mov dword [0x101c7720], edx
mov dword [0x101c7728], eax
mov dword [fcn.100068e0], ecx
pop edi
pop esi
pop ebp
pop ebx
movzx edx, word [esp + 0x234]
mov ecx, dword [esp + 0x22c]
mov eax, dword [edx*8 + 0x101c7720]
xor ecx, esp
mov dword [0x101d3c24], 1
call fcn.1013ef23
add esp, 0x230
ret 4
push esi
call ebp
jmp 0x1000704b

Function at 0x10007550
Capabilities:
Create thread

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
push 0
push 0
push eax
push ecx
push 0
push 0
call fcn.101459d4
add esp, 0x18
test eax, eax
je 0x10007573
cmp eax, 0xffffffff
jne 0x10007575
xor eax, eax
ret
Function at 0x1000c400
Capabilities:
Send data
Send data on socket

Disassembly:
mov eax, dword [esi + 0x10]
mov ecx, dword [eax]
push str.Connected_for_receive
push 0x101a2ac8
push ecx
call fcn.10003160
add esp, 0xc
mov eax, esi
mov dword [esi], 1
call fcn.1000b5a0
test eax, eax
jne 0x1000c430
mov eax, esi
jmp fcn.1000ba30
ret
Function at 0x1000c840
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 0x88
mov eax, dword [0x101c6080]
xor eax, esp
mov dword [esp + 0x84], eax
push ebx
push ebp
mov ebp, dword [esp + 0x94]
mov ebx, dword [ebp]
push esi
mov esi, dword [ebp + 0x3d0]
push edi
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x14], 0x80
mov edx, dword [esi + 0x154]
mov eax, dword [esi + 0x15c]
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [esi + 0x14]
push 0
add edx, 4
lea edi, [esi + 0x15c]
push edx
push eax
push ecx
call dword [sym.imp.WS2_32.dll_recvfrom]
cmp dword [esi + 0x148], 0
mov dword [esi + 0x14c], eax
jne 0x1000c8cf
mov edx, dword [esp + 0x10]
push edx
lea eax, [esp + 0x18]
push eax
lea ecx, [esi + 0xc8]
push ecx
call fcn.10140250
mov edx, dword [esp + 0x1c]
add esp, 0xc
mov dword [esi + 0x148], edx
mov edx, dword [esi + 0x14c]
cmp edx, 4
jge 0x1000c90a
push str.Received_too_short_packet
push ebx
call fcn.100031f0
add esp, 8
mov dword [esi + 0xc], 7
xor eax, eax
mov ecx, dword [esp + 0x94]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1013ef23
add esp, 0x88
ret
mov eax, edi
call fcn.1000b720
movzx eax, ax
mov dword [esi + 0xc], eax
add eax, 0xfffffffd
cmp eax, 3
ja case.default.0x1000c923
jmp dword [eax*4 + 0x1000ca10]
cmp edx, 4
jle case.0x1000c923.4
mov eax, edi
call fcn.1000b730
movzx ecx, word [esi + 0x40]
add ecx, 1
cmp cx, ax
jne case.0x1000c923.4
add edx, 0xfffffffc
push edx
mov edx, dword [edi]
add edx, 4
push edx
push 1
push ebp
call fcn.10003440
mov edi, eax
add esp, 0x10
test edi, edi
je 0x1000c978
mov ecx, 5
mov eax, esi
call fcn.1000c7c0
mov eax, edi
jmp 0x1000c8f1
mov eax, dword [esi + 0x14c]
sub eax, 4
cdq
add dword [ebx + 0x38], eax
mov ecx, dword [ebx + 0x38]
adc dword [ebx + 0x3c], edx
mov eax, dword [ebx + 0x3c]
push eax
push ecx
push ebx
call fcn.10018280
jmp 0x1000c9e4
mov eax, edi
call fcn.1000b730
movzx edx, ax
mov eax, dword [edi]
add eax, 4
push eax
push 0x101a2ac8
push ebx
mov dword [esi + 8], edx
call fcn.10003160
jmp 0x1000c9e4
mov ecx, dword [edi]
add edx, 0xfffffffe
push edx
add ecx, 2
push ecx
push esi
call fcn.1000b7d0
add esp, 0xc
test eax, eax
je case.0x1000c923.4
jmp 0x1000c8f1
push str.Internal_error:_Unexpected_packet
push 0x101a1f90
push ebx
call fcn.100031f0
add esp, 0xc
push ebp
call fcn.10018340
add esp, 4
test eax, eax
je 0x1000c8ef
mov ecx, 5
mov eax, esi
call fcn.1000c7c0
mov eax, 0x2a
jmp 0x1000c8f1
Function at 0x1000e580
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x194
mov eax, dword [0x101c6080]
xor eax, esp
mov dword [esp + 0x190], eax
lea eax, [esp]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x1000e5b5
push eax
push str.WSAStartup_failed___d_
push esi
call fcn.100031f0
add esp, 0xc
jmp 0x1000e5ec
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ax, word [esp]
cmp al, 2
jne 0x1000e5de
test ah, ah
jne 0x1000e5de
xor eax, eax
mov ecx, dword [esp + 0x190]
xor ecx, esp
call fcn.1013ef23
add esp, 0x194
ret
push str.insufficient_winsock_version_to_support_telnet
push esi
call fcn.100031f0
add esp, 8
mov ecx, dword [esp + 0x190]
xor ecx, esp
mov eax, 2
call fcn.1013ef23
add esp, 0x194
ret

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

Disassembly:
push ecx
mov edx, dword [edi + 0x130]
mov al, byte [esp + 8]
push esi
mov esi, dword [edi]
push 0
push 3
lea ecx, [esp + 0xc]
push ecx
push edx
mov byte [esp + 0x14], 0xff
mov byte [esp + 0x15], al
mov byte [esp + 0x16], bl
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jge 0x1000e7c4
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push esi
call fcn.100031f0
add esp, 0xc
mov esi, dword [esp + 0xc]
mov ecx, dword [edi]
push str.SENT
mov eax, ebx
call fcn.1000e670
add esp, 4
pop esi
pop ecx
ret
Function at 0x1000fe10
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x18
mov eax, dword [0x101c6080]
xor eax, esp
mov dword [esp + 0x14], eax
push ebx
mov ebx, dword [esi + 0x134]
push ebp
push edi
mov edi, dword [esi]
push 1
push 0
push edi
or ebp, 0xffffffff
mov dword [esp + 0x18], 0x10
call fcn.10004b50
add esp, 0xc
test eax, eax
jl 0x1000fe79
mov ecx, 0x3e8
cmp eax, ecx
jge 0x1000fe50
mov ecx, eax
push ecx
push 0xffffffffffffffff
push ebx
call fcn.10016d20
add esp, 0xc
cmp eax, 0xffffffff
je 0x1000ff14
test eax, eax
jne 0x1000fe9e
push 1
push eax
push edi
call fcn.10004b50
add esp, 0xc
test eax, eax
jge 0x1000fe45
push str.Timeout_while_waiting_for_server_connect
push edi
call fcn.100031f0
add esp, 8
pop edi
pop ebp
mov eax, 0x1c
pop ebx
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.1013ef23
add esp, 0x18
ret
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x14]
push ecx
push ebx
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x1000fece
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0x14]
push eax
push ebx
mov dword [esp + 0x18], 0x10
call dword [sym.imp.WS2_32.dll_accept]
mov ebp, eax
push ebx
push esi
call fcn.10005300
add esp, 8
cmp ebp, 0xffffffff
jne 0x1000fee4
push str.Error_accept__ing_server_connect
jmp 0x1000ff19
push str.Connection_accepted_from_server_n
push edi
call fcn.10003160
push 1
push ebp
mov dword [esi + 0x134], ebp
call fcn.1001a3e0
add esp, 0x10
pop edi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.1013ef23
add esp, 0x18
ret
push str.Error_while_waiting_for_server_connect
push edi
call fcn.100031f0
mov ecx, dword [esp + 0x28]
add esp, 8
pop edi
pop ebp
pop ebx
xor ecx, esp
mov eax, 0x1e
call fcn.1013ef23
add esp, 0x18
ret
Function at 0x10010ef0
Capabilities:
Check http status code

Disassembly:
mov eax, 0x51eb851f
imul ecx
sar edx, 5
push ebx
mov ebx, dword [edi]
mov eax, edx
push ebp
mov ebp, dword [esp + 0xc]
shr eax, 0x1f
push esi
add eax, edx
xor esi, esi
cmp eax, 2
je 0x10010f28
push str.Couldnt_set_desired_mode
push ebx
call fcn.100031f0
add esp, 8
pop esi
pop ebp
mov eax, 0x11
pop ebx
ret
cmp ecx, 0xc8
je 0x10010f3f
push ecx
push str.Got_a__03d_response_code_instead_of_the_assumed_200_n
push ebx
call fcn.10003160
add esp, 0xc
cmp ebp, 0x13
jne 0x10010f51
mov eax, edi
call fcn.10010ab0
mov esi, eax
pop esi
pop ebp
pop ebx
ret
cmp ebp, 0x14
jne 0x10010f65
push edi
call fcn.10010b00
add esp, 4
mov esi, eax
pop esi
pop ebp
pop ebx
ret
cmp ebp, 0x15
jne 0x10010f77
mov eax, edi
call fcn.10010c20
mov esi, eax
pop esi
pop ebp
pop ebx
ret
cmp ebp, 0x16
jne 0x10010f85
mov eax, edi
call fcn.10010c30
mov esi, eax
mov eax, esi
pop esi
pop ebp
pop ebx
ret
Function at 0x10016d20
Capabilities:
Check for time delay via gettickcount
Get socket status

Disassembly:
sub esp, 0x31c
push ebx
mov ebx, dword [esp + 0x324]
push ebp
mov ebp, dword [esp + 0x32c]
push esi
xor esi, esi
cmp ebx, 0xffffffff
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], esi
jne 0x10016d64
cmp ebp, ebx
jne 0x10016d64
mov eax, dword [esp + 0x334]
push eax
call fcn.10016cf0
add esp, 4
pop esi
pop ebp
pop ebx
add esp, 0x31c
ret
push edi
mov edi, dword [esp + 0x338]
cmp edi, esi
jle 0x10016d7f
mov esi, edi
call fcn.100075c0
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edx
xor eax, eax
xor ecx, ecx
or edx, 0xffffffff
cmp ebx, 0xffffffff
mov dword [esp + 0x20], ecx
mov dword [esp + 0x124], eax
je 0x10016db3
mov ecx, 1
mov dword [esp + 0x128], ebx
mov dword [esp + 0x124], ecx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x20], ecx
mov edx, ebx
cmp ebp, 0xffffffff
mov dword [esp + 0x228], eax
je 0x10016dfa
test ecx, ecx
mov dword [esp + 0x22c], ebp
mov dword [esp + 0x228], 1
jbe 0x10016de2
cmp dword [esp + eax*4 + 0x24], ebp
je 0x10016de2
add eax, 1
cmp eax, ecx
jb 0x10016dd5
cmp eax, ecx
jne 0x10016df4
cmp ecx, 0x40
jae 0x10016df4
mov dword [esp + eax*4 + 0x24], ebp
add dword [esp + 0x20], 1
cmp ebp, edx
jbe 0x10016dfa
mov edx, ebp
xor ebx, ebx
test edi, edi
setl bl
lea ecx, [esp + 0x18]
lea ebp, [edx + 1]
sub ebx, 1
and ebx, ecx
lea ecx, [ecx]
xor eax, eax
cmp edi, eax
jle 0x10016e41
mov eax, 0x10624dd3
imul esi
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x18], eax
imul eax, eax, 0x3e8
mov edx, esi
sub edx, eax
imul edx, edx, 0x3e8
mov dword [esp + 0x1c], edx
jmp 0x10016e4b
jne 0x10016e4b
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
push ebx
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x230]
push ecx
lea edx, [esp + 0x130]
push edx
push ebp
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
jne 0x10016eb5
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
je 0x10016e7e
cmp eax, 0x2714
jne 0x10016eb9
test edi, edi
jle 0x10016e10
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
push eax
push ecx
call fcn.100075c0
push edx
push eax
call fcn.100075f0
mov esi, edi
sub esi, eax
add esp, 0x10
test esi, esi
jg 0x10016e10
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x31c
ret
test eax, eax
jge 0x10016ec7
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x31c
ret
jne 0x10016ed6
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x31c
ret
mov edi, dword [esp + 0x330]
xor esi, esi
cmp edi, 0xffffffff
je 0x10016f0d
lea edx, [esp + 0x124]
push edx
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x10016efb
mov esi, 1
lea eax, [esp + 0x20]
push eax
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x10016f0d
or esi, 4
mov edi, dword [esp + 0x334]
cmp edi, 0xffffffff
je 0x10016f40
lea ecx, [esp + 0x228]
push ecx
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x10016f2e
or esi, 2
lea edx, [esp + 0x20]
push edx
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x10016f40
or esi, 4
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x31c
ret
Function at 0x10018a70
Capabilities:
Parse pe header

Disassembly:
mov al, byte [esp + 4]
movsx ecx, al
add ecx, 0xffffff9f
cmp ecx, 0x19
ja case.default.0x10018a7f
jmp dword [ecx*4 + 0x10018ad4]
mov al, 0x41
ret
mov al, 0x42
ret
mov al, 0x43
ret
mov al, 0x44
ret
mov al, 0x45
ret
mov al, 0x46
ret
mov al, 0x47
ret
mov al, 0x48
ret
mov al, 0x49
ret
mov al, 0x4a
ret
mov al, 0x4b
ret
mov al, 0x4c
ret
mov al, 0x4d
ret
mov al, 0x4e
ret
mov al, 0x4f
ret
mov al, 0x50
ret
mov al, 0x51
ret
mov al, 0x52
ret
mov al, 0x53
ret
mov al, 0x54
ret
mov al, 0x55
ret
mov al, 0x56
ret
mov al, 0x57
ret
mov al, 0x58
ret
mov al, 0x59
ret
mov al, 0x5a
ret

Function at 0x1001a720
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov eax, dword [esp + 4]
push ebx
mov ebx, dword [eax + 0x2c]
push esi
push edi
mov edi, dword [ebx]
mov esi, dword [edi + 0x1a4]
test esi, esi
jne 0x1001a739
mov esi, dword [eax + 0x28]
mov ecx, dword [eax + 0x24]
mov edx, dword [eax + 0x20]
push ecx
push edx
call fcn.100075c0
push edx
push eax
call fcn.100075f0
add esp, 0x10
sub esi, eax
cmp dword [edi + 0x19c], 0
je 0x1001a786
mov eax, dword [ebx + 0x124]
mov ecx, dword [ebx + 0x120]
push eax
push ecx
call fcn.100075c0
push edx
push eax
call fcn.100075f0
mov ecx, dword [edi + 0x19c]
sub ecx, eax
add esp, 0x10
cmp esi, ecx
mov eax, ecx
jge 0x1001a788
mov eax, esi
pop edi
pop esi
pop ebx
ret
Function at 0x1001b0e0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x14]
lea eax, [ecx + eax*2 + 0xc]
push edi
push eax
call dword [0x101c7708]
mov edi, eax
add esp, 4
test edi, edi
jne 0x1001b105
pop edi
pop esi
pop ecx
ret
lea eax, [edi + 0xc]
mov dword [edi], esi
mov dword [edi + 4], eax
mov edx, dword [esi + 0xc]
push ebx
add edx, eax
push ebp
mov ebp, dword [esp + 0x20]
mov dword [edi + 8], edx
cmp ebp, dword [esi + 0x10]
jbe 0x1001b14c
push eax
mov eax, dword [esi]
call eax
mov ecx, dword [esp + 0x20]
mov edx, dword [edi + 4]
mov eax, dword [esi + 4]
push ebp
push ecx
push edx
call eax
mov ebx, dword [edi + 8]
mov ecx, dword [edi + 4]
add ebx, dword [esi + 0xc]
mov edx, dword [esi + 8]
push ecx
push ebx
call edx
mov ebp, dword [esi + 0x14]
add esp, 0x18
jmp 0x1001b150
mov ebx, dword [esp + 0x1c]
mov eax, dword [edi + 4]
mov ecx, dword [esi]
push eax
call ecx
mov edx, dword [edi + 8]
mov eax, dword [esi]
push edx
call eax
add esp, 8
test ebp, ebp
mov dword [esp + 0x10], 0
jbe 0x1001b1b0
mov dword [esp + 0x10], ebp
mov cl, byte [ebx]
xor cl, 0x36
mov byte [esp + 0x18], cl
mov eax, dword [edi + 4]
mov ecx, dword [esi + 4]
push 1
lea edx, [esp + 0x1c]
push edx
push eax
call ecx
mov dl, byte [ebx]
xor dl, 0x5c
mov byte [esp + 0x24], dl
mov ecx, dword [edi + 8]
mov edx, dword [esi + 4]
push 1
lea eax, [esp + 0x28]
push eax
push ecx
add ebx, 1
call edx
add esp, 0x18
sub ebp, 1
jne 0x1001b173
mov eax, dword [esp + 0x10]
cmp eax, dword [esi + 0x10]
pop ebp
pop ebx
jae 0x1001b1f3
jmp 0x1001b1c0
mov ecx, dword [edi + 4]
mov edx, dword [esi + 4]
push 1
push 0x101a7894
push ecx
call edx
mov eax, dword [edi + 8]
mov ecx, dword [esi + 4]
push 1
push 0x101a7895
push eax
call ecx
mov eax, dword [esp + 0x20]
add eax, 1
add esp, 0x18
cmp eax, dword [esi + 0x10]
mov dword [esp + 8], eax
jb 0x1001b1c0
mov eax, edi
pop edi
pop esi
pop ecx
ret

Function at 0x1001b270
Capabilities:
Hash data with md5

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

Function at 0x1001bb70
Capabilities:
Get hostname

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push esi
mov byte [esi], 0
call dword [sym.imp.WS2_32.dll_gethostname]
test eax, eax
mov byte [esi + edi - 1], 0
jne 0x1001bba2
push 0x2e
push esi
call fcn.10142f30
add esp, 8
test eax, eax
je 0x1001bba0
mov byte [eax], 0
xor eax, eax
pop edi
pop esi
ret
Function at 0x1001e820
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x101c6080]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 1
mov ebx, ecx
call fcn.10020b10
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.1013f3c0
lea ecx, [ebx + 0x94]
add esp, 0xc
cmp dword [ecx + 0x14], 8
jb 0x1001e86b
mov ecx, dword [ecx]
lea edx, [ebp - 0x20c]
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx], ax
lea edx, [edx + 2]
test ax, ax
jne 0x1001e871
lea edi, [ebp - 0x20c]
add edi, 0xfffffffe
jmp 0x1001e890
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x1001e890
lea eax, [ebp - 0x20c]
mov ecx, 7
push eax
push 0x104
lea eax, [ebx + 0x128]
mov esi, 0x1016ed70
push eax
push 0x1016ed8c
push str.Spreader
rep movsd dword es:[edi], dword [esi]
push str.AppInfo
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1013ef23
mov esp, ebp
pop ebp
ret

Function at 0x1001f1c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x1001f1d5
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x1001f214
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x1001f210
lea ebx, [ebx]
cmp esi, edx
jae 0x1001f214
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
dec ecx
jne 0x1001f200
cmp esi, edx
jb 0x1001f219
xor eax, eax
pop esi
pop ebp
ret
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop ebp
ret
Function at 0x10020460
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1015f09b
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x101c6080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edx, ecx
mov dword [ebp - 0x10], edx
xor ecx, ecx
mov dword [edx + 0x30], 7
mov dword [edx + 0x2c], 0
mov word [edx + 0x1c], cx
mov dword [ebp - 4], ecx
xor eax, eax
lea ecx, [edx + 0x34]
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
mov word [ecx], ax
xor esi, esi
mov dword [edx + 0x60], 7
mov dword [edx + 0x5c], eax
mov word [edx + 0x4c], si
mov dword [edx + 0x78], 7
mov dword [edx + 0x74], esi
mov word [edx + 0x64], si
mov dword [edx + 0x90], 7
mov dword [edx + 0x8c], esi
mov word [edx + 0x7c], ax
mov dword [edx + 0xa8], 7
mov dword [edx + 0xa4], esi
mov word [edx + 0x94], si
mov dword [edx + 0xc0], 7
mov dword [edx + 0xbc], esi
mov word [edx + 0xac], si
mov dword [edx + 0xd8], 7
mov dword [edx + 0xd4], esi
mov word [edx + 0xc4], si
lea ebx, [edx + 0xdc]
mov dword [ebx + 0x14], 7
mov dword [ebx + 0x10], esi
mov word [ebx], ax
lea edi, [edx + 0xf4]
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], esi
mov word [edi], ax
lea esi, [edx + 0x10c]
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], eax
mov word [esi], ax
push eax
push 0x1016edd8
mov byte [ebp - 4], 0xa
mov dword [edx], eax
mov dword [edx + 4], eax
mov dword [edx + 8], eax
mov dword [edx + 0xc], eax
mov dword [edx + 0x10], eax
mov dword [edx + 0x14], eax
mov word [edx + 0x18], ax
call fcn.10022a80
mov ecx, dword [ebp - 0x10]
push 0
push 0x1016edd8
lea ecx, [ecx + 0x1c]
call fcn.10022a80
mov ecx, dword [ebp - 0x10]
push 0
push 0x1016edd8
lea ecx, [ecx + 0x64]
call fcn.10022a80
mov ecx, dword [ebp - 0x10]
push 0
push 0x1016edd8
lea ecx, [ecx + 0x94]
call fcn.10022a80
mov ecx, dword [ebp - 0x10]
push 0
push 0x1016edd8
lea ecx, [ecx + 0x4c]
call fcn.10022a80
mov ecx, dword [ebp - 0x10]
push 0
push 0x1016edd8
lea ecx, [ecx + 0xac]
call fcn.10022a80
mov ecx, dword [ebp - 0x10]
push 0
push 0x1016edd8
lea ecx, [ecx + 0xc4]
call fcn.10022a80
push 0
push 0x1016edd8
mov ecx, ebx
call fcn.10022a80
push 0
push 0x1016edd8
mov ecx, edi
call fcn.10022a80
push 0
push 0x1016edd8
mov ecx, esi
call fcn.10022a80
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100208c0
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x101c6080]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0
push 0x1a
lea eax, [ebp - 0x20c]
mov esi, ecx
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100208f2
sub ecx, edx
sar ecx, 1
je 0x100209d6
push edi
lea edi, [ebp - 0x20c]
add edi, 0xfffffffe
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x10020911
mov eax, dword [0x1016f2a8]
lea edx, [ebp - 0x20c]
mov dword [edi], eax
add edx, 0xfffffffe
lea ecx, [ecx]
mov cx, word [edx + 2]
lea edx, [edx + 2]
test cx, cx
jne 0x10020930
mov ecx, dword [str.WnPicView]
lea edi, [ebp - 0x20c]
mov dword [edx], ecx
add edi, 0xfffffffe
mov ecx, dword [0x1016f368]
mov dword [edx + 4], ecx
mov ecx, dword [0x1016f36c]
mov dword [edx + 8], ecx
mov ecx, dword [0x1016f370]
mov dword [edx + 0xc], ecx
mov ecx, dword [0x1016f374]
mov dword [edx + 0x10], ecx
mov cx, word [edi + 2]
lea edi, [edi + 2]
test cx, cx
jne 0x10020971
mov dword [edi], eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
pop edi
test eax, eax
jne 0x100209a0
lea eax, [ebp - 0x20c]
push eax
call fcn.10022c50
add esp, 4
cmp word [ebp - 0x20c], 0
jne 0x100209ae
xor ecx, ecx
jmp 0x100209c6
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100209b7
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x20c]
push eax
lea ecx, [esi + 0x34]
call fcn.10022a80
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.1013ef23
mov esp, ebp
pop ebp
ret