joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100319e0
Capabilities:
Get hostname
Link many functions at runtime
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10097f63
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2d4
push edi
lea ecx, [ebp - 0x14]
call fcn.10001ff0
mov dword [ebp - 4], 0
push str.wpcap.dll
lea eax, [ebp - 0x29c]
push eax
call fcn.10077098
add esp, 8
lea ecx, [ebp - 0x29c]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [0x100c57c8], eax
cmp dword [0x100c57c8], 0
jne 0x10031a58
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.load_library__d
or dword [eax], edx
push str.pcap_findalldevs
mov edx, dword [0x100c57c8]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x100c57cc], eax
push str.pcap_open_live
mov eax, dword [0x100c57c8]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x100c57d0], eax
push str.pcap_freealldevs
mov ecx, dword [0x100c57c8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x100c57d4], eax
push str.pcap_compile
mov edx, dword [0x100c57c8]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x100c57d8], eax
push str.pcap_setfilter
mov eax, dword [0x100c57c8]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x100c57dc], eax
push str.pcap_geterr
mov ecx, dword [0x100c57c8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x100c57e0], eax
push str.pcap_next_ex
mov edx, dword [0x100c57c8]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x100c57ec], eax
push str.pcap_setbuff
mov eax, dword [0x100c57c8]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x100c57e8], eax
push str.pcap_close
mov ecx, dword [0x100c57c8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
adc eax, sym.imp.KERNEL32.dll_GetProcAddress
Function at 0x10032f80
Capabilities:
Get common file path
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100980bc
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
mov eax, 0x1160
call fcn.10076300
push edi
lea ecx, [ebp - 0x1128]
call fcn.10001ff0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x1128]
push eax
call fcn.100380e0
add esp, 4
mov ecx, 0x400
xor eax, eax
lea edi, [ebp - 0x100c]
rep stosd dword es:[edi], eax
push 0x1000
lea ecx, [ebp - 0x100c]
push ecx
push str.path
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
lea edx, [ebp - 0x100c]
push edx
lea ecx, [ebp - 0x1124]
call fcn.10011f50
mov byte [ebp - 4], 1
mov ecx, 0x41
xor eax, eax
lea edi, [ebp - 0x111c]
rep stosd dword es:[edi], eax
push 0x104
lea eax, [ebp - 0x111c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
je 0x1003302e
jne 0x1003302e
call 0x100ab441
add byte [eax], al
je 0x1003303b
jne 0x1003303b
jmp 0xfff3bdcc
lea ecx, [ebp - 0x1010]
call fcn.10001ff0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x111c]
push ecx
push str._s_npptools.dll
lea edx, [ebp - 0x1010]
push edx
call fcn.10002d50
add esp, 0xc
lea ecx, [ebp - 0x1140]
call fcn.10075088
mov byte [ebp - 4], 3
push 0
lea ecx, [ebp - 0x1128]
call fcn.10005bc0
push eax
lea ecx, [ebp - 0x1124]
call fcn.10003880
cmp eax, 0xffffffff
jne 0x100330c8
push 0x3b
lea ecx, [ebp - 0x1124]
call fcn.10002e80
lea eax, [ebp - 0x1128]
push eax
lea ecx, [ebp - 0x1124]
call fcn.10014ca0
lea ecx, [ebp - 0x1124]
call fcn.10005bc0
push eax
push str.path
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
je 0x100330d5
jne 0x100330d5
call 0x100ab4e8
add byte [eax], al
je 0x100330e2
jne 0x100330e2
jmp 0xfee7be73
lea ecx, [ebp - 0x111c]
push ecx
push str._sdrivers_npf.sys
lea edx, [ebp - 0x1010]
push edx
call fcn.10002d50
add esp, 0xc
mov dword [ebp - 0x1120], 0
push 0
lea ecx, [ebp - 0x1010]
call fcn.10005bc0
push eax
lea ecx, [ebp - 0x1140]
call fcn.1007511b
test eax, eax
je 0x10033148
lea ecx, [ebp - 0x1140]
call fcn.10074e69
lea ecx, [ebp - 0x1140]
call fcn.10031510
test eax, eax
jne 0x10033148
mov dword [ebp - 0x1120], 1
lea ecx, [ebp - 0x1140]
call fcn.10074d99
cmp dword [ebp - 0x1120], 0
jne 0x100331b3
mov eax, dword [ebp - 0x1128]
push eax
push str._s_npf.sys
lea ecx, [ebp - 0x1010]
push ecx
call fcn.10002d50
add esp, 0xc
push 0
lea ecx, [ebp - 0x1010]
call fcn.10005bc0
push eax
lea ecx, [ebp - 0x1140]
call fcn.1007511b
test eax, eax
je 0x100331a8
lea ecx, [ebp - 0x1010]
call fcn.10005bc0
push eax
call fcn.100316a0
add esp, 4
lea ecx, [ebp - 0x1140]
call fcn.10074d99
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1140]
call fcn.100750ac
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1010]
call fcn.10002010
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1124]
call fcn.10002010
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1128]
call fcn.10002010
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x100355a0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x40
xor edx, edx
mov dword [esp + 0x21], edx
xor eax, eax
mov dword [esp + 0x25], edx
mov dword [esp + 0x11], eax
mov dword [esp + 0x29], edx
mov dword [esp + 0x15], eax
xor ecx, ecx
mov dword [esp + 0x2d], edx
push ebp
mov dword [esp + 0x1d], eax
mov word [esp + 0x21], ax
mov dword [esp + 5], ecx
mov dword [esp + 0x35], edx
push esi
mov dword [esp + 0xd], ecx
mov dword [esp + 0x3d], edx
mov byte [esp + 0x27], al
mov byte [esp + 8], al
push edi
lea eax, [esp + 0x1c]
mov dword [esp + 0x15], ecx
mov dword [esp + 0x45], edx
mov word [esp + 0x19], cx
push eax
mov word [esp + 0x4d], dx
push str.b3Blbg
mov byte [esp + 0x24], 0
mov byte [esp + 0x23], cl
mov byte [esp + 0x34], cl
mov byte [esp + 0x53], dl
call fcn.1003a410
lea ecx, [esp + 0x14]
push ecx
push str.dGFza2tpbGw
call fcn.1003a410
mov ebp, dword [sym.imp.SHELL32.dll_ShellExecuteA]
add esp, 0x10
mov esi, str.Y2xpZW50
mov edi, 0xb
lea esp, [esp]
xor edx, edx
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], edx
mov dword [esp + 0x38], edx
mov dword [esp + 0x3c], edx
lea eax, [esp + 0x2c]
mov dword [esp + 0x40], edx
push eax
mov dword [esp + 0x48], edx
push esi
mov dword [esp + 0x50], edx
call fcn.1003a410
add esp, 8
push 6
push 0
lea ecx, [esp + 0x34]
push ecx
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x2c]
push eax
push 0
call ebp
add esi, 0x1e
dec edi
jne 0x10035640
pop edi
pop esi
pop ebp
add esp, 0x40
ret

Function at 0x10035cc0
Capabilities:
Delete internet cache
Enumerate internet cache

Disassembly:
push ecx
push ebx
push esi
push edi
mov edi, dword [sym.imp.WININET.dll_FindFirstUrlCacheEntryA]
lea eax, [esp + 0xc]
xor ebx, ebx
push eax
push ebx
push ebx
mov dword [esp + 0x18], ebx
call edi
mov ecx, dword [esp + 0xc]
push ecx
call fcn.1008cda7
add esp, 4
lea edx, [esp + 0xc]
push edx
mov esi, eax
push esi
push ebx
call edi
mov edi, eax
cmp edi, ebx
je 0x10035d44
mov ebx, dword [sym.imp.WININET.dll_FindNextUrlCacheEntryA]
push ebp
mov ebp, dword [sym.imp.WININET.dll_DeleteUrlCacheEntry]
mov eax, dword [esi + 4]
push eax
call ebp
lea ecx, [esp + 0x10]
push ecx
push 0
push edi
mov dword [esp + 0x1c], 0
call ebx
push esi
call fcn.1008cdac
mov edx, dword [esp + 0x14]
push edx
call fcn.1008cda7
add esp, 8
mov esi, eax
lea eax, [esp + 0x10]
push eax
push esi
push edi
call ebx
test eax, eax
jne 0x10035d04
mov ebx, 1
pop ebp
test esi, esi
je 0x10035d51
push esi
call fcn.1008cdac
add esp, 4
pop edi
pop esi
mov eax, ebx
pop ebx
pop ecx
ret
Function at 0x100361b0
Capabilities:
Create tcp socket
Create udp socket
Initialize winsock library
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x320
push esi
push edi
push 0x100f0182
push 0x100f00d8
xor eax, eax
mov ecx, 0x4e
lea edi, [esp + 0x68]
rep stosd dword es:[edi], eax
push 0x100f089c
lea eax, [esp + 0x78]
push 0x1009fdb0
push eax
mov dword [esp + 0x74], 0x138
mov dword [esp + 0x78], 1
mov dword [esp + 0x7c], 0x12e
call fcn.10077098
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x38]
push edx
lea eax, [esp + 0x88]
push 0x100
push eax
mov dword [esp + 0x30], 0x40
call fcn.100158c0
add esp, 0x24
test al, al
je 0x10036323
cmp dword [esp + 0xc], 0x18
jne 0x10036323
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x28]
mov dword [esp + 0x180], ecx
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x18c], ecx
lea ecx, [esp + 0x198]
mov dword [esp + 0x184], edx
mov edx, dword [esp + 0x30]
mov dword [esp + 0x188], eax
mov eax, dword [esp + 0x34]
push ecx
push 0x202
mov dword [esp + 0x198], edx
mov dword [esp + 0x19c], eax
call dword [sym.imp.WS2_32.dll_WSAStartup]
push 1
push 0
push 0
push 0
push 2
push 2
call dword [sym.imp.WS2_32.dll_WSASocketA]
push 0x100f08d0
mov esi, eax
mov word [esp + 0x14], 2
call dword [sym.imp.WS2_32.dll_inet_addr]
push 0x4682
mov dword [esp + 0x18], eax
call dword [sym.imp.WS2_32.dll_htons]
push 0x10
lea edx, [esp + 0x14]
push edx
push 0
mov word [esp + 0x1e], ax
push 0x138
lea eax, [esp + 0x70]
push eax
push esi
call dword [sym.imp.WS2_32.dll_sendto]
cmp eax, 0xffffffff
jne 0x100362ff
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.UDP_sendto:_d
push 4
call fcn.1006ac00
add esp, 0xc
push 0x100f08d0
lea ecx, [esp + 0x70]
push ecx
push str.SendSessionIDToServer
push str._s:_UDP__s_sendto:_s
push 2
call fcn.1006ac00
add esp, 0x14
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push str.hmac_v2_fail
push 4
call fcn.1006ac00
add esp, 8
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x10036ad0
Capabilities:
Persist via windows service
Set registry value

Disassembly:
sub esp, 8
lea eax, [esp + 4]
push eax
lea ecx, [esp + 4]
push ecx
push 0
push 0x20006
push 0
push 0
push 0
push str.SYSTEMCurrentControlSetServicesWinSock2HintSock
push reloc.WS2_32.dll_bind
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 1
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x10036b37
mov edx, dword [esp + 0xc]
mov eax, dword [edx]
mov ecx, dword [eax - 0xc]
mov edx, dword [esp]
inc ecx
push ecx
push eax
push 1
push 0
push 0x1009fe94
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [esp]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esp, 8
ret
Function at 0x10036c00
Capabilities:
Delete directory
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x100982db
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x224
push esi
lea ecx, [esp + 8]
call fcn.10075088
mov esi, dword [esp + 0x238]
push esi
lea eax, [esp + 0x128]
push str._s.
push eax
mov dword [esp + 0x23c], 0
call fcn.10077098
add esp, 0xc
push 0
lea ecx, [esp + 0x128]
push ecx
lea ecx, [esp + 0x10]
call fcn.1007511b
test eax, eax
je 0x10036cfd
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileA]
push edi
lea ecx, [esp + 0x10]
call fcn.10074e69
lea ecx, [esp + 0x10]
mov edi, eax
call fcn.1007504f
test eax, eax
jne 0x10036cf3
lea edx, [esp + 0xc]
push edx
lea ecx, [esp + 0x14]
call fcn.10075343
mov eax, dword [eax]
push eax
push esi
lea ecx, [esp + 0x30]
push 0x1009cb94
push ecx
call fcn.10077098
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
add esp, 0x10
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x10036cca
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x10]
push 0x10
lea ecx, [esp + 0x14]
call dword [eax + 0x38]
test eax, eax
je 0x10036cec
lea ecx, [esp + 0x28]
push 1
push ecx
call fcn.10036c00
add esp, 8
jmp 0x10036cf3
lea edx, [esp + 0x28]
push edx
call ebx
test edi, edi
jne 0x10036c70
pop edi
pop ebx
lea ecx, [esp + 8]
call fcn.10074d99
mov al, byte [esp + 0x23c]
test al, al
je 0x10036d18
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
lea ecx, [esp + 8]
mov dword [esp + 0x230], 0xffffffff
call fcn.100750ac
mov ecx, dword [esp + 0x228]
pop esi
mov dword fs:[0], ecx
add esp, 0x230
ret

Function at 0x10036e00
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x10098428
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
push 0x1009ff14
push 2
mov dword [esp + 0x1c], 0
call fcn.1006ac00
add esp, 8
lea eax, [esp + 8]
push eax
lea ecx, [esp + 8]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push str.SoftwarePubwin
push reloc.WS2_32.dll_bind
mov dword [esp + 0x2c], 2
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
mov esi, dword [esp + 0x1c]
jne 0x10036e8e
mov eax, dword [esi - 0xc]
mov edx, dword [esp + 4]
inc eax
push eax
push esi
push 1
push 0
push str.DeGlobalIP
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x10036e9e
push eax
push str.RegCreateKeyEx:_d
push 4
call fcn.1006ac00
add esp, 0xc
lea eax, [esi - 0x10]
mov dword [esp + 0x14], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
pop esi
jg 0x10036ec1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 8]
mov eax, 1
mov dword fs:[0], ecx
add esp, 0x14
ret 4
Function at 0x10037f10
Capabilities:
Check if file exists
Copy file
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10098346
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x220
push ebx
push esi
push edi
xor eax, eax
xor ebx, ebx
mov byte [esp + 0x18], bl
mov ecx, 0x40
lea edi, [esp + 0x19]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x100a0100
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push 0x104
lea ecx, [esp + 0x1c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x18]
push 0x5c
push edx
call fcn.10075b6a
add esp, 8
mov byte [eax], bl
call fcn.1008cdb1
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x14], eax
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x18]
push str._sHintHelperEx.dll
push ecx
mov dword [esp + 0x240], ebx
call fcn.10002d50
mov byte [esp + 0x12c], bl
xor eax, eax
mov ecx, 0x40
lea edi, [esp + 0x12d]
rep stosd dword es:[edi], eax
add esp, 0xc
stosw word es:[edi], ax
push 0x104
lea edx, [esp + 0x124]
push edx
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov esi, dword [esp + 0x14]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x10038060
lea eax, [esp + 0x120]
push eax
lea ecx, [esp + 0x1c]
push ecx
call fcn.10076ec0
add esp, 8
test eax, eax
jne 0x10038060
call fcn.1008cdb1
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x10], eax
lea eax, [esp + 0x120]
push eax
lea ecx, [esp + 0x14]
push str._sHintHelperEx.dll
push ecx
mov byte [esp + 0x240], 1
call fcn.10002d50
mov edi, dword [esp + 0x1c]
add esp, 0xc
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileA]
lea eax, [edi - 0x10]
mov byte [esp + 0x234], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x10038060
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [esi - 0x10]
mov dword [esp + 0x234], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10038085
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x22c]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10038160
Capabilities:
Check if file exists
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x10098360
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
push edi
call fcn.1008cdb1
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 8], eax
lea eax, [esp + 8]
push eax
mov dword [esp + 0x1c], 0
call fcn.100380e0
add esp, 4
call fcn.1008cdb1
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0xc], eax
mov edi, dword [esp + 8]
push edi
lea eax, [esp + 0x10]
push str._sHintSafe.exe
push eax
mov byte [esp + 0x24], 1
call fcn.10002d50
mov esi, dword [esp + 0x18]
add esp, 0xc
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x100381f4
push 0
push 0
push 0
push esi
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
lea eax, [esi - 0x10]
mov byte [esp + 0x18], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10038213
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [edi - 0x10]
mov dword [esp + 0x18], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
pop edi
pop esi
jg 0x10038237
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x10038520
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x100983a8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x50
push ebx
push esi
xor ebx, ebx
push edi
mov dword [esp + 0x10], ebx
call fcn.1008cdb1
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x10], eax
lea eax, [esp + 0xc]
push eax
push 0x20019
push ebx
push str.SYSTEMCurrentControlSetServicesWinSock2HintSock
push reloc.WS2_32.dll_bind
mov dword [esp + 0x78], ebx
mov dword [esp + 0x20], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x100385f3
xor eax, eax
mov byte [esp + 0x1c], bl
mov ecx, 0xf
lea edi, [esp + 0x1d]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x20]
push edx
stosb byte es:[edi], al
lea eax, [esp + 0x20]
push eax
push ebx
push 0x1009fe94
push ecx
mov dword [esp + 0x30], 1
mov dword [esp + 0x2c], 0x40
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x100385e8
lea eax, [esp + 0x1c]
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x100385d0
sub eax, edx
push eax
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0x18]
call fcn.100024d0
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [esp + 0x10]
add esi, 0xfffffff0
push esi
call fcn.10001a10
mov edi, dword [esp + 0x70]
add eax, 0x10
add esp, 4
mov dword [edi], eax
mov dword [esp + 0x64], 0xffffffff
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1003862b
mov ecx, dword [esi]
mov eax, dword [ecx]
push esi
call dword [eax + 4]
mov ecx, dword [esp + 0x5c]
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x5c
ret
Function at 0x10038640
Capabilities:
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x100983d6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x11c
push ebx
push ebp
push esi
push edi
call fcn.1008cdb1
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x14], eax
lea eax, [esp + 0x14]
xor ebx, ebx
push eax
mov dword [esp + 0x138], ebx
call fcn.100380e0
add esp, 4
lea ecx, [esp + 0x18]
call fcn.1008d9e5
push 7
push str._si.cfg
lea ecx, [esp + 0x1c]
mov byte [esp + 0x13c], 1
call fcn.10002860
mov ebp, dword [esp + 0x14]
push ebx
push ebx
push ebp
lea ecx, [esp + 0x24]
call fcn.1008dc7d
test eax, eax
je 0x1003878b
mov byte [esp + 0x28], bl
xor eax, eax
mov ecx, 0x1f
lea edi, [esp + 0x29]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x80
lea ecx, [esp + 0x2c]
push ecx
lea ecx, [esp + 0x20]
stosb byte es:[edi], al
call fcn.1008d6f8
test eax, eax
jbe 0x10038782
xor eax, eax
mov byte [esp + 0xa8], bl
mov ecx, 0x1f
lea edi, [esp + 0xa9]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x80
lea edx, [esp + 0xac]
stosb byte es:[edi], al
push edx
lea eax, [esp + 0x30]
push eax
call fcn.1003a670
add esp, 0xc
test eax, eax
jle 0x10038782
lea ecx, [esp + 0xa8]
push 1
push ecx
call fcn.100784c0
add esp, 8
cmp eax, ebx
je 0x10038782
lea esi, [eax + 1]
mov eax, esi
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x10038750
sub eax, edx
cmp eax, 0x1f
jae 0x1003876e
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x10038763
sub eax, edx
jmp 0x10038773
mov eax, 0x1f
push eax
push esi
push 0x100dfd78
call fcn.100770f0
add esp, 0xc
lea ecx, [esp + 0x18]
call fcn.1008d983
push 0x80
push ebp
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push ebp
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0x18]
mov byte [esp + 0x134], bl
call fcn.1008da24
lea eax, [ebp - 0x10]
mov dword [esp + 0x134], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x100387d3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x12c]
pop edi
mov dword fs:[0], ecx
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1003abf0
Capabilities:
Terminate process

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x10098748
push eax
mov eax, 0x111c
mov dword fs:[0], esp
call fcn.10076300
push ebx
push esi
push edi
push str.psapi.dll
mov dword [esp + 0x1134], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, eax
test ebx, ebx
mov dword [esp + 0xc], ebx
je 0x1003ac85
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.EnumProcessModules
push ebx
call esi
test eax, eax
mov dword [esp + 0x1c], eax
je 0x1003ac7e
push str.EnumProcesses
push ebx
call esi
mov edi, eax
test edi, edi
je 0x1003ac7e
push str.GetModuleBaseNameA
push ebx
call esi
test eax, eax
mov dword [esp + 0x14], eax
je 0x1003ac7e
lea eax, [esp + 0x18]
push eax
push 0x1000
lea ecx, [esp + 0x130]
push ecx
call edi
test eax, eax
jne 0x1003accd
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [esp + 0x1138]
add eax, 0xfffffff0
mov dword [esp + 0x1130], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x1003ada4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x111c]
mov dword fs:[0], ecx
add esp, 0x1128
ret
push ebp
mov ebp, dword [esp + 0x1c]
shr ebp, 2
xor ebx, ebx
test ebp, ebp
jbe 0x1003ad6c
nop
mov eax, dword [str.unknown]
mov edx, dword [esp + ebx*4 + 0x12c]
mov ecx, dword [0x100a04e8]
mov dword [esp + 0x28], eax
xor eax, eax
push edx
mov dword [esp + 0x30], ecx
push eax
mov ecx, 0x3f
lea edi, [esp + 0x38]
push 0x411
rep stosd dword es:[edi], eax
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x1003ad63
lea eax, [esp + 0x24]
push eax
push 4
lea ecx, [esp + 0x1c]
push ecx
push esi
call dword [esp + 0x30]
test eax, eax
je 0x1003ad5c
mov eax, dword [esp + 0x14]
push 0x104
lea edx, [esp + 0x2c]
push edx
push eax
push esi
call dword [esp + 0x28]
mov ecx, dword [esp + 0x113c]
push ecx
lea edx, [esp + 0x2c]
push edx
call fcn.1007c668
add esp, 8
test eax, eax
je 0x1003adbc
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc ebx
cmp ebx, ebp
jb 0x1003ace0
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [esp + 0x113c]
add eax, 0xfffffff0
mov dword [esp + 0x1134], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x1003ada3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
pop ebp
mov ecx, dword [esp + 0x1128]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x1128
ret
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [esp + 0x113c]
call fcn.10002010
jmp 0x1003ada3