joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4f8520
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4f8543
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004ae360
add esp, 4
or eax, 0xffffffff
ret
test al, 1
je 0x4f8568
test byte [esp + 8], 2
je 0x4f8568
call fcn.004ae3e0
mov dword [eax], 0xd
call fcn.004ae3f0
mov dword [eax], 5
or eax, 0xffffffff
ret
xor eax, eax
ret

Function at 0x4f86f0
Capabilities:
Get common file path
Set current directory
Set environment variable

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x10c
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
je 0x4f8770
lea ecx, [esp + 4]
push ecx
push 0x105
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x4f8770
mov eax, dword [esp + 4]
cmp al, 0x5c
je 0x4f8725
cmp al, 0x2f
jne 0x4f8732
cmp al, ah
jne 0x4f8732
xor eax, eax
add esp, 0x10c
ret
and eax, 0xff
mov byte [esp], 0x3d
push eax
call fcn.004f93b0
add esp, 4
mov byte [esp + 1], al
lea edx, [esp + 4]
lea eax, [esp]
push edx
push eax
mov byte [esp + 0xa], 0x3a
mov byte [esp + 0xb], 0
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
je 0x4f8770
xor eax, eax
add esp, 0x10c
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004ae360
add esp, 4
or eax, 0xffffffff
add esp, 0x10c
ret

Function at 0x4f92c0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x104
lea eax, [esp]
push esi
push eax
push 0x104
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x4f92f9
mov eax, dword [esp + 4]
cmp ah, 0x3a
jne 0x4f92f9
and eax, 0xff
push eax
call fcn.004b5cd0
mov esi, eax
add esp, 4
sub esi, 0x40
mov eax, esi
pop esi
add esp, 0x104
ret
Function at 0x4fa740
Capabilities:
Clear file content

Disassembly:
mov eax, 0x1004
call fcn.004ab510
push ebx
mov ebx, dword [esp + 0x100c]
push ebp
push esi
push edi
xor ebp, ebp
push 1
push ebp
push ebx
call fcn.004b6a20
mov edi, eax
add esp, 0xc
cmp edi, 0xffffffff
mov dword [esp + 0x10], edi
je 0x4fa880
push 2
push ebp
push ebx
call fcn.004b6a20
add esp, 0xc
cmp eax, 0xffffffff
je 0x4fa880
mov ecx, dword [esp + 0x101c]
mov esi, ecx
sub esi, eax
test esi, esi
jle 0x4fa821
mov ecx, 0x400
xor eax, eax
lea edi, [esp + 0x14]
push 0x8000
rep stosd dword es:[edi], eax
push ebx
call fcn.004fa890
add esp, 8
mov edi, eax
cmp esi, 0x1000
mov eax, 0x1000
jge 0x4fa7c6
mov eax, esi
push eax
lea eax, [esp + 0x18]
push eax
push ebx
call fcn.004b6690
add esp, 0xc
cmp eax, 0xffffffff
je 0x4fa7e2
sub esi, eax
test esi, esi
jle 0x4fa7fa
jmp 0x4fa7b7
call fcn.004ae3f0
cmp dword [eax], 5
jne 0x4fa7f7
call fcn.004ae3e0
mov dword [eax], 0xd
or ebp, 0xffffffff
push edi
push ebx
call fcn.004fa890
mov edi, dword [esp + 0x18]
add esp, 8
push 0
push edi
push ebx
call fcn.004b6a20
add esp, 0xc
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1004
ret
jge 0x4fa867
push 0
push ecx
push ebx
call fcn.004b6a20
add esp, 0xc
push ebx
call fcn.004aebc0
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov ebp, eax
neg ebp
sbb ebp, ebp
neg ebp
dec ebp
cmp ebp, 0xffffffff
jne 0x4fa867
call fcn.004ae3e0
mov dword [eax], 0xd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call fcn.004ae3f0
mov dword [eax], esi
push 0
push edi
push ebx
call fcn.004b6a20
add esp, 0xc
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1004
ret
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x1004
ret

Function at 0x502ea6
Capabilities:
Clear file content

Disassembly:
push esi
mov esi, ecx
push 0
mov eax, dword [esi]
push dword [esp + 0xc]
call dword [eax + 0x30]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x502ece
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.005078d5
pop esi
ret 4
Function at 0x5059d8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x505a1a
call fcn.0050d986
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x505a1a
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x505a11
xor eax, eax
jmp 0x505a22
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00505a28
pop edi
pop esi
pop ebx
ret 4

Function at 0x5062d3
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x514fb0
call fcn.004ac410
push ecx
sub esp, 0x14
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x18], esi
mov eax, dword [esi + 0x48]
mov edi, dword [esi + 0x44]
mov dword [ebp - 0x14], eax
call fcn.0050d986
cmp dword [esi + 0x40], 0
mov ebx, dword [eax + 0xc]
je 0x506312
call fcn.0050d986
mov ebx, dword [eax + 0xc]
push 5
push dword [esi + 0x40]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x506320
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x50632e
or eax, 0xffffffff
jmp 0x50641a
mov ecx, esi
call fcn.0050624f
mov edi, eax
mov dword [ebp - 0x20], edi
call fcn.00503b0a
push edi
call fcn.00503558
and dword [ebp - 0x1c], 0
test edi, edi
je 0x506368
push edi
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x506368
push 0
push edi
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x1c], 1
and dword [ebp - 4], 0
push esi
call fcn.00503abe
push edi
call fcn.00503558
push ebx
push eax
push dword [ebp - 0x14]
mov ecx, esi
call fcn.00506024
xor ebx, ebx
cmp eax, ebx
je 0x5063e1
test byte [esi + 0x24], 0x10
je 0x5063ac
push 4
mov ecx, esi
pop ebx
call fcn.00506726
test ah, 1
je 0x5063a2
push 5
pop ebx
push ebx
mov ecx, esi
call fcn.00505ae2
xor ebx, ebx
cmp dword [esi + 0x1c], ebx
je 0x5063e1
push 0x97
push ebx
push ebx
push ebx
push ebx
push ebx
mov ecx, esi
call fcn.005067b5
jmp 0x5063e1
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x1c], ebx
je 0x5063f3
push 1
push edi
call dword [sym.imp.USER32.dll_EnableWindow]
cmp edi, ebx
je 0x506409
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x1c]
jne 0x506409
push edi
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x60]
mov ecx, esi
call fcn.00506286
mov eax, dword [esi + 0x2c]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x509c78
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
push edi
xor edi, edi
cmp dword [ebp + 8], edi
jne 0x509c95
cmp dword [0x5529b0], edi
jne 0x509de7
cmp word [0x5529bc], di
mov dword [0x5529b0], 1
jne 0x509cc7
push str.MSH_SCROLL_LINES_MSG
call dword [sym.imp.USER32.dll_RegisterWindowMessageA]
xor ecx, ecx
cmp eax, edi
setne cl
inc ecx
mov dword [0x5529b8], eax
mov word [0x5529bc], cx
cmp word [0x5529bc], 2
jne 0x509d03
push str.Magellan_MSWHEEL
push str.MouseZ
call dword [sym.imp.USER32.dll_FindWindowA]
cmp eax, edi
je 0x509d03
mov ecx, dword [0x5529b8]
cmp ecx, edi
je 0x509d03
push edi
push edi
push ecx
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov dword [0x5529b4], eax
jmp 0x509dec
push 0x94
lea eax, [ebp - 0x9c]
push edi
push eax
call fcn.004ac570
add esp, 0xc
lea eax, [ebp - 0x9c]
mov dword [ebp - 0x9c], 0x94
mov dword [0x5529b4], 3
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x509de7
cmp dword [ebp - 0x8c], 1
je 0x509d57
cmp dword [ebp - 0x8c], 2
jne 0x509de7
cmp dword [ebp - 0x98], 4
jae 0x509dc6
lea eax, [ebp + 8]
push eax
push 1
push edi
push str.Control_PanelDesktop
push reloc.WSOCK32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x509de7
lea eax, [ebp - 4]
mov dword [ebp - 4], 0x80
push eax
lea eax, [ebp - 0x11c]
push eax
lea eax, [ebp - 8]
push eax
push edi
push str.WheelScrollLines
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x509dbb
push 0xa
lea eax, [ebp - 0x11c]
push edi
push eax
call fcn.004ae690
add esp, 0xc
mov dword [0x5529b4], eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x509de7
cmp dword [ebp - 0x8c], 2
jne 0x509de7
cmp dword [ebp - 0x98], 4
jb 0x509de7
push edi
push 0x5529b4
push edi
push 0x68
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
mov eax, dword [0x5529b4]
pop edi
leave
ret

Function at 0x50aad7
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x7c], 0
je 0x50ab1b
push dword [ebp + 8]
call fcn.0050ecf6
mov esi, eax
test esi, esi
je 0x50ab46
lea eax, [ebp + 0x10]
push 4
push eax
push 4
push 0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push esi
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test edi, edi
sete al
jmp 0x50ab46
push dword [ebp + 0x10]
lea eax, [ebp - 0x10]
push 0x5350a8
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x10]
push dword [esi + 0x90]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
pop edi
pop esi
leave
ret 0xc
Function at 0x50d802
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x514afe
call fcn.004ac410
push ecx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi], vtable.CNoTrackObject.0
xor eax, eax
push 0xa
lea ecx, [esi + 0x30]
mov dword [ebp - 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
call fcn.005017a2
push 0xa
lea ecx, [esi + 0x4c]
mov byte [ebp - 4], 1
call fcn.005017a2
push 0xa
lea ecx, [esi + 0x68]
mov byte [ebp - 4], 2
call fcn.00500513
mov ecx, dword [ebp - 0xc]
mov dword [esi], vtable.AFX_MODULE_THREAD_STATE.0
mov dword [esi + 0xc], 0x54
mov dword [esi + 0x28], 0x501a31
mov eax, esi
mov dword fs:[0], ecx
pop esi
leave
ret

Function at 0x50e814
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push esi
push edi
mov edi, ecx
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
je 0x50e842
mov eax, dword [esp + 0xc]
cmp eax, dword [esi + 8]
jl 0x50e8e4
cmp dword [esp + 0x10], 0
je 0x50e8e4
test esi, esi
jne 0x50e87e
push 0x10
call fcn.0050e631
test eax, eax
je 0x50e857
mov dword [eax], vtable.CThreadData.0
mov esi, eax
jmp 0x50e859
xor esi, esi
and dword [esi + 8], 0
and dword [esi + 0xc], 0
lea eax, [edi + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push esi
lea ecx, [edi + 0x14]
call fcn.0050e5d3
lea eax, [edi + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [esi + 0xc]
test eax, eax
jne 0x50e896
mov eax, dword [edi + 0xc]
shl eax, 2
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
jmp 0x50e8a6
mov ecx, dword [edi + 0xc]
push 2
shl ecx, 2
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
test eax, eax
mov dword [esi + 0xc], eax
jne 0x50e8b2
call fcn.005004dd
mov eax, dword [esi + 8]
mov ecx, eax
imul ecx, ecx, 0x3fffffff
add ecx, dword [edi + 0xc]
shl ecx, 2
push ecx
mov ecx, dword [esi + 0xc]
push 0
lea eax, [ecx + eax*4]
push eax
call fcn.004ac570
mov eax, dword [edi + 0xc]
add esp, 0xc
mov dword [esi + 8], eax
push esi
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [esi + 0xc]
mov edx, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
pop edi
mov dword [eax + edx*4], ecx
pop esi
ret 8
Function at 0x50e919
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 1
mov ebx, ecx
pop edi
cmp dword [esi + 8], edi
mov dword [ebp - 4], edi
jle 0x50e96c
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x50e94f
mov ecx, dword [ebx + 0x10]
cmp dword [ecx + edi*8 + 4], eax
je 0x50e94f
mov eax, dword [esi + 0xc]
cmp dword [eax + edi*4], 0
je 0x50e966
and dword [ebp - 4], 0
jmp 0x50e966
mov eax, dword [esi + 0xc]
mov ecx, dword [eax + edi*4]
test ecx, ecx
je 0x50e95f
mov eax, dword [ecx]
push 1
call dword [eax]
mov eax, dword [esi + 0xc]
and dword [eax + edi*4], 0
inc edi
cmp edi, dword [esi + 8]
jl 0x50e930
cmp dword [ebp - 4], 0
je 0x50e9ab
lea edi, [ebx + 0x1c]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push esi
lea ecx, [ebx + 0x14]
call fcn.0050e5e6
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_LocalFree]
test esi, esi
je 0x50e9a1
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax]
push 0
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x412ef3
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 8
pop eax
call fcn.004291f0
push ebx
push esi
push edi
mov eax, dword [ebp + 0x10]
inc eax
push eax
call fcn.0042921f
pop ecx
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 8]
push dword [ebp - 4]
call fcn.00428bf0
add esp, 0xc
cmp dword [ebp + 0x10], 0
je 0x412f3e
mov ecx, dword [ebp + 0x10]
mov esi, dword [ebp - 4]
mov edi, esi
lodsb al, byte [esi]
xor al, byte [ebp + 0xc]
stosb byte es:[edi], al
sub ecx, 1
jne 0x412f34
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x413595
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
push 0x14
pop eax
call fcn.004291f0
lea eax, [ebp - 4]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x4135f4
lea eax, [ebp - 0x10]
push eax
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
push 0
push 0
lea eax, [ebp - 0x14]
push 0x10
push eax
push 0
push dword [ebp - 4]
mov dword [ebp - 0x14], 1
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
je 0x4135f4
push 1
pop eax
leave
ret
xor eax, eax
leave
ret
Function at 0x41413a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 4
pop eax
call fcn.004291f0
push ebx
push esi
push edi
push 4
push 0x1000
mov eax, dword [ebp + 0xc]
inc eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 4], eax
sub eax, dword [0x7f5508]
sub ebx, dword [str.Tb:]
mov ebx, ebx
add ecx, dword [0x7f5510]
sub edx, dword [0x7f550c]
sub ecx, dword [0x7f5510]
inc edx
mov edx, edx
add ebx, dword [str.Tb:]
add eax, dword [0x7f5508]
dec edx
lea edi, [edi]
add edx, dword [0x7f550c]
lea ecx, [ecx]
sub eax, dword [0x7f5508]
sub ebx, dword [str.Tb:]
mov ebx, ebx
add ecx, dword [0x7f5510]
sub edx, dword [0x7f550c]
sub ecx, dword [0x7f5510]
inc edx
mov edx, edx
add ebx, dword [str.Tb:]
add eax, dword [0x7f5508]
dec edx
lea edi, [edi]
add edx, dword [0x7f550c]
lea ecx, [ecx]
mov ecx, dword [ebp + 0xc]
sub eax, dword [0x7f5508]
sub ebx, dword [str.Tb:]
mov ebx, ebx
add ecx, dword [0x7f5510]
sub edx, dword [0x7f550c]
sub ecx, dword [0x7f5510]
inc edx
mov edx, edx
add ebx, dword [str.Tb:]
add eax, dword [0x7f5508]
dec edx
lea edi, [edi]
add edx, dword [0x7f550c]
lea ecx, [ecx]
mov esi, dword [ebp + 8]
sub eax, dword [0x7f5508]
sub ebx, dword [str.Tb:]
mov ebx, ebx
add ecx, dword [0x7f5510]
sub edx, dword [0x7f550c]
sub ecx, dword [0x7f5510]
inc edx
mov edx, edx
add ebx, dword [str.Tb:]
add eax, dword [0x7f5508]
dec edx
lea edi, [edi]
add edx, dword [0x7f550c]
lea ecx, [ecx]
mov edi, dword [ebp - 4]
sub eax, dword [0x7f5508]
sub ebx, dword [str.Tb:]
mov ebx, ebx
add ecx, dword [0x7f5510]
sub edx, dword [0x7f550c]
sub ecx, dword [0x7f5510]
inc edx
mov edx, edx
add ebx, dword [str.Tb:]
add eax, dword [0x7f5508]
dec edx
lea edi, [edi]
add edx, dword [0x7f550c]
lea ecx, [ecx]
lodsb al, byte [esi]
sub eax, dword [0x7f5508]
sub ebx, dword [str.Tb:]
mov ebx, ebx
add ecx, dword [0x7f5510]
sub edx, dword [0x7f550c]
sub ecx, dword [0x7f5510]
inc edx
mov edx, edx
add ebx, dword [str.Tb:]
add eax, dword [0x7f5508]
dec edx
lea edi, [edi]
add edx, dword [0x7f550c]
lea ecx, [ecx]
xor al, 0xf
stosb byte es:[edi], al
sub eax, dword [0x7f5508]
sub ebx, dword [str.Tb:]
mov ebx, ebx
add ecx, dword [0x7f5510]
sub edx, dword [0x7f550c]
sub ecx, dword [0x7f5510]
inc edx
mov edx, edx
add ebx, dword [str.Tb:]
add eax, dword [0x7f5508]
dec edx
lea edi, [edi]
add edx, dword [0x7f550c]
lea ecx, [ecx]
sub ecx, 1
jne 0x414250
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x414ac1
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x130
call fcn.004291f0
push ebx
push esi
push edi
mov dword [ebp - 0x130], 0x128
sub eax, dword [0x7f5508]
sub ebx, dword [str.Tb:]
mov ebx, ebx
add ecx, dword [0x7f5510]
sub edx, dword [0x7f550c]
sub ecx, dword [0x7f5510]
inc edx
mov edx, edx
add ebx, dword [str.Tb:]
add eax, dword [0x7f5508]
dec edx
lea edi, [edi]
add edx, dword [0x7f550c]
lea ecx, [ecx]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [ebp - 8], eax
sub eax, dword [0x7f5508]
sub ebx, dword [str.Tb:]
mov ebx, ebx
add ecx, dword [0x7f5510]
sub edx, dword [0x7f550c]
sub ecx, dword [0x7f5510]
inc edx
mov edx, edx
add ebx, dword [str.Tb:]
add eax, dword [0x7f5508]
dec edx
lea edi, [edi]
add edx, dword [0x7f550c]
lea ecx, [ecx]
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
sub eax, dword [0x7f5508]
sub ebx, dword [str.Tb:]
mov ebx, ebx
add ecx, dword [0x7f5510]
sub edx, dword [0x7f550c]
sub ecx, dword [0x7f5510]
inc edx
mov edx, edx
add ebx, dword [str.Tb:]
add eax, dword [0x7f5508]
dec edx
lea edi, [edi]
add edx, dword [0x7f550c]
lea ecx, [ecx]
lea eax, [ebp - 0x130]
push eax
push esi
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x414c54
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0x128]
je 0x414c0f
lea eax, [ebp - 0x130]
push eax
push esi
call sub.KERNEL32.dll_Process32Next
mov dword [ebp - 4], eax
sub eax, dword [0x7f5508]
sub ebx, dword [str.Tb:]
mov ebx, ebx
add ecx, dword [0x7f5510]
sub edx, dword [0x7f550c]
sub ecx, dword [0x7f5510]
inc edx
mov edx, edx
add ebx, dword [str.Tb:]
add eax, dword [0x7f5508]
dec edx
lea edi, [edi]
add edx, dword [0x7f550c]
lea ecx, [ecx]
cmp dword [ebp - 4], 0
jne 0x414bb2
jmp 0x414c54
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x118]
mov dword [eax], ecx
sub eax, dword [0x7f5508]
sub ebx, dword [str.Tb:]
mov ebx, ebx
add ecx, dword [0x7f5510]
sub edx, dword [0x7f550c]
sub ecx, dword [0x7f5510]
inc edx
mov edx, edx
add ebx, dword [str.Tb:]
add eax, dword [0x7f5508]
dec edx
lea edi, [edi]
add edx, dword [0x7f550c]
lea ecx, [ecx]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub eax, dword [0x7f5508]
sub ebx, dword [str.Tb:]
mov ebx, ebx
add ecx, dword [0x7f5510]
sub edx, dword [0x7f550c]
sub ecx, dword [0x7f5510]
inc edx
mov edx, edx
add ebx, dword [str.Tb:]
add eax, dword [0x7f5508]
dec edx
lea edi, [edi]
add edx, dword [0x7f550c]
lea ecx, [ecx]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x414f42
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x130
call fcn.004291f0
push ebx
push esi
push edi
mov dword [ebp - 0x130], 0x128
sub eax, dword [0x7f5508]
sub ebx, dword [str.Tb:]
mov ebx, ebx
add ecx, dword [0x7f5510]
sub edx, dword [0x7f550c]
sub ecx, dword [0x7f5510]
inc edx
mov edx, edx
add ebx, dword [str.Tb:]
add eax, dword [0x7f5508]
dec edx
lea edi, [edi]
add edx, dword [0x7f550c]
lea ecx, [ecx]
mov esi, dword [0x802800]
sub eax, dword [0x7f5508]
sub ebx, dword [str.Tb:]
mov ebx, ebx
add ecx, dword [0x7f5510]
sub edx, dword [0x7f550c]
sub ecx, dword [0x7f5510]
inc edx
mov edx, edx
add ebx, dword [str.Tb:]
add eax, dword [0x7f5508]
dec edx
lea edi, [edi]
add edx, dword [0x7f550c]
lea ecx, [ecx]
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 4], eax
sub eax, dword [0x7f5508]
sub ebx, dword [str.Tb:]
mov ebx, ebx
add ecx, dword [0x7f5510]
sub edx, dword [0x7f550c]
sub ecx, dword [0x7f5510]
inc edx
mov edx, edx
add ebx, dword [str.Tb:]
add eax, dword [0x7f5508]
dec edx
lea edi, [edi]
add edx, dword [0x7f550c]
lea ecx, [ecx]
lea eax, [ebp - 0x130]
push eax
push dword [ebp - 4]
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x4150d4
cmp esi, dword [ebp - 0x118]
je 0x41508f
lea eax, [ebp - 0x130]
push eax
push dword [ebp - 4]
call sub.KERNEL32.dll_Process32Next
mov dword [ebp - 8], eax
sub eax, dword [0x7f5508]
sub ebx, dword [str.Tb:]
mov ebx, ebx
add ecx, dword [0x7f5510]
sub edx, dword [0x7f550c]
sub ecx, dword [0x7f5510]
inc edx
mov edx, edx
add ebx, dword [str.Tb:]
add eax, dword [0x7f5508]
dec edx
lea edi, [edi]
add edx, dword [0x7f550c]
lea ecx, [ecx]
cmp dword [ebp - 8], 0
jne 0x415033
jmp 0x4150d4
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x128]
mov dword [eax], ecx
sub eax, dword [0x7f5508]
sub ebx, dword [str.Tb:]
mov ebx, ebx
add ecx, dword [0x7f5510]
sub edx, dword [0x7f550c]
sub ecx, dword [0x7f5510]
inc edx
mov edx, edx
add ebx, dword [str.Tb:]
add eax, dword [0x7f5508]
dec edx
lea edi, [edi]
add edx, dword [0x7f550c]
lea ecx, [ecx]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub eax, dword [0x7f5508]
sub ebx, dword [str.Tb:]
mov ebx, ebx
add ecx, dword [0x7f5510]
sub edx, dword [0x7f550c]
sub ecx, dword [0x7f5510]
inc edx
mov edx, edx
add ebx, dword [str.Tb:]
add eax, dword [0x7f5508]
dec edx
lea edi, [edi]
add edx, dword [0x7f550c]
lea ecx, [ecx]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x415e44
Capabilities:
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x190
call fcn.004291f0
push ebx
push esi
push edi
sub eax, dword [0x7f5508]
sub ebx, dword [str.Tb:]
mov ebx, ebx
add ecx, dword [0x7f5510]
sub edx, dword [0x7f550c]
sub ecx, dword [0x7f5510]
inc edx
mov edx, edx
add ebx, dword [str.Tb:]
add eax, dword [0x7f5508]
dec edx
lea edi, [edi]
add edx, dword [0x7f550c]
lea ecx, [ecx]
lea eax, [ebp - 0x190]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x415ee3
sub eax, dword [0x7f5508]
sub ebx, dword [str.Tb:]
mov ebx, ebx
add ecx, dword [0x7f5510]
sub edx, dword [0x7f550c]
sub ecx, dword [0x7f5510]
inc edx
mov edx, edx
add ebx, dword [str.Tb:]
add eax, dword [0x7f5508]
dec edx
lea edi, [edi]
add edx, dword [0x7f550c]
lea ecx, [ecx]
jmp 0x415f66
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov esi, eax
sub eax, dword [0x7f5508]
sub ebx, dword [str.Tb:]
mov ebx, ebx
add ecx, dword [0x7f5510]
sub edx, dword [0x7f550c]
sub ecx, dword [0x7f5510]
inc edx
mov edx, edx
add ebx, dword [str.Tb:]
add eax, dword [0x7f5508]
dec edx
lea edi, [edi]
add edx, dword [0x7f550c]
lea ecx, [ecx]
test esi, esi
jne 0x415f6a
sub eax, dword [0x7f5508]
sub ebx, dword [str.Tb:]
mov ebx, ebx
add ecx, dword [0x7f5510]
sub edx, dword [0x7f550c]
sub ecx, dword [0x7f5510]
inc edx
mov edx, edx
add ebx, dword [str.Tb:]
add eax, dword [0x7f5508]
dec edx
lea edi, [edi]
add edx, dword [0x7f550c]
lea ecx, [ecx]
xor eax, eax
jmp 0x415fb1
sub eax, dword [0x7f5508]
sub ebx, dword [str.Tb:]
mov ebx, ebx
add ecx, dword [0x7f5510]
sub edx, dword [0x7f550c]
sub ecx, dword [0x7f5510]
inc edx
mov edx, edx
add ebx, dword [str.Tb:]
add eax, dword [0x7f5508]
dec edx
lea edi, [edi]
add edx, dword [0x7f550c]
lea ecx, [ecx]
mov eax, dword [esi + 0xc]
mov eax, dword [eax]
push dword [eax]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
pop edi
pop esi
pop ebx
leave
ret