joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10001170
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Get socket status
Set socket configuration

Disassembly:
sub esp, 0x118
push esi
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
jne 0x10001194
xor eax, eax
pop esi
add esp, 0x118
ret
push ebx
push edi
mov edi, dword [sym.imp.WS2_32.dll_setsockopt]
push 4
lea eax, [esp + 0x10]
push eax
push 0x1005
push 0xffff
mov ebx, 0x3e8
push esi
mov dword [esp + 0x20], ebx
call edi
cmp eax, 0xffffffff
je 0x1000129d
push 4
lea ecx, [esp + 0x10]
push ecx
push 0x1006
push 0xffff
push esi
mov dword [esp + 0x20], ebx
call edi
cmp eax, 0xffffffff
je 0x1000129d
mov ebx, dword [sym.imp.WS2_32.dll_ioctlsocket]
lea edx, [esp + 0x14]
push edx
push 0x8004667e
push esi
mov dword [esp + 0x20], 1
call ebx
cmp eax, 0xffffffff
jne 0x1000120f
pop edi
pop ebx
xor eax, eax
pop esi
add esp, 0x118
ret
mov edi, dword [esp + 0x130]
mov eax, dword [esp + 0x128]
mov word [edi], 2
cmp dword [eax + 0x18], 0x10
jb 0x1000122d
mov eax, dword [eax + 4]
jmp 0x10001230
add eax, 4
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [edi + 4], eax
mov eax, dword [esp + 0x12c]
push eax
call dword [sym.imp.WS2_32.dll_htons]
push 0x10
push edi
push esi
mov word [edi + 2], ax
call dword [sym.imp.WS2_32.dll_connect]
xor edi, edi
lea ecx, [esp + 0x18]
push ecx
push edi
lea edx, [esp + 0x28]
push edx
push edi
push edi
mov dword [esp + 0x38], esi
mov dword [esp + 0x34], 1
mov dword [esp + 0x2c], 3
mov dword [esp + 0x30], edi
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jle 0x1000129d
lea eax, [esp + 0x10]
push eax
push 0x8004667e
push esi
mov dword [esp + 0x1c], edi
call ebx
cmp eax, 0xffffffff
jne 0x100012b1
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
pop edi
pop ebx
or eax, 0xffffffff
pop esi
add esp, 0x118
ret
pop edi
pop ebx
mov eax, esi
pop esi
add esp, 0x118
ret
Function at 0x10002110
Capabilities:
Get local ipv4 addresses
Get socket information
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1000d15b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x468
mov eax, dword [0x100110f4]
mov edx, dword [ebp + 0xc]
push ebx
push esi
push edi
mov dword [esp + 0x46c], eax
lea eax, [esp + 0x10]
mov dword [esp + 0xc], ecx
push eax
lea ecx, [esp + 0x54]
push ecx
mov edi, 0x10
push edx
mov dword [esp + 0x1c], edi
call dword [sym.imp.WS2_32.dll_getsockname]
mov ecx, dword [esp + 0x52]
xor eax, eax
mov dword [esp + 0x31], eax
mov dword [esp + 0x35], eax
mov dword [esp + 0x39], eax
mov dword [esp + 0x3d], eax
mov dword [esp + 0x41], eax
mov dword [esp + 0x45], eax
mov dword [esp + 0x49], eax
xor ebx, ebx
push ecx
mov byte [esp + 0x34], bl
mov byte [esp + 0x51], al
call dword [sym.imp.WS2_32.dll_ntohs]
movzx edx, ax
mov eax, dword [esp + 0x54]
push edx
push eax
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
lea ecx, [esp + 0x38]
push str._s:_d
push ecx
call fcn.1000620e
lea eax, [esp + 0x40]
add esp, 0x10
mov dword [esp + 0x2c], 0xf
mov dword [esp + 0x28], ebx
mov byte [esp + 0x18], bl
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x100021d0
sub eax, edx
push eax
lea edx, [esp + 0x34]
push edx
lea ecx, [esp + 0x1c]
call fcn.10001570
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x480], ebx
call fcn.100051e0
mov ecx, eax
call fcn.100052f0
mov esi, eax
cmp dword [esp + 0x2c], edi
mov dword [esp + 0x47c], 0xffffffff
jb 0x10002220
mov ecx, dword [esp + 0x18]
push ecx
call fcn.10005c9d
add esp, 4
cmp esi, 0xffffffff
mov dword [esp + 0x2c], 0xf
mov dword [esp + 0x28], ebx
mov byte [esp + 0x18], bl
je 0x10002249
mov edx, dword [ebp + 0x18]
mov eax, dword [ebp + 0x14]
push ebx
push edx
push eax
push esi
call dword [sym.imp.WS2_32.dll_send]
xor eax, eax
jmp 0x100022a6
mov esi, dword [ebp + 0x14]
mov dx, word [esi]
cmp dx, 0x400
jbe 0x1000225b
or eax, 0xffffffff
jmp 0x100022a6
xor eax, eax
mov ecx, 0x100
lea edi, [esp + 0x60]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
movzx ecx, dx
mov edx, ecx
stosb byte es:[edi], al
shr ecx, 2
lea edi, [esp + 0x60]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
movzx ecx, byte [esp + 0x62]
xor eax, eax
sub ecx, 2
jne 0x100022a6
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
lea eax, [esp + 0x60]
push eax
mov eax, dword [ebp + 8]
push ecx
mov ecx, dword [esp + 0x14]
push edx
push eax
call fcn.10001880
mov ecx, dword [esp + 0x474]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x46c]
call fcn.10006324
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14

Function at 0x100022e0
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x194
mov eax, dword [0x100110f4]
mov dword [esp + 0x190], eax
lea eax, [esp]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov ecx, dword [esp + 0x190]
neg eax
sbb al, al
inc al
call fcn.10006324
add esp, 0x194
ret
Function at 0x10002320
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 8
mov edx, dword [esp + 0xc]
push edi
xor eax, eax
push eax
lea edi, [edx + 0x20]
push edx
mov ecx, 0x800
rep stosd dword es:[edi], eax
mov dword [edx + 0x2020], eax
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [edx + 0x14]
push 1
lea eax, [edx + 0x18]
push eax
push ecx
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
call dword [sym.imp.WS2_32.dll_WSARecv]
cmp eax, 0xffffffff
pop edi
jne 0x10002381
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
je 0x10002381
xor al, al
add esp, 8
ret 4
mov al, 1
add esp, 8
ret 4

Function at 0x10002c20
Capabilities:
Create thread
Get system information on windows

Disassembly:
sub esp, 0x28
push edi
push 0
push 0
push 0
push 0xffffffffffffffff
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
test eax, eax
mov dword [edi + 0x20], eax
jne 0x10002c42
xor al, al
pop edi
add esp, 0x28
ret
push esi
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [esp + 0x20]
add eax, eax
lea ecx, [eax*4]
push ecx
mov dword [edi + 0x28], eax
call fcn.10005809
mov dword [edi + 0x24], eax
mov eax, dword [edi + 0x28]
add esp, 4
xor esi, esi
test eax, eax
jle 0x10002cb6
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_CreateThread]
jmp 0x10002c80
push 8
call fcn.10005765
add esp, 4
lea edx, [esp + 0x10]
push edx
push 0
push eax
push 0x10002a50
push 0
lea ebx, [esi + 1]
push 0
mov dword [eax], edi
mov dword [eax + 4], ebx
call ebp
mov ecx, dword [edi + 0x24]
mov dword [ecx + esi*4], eax
mov eax, dword [edi + 0x28]
mov esi, ebx
cmp esi, eax
jl 0x10002c80
pop ebp
pop ebx
pop esi
mov al, 1
pop edi
add esp, 0x28
ret

Function at 0x10003020
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
lea eax, [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov ecx, esi
mov dword [esi + 0x1c], eax
call fcn.10002c20
test al, al
jne 0x1000304b
pop esi
ret
push 4
call fcn.10005765
add esp, 4
push 0
push 0
push eax
push 0x10002e40
push 0
push 0
mov dword [eax], esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov al, 1
pop esi
ret
Function at 0x100050b0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x1000d304
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
call fcn.100033f0
mov dword [esi + 4], eax
mov bl, 1
mov byte [eax + 0x45], bl
mov eax, dword [esi + 4]
mov dword [eax + 4], eax
mov eax, dword [esi + 4]
mov dword [eax], eax
mov eax, dword [esi + 4]
xor ebp, ebp
mov dword [eax + 8], eax
mov dword [esi + 8], ebp
lea edi, [esi + 0xc]
mov ecx, edi
mov dword [esp + 0x1c], ebp
call fcn.100033f0
mov dword [edi + 4], eax
mov byte [eax + 0x45], bl
mov eax, dword [edi + 4]
mov dword [eax + 4], eax
mov eax, dword [edi + 4]
mov dword [eax], eax
mov eax, dword [edi + 4]
mov dword [eax + 8], eax
mov dword [edi + 8], ebp
lea edi, [esi + 0x18]
mov ecx, edi
mov byte [esp + 0x1c], bl
call fcn.10003430
mov dword [edi + 4], eax
mov byte [eax + 0x2d], bl
mov eax, dword [edi + 4]
mov dword [eax + 4], eax
mov eax, dword [edi + 4]
mov dword [eax], eax
mov eax, dword [edi + 4]
mov dword [eax + 8], eax
mov dword [edi + 8], ebp
lea edi, [esi + 0x24]
mov ecx, edi
mov byte [esp + 0x1c], 2
call fcn.10003430
mov dword [edi + 4], eax
mov byte [eax + 0x2d], bl
mov eax, dword [edi + 4]
mov dword [eax + 4], eax
mov eax, dword [edi + 4]
mov dword [eax], eax
mov eax, dword [edi + 4]
mov dword [eax + 8], eax
mov dword [edi + 8], ebp
lea edi, [esi + 0x30]
mov ecx, edi
mov byte [esp + 0x1c], 3
call fcn.100033f0
mov dword [edi + 4], eax
mov byte [eax + 0x45], bl
mov eax, dword [edi + 4]
mov dword [eax + 4], eax
mov eax, dword [edi + 4]
mov dword [eax], eax
mov eax, dword [edi + 4]
mov dword [eax + 8], eax
mov dword [edi + 8], ebp
lea edi, [esi + 0x3c]
mov ecx, edi
mov byte [esp + 0x1c], 4
call fcn.100033f0
mov dword [edi + 4], eax
mov byte [eax + 0x45], bl
mov eax, dword [edi + 4]
mov ecx, dword [esp + 0x14]
mov dword [eax + 4], eax
mov eax, dword [edi + 4]
mov dword [eax], eax
mov eax, dword [edi + 4]
mov dword [eax + 8], eax
mov dword [edi + 8], ebp
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x1000646b
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
cmp eax, 1
push esi
jne 0x1000655b
mov eax, 0x94
call fcn.10009870
mov esi, esp
push esi
mov dword [esi], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x100065d0
mov ecx, dword [esi + 0x10]
mov dword [0x10011e5c], ecx
mov eax, dword [esi + 4]
mov dword [0x10011e68], eax
mov edx, dword [esi + 8]
mov dword [0x10011e6c], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
cmp ecx, 2
mov dword [0x10011e60], esi
je 0x100064d6
or esi, 0x8000
mov dword [0x10011e60], esi
shl eax, 8
add eax, edx
push 1
mov dword [0x10011e64], eax
call fcn.1000979d
test eax, eax
pop ecx
je 0x100065d0
call fcn.100077fc
test eax, eax
jne 0x10006503
call fcn.100097ee
jmp 0x100065d0
call fcn.100096fb
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x10013524], eax
call fcn.100095d9
mov dword [0x10011cc0], eax
call fcn.100090ba
test eax, eax
jl 0x10006554
call fcn.10009537
test eax, eax
jl 0x1000654f
call fcn.10009304
test eax, eax
jl 0x1000654f
push 0
call fcn.10008eb2
test eax, eax
pop ecx
jne 0x1000654f
inc dword [0x10011cbc]
jmp 0x100065e1
call fcn.100092b8
call fcn.100075e5
jmp 0x100064f9
test eax, eax
jne 0x1000658b
cmp dword [0x10011cbc], eax
jle 0x100065d0
dec dword [0x10011cbc]
cmp dword [0x10011e98], eax
jne 0x1000657a
call fcn.10008ff0
call fcn.100092b8
call fcn.100075e5
call fcn.100097ee
jmp 0x100065e1
cmp eax, 2
jne 0x100065d4
push 0x8c
push 1
call fcn.10008fff
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x100065d0
push esi
push dword [0x10011124]
call dword [0x10011cdc]
test eax, eax
push esi
je 0x100065ca
call fcn.10007602
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
or dword [esi + 4], 0xffffffff
mov dword [esi], eax
jmp 0x100065e1
call fcn.10006cc1
pop ecx
xor eax, eax
jmp 0x100065e4
cmp eax, 3
jne 0x100065e1
push 0
call fcn.100077cd
pop ecx
xor eax, eax
inc eax
lea esp, [ebp - 4]
pop esi
pop ebp
ret 0xc

Function at 0x10008f1c
Capabilities:
Terminate process

Disassembly:
push 8
push 0x1000e878
call fcn.100084a8
push 8
call fcn.10008d9b
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x10011e9c], esi
jne 0x10008f50
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x10011e98], esi
mov al, byte [ebp + 0x10]
mov byte [0x10011e94], al
cmp dword [ebp + 0xc], edi
jne 0x10008f9a
cmp dword [0x10012508], edi
je 0x10008f8a
mov eax, dword [0x10012504]
sub eax, 4
mov dword [0x10012504], eax
cmp eax, dword [0x10012508]
jb 0x10008f8a
mov eax, dword [eax]
cmp eax, edi
je 0x10008f6b
call eax
jmp 0x10008f6b
push 0x1001102c
mov eax, 0x10011024
call fcn.10008e9a
pop ecx
push 0x10011038
mov eax, 0x10011030
call fcn.10008e9a
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x10008fcb
cmp dword [ebp + 0x10], edi
jne 0x10008fd9
mov dword [0x10011e9c], esi
push dword [ebp + 8]
call fcn.10008e58
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x10008fd8
push 8
call fcn.10008ce6
pop ecx
ret
call fcn.100084e3
ret
Function at 0x10009a2c
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x100110f4]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x10011728]
je 0x10009a61
inc eax
cmp eax, 0x13
jb 0x10009a52
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x10011728]
jne 0x10009b87
mov eax, dword [0x10011cc8]
cmp eax, 1
je 0x10009b5f
cmp eax, edx
jne 0x10009a91
cmp dword [0x10011ccc], 1
je 0x10009b5f
cmp ecx, 0xfc
je 0x10009b87
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x10009ac7
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.10008b50
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.100067e0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x10009afb
mov eax, edi
push eax
call fcn.100067e0
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x1000e68c
push edi
call fcn.1000bca0
add esp, 0x10
push edi
call fcn.100067e0
push dword [esi + 0x1001172c]
mov ebx, eax
call fcn.100067e0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.10009870
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.10008b50
push edi
push ebx
call fcn.10008b60
push 0x1000e688
push ebx
call fcn.10008b60
push dword [esi + 0x1001172c]
push ebx
call fcn.10008b60
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.1000bf70
add esp, 0x2c
jmp 0x10009b87
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x1001172c]
push dword [esi]
call fcn.100067e0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x8c]
mov ecx, dword [ebp + 0x88]
call fcn.10006324
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x1000b50d
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a0]
sub esp, 0x420
mov eax, dword [0x100110f4]
push edi
xor edi, edi
cmp dword [ebp + 0x3b0], edi
mov dword [ebp + 0x39c], eax
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x7c], edi
jne 0x1000b53e
xor eax, eax
jmp 0x1000b6c7
mov eax, dword [ebp + 0x3a8]
push ebx
mov ebx, dword [ebp + 0x3a8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x10012400]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x1000b57a
push 2
push edi
push edi
push dword [ebp + 0x3a8]
call fcn.1000c9d0
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x1000b655
cmp dword [ebp + 0x3b0], edi
mov eax, dword [ebp + 0x3ac]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x6c], edi
jbe 0x1000b693
mov ecx, dword [ebp - 0x74]
sub ecx, dword [ebp + 0x3ac]
lea eax, [ebp - 0x68]
mov dword [ebp - 0x70], edi
cmp ecx, dword [ebp + 0x3b0]
jae 0x1000b5de
mov edx, dword [ebp - 0x74]
inc dword [ebp - 0x74]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x1000b5cf
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0x70]
mov byte [eax], dl
inc eax
inc dword [ebp - 0x70]
cmp dword [ebp - 0x70], 0x400
jl 0x1000b5af
mov edi, eax
lea eax, [ebp - 0x68]
sub edi, eax
push 0
lea eax, [ebp - 0x80]
push eax
push edi
lea eax, [ebp - 0x68]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1000b61e
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x78], eax
cmp eax, edi
jl 0x1000b627
mov eax, dword [ebp - 0x74]
sub eax, dword [ebp + 0x3ac]
xor edi, edi
cmp eax, dword [ebp + 0x3b0]
jb 0x1000b5a0
jmp 0x1000b629
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
xor edi, edi
mov eax, dword [ebp - 0x78]
cmp eax, edi
jne 0x1000b6c2
cmp dword [ebp - 0x6c], edi
je 0x1000b693
push 5
pop esi
cmp dword [ebp - 0x6c], esi
jne 0x1000b688
call fcn.1000c104
mov dword [eax], 9
call fcn.1000c10d
mov dword [eax], esi
jmp 0x1000b6bd
push edi
lea ecx, [ebp - 0x80]
push ecx
push dword [ebp + 0x3b0]
push dword [ebp + 0x3ac]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1000b67d
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x78], eax
jmp 0x1000b629
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
jmp 0x1000b629
push dword [ebp - 0x6c]
call fcn.1000c116
pop ecx
jmp 0x1000b6bd
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x1000b6ab
mov eax, dword [ebp + 0x3ac]
cmp byte [eax], 0x1a
jne 0x1000b6ab
xor eax, eax
jmp 0x1000b6c5
call fcn.1000c104
mov dword [eax], 0x1c
call fcn.1000c10d
mov dword [eax], edi
or eax, 0xffffffff
jmp 0x1000b6c5
sub eax, dword [ebp - 0x7c]
pop esi
pop ebx
mov ecx, dword [ebp + 0x39c]
pop edi
call fcn.10006324
add ebp, 0x3a0
leave
ret
Function at 0x1000bf70
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x1001207c], ebx
push esi
push edi
jne 0x1000bff0
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x1000c02b
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x1001207c], eax
je 0x1000c02b
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x10012080], eax
call esi
cmp dword [0x10011e5c], 2
mov dword [0x10012084], eax
jne 0x1000bff0
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x1001208c], eax
je 0x1000bff0
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x10012088], eax
mov eax, dword [0x10012088]
test eax, eax
je 0x1000c035
call eax
test eax, eax
je 0x1000c01c
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x1001208c]
test eax, eax
je 0x1000c01c
test byte [ebp - 8], 1
jne 0x1000c035
cmp dword [0x10011e68], 4
jb 0x1000c02f
or byte [ebp + 0x12], 0x20
jmp 0x1000c054
xor eax, eax
jmp 0x1000c064
or byte [ebp + 0x12], 4
jmp 0x1000c054
mov eax, dword [0x10012080]
test eax, eax
je 0x1000c054
call eax
mov ebx, eax
test ebx, ebx
je 0x1000c054
mov eax, dword [0x10012084]
test eax, eax
je 0x1000c054
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x1001207c]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1000cc5f
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.10009870
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x1000ccfa
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x10011e5c]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x1000ccfa
cmp eax, 1
je 0x1000cd1b
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x1000ccfa
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x1000ccc7
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x1000ccf6
xor eax, eax
inc eax
jmp 0x1000cd3a
cmp edi, eax
jae 0x1000ccfe
xor eax, eax
jmp 0x1000cd3a
cmp eax, esi
jae 0x1000cd05
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x10011e5c]
jmp 0x1000cd1e
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401010
Capabilities:
Parse pe header

Disassembly:
sub esp, 0x1c
xor eax, eax
cmp word [0x400000], 0x5a4d
mov dword [0x40d054], 1
mov dword [0x40d050], 1
mov dword [0x40d04c], 1
jne 0x401056
mov edx, dword [0x40003c]
cmp dword [edx + 0x400000], 0x4550
lea ecx, [edx + 0x400000]
je 0x4010b0
mov dword [0x40d00c], eax
mov eax, dword [0x40d060]
test eax, eax
je 0x4010a0
mov dword [esp], 2
call sym.___set_app_type
call sym.___p__fmode
mov edx, dword [0x40d074]
mov dword [eax], edx
call sym.___p__commode
mov edx, dword [0x40d05c]
mov dword [eax], edx
call dbg._setargv
cmp dword [0x409018], 1
je 0x4010e0
xor eax, eax
add esp, 0x1c
ret
mov dword [esp], 1
call sym.___set_app_type
jmp 0x401070
movzx edx, word [ecx + 0x18]
cmp dx, 0x10b
je 0x4010f8
cmp dx, 0x20b
jne 0x401056
cmp dword [ecx + 0x84], 0xe
jbe 0x401056
mov edx, dword [ecx + 0xf8]
xor eax, eax
test edx, edx
setne al
jmp 0x401056
mov dword [esp], dbg._matherr
call dbg.__mingw_setusermatherr
xor eax, eax
add esp, 0x1c
ret
cmp dword [ecx + 0x74], 0xe
jbe 0x401056
mov ecx, dword [ecx + 0xe8]
xor eax, eax
test ecx, ecx
setne al
jmp 0x401056

Function at 0x40152c
Capabilities:
Contain obfuscated stackstrings
Create process on windows

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push ecx
sub esp, 0xb4
call dbg.__main
mov dword [ebp - 0x82], 0x6f726863
mov dword [ebp - 0x7e], 0x652e656d
mov dword [ebp - 0x7a], 0x2d206578
mov dword [ebp - 0x76], 0x7070612d
mov dword [ebp - 0x72], 0x7474683d
mov dword [ebp - 0x6e], 0x2f2f3a70
mov dword [ebp - 0x6a], 0x2e323931
mov dword [ebp - 0x66], 0x2e383631
mov dword [ebp - 0x62], 0x35312e30
mov word [ebp - 0x5e], 0x38
mov dword [esp + 8], 0x44
mov dword [esp + 4], 0
lea eax, [ebp - 0x5c]
mov dword [esp], eax
call sym._memset
mov dword [ebp - 0x5c], 0x44
lea eax, [ebp - 0x18]
mov dword [esp + 0x24], eax
lea eax, [ebp - 0x5c]
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
lea eax, [ebp - 0x82]
mov dword [esp + 4], eax
mov dword [esp], str.C:Program_FilesGoogleChromeApplicationchrome.exe
mov eax, dword [sym.imp.KERNEL32.dll_CreateProcessA]
call eax
sub esp, 0x28
test eax, eax
je 0x401652
mov eax, dword [ebp - 0x18]
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call eax
sub esp, 8
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
sub esp, 4
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
sub esp, 4
mov dword [esp], str.Yohoo_
call sym._printf
jmp 0x40165e
mov dword [esp], str.The_process_could_not_be_started...
call sym._printf
mov eax, 0
mov ecx, dword [ebp - 4]
leave
lea esp, [ecx - 4]
ret