joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10267700
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp byte [esi + 0x5e1], 0
je 0x1026778c
cmp dword [esi + 0x194], 0
je 0x10267753
push esi
call fcn.1025c390
push 1
push esi
mov byte [esp + 0x14], al
call fcn.1025c620
push dword [esi + 0x144]
mov eax, dword [esi + 0x194]
push dword [esp + 0x24]
push dword [esp + 0x24]
push dword [esp + 0x24]
push esi
call eax
push dword [esp + 0x28]
push esi
call fcn.1025c620
add esp, 0x28
pop esi
ret
mov eax, dword [esp + 0xc]
cmp eax, 2
ja 0x1026778c
push dword [esi + 0x140]
lea eax, [eax + eax*2]
push 1
add eax, 0x102a2c68
push 2
push eax
call fcn.1028bd25
push dword [esi + 0x140]
push 1
push dword [esp + 0x2c]
push dword [esp + 0x2c]
call fcn.1028bd25
add esp, 0x20
pop esi
ret

Function at 0x10269880
Capabilities:
Get common file path

Disassembly:
push ecx
push ebx
push edi
push 0x102a2f64
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ebx, eax
test ebx, ebx
jne 0x1026989a
pop edi
pop ebx
pop ecx
ret
push ebp
push esi
push str.LoadLibraryExA
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, dword [esp + 0x18]
mov ebp, eax
push 0x102a2f80
push esi
call fcn.1028e9a0
add esp, 8
test eax, eax
je 0x102698e2
test ebp, ebp
je 0x102698d3
push 8
push 0
push esi
call ebp
pop esi
pop ebp
mov edi, eax
pop edi
pop ebx
pop ecx
ret
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
pop esi
pop ebp
mov edi, eax
pop edi
pop ebx
pop ecx
ret
test ebp, ebp
je 0x10269908
push str.AddDllDirectory
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10269908
push 0x800
push 0
push esi
call ebp
pop esi
pop ebp
mov edi, eax
pop edi
pop ebx
pop ecx
ret
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edx, eax
mov dword [esp + 0x10], edx
test edx, edx
je 0x102699bf
mov ecx, esi
lea ebx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10269925
sub ecx, ebx
lea eax, [edx + 1]
add eax, ecx
push eax
call dword [section..data]
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x102699b5
push dword [esp + 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x102699b5
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10269957
sub ecx, edx
mov eax, 0x5c
mov word [ecx + ebx], ax
mov ecx, ebx
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10269970
sub ecx, edx
add ecx, ebx
sub ecx, esi
nop dword [eax]
mov al, byte [esi]
lea esi, [esi + 1]
mov byte [ecx + esi - 1], al
test al, al
jne 0x10269980
test ebp, ebp
je 0x102699ac
push 8
push 0
push ebx
call ebp
push ebx
mov edi, eax
call dword [0x102b8004]
add esp, 4
mov eax, edi
pop esi
pop ebp
pop edi
pop ebx
pop ecx
ret
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
push ebx
call dword [0x102b8004]
add esp, 4
pop esi
pop ebp
mov eax, edi
pop edi
pop ebx
pop ecx
ret
Function at 0x1026dcc0
Capabilities:
Create udp socket

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x1026dd00
mov eax, dword [esi + 0x7c]
cmp byte [eax + 0x104], 0
jne 0x1026dcef
push 0
call fcn.1026dcc0
add esp, 4
test al, al
mov eax, dword [esi + 0x7c]
setne cl
inc cl
mov byte [eax + 0x104], cl
mov ecx, dword [esi + 0x7c]
xor eax, eax
pop esi
cmp byte [ecx + 0x104], 2
sete al
ret
push 0
push 2
push 0x17
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
jne 0x1026dd1d
xor esi, esi
xor eax, eax
cmp eax, esi
pop esi
sbb eax, eax
neg eax
ret
push eax
mov esi, 1
call dword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
cmp eax, esi
pop esi
sbb eax, eax
neg eax
ret
Function at 0x10273920
Capabilities:
Resolve dns

Disassembly:
sub esp, 0x10
mov eax, dword [esp + 0x20]
push ebx
xor ebx, ebx
mov dword [esp + 0xc], ebx
mov dword [eax], ebx
lea eax, [esp + 0x10]
push eax
push dword [esp + 0x24]
push dword [esp + 0x24]
push dword [esp + 0x24]
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov dword [esp + 4], eax
test eax, eax
jne 0x10273ab1
push esi
mov esi, dword [esp + 0x14]
test esi, esi
je 0x10273a9c
push ebp
push edi
mov eax, dword [esi + 0x14]
test eax, eax
je 0x1027397e
lea edx, [eax + 1]
nop dword [eax]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10273970
sub eax, edx
lea ecx, [eax + 1]
jmp 0x10273980
xor ecx, ecx
mov eax, dword [esi + 4]
mov dword [esp + 0x14], ecx
cmp eax, 2
jne 0x10273991
lea ebp, [eax + 0xe]
jmp 0x1027399d
cmp eax, 0x17
jne 0x10273a3e
lea ebp, [eax + 5]
cmp dword [esi + 0x18], 0
je 0x10273a3e
mov eax, dword [esi + 0x10]
test eax, eax
je 0x10273a3e
cmp eax, ebp
jb 0x10273a3e
lea eax, [ecx + 0x20]
add eax, ebp
push eax
call dword [section..data]
mov edi, eax
add esp, 4
test edi, edi
je 0x10273a8d
mov ecx, dword [esi]
mov dword [edi], ecx
mov ecx, dword [esi + 4]
mov dword [edi + 4], ecx
mov ecx, dword [esi + 8]
mov dword [edi + 8], ecx
mov eax, dword [esi + 0xc]
mov dword [edi + 0xc], eax
lea eax, [edi + 0x20]
push ebp
mov dword [edi + 0x10], ebp
mov dword [edi + 0x14], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x18], eax
push dword [esi + 0x18]
push eax
call fcn.10285410
mov ecx, dword [esp + 0x20]
add esp, 0xc
test ecx, ecx
je 0x10273a2a
mov eax, dword [edi + 0x18]
add eax, ebp
push ecx
mov dword [edi + 0x14], eax
push dword [esi + 0x14]
push eax
call fcn.10285410
add esp, 0xc
mov eax, dword [esp + 0x18]
test ebx, ebx
cmove ebx, edi
test eax, eax
je 0x10273a3a
mov dword [eax + 0x1c], edi
mov dword [esp + 0x18], edi
mov esi, dword [esi + 0x1c]
test esi, esi
jne 0x10273962
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0x1c]
pop edi
pop ebp
test eax, eax
je 0x10273a5e
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
test esi, esi
je 0x10273a98
test ebx, ebx
je 0x10273a7d
mov esi, dword [ebx + 0x1c]
push ebx
call dword [0x102b8004]
add esp, 4
mov ebx, esi
test esi, esi
jne 0x10273a66
mov esi, dword [esp + 8]
mov eax, dword [esp + 0x28]
xor ebx, ebx
mov dword [eax], ebx
mov eax, esi
pop esi
pop ebx
add esp, 0x10
ret
mov esi, 8
mov dword [esp + 0x10], esi
jmp 0x10273a4d
test ebx, ebx
jne 0x10273aa8
mov esi, 0x2af9
push esi
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, dword [esp + 0x28]
mov dword [eax], ebx
mov eax, esi
pop esi
pop ebx
add esp, 0x10
ret
Function at 0x10276e00
Capabilities:
Query environment variable

Disassembly:
push ebx
push ebp
xor ebp, ebp
push esi
push edi
lea esi, [ebp + 1]
push esi
push ebp
call dword [0x102b8008]
mov edi, eax
add esp, 8
test edi, edi
je 0x10276dd7
nop word [eax + eax]
push esi
push edi
push dword [esp + 0x1c]
mov ebp, edi
mov ebx, esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov esi, eax
test esi, esi
je 0x10276def
cmp esi, ebx
je 0x10276def
cmp esi, 0x8000
ja 0x10276def
cmp esi, ebx
jb 0x10276de8
push esi
push edi
call dword [0x102b8008]
mov edi, eax
add esp, 8
test edi, edi
jne 0x10276da0
push ebp
call dword [0x102b8004]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
push edi
call dword [0x102b8004]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
jmp 0x10276d80

Function at 0x1027aca0
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0xc
mov eax, dword [0x102b9d90]
mov dword [esp + 4], 0x4020
mov dword [esp], 0
mov dword [esp + 8], 4
test eax, eax
jne 0x1027acf1
push 3
push 2
push eax
push eax
push 6
call fcn.1027c8e0
add esp, 0x14
test al, al
je 0x1027ace5
mov dword [0x102b9d90], 2
add esp, 0xc
ret
mov dword [0x102b9d90], 1
jmp 0x1027acf6
cmp eax, 2
je 0x1027ad3c
lea eax, [esp + 8]
push eax
lea eax, [esp + 4]
push eax
push 0x1001
push 0xffff
push dword [esp + 0x20]
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x1027ad21
mov eax, dword [esp]
cmp eax, dword [esp + 4]
jg 0x1027ad3c
push 4
lea eax, [esp + 8]
push eax
push 0x1001
push 0xffff
push dword [esp + 0x20]
call dword [sym.imp.WS2_32.dll_setsockopt]
add esp, 0xc
ret
Function at 0x1027b5d0
Capabilities:
Connect socket

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [ebx + 8]
push dword [edi + 0x14]
lea eax, [edi + 0x18]
push eax
push dword [edi + 0x98]
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x1027b624
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
cmp ecx, 0xb
je 0x1027b685
cmp ecx, 0x2732
jle 0x1027b612
cmp ecx, 0x2734
jle 0x1027b685
mov eax, dword [esp + 0x10]
pop edi
pop ebx
mov dword [eax + 0x83c], ecx
mov eax, 7
ret
push dword [esp + 0x10]
mov byte [edi + 0x15e], 1
push ebx
call fcn.1027b750
push dword [edi + 0xec]
cmp dword [edi], 5
lea eax, [edi + 0xbc]
push eax
push dword [edi + 0x120]
lea eax, [edi + 0xf0]
mov ecx, 0x102a52f4
push eax
push dword [edi + 0x98]
mov eax, str.QUIC
cmovne eax, ecx
push eax
push str._s_socket__d_connected:___s:_d_______s:_d_
push ebx
push dword [esp + 0x38]
call fcn.100069e0
push 1
push dword [edi + 0x98]
call fcn.10280320
add esp, 0x34
pop edi
xor eax, eax
pop ebx
ret

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

Disassembly:
sub esp, 0x104
mov eax, dword [0x102b82b0]
xor eax, esp
mov dword [esp + 0x100], eax
mov ecx, dword [esp + 0x10c]
push ebx
mov ebx, dword [esp + 0x10c]
push edi
mov edi, dword [esp + 0x11c]
push 0
mov eax, dword [ebx]
push dword [esp + 0x11c]
push ecx
mov eax, dword [eax + 8]
mov dword [edi], 0
push dword [eax + 0x98]
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
jne 0x1027b72e
push esi
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
cmp esi, 0x2733
jne 0x1027b6fa
mov dword [edi], 0x51
jmp 0x1027b72a
push 0x100
lea eax, [esp + 0x10]
push eax
push esi
call fcn.10279ac0
push eax
push str.Recv_failure:__s
push dword [ebx + 4]
call fcn.10267790
mov eax, dword [ebx + 4]
add esp, 0x18
mov dword [eax + 0x83c], esi
mov dword [edi], 0x38
or eax, 0xffffffff
pop esi
mov ecx, dword [esp + 0x108]
pop edi
pop ebx
xor ecx, esp
call fcn.102825af
add esp, 0x104
ret
Function at 0x1027b750
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x188
mov eax, dword [0x102b82b0]
xor eax, esp
mov dword [esp + 0x184], eax
mov eax, dword [esp + 0x18c]
push ebx
mov ebx, dword [esp + 0x194]
push esi
mov esi, dword [eax + 8]
mov eax, dword [ebx + 0x18]
mov eax, dword [eax + 0x13c]
test dword [eax + 0x44], 0x800
jne 0x1027b87e
push 0x80
lea eax, [esp + 0x10]
mov dword [esp + 0xc], 0x80
push 0
push eax
call fcn.10285180
add esp, 0xc
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x10]
push eax
push dword [esi + 0x98]
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x1027b80a
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
lea eax, [esp + 0x8c]
push 0x100
push eax
push esi
call fcn.10279ac0
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
push ebx
call fcn.10267790
add esp, 0x1c
mov eax, 2
pop esi
pop ebx
mov ecx, dword [esp + 0x184]
xor ecx, esp
call fcn.102825af
add esp, 0x188
ret
lea eax, [esi + 0x120]
push eax
lea eax, [esi + 0xf0]
push eax
push dword [esp + 0x10]
lea eax, [esp + 0x18]
push eax
call fcn.10268750
add esp, 0x10
test al, al
jne 0x1027b87e
push edi
call fcn.1028c465
mov esi, eax
call fcn.1028c465
mov edi, eax
lea eax, [esp + 0x90]
push 0x100
push eax
push dword [esi]
call fcn.10279ac0
push eax
push dword [edi]
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push ebx
call fcn.10267790
add esp, 0x1c
mov eax, 2
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x184]
xor ecx, esp
call fcn.102825af
add esp, 0x188
ret
mov ecx, dword [esp + 0x18c]
xor eax, eax
pop esi
pop ebx
xor ecx, esp
call fcn.102825af
add esp, 0x188
ret

Function at 0x1027ba90
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0x18
mov eax, dword [0x102b82b0]
xor eax, esp
mov dword [esp + 0x14], eax
push esi
mov esi, dword [esp + 0x20]
xor eax, eax
push 4
cmp byte [esi + 0x5ed], al
setne al
mov dword [esp + 8], eax
lea eax, [esp + 8]
push eax
push 8
push 0xffff
push dword [esp + 0x34]
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
js 0x1027bb32
push dword [esi + 0x59c]
mov dword [esp + 0x10], 1
call fcn.10269860
push dword [esi + 0x5a0]
imul eax, eax, 0x3e8
mov dword [esp + 0xc], eax
mov dword [esp + 0x18], eax
call fcn.10269860
add esp, 8
imul eax, eax, 0x3e8
push 0
push 0
mov dword [esp + 0xc], eax
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x10]
push eax
push 0
push 0
push 0xc
lea eax, [esp + 0x24]
push eax
push 0x98000004
push dword [esp + 0x44]
call dword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x1027bb38
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, dword [esp + 0x18]
pop esi
xor ecx, esp
call fcn.102825af
add esp, 0x18
ret
Function at 0x1027bb50
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0x108
mov eax, dword [0x102b82b0]
xor eax, esp
mov dword [esp + 0x104], eax
push 4
lea eax, [esp + 4]
mov dword [esp + 4], 1
push eax
push 1
push 6
push dword [esp + 0x120]
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x1027bbb3
push 0x100
lea eax, [esp + 8]
push eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.10279ac0
push eax
push str.Could_not_set_TCP_NODELAY:__s
push dword [esp + 0x120]
call fcn.100069e0
add esp, 0x18
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.102825af
add esp, 0x108
ret
Function at 0x1027db70
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 0x120
mov eax, dword [0x102b82b0]
xor eax, esp
mov dword [esp + 0x11c], eax
mov eax, dword [esp + 0x124]
push ebx
push ebp
mov ebp, dword [esp + 0x134]
xor ebx, ebx
push esi
push edi
mov edi, dword [esp + 0x138]
xor esi, esi
push edi
mov dword [esp + 0x20], eax
mov dword [esp + 0x18], edi
call fcn.10292378
add esp, 4
mov dword [esp + 0x20], eax
test eax, eax
jne 0x1027dbe8
push 0x100
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.10279ba0
push eax
push edi
push str.schannel:_invalid_path_name_for_CA_file__s:__s
push ebp
call fcn.10267790
add esp, 0x1c
lea esi, [ebx + 0x4d]
jmp 0x1027dd27
push 0
push 0x80
push 3
push 0
push 1
push bind
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [esp + 0x18], eax
cmp eax, 0xffffffff
jne 0x1027dc3a
push 0x100
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.10279ba0
push eax
push edi
push str.schannel:_failed_to_open_CA_file__s:__s
push ebp
call fcn.10267790
add esp, 0x1c
mov esi, 0x4d
jmp 0x1027dd27
lea ecx, [esp + 0x24]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x1027dc7a
push 0x100
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.10279ba0
push eax
push edi
push str.schannel:_failed_to_determine_size_of_CA_file__s:__s
push ebp
call fcn.10267790
add esp, 0x1c
mov esi, 0x4d
jmp 0x1027dd1d
mov edi, dword [esp + 0x24]
cmp dword [esp + 0x28], ebx
jl 0x1027dca8
jg 0x1027dc8e
cmp edi, 0x100000
jbe 0x1027dca8
push 0x100000
push str.schannel:_CA_file_exceeds_max_size_of__u_bytes
push ebp
call fcn.10267790
add esp, 0xc
mov esi, 0x4d
jmp 0x1027dd1d
lea eax, [edi + 1]
push eax
call dword [section..data]
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x1027dcc0
lea esi, [eax + 0x1b]
jmp 0x1027dd1d
test edi, edi
je 0x1027dd04
nop dword [eax]
nop dword [eax + eax]
push 0
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0
push eax
mov eax, edi
sub eax, esi
push eax
lea eax, [esi + ebx]
push eax
push dword [esp + 0x28]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1027dd61
mov eax, dword [esp + 0x10]
test eax, eax
je 0x1027dd5d
add esi, eax
cmp esi, edi
jb 0x1027dcd0
push ebp
push dword [esp + 0x18]
mov byte [edi + ebx], 0
push edi
push ebx
push dword [esp + 0x2c]
call fcn.1027d970
add esp, 0x14
mov esi, eax
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call dword [0x102b8004]
mov eax, dword [esp + 0x24]
add esp, 4
test eax, eax
je 0x1027dd42
push eax
call fcn.1028b7d8
add esp, 4
mov ecx, dword [esp + 0x12c]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.102825af
add esp, 0x120
ret
mov edi, esi
jmp 0x1027dd04
push 0x100
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.10279ba0
push eax
push dword [esp + 0x24]
push str.schannel:_failed_to_read_from_CA_file__s:__s
push ebp
call fcn.10267790
add esp, 0x1c
mov esi, 0x4d
jmp 0x1027dd1d
Function at 0x1027feb0
Capabilities:
Generate random numbers via winapi

Disassembly:
push dword [esp + 8]
push 0
push dword [esp + 0xc]
call fcn.10285180
add esp, 0xc
push 2
push dword [esp + 0xc]
push dword [esp + 0xc]
push 0
call sub.bcrypt.dll_BCryptGenRandom
neg eax
sbb eax, eax
and eax, 2
ret

Function at 0x1029755a
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.102973d9
Function at 0x1001e12
Capabilities:
Terminate process

Disassembly:
push 0x5c
push 0x10027a8
call fcn.01001fa4
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 4], 1
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x20], ebx
mov edi, 0x10036f0
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x1001bcd
cmp eax, esi
jne 0x1001bc0
xor esi, esi
inc esi
mov dword [ebp - 0x20], esi
jmp 0x1001bd0
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1001ba7
xor esi, esi
inc esi
mov eax, dword [0x10036ec]
cmp eax, esi
jne 0x1001be3
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x1001c12
mov eax, dword [0x10036ec]
test eax, eax
jne 0x1001c0c
mov dword [0x10036ec], esi
push 0x1001128
push 0x100111c
call fcn.01001b09
pop ecx
pop ecx
test eax, eax
je 0x1001c12
jmp 0x1001d36
mov dword [0x1003338], esi
mov eax, dword [0x10036ec]
cmp eax, esi
jne 0x1001c36
push 0x1001118
push 0x1001110
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x10036ec], 2
cmp dword [ebp - 0x20], ebx
jne 0x1001c43
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x10036fc], ebx
je 0x1001c64
push 0x10036fc
call fcn.01001f19
pop ecx
test eax, eax
je 0x1001c64
push ebx
push 2
push ebx
call dword [0x10036fc]
mov eax, dword [sym.imp.msvcrt.dll__wcmdln]
cmp dword [eax], ebx
je 0x1001d36
mov eax, dword [eax]
mov dword [ebp - 0x24], eax
movzx ecx, word [eax]
cmp cx, 0x20
ja 0x1001cce
cmp cx, bx
je 0x1001c89
cmp dword [ebp - 0x1c], ebx
jne 0x1001cce
movzx ecx, word [eax]
cmp cx, bx
je 0x1001c9e
cmp cx, 0x20
ja 0x1001c9e
inc eax
inc eax
mov dword [ebp - 0x24], eax
jmp 0x1001c89
test byte [ebp - 0x40], 1
je 0x1001caa
movzx ecx, word [ebp - 0x3c]
jmp 0x1001cad
push 0xa
pop ecx
push ecx
push eax
push ebx
push 0x1000000
call main
mov dword [0x1003334], eax
cmp dword [0x1003328], ebx
jne 0x1001d13
push eax
call dword [sym.imp.msvcrt.dll_exit]
cmp cx, 0x22
jne 0x1001cdf
xor ecx, ecx
cmp dword [ebp - 0x1c], ebx
sete cl
mov dword [ebp - 0x1c], ecx
inc eax
inc eax
jmp 0x1001c73
cmp dword [0x1003338], ebx
jne 0x1001d21
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x1003334]
jmp 0x1001d42
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.01001fe9
ret
call fcn.010020f1
jmp 0x1001b6a
Function at 0x100870d
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x28
push 0x1002300
call fcn.010088b8
cmp word [0x1000000], 0x5a4d
jne 0x100874b
mov eax, dword [0x100003c]
lea eax, [eax + 0x1000000]
cmp dword [eax], 0x4550
jne 0x100874b
movzx ecx, word [eax + 0x18]
cmp ecx, 0x10b
je 0x1008764
cmp ecx, 0x20b
je 0x1008751
and dword [ebp - 0x1c], 0
jmp 0x1008778
cmp dword [eax + 0x84], 0xe
jbe 0x100874b
xor ecx, ecx
cmp dword [eax + 0xf8], ecx
jmp 0x1008772
cmp dword [eax + 0x74], 0xe
jbe 0x100874b
xor ecx, ecx
cmp dword [eax + 0xe8], ecx
setne cl
mov dword [ebp - 0x1c], ecx
and dword [ebp - 4], 0
push 1
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or dword [0x100c234], 0xffffffff
or dword [0x100c238], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x100c220]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x100c21c]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x100c230], eax
call fcn.01008990
cmp dword [0x100c17c], 0
jne 0x10087d5
push fcn.01008990
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.01008979
push 0x100c018
push 0x100c014
call sub.msvcrt.dll__initterm
mov eax, dword [0x100c218]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push dword [0x100c214]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.msvcrt.dll___wgetmainargs]
mov dword [ebp - 0x34], eax
push 0x100c010
push section..data
call sub.msvcrt.dll__initterm
mov eax, dword [ebp - 0x20]
mov ecx, dword [sym.imp.msvcrt.dll___winitenv]
mov dword [ecx], eax
push dword [ebp - 0x20]
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
call fcn.0100718a
add esp, 0x30
mov esi, eax
mov dword [ebp - 0x38], esi
cmp dword [ebp - 0x1c], 0
jne 0x100884d
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x1008882
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.010088f3
ret
Function at 0x1009637
Capabilities:
Listen for remote procedure calls

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
test byte [0x100c0a4], 2
push ebx
push esi
push edi
mov edi, 0x100234c
je 0x100966a
cmp byte [0x100c0a1], 4
jb 0x100966a
push edi
push 0x1a
push dword [0x100c09c]
push dword [0x100c098]
call fcn.01002bf6
mov eax, dword [ebp + 0x10]
test eax, eax
jne 0x1009678
mov ebx, fcn.01008f57
jmp 0x100969c
cmp eax, 1
jne 0x1009684
mov ebx, 0x10091f6
jmp 0x100969c
cmp eax, 2
jne 0x1009690
mov ebx, 0x100936b
jmp 0x100969c
cmp eax, 3
jne 0x1009814
mov ebx, dword [ebp + 0x14]
test byte [0x100c0a4], 2
je 0x10096cb
cmp byte [0x100c0a1], 5
jb 0x10096cb
push dword [0x100c180]
push dword [ebp + 0xc]
push edi
push 0x1b
push dword [0x100c09c]
push dword [0x100c098]
call fcn.01006189
push 0
push dword [ebp + 0xc]
push 0xa
push dword [0x100c180]
call dword [sym.imp.RPCRT4.dll_RpcServerUseProtseqEpW]
mov esi, eax
xor eax, eax
cmp esi, eax
je 0x1009706
test byte [0x100c0a4], 2
je 0x1009817
cmp byte [0x100c0a1], 2
jb 0x1009817
push esi
push edi
push 0x1c
jmp 0x1009739
push ebx
push eax
push 8
push eax
push eax
push dword [ebp + 8]
call dword [sym.imp.RPCRT4.dll_RpcServerRegisterIfEx]
mov esi, eax
test esi, esi
je 0x100974f
test byte [0x100c0a4], 2
je 0x1009817
cmp byte [0x100c0a1], 2
jb 0x1009817
push esi
push edi
push 0x1d
push dword [0x100c09c]
push dword [0x100c098]
call fcn.010025e5
jmp 0x1009817
mov ebx, 0x100c228
push ebx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
test byte [0x100c0a4], 2
mov dword [ebp + 0x10], eax
je 0x10097b0
cmp byte [0x100c0a1], 5
jb 0x1009787
push dword [ebp + 0xc]
push edi
push 0x1e
push dword [0x100c09c]
push dword [0x100c098]
call fcn.01002ce5
test byte [0x100c0a4], 2
je 0x10097b0
cmp byte [0x100c0a1], 5
jb 0x10097b0
push dword [ebp + 0x10]
push edi
push 0x1f
push dword [0x100c09c]
push dword [0x100c098]
call fcn.010025e5
cmp dword [ebp + 0x10], 1
jne 0x1009827
push 1
push 0x4d2
push 1
call dword [sym.imp.RPCRT4.dll_RpcServerListen]
mov esi, eax
cmp esi, 0x6b1
jne 0x10097d1
xor esi, esi
test esi, esi
je 0x1009827
test byte [0x100c0a4], 2
je 0x10097fc
cmp byte [0x100c0a1], 2
jb 0x10097fc
push esi
push edi
push 0x20
push dword [0x100c09c]
push dword [0x100c098]
call fcn.010025e5
push 1
push 0
push dword [ebp + 8]
call dword [sym.imp.RPCRT4.dll_RpcServerUnregisterIf]
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
jmp 0x1009817
push 0x57
pop esi
test esi, esi
jle 0x1009827
and esi, 0xffff
or esi, 0x80070000
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 0x10