joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100319c0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x100c88e8
push 0x1006e600
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x100d10d4]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x24], 0
xor esi, esi
mov dword [ebp - 0x1c], esi
xor edi, edi
mov dword [ebp - 0x28], edi
mov dword [ebp - 4], esi
lea eax, [ebp - 0x24]
push eax
push 0xf023f
push edi
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionSvcHost
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10031b67
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push edi
lea eax, [ebp - 0x2c]
push eax
push edi
push dword [ebp + 8]
push dword [ebp - 0x24]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
call ebx
cmp dword [ebp - 0x2c], 7
jne 0x10031b67
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x30]
lea eax, [eax + ecx*2]
add eax, 8
mov dword [ebp - 0x34], eax
push 0x100d3c66
push eax
call fcn.10062033
add esp, 8
mov esi, eax
mov dword [ebp - 0x1c], esi
test esi, esi
je 0x10031b64
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push esi
lea eax, [ebp - 0x2c]
push eax
push edi
push dword [ebp + 8]
push dword [ebp - 0x24]
call ebx
xor ebx, ebx
mov dword [ebp - 0x38], ebx
lea ecx, [ebx + ebx]
mov eax, dword [ebp - 0x20]
cmp ecx, eax
jae 0x10031ae8
add esi, ecx
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
add ebx, eax
mov dword [ebp - 0x38], ebx
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x10031b42
push str.cs_group_e
push 0x100add08
call fcn.10037470
add esp, 8
mov edi, 1
mov dword [ebp - 0x28], edi
mov eax, dword [ebp - 0x20]
mov esi, dword [ebp - 0x1c]
lea ecx, [ebx + ebx]
cmp ecx, eax
jne 0x10031b64
mov edi, dword [ebp - 0x30]
lea eax, [edi + 1]
push eax
push dword [ebp + 0xc]
lea eax, [ecx - 2]
add eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
lea eax, [ebx + edi]
add eax, eax
xor ecx, ecx
mov word [eax + esi], cx
add eax, 2
push eax
push esi
push 7
push ecx
push dword [ebp + 8]
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x10031b4a
push eax
push str.cs_group_f
push 0x100add08
call fcn.10037590
add esp, 0xc
mov edi, 3
jmp 0x10031b61
mov esi, dword [ebp - 0x1c]
jmp 0x10031aa1
push str.cs_group_s
push 0x100add08
call fcn.10037470
add esp, 8
mov edi, 2
mov dword [ebp - 0x28], edi
mov esi, dword [ebp - 0x1c]
mov dword [ebp - 4], 0xfffffffe
call fcn.10031b8f
mov eax, edi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x10032e80
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x100d10d4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
jne 0x10032eb5
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10061eb3
mov esp, ebp
pop ebp
ret
push ebx
push edi
lea eax, [ebp - 0x230]
mov dword [ebp - 0x230], 0x22c
push eax
push esi
xor ebx, ebx
call sub.KERNEL32.dll_Process32FirstW
mov edi, dword [sym.imp.SHLWAPI.dll_StrCmpIW]
nop word [eax + eax]
push str.explorer.exe
lea eax, [ebp - 0x20c]
push eax
call edi
test eax, eax
je 0x10032f05
lea eax, [ebp - 0x230]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x10032ee0
jmp 0x10032f0a
mov ebx, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop ebx
xor ecx, ebp
pop esi
call fcn.10061eb3
mov esp, ebp
pop ebp
ret

Function at 0x10033120
Capabilities:
Start service

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x100c8968
push 0x1006e600
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x100d10d4]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
xor edi, edi
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 4], edi
mov esi, dword [ebp + 0xc]
push esi
mov ebx, dword [ebp + 8]
push ebx
call fcn.100319c0
mov dword [ebp + 0xc], eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x2c]
push eax
push esi
push ebx
call fcn.100334f0
mov ebx, eax
test ebx, ebx
je 0x1003322c
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x100331ae
push dword [ebp + 0x14]
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp + 8]
push eax
call fcn.10034e50
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x100331be
push dword [ebp + 0x18]
push eax
call fcn.10034f50
push 0
push 0
mov esi, dword [ebp - 0x1c]
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x100331fc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.cs_start_svc_f
push 0x100add08
call fcn.10037590
push ebx
push dword [ebp + 0xc]
push str.cs_links_g_d_c_d_s2
push dword [ebp + 0x24]
call fcn.1000da40
add esp, 0x1c
jmp 0x10033210
push ebx
push dword [ebp + 0xc]
push str.cs_links_g_d_c_d_s1
push dword [ebp + 0x24]
call fcn.1000da40
add esp, 0x10
push str.cs_done
push 0x100add08
call fcn.10037470
add esp, 8
mov edi, 1
mov dword [ebp - 0x28], edi
jmp 0x1003322f
mov esi, dword [ebp - 0x1c]
mov dword [ebp - 4], 0xfffffffe
call fcn.10033257
mov eax, edi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20
Function at 0x100332a0
Capabilities:
Create service

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x100c8908
push 0x1006e600
mov eax, dword fs:[0]
push eax
sub esp, 0x434
mov eax, dword [0x100d10d4]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x430], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x420], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x434], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x424], eax
mov dword [ebp - 0x438], eax
mov ebx, dword [ebp + 0x18]
mov dword [ebp - 0x43c], ebx
mov edi, dword [ebp + 0x1c]
mov dword [ebp - 0x440], edi
mov ecx, dword [ebp + 0x20]
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x444], ecx
xor esi, esi
mov dword [ebp - 0x42c], esi
mov dword [ebp - 4], esi
mov dword [eax], esi
mov dword [ebx], esi
mov dword [edi], esi
mov dword [ecx], esi
push 0x200
push esi
lea eax, [ebp - 0x21c]
push eax
call fcn.1006e460
push dword [ebp - 0x430]
push str.__SystemRoot__System32_svchost.exe__k__s
push 0xff
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.SHLWAPI.dll_wnsprintfW]
add esp, 0x1c
push 0xf003f
push esi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ecx, eax
mov eax, dword [ebp - 0x424]
mov dword [eax], ecx
test ecx, ecx
jne 0x1003339a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.OpenSCManager___d_
call fcn.1000d740
add esp, 8
jmp 0x1003347d
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x21c]
push eax
push 1
push 3
push 0x20
push 0xf01ff
push dword [ebp - 0x434]
push dword [ebp - 0x420]
push ecx
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov dword [ebx], eax
test eax, eax
jne 0x100333ea
push 0xf01ff
push dword [ebp - 0x420]
mov eax, dword [ebp - 0x424]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [ebx], eax
push 0x200
push 0
lea eax, [ebp - 0x41c]
push eax
call fcn.1006e460
push dword [ebp - 0x420]
push str.SYSTEMCurrentControlSetServices_s
push 0xff
lea eax, [ebp - 0x41c]
push eax
call dword [sym.imp.SHLWAPI.dll_wnsprintfW]
add esp, 0x1c
push edi
push 0xf023f
push 0
lea eax, [ebp - 0x41c]
push eax
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x1003344b
push eax
push str.RegOpenKeyEx___d_
call fcn.1000d740
add esp, 8
jmp 0x1003347d
push dword [ebp - 0x428]
push str.Parameters
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
je 0x10033472
push eax
push str.RegCreateKey___d_
call fcn.1000d740
add esp, 8
jmp 0x1003347d
mov esi, 1
mov dword [ebp - 0x42c], esi
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x424]
mov ecx, dword [ebp - 0x428]
call fcn.100334d3
mov eax, esi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.10061eb3
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x10034190
Capabilities:
Delete service
Stop service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100a6af0
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x100d10d4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call fcn.1002afa0
mov ecx, eax
call fcn.10023930
test eax, eax
je 0x100342cd
lea eax, [ebp - 0x34]
push eax
call fcn.1002afa0
mov ecx, eax
call fcn.100238d0
mov dword [ebp - 4], 0
or edi, 0xffffffff
mov eax, dword [ebp - 0x34]
cmp dword [eax - 0xc], 0
jne 0x100341f8
xor esi, esi
jmp 0x100342ac
lea eax, [ebp - 0x44]
mov dword [ebp - 0x40], 0
push eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
call fcn.1002afa0
mov ecx, eax
call fcn.10023870
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x38]
push ecx
lea ecx, [ebp - 0x3c]
push ecx
lea ecx, [ebp - 0x30]
push ecx
lea ecx, [ebp - 0x40]
push ecx
push dword [eax]
push dword [ebp - 0x34]
push str.netsvcs
call fcn.100332a0
mov esi, eax
mov byte [ebp - 4], 0
mov eax, edi
mov edx, dword [ebp - 0x44]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10034267
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test esi, esi
je 0x10034297
mov esi, dword [ebp - 0x30]
lea eax, [ebp - 0x2c]
push eax
xorps xmm0, xmm0
mov dword [ebp - 0x14], 0
push 1
push esi
movups xmmword [ebp - 0x2c], xmm0
movq qword [ebp - 0x1c], xmm0
call dword [sym.imp.ADVAPI32.dll_ControlService]
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
mov esi, eax
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.100342f0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x34]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], edi
dec edi
test edi, edi
jg 0x100342cb
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10061eb3
mov esp, ebp
pop ebp
ret 4
Function at 0x10034b30
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100a6ca0
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
mov eax, dword [0x100d10d4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x100b00a8
call fcn.1000d740
add esp, 4
call fcn.1000db70
mov ecx, eax
test ecx, ecx
je 0x10034d09
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x18]
push 0x100ac6f8
call fcn.10025710
test al, al
jne 0x10034ba4
push 0
push 0x100ac6f8
lea ecx, [ebp - 0x18]
call fcn.10014ae0
mov dword [ebp - 4], 1
call fcn.1000db70
mov ecx, eax
test ecx, ecx
je 0x10034d13
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x14]
push 0x100b00b0
call fcn.10025710
test al, al
jne 0x10034be9
push 3
push 0x100b00b0
lea ecx, [ebp - 0x14]
call fcn.10014ae0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0xd]
call fcn.100312a0
push eax
lea ecx, [ebp - 0x1c]
call fcn.1000a1a0
mov byte [ebp - 4], 4
lea eax, [ebp - 0x18]
push 0
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.10025840
mov ecx, eax
call fcn.10039f70
mov byte [ebp - 4], 3
or esi, 0xffffffff
mov edx, dword [ebp - 0x1c]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10034c3d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
mov eax, esi
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10034c5b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x10034c7a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [0x100d3534]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x10034c8c
push eax
call esi
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [0x100d3534], eax
call fcn.1002afa0
mov ecx, eax
call fcn.10023930
test eax, eax
jne 0x10034cce
push str._init_fail
call fcn.1000d740
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 8
push 0
push 0
push dword [0x100d3534]
push 0x10038250
push 0
push 0
call fcn.10076314
add esp, 0x18
push eax
call esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.100376a0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 8
push 0x80004005
call fcn.1000d6a0
push 0x80004005
call fcn.1000d6a0
int3
Function at 0x10034e50
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x100d10d4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x18]
push esi
mov esi, dword [ebp + 0xc]
push 0x200
mov dword [ebp - 0x208], eax
lea eax, [ebp - 0x204]
push 0
push eax
call fcn.1006e460
push esi
push str.__SystemRoot__System32_svchost.exe__k__s
lea eax, [ebp - 0x204]
push 0xff
push eax
call dword [sym.imp.SHLWAPI.dll_wnsprintfW]
add esp, 0x1c
lea eax, [ebp - 0x204]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea eax, [eax*2 + 2]
push eax
lea eax, [ebp - 0x204]
push eax
push 2
push 0
push str.ImagePath
push dword [ebp - 0x208]
call esi
push 4
lea eax, [ebp + 0x10]
push eax
push 4
push 0
push str.Start
push dword [ebp - 0x208]
call esi
xor eax, eax
cmp dword [ebp + 0x14], eax
push 4
setne al
mov dword [ebp - 0x20c], eax
lea eax, [ebp - 0x20c]
push eax
push 4
push 0
push str.DelayedAutostart
push dword [ebp - 0x208]
call esi
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax*2 + 2]
push eax
push ebx
push 1
push 0
push str.Description
push dword [ebp - 0x208]
call esi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.10061eb3
mov esp, ebp
pop ebp
ret 0x14

Function at 0x10034f50
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x100d10d4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x214]
push esi
mov esi, dword [ebp + 8]
push 0x210
push 0
push eax
mov dword [ebp - 0x218], esi
call fcn.1006e460
add esp, 0xc
lea eax, [ebp - 0x214]
push 0x107
push eax
push 0x10000000
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax*2 + 2]
push eax
lea eax, [ebp - 0x214]
push eax
push 2
push 0
push str.ServiceDll
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
call esi
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax*2 + 2]
push eax
push ebx
push 1
push 0
push str.ServiceMain
push dword [ebp - 0x218]
call esi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.10061eb3
mov esp, ebp
pop ebp
ret 8
Function at 0x10035110
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x67c
mov eax, dword [0x100d10d4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push 0x250
mov dword [ebp - 0x678], eax
lea eax, [ebp - 0x674]
push 0
push eax
mov dword [ebp - 0x67c], ebx
call fcn.1006e460
add esp, 0xc
xor eax, eax
test esi, esi
je 0x10035283
test ebx, ebx
je 0x10035283
push edi
mov edi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov word [ebp - 0x424], ax
lea eax, [ebp - 0x424]
push ebx
push eax
call edi
test eax, eax
je 0x10035280
push dword [ebp - 0x678]
lea eax, [ebp - 0x424]
push eax
call edi
test eax, eax
je 0x10035280
lea eax, [ebp - 0x674]
push eax
lea eax, [ebp - 0x424]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x10035280
nop dword [eax + eax]
push dword [ebp - 0x67c]
xor eax, eax
mov word [ebp - 0x214], ax
lea eax, [ebp - 0x214]
push eax
call edi
test eax, eax
je 0x1003524b
lea eax, [ebp - 0x648]
push eax
lea eax, [ebp - 0x214]
push eax
call edi
test eax, eax
je 0x1003524b
test dword [ebp - 0x674], 0x10
jne 0x10035212
lea eax, [ebp - 0x674]
push eax
lea eax, [ebp - 0x214]
push eax
push esi
call fcn.10034350
jmp 0x1003524b
cmp word [ebp - 0x648], 0x2e
jne 0x10035238
mov ax, word [ebp - 0x646]
test ax, ax
je 0x1003524b
cmp ax, 0x2e
jne 0x10035238
cmp word [ebp - 0x644], 0
je 0x1003524b
push dword [ebp - 0x678]
lea eax, [ebp - 0x214]
push eax
push esi
call fcn.10035110
lea ecx, [ebp - 0x674]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x100351c0
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10061eb3
mov esp, ebp
pop ebp
ret 0xc
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.10061eb3
mov esp, ebp
pop ebp
ret 0xc
Function at 0x100352a0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x100c8850
push 0x1006e600
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x100d10d4]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x50], eax
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x5c], esi
mov ebx, dword [ebp + 0x14]
mov dword [ebp - 0x4c], ebx
xor edi, edi
mov dword [ebp - 0x54], edi
mov dword [ebp - 4], edi
push 0x100af404
call fcn.1000d740
add esp, 4
test ebx, ebx
je 0x1003549f
push 1
push esi
push dword [ebp + 0x10]
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
test eax, eax
je 0x1003532b
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 0x100af420
call fcn.1000d740
add esp, 8
jmp 0x1003549f
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x64], esi
mov edi, 0x1ffe
mov dword [ebp - 0x58], edi
xor esi, esi
mov dword [ebp - 0x60], esi
cmp esi, 2
jb 0x10035368
mov word [ebx + esi], 0
cmp edi, 0x1ffe
jne 0x1003536e
movzx edi, word [ebx]
mov dword [ebp - 0x58], edi
push edi
push 0x100af458
call fcn.1000d740
add esp, 8
cmp edi, 0x1ffe
jbe 0x10035382
push 0x100af474
call fcn.1000d740
add esp, 4
jmp 0x1003546b
cmp esi, edi
jl 0x10035398
push str.____n
call fcn.1000d740
add esp, 4
jmp 0x1003546b
push 0
push dword [ebp + 0x18]
push 0
lea eax, [ebp - 0x68]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAWaitForMultipleEvents]
mov ebx, eax
cmp ebx, 2
jae 0x10035453
mov eax, dword [ebp - 0x50]
cmp eax, dword [ebp + ebx*4 - 0x68]
jne 0x100353d1
push 0x100af4e4
call fcn.1000d740
add esp, 4
jmp 0x10035468
push 0x2c
push 0
lea eax, [ebp - 0x48]
push eax
call fcn.1006e460
add esp, 0xc
lea eax, [ebp - 0x48]
push eax
push dword [ebp - 0x5c]
push dword [ebp + 0x10]
call dword [sym.imp.WS2_32.dll_WSAEnumNetworkEvents]
test dword [ebp - 0x48], 1
jne 0x10035409
push str.___._n
call fcn.1000d740
add esp, 4
jmp 0x10035468
push 0
mov eax, edi
sub eax, esi
push eax
mov ebx, dword [ebp - 0x4c]
lea eax, [ebx + esi]
push eax
push dword [ebp + 0x10]
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jg 0x1003543a
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.___:_:_u_n
call fcn.1000d740
add esp, 8
jmp 0x1003546b
add esi, eax
mov dword [ebp - 0x60], esi
push esi
push eax
push str.___:_u_u._n
call fcn.1000d740
add esp, 0xc
jmp 0x10035341
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push ebx
push 0x100af4b0
call fcn.1000d740
add esp, 0xc
mov ebx, dword [ebp - 0x4c]
cmp esi, 2
jb 0x10035482
movzx ecx, word [ebx]
mov edx, ecx
cmp esi, ecx
jne 0x10035485
mov edi, 1
mov eax, ecx
jmp 0x1003548a
movzx edx, word [ebx]
xor edi, edi
movzx eax, dx
mov dword [ebp - 0x54], edi
push esi
movzx eax, ax
push eax
push str._____u_u._n
call fcn.1000d740
add esp, 0xc
mov dword [ebp - 4], 0xfffffffe
call fcn.100354ce
mov eax, edi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.10061eb3
mov esp, ebp
pop ebp
ret 0x14
Function at 0x10037270
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x100c8830
push 0x1006e600
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x100d10d4]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x50], eax
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x58], esi
mov ebx, dword [ebp + 0x14]
mov dword [ebp - 0x4c], ebx
xor edi, edi
mov dword [ebp - 0x54], edi
mov dword [ebp - 4], edi
push 0x100af2ac
call fcn.1000d740
add esp, 4
test ebx, ebx
je 0x1003741a
push 2
push esi
push dword [ebp + 0x10]
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
test eax, eax
je 0x100372fb
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 0x100af2c8
call fcn.1000d740
add esp, 8
jmp 0x1003741a
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x60], esi
movzx edi, word [ebx]
xor esi, esi
mov dword [ebp - 0x5c], esi
nop dword [eax]
push 0
push dword [ebp + 0x18]
push 0
lea eax, [ebp - 0x64]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAWaitForMultipleEvents]
mov ebx, eax
cmp ebx, 2
jae 0x100373ce
mov eax, dword [ebp - 0x50]
cmp eax, dword [ebp + ebx*4 - 0x64]
jne 0x10037349
push 0x100af338
call fcn.1000d740
add esp, 4
jmp 0x100373e3
push 0x2c
push 0
lea eax, [ebp - 0x48]
push eax
call fcn.1006e460
add esp, 0xc
lea eax, [ebp - 0x48]
push eax
push dword [ebp - 0x58]
mov ebx, dword [ebp + 0x10]
push ebx
call dword [sym.imp.WS2_32.dll_WSAEnumNetworkEvents]
test dword [ebp - 0x48], 2
jne 0x10037382
push 0x100af34c
call fcn.1000d740
add esp, 4
jmp 0x100373e3
cmp esi, edi
jge 0x100373e3
push 0
mov eax, edi
sub eax, esi
push eax
mov eax, dword [ebp - 0x4c]
add eax, esi
push eax
push ebx
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jle 0x100373a5
add esi, eax
mov dword [ebp - 0x5c], esi
jmp 0x10037382
cmp esi, edi
jge 0x100373e3
mov ebx, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call ebx
cmp eax, 0x2733
je 0x10037310
call ebx
push eax
push 0x100af368
call fcn.1000d740
add esp, 8
jmp 0x100373e3
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push ebx
push 0x100af304
call fcn.1000d740
add esp, 0xc
mov eax, dword [ebp - 0x4c]
cmp esi, 2
jb 0x100373fd
movzx ecx, word [eax]
mov edx, ecx
cmp esi, ecx
jne 0x10037400
mov edi, 1
mov eax, ecx
jmp 0x10037405
movzx edx, word [eax]
xor edi, edi
movzx eax, dx
mov dword [ebp - 0x54], edi
push esi
movzx eax, ax
push eax
push 0x100af390
call fcn.1000d740
add esp, 0xc
mov dword [ebp - 4], 0xfffffffe
call fcn.10037449
mov eax, edi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.10061eb3
mov esp, ebp
pop ebp
ret 0x14