joyce8/EMBER2024-capa huggingface dataset:
Function at 0x410c60
Capabilities:
Enumerate disk volumes
Get disk information

Disassembly:
sub esp, 0x414
mov dx, word [0x42247c]
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x212]
mov word [esp + 0x210], dx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0xa]
mov word [esp + 8], dx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 8]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstVolumeW]
cmp eax, 0xffffffff
mov dword [esp + 4], eax
jne 0x410cd2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.FindFirstVolumeW_failed_with_error_code__d_n
call dword [sym.imp.MSVCRT.dll_wprintf]
add esp, 8
pop edi
add esp, 0x414
ret
push ebx
push ebp
lea ecx, [esp + 0x10]
push esi
push ecx
call dword [sym.imp.MSVCRT.dll_wcslen]
mov edi, dword [sym.imp.MSVCRT.dll_wprintf]
add esp, 4
mov ecx, 0x5c
dec eax
cmp word [esp + 0x14], cx
jne 0x410de1
mov ebx, dword [esp + 0x42c]
mov ebp, dword [esp + 0x428]
jmp 0x410d0f
mov ecx, 0x5c
cmp word [esp + 0x16], cx
jne 0x410de1
cmp word [esp + 0x18], 0x3f
jne 0x410de1
cmp word [esp + 0x1a], cx
jne 0x410de1
cmp word [esp + eax*2 + 0x14], cx
lea esi, [esp + eax*2 + 0x14]
jne 0x410de1
lea edx, [esp + 0x21c]
push 0x104
lea eax, [esp + 0x20]
push edx
push eax
mov word [esi], 0
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
mov word [esi], 0x5c
je 0x410e06
lea ecx, [esp + 0x21c]
push ecx
push str._nFound_a_device:_n__s
call edi
lea edx, [esp + 0x1c]
push edx
push str._nVolume_name:__s
call edi
push str._nPaths:
call edi
lea eax, [esp + 0x28]
push ebx
push eax
call fcn.00410b90
lea ecx, [esp + 0x238]
push ebp
push ecx
call dword [sym.imp.MSVCRT.dll_wcscmp]
add esp, 0x24
test eax, eax
je 0x410df0
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x14]
push 0x104
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextVolumeW]
test eax, eax
je 0x410e14
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 4
dec eax
cmp word [esp + 0x14], 0x5c
je 0x410d0a
lea edx, [esp + 0x14]
push edx
push str.FindFirstVolumeW_FindNextVolumeW_returned_a_bad_path:__s_n
call edi
add esp, 8
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_FindVolumeClose]
pop esi
pop ebp
pop ebx
pop edi
add esp, 0x414
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.QueryDosDeviceW_failed_with_error_code__d_n
jmp 0x410deb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x410df0
push eax
push str.FindNextVolumeW_failed_with_error_code__d_n
jmp 0x410deb
Function at 0x4114f0
Capabilities:
Get common file path
Query or enumerate registry value

Disassembly:
sub esp, 0x318
push ebx
push ebp
push esi
mov ebp, ecx
push edi
xor ebx, ebx
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x1d]
mov byte [esp + 0x1c], bl
rep stosd dword es:[edi], eax
mov ecx, dword [0x42062c]
mov edx, dword [0x420630]
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [str.config_file]
mov dword [esp + 0x124], ecx
mov dword [esp + 0x120], eax
mov ecx, 0x3e
xor eax, eax
lea edi, [esp + 0x12c]
mov dword [esp + 0x128], edx
mov byte [esp + 0x224], bl
rep stosd dword es:[edi], eax
mov ecx, 0x40
lea edi, [esp + 0x225]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [0x422b20]
mov dword [esp + 0x10], ebx
cmp eax, 6
mov dword [esp + 0x14], 0x104
push ebx
jl 0x41157b
push 0x2e
jmp 0x41157d
push 0x23
lea eax, [esp + 0x24]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
mov edi, str.Authenticate_ClientIcgAuthClient.conf
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x1c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
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]
lea eax, [esp + 0x10]
mov ecx, edx
push eax
push 0x20019
and ecx, 3
push ebx
push str.SOFTWARENscAuth
push getsockname
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x41161b
lea edi, [esp + 0x1c]
or ecx, 0xffffffff
xor eax, eax
lea ebx, [ebp + 0x234]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x4205dc
mov edx, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.00418650
push ebx
call fcn.00418650
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x318
ret
lea eax, [esp + 0x14]
lea ecx, [esp + 0x224]
push eax
lea edx, [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x18]
push edx
lea eax, [esp + 0x12c]
push ebx
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x411658
push 0x4205dc
call fcn.00418650
add ebp, 0x234
push ebp
jmp 0x41168d
lea edi, [esp + 0x224]
or ecx, 0xffffffff
xor eax, eax
lea ebx, [ebp + 0x234]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x4205dc
mov edx, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.00418650
push ebx
call fcn.00418650
mov eax, dword [esp + 0x18]
add esp, 8
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x318
ret
Function at 0x4123c0
Capabilities:
Acquire debug privileges

Disassembly:
sub esp, 0x14
lea eax, [esp]
push esi
push eax
push 0x20
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x412451
lea ecx, [esp + 0xc]
mov dword [esp + 8], 1
push ecx
push str.SeDebugPrivilege
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
jne 0x412408
push str.DEBUG::_Cant_lookup_privilege_value.
call fcn.0040b9a0
add esp, 4
mov eax, dword [esp + 4]
push 0
push 0
lea edx, [esp + 0x10]
push 0x10
push edx
push 0
push eax
mov dword [esp + 0x2c], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x412439
push str.DEBUG::_Cant_adjust_privilege_value.
call fcn.0040b9a0
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 4]
mov esi, eax
neg esi
sbb esi, esi
push ecx
inc esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
add esp, 0x14
ret

Function at 0x412460
Capabilities:
Check os version

Disassembly:
sub esp, 0xbc
push ebp
lea eax, [esp + 0x24]
push esi
mov ebp, ecx
push eax
xor esi, esi
mov dword [esp + 0x2c], 0x9c
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x41257b
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x2c]
push ebx
mov ebx, dword [esp + 0x34]
dec eax
push edi
je 0x41251e
dec eax
jne 0x412535
mov eax, edx
sub eax, 4
je 0x412517
dec eax
je 0x4124f5
dec eax
jne 0x412535
mov eax, ebx
sub eax, esi
je 0x4124de
dec eax
je 0x4124c7
dec eax
jne 0x412535
mov esi, 8
jmp 0x412535
mov cl, byte [esp + 0xca]
dec cl
neg cl
sbb ecx, ecx
and ecx, 3
add ecx, 7
mov esi, ecx
jmp 0x412535
mov al, byte [esp + 0xca]
dec al
neg al
sbb eax, eax
and eax, 3
add eax, 6
mov esi, eax
jmp 0x412535
mov eax, ebx
sub eax, 0
je 0x412510
dec eax
je 0x412509
dec eax
jne 0x412535
mov esi, 5
jmp 0x412535
mov esi, 4
jmp 0x412535
mov esi, 3
jmp 0x412535
mov esi, 2
jmp 0x412535
test edx, edx
je 0x412533
cmp edx, 0xa
je 0x41252c
cmp edx, 0x5a
jne 0x412535
mov esi, 1
jmp 0x412535
xor esi, esi
mov ecx, 7
xor eax, eax
lea edi, [esp + 0x11]
mov byte [esp + 0x10], 0
rep stosd dword es:[edi], eax
push ebx
push edx
stosw word es:[edi], ax
push esi
lea ecx, [esp + 0x1c]
push 0x42081c
push ecx
stosb byte es:[edi], al
call dword [sym.imp.MSVCRT.dll_sprintf]
lea edx, [esp + 0x24]
push edx
call fcn.00418650
add esp, 0x18
mov dword [ebp + 0x630], esi
pop edi
pop ebx
pop esi
pop ebp
add esp, 0xbc
ret
push 0x41fb70
call fcn.0040b9a0
add esp, 4
pop esi
pop ebp
add esp, 0xbc
ret
Function at 0x412620
Capabilities:
Check mutex on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x40
push esi
push eax
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, eax
test esi, esi
jne 0x41267a
push edi
mov ecx, 0xf
lea edi, [esp + 9]
mov byte [esp + 8], al
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [esp + 0xc]
push str.ERROR:_Create_Mutex_Error:__d
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
lea edx, [esp + 0x14]
push edx
call fcn.00418650
add esp, 0x10
xor eax, eax
pop edi
pop esi
add esp, 0x40
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 0xb7
neg eax
sbb eax, eax
and eax, esi
pop esi
add esp, 0x40
ret 4
Function at 0x4141c0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Set socket configuration

Disassembly:
sub esp, 0x14
mov ax, word [0x4225f8]
push ebx
push esi
push edi
mov edi, ecx
push eax
mov word [esp + 0x14], 2
call dword [sym.imp.WS2_32.dll_htons]
push 0x4225fc
mov word [esp + 0x16], ax
call dword [sym.imp.WS2_32.dll_inet_addr]
push 6
push 1
push 2
mov dword [esp + 0x20], eax
call dword [sym.imp.WS2_32.dll_socket]
mov ebx, dword [sym.imp.WS2_32.dll_setsockopt]
lea ecx, [esp + 0xc]
push 4
push ecx
mov esi, eax
push 0x1005
push 0xffff
push esi
mov dword [esp + 0x20], 0xbb8
call ebx
lea edx, [esp + 0xc]
push 4
push edx
push 0x1006
push 0xffff
push esi
call ebx
lea eax, [esp + 0x10]
push 0x10
push eax
push esi
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
push esi
jne 0x414342
call fcn.0040a8a0
add eax, 6
add esp, 4
cmp eax, 7
ja case.0x41425f.6
jmp dword [eax*4 + 0x414350]
test edi, edi
mov dword [0x422a30], 0
jne 0x414278
xor eax, eax
jmp 0x41427b
mov eax, dword [edi + 0x20]
push 0x28
push 0
push 0x531
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
mov eax, dword [edi + 0x11a4]
test eax, eax
jne case.0x41425f.6
push 0
lea ecx, [edi + 0x69c]
call sub.MFC42.DLL_CWnd::EnableWindow
mov eax, dword [0x4225b8]
test eax, eax
je 0x4142c3
push 0x40
push 0x42018c
push 0x420ef8
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
mov ebx, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0
call ebx
cdq
sub eax, edx
push 1
mov esi, eax
sar esi, 1
call ebx
cdq
sub eax, edx
sar eax, 1
test edi, edi
je 0x4142e4
mov edi, dword [edi + 0x20]
push 1
push 0
push 0
push eax
push esi
push edi
call dword [sym.imp.USER32.dll_MoveWindow]
mov edi, 0x42237c
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, 0x422a38
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x42237c
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, 0x422a58
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebx
add esp, 0x14
ret
call dword [sym.imp.WS2_32.dll_closesocket]
pop edi
pop esi
pop ebx
add esp, 0x14
ret
Function at 0x415ee0
Capabilities:
Create udp socket
Set socket configuration

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
push edi
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0x15]
mov byte [esp + 0x14], 0
rep stosd dword es:[edi], eax
mov ebp, dword [sym.imp.MSVCRT.dll_sprintf]
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esp + 0x10], 0
mov esi, 0x2710
push 0
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
mov dword [0x456de8], eax
jne 0x415f60
call edi
push eax
lea eax, [esp + 0x18]
push str.ERROR::_Init_udp_socket_error___d
push eax
call ebp
lea ecx, [esp + 0x20]
push ecx
call fcn.0040b9a0
add esp, 0x10
push esi
call ebx
cmp esi, 0x927c0
jae 0x415f1b
add esi, 0x2710
jmp 0x415f1b
mov ecx, dword [0x4225cc]
push 4
lea ecx, [ecx + ecx*4]
lea ecx, [ecx + ecx*4]
lea ecx, [ecx + ecx*4]
lea edx, [ecx + ecx*4]
lea ecx, [esp + 0x14]
push ecx
push 0x1006
shl edx, 4
push 0xffff
push eax
mov dword [esp + 0x24], edx
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x415fb1
call edi
push eax
lea edx, [esp + 0x18]
push str.ERROR::_setsockopt_errcode__d
push edx
call ebp
lea eax, [esp + 0x20]
push eax
call fcn.0040b9a0
add esp, 0x10
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret

Function at 0x415fc0
Capabilities:
Create udp socket
Set socket configuration

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
push edi
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0x15]
mov byte [esp + 0x14], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [0x456de8]
mov dword [esp + 0x10], 0
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov ebp, dword [esp + 0x58]
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, dword [sym.imp.MSVCRT.dll_sprintf]
mov ebx, dword [sym.imp.USER32.dll_PostMessageA]
push 0
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
mov dword [0x456de8], eax
jne 0x416051
call esi
push eax
lea ecx, [esp + 0x18]
push str.ERROR::_Init_udp_socket_error___d
push ecx
call edi
lea edx, [esp + 0x20]
push edx
call fcn.0040b9a0
add esp, 0x10
push 0
push 0
push 0x533
push ebp
call ebx
push 0x2710
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x416006
mov ecx, dword [0x4225cc]
lea edx, [esp + 0x10]
push 4
push edx
lea ecx, [ecx + ecx*4]
push 0x1006
push 0xffff
push eax
lea ecx, [ecx + ecx*4]
lea ecx, [ecx + ecx*4]
lea ecx, [ecx + ecx*4]
shl ecx, 4
mov dword [esp + 0x24], ecx
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x4160a2
call esi
push eax
lea eax, [esp + 0x18]
push str.ERROR::_setsockopt_errcode__d
push eax
call edi
lea ecx, [esp + 0x20]
push ecx
call fcn.0040b9a0
add esp, 0x10
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret
Function at 0x4170e0
Capabilities:
Create thread
Inject dll
Inject thread

Disassembly:
sub esp, 0x88
mov eax, dword [esp + 0x90]
push ebx
push ebp
push esi
push edi
push eax
mov dword [esp + 0x14], 1
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [eax + eax + 2]
push 4
mov ecx, dword [esp + 0xa0]
push 0x1000
push esi
push 0
push ecx
mov dword [esp + 0x28], 0
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov ebp, eax
mov ecx, 0xe
xor eax, eax
lea edi, [esp + 0x1d]
mov byte [esp + 0x1c], 0
mov ebx, dword [sym.imp.MSVCRT.dll_sprintf]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push ebp
lea edx, [esp + 0x20]
push str.DEBUG:
push edx
stosb byte es:[edi], al
call ebx
add esp, 0xc
test ebp, ebp
je 0x4172f3
mov eax, dword [esp + 0xa0]
mov ecx, dword [esp + 0x9c]
push 0
push esi
push eax
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x4171f2
mov ecx, 0xf
lea edi, [esp + 0x59]
mov byte [esp + 0x58], al
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea edx, [esp + 0x5c]
push 0x421f3c
push edx
call ebx
lea eax, [esp + 0x64]
push eax
call fcn.00418650
add esp, 0x10
mov dword [esp + 0x10], 0
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x9c]
push 0x8000
push 0
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
test esi, esi
je 0x4171d6
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x4171e1
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x88
ret 8
push str.Kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov esi, eax
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0x1c]
rep stosd dword es:[edi], eax
push esi
lea ecx, [esp + 0x20]
push str.DEBUG:_
push ecx
mov dword [esp + 0x24], esi
call ebx
lea edx, [esp + 0x28]
push edx
call fcn.00418650
add esp, 0x10
test esi, esi
je 0x4171a9
push str.LoadLibraryW
push str.Kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0x1c]
rep stosd dword es:[edi], eax
push esi
lea eax, [esp + 0x20]
push 0x421efc
push eax
call ebx
lea ecx, [esp + 0x28]
push ecx
call fcn.00418650
xor edi, edi
add esp, 0x10
cmp esi, edi
jne 0x41728e
push 0x421edc
call fcn.00418650
add esp, 4
mov dword [esp + 0x10], edi
jmp 0x4171b1
mov eax, dword [esp + 0x18]
cmp esi, eax
jb 0x4172dd
add eax, 0x8ffff
cmp esi, eax
ja 0x4172dd
mov edx, dword [esp + 0x9c]
push edi
push edi
push ebp
push esi
push edi
push edi
push edx
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov esi, eax
cmp esi, edi
jne 0x4172cf
push 0x421ebc
call fcn.00418650
add esp, 4
mov dword [esp + 0x10], edi
jmp 0x4171b5
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x4171b5
push 0x421ea8
call fcn.00418650
add esp, 4
mov dword [esp + 0x10], edi
jmp 0x4171b1
push 0x421e8c
call fcn.00418650
mov edi, dword [esp + 0xa0]
add esp, 4
mov dword [esp + 0x10], 0
jmp 0x4171d6
Function at 0x4183a0
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x128
push esi
push 0
push 2
mov dword [esp + 0xc], 0x128
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
jne 0x4183d6
push str.CreateToolhelp32Snapshot
call fcn.00418650
add esp, 4
xor eax, eax
pop esi
add esp, 0x128
ret
lea eax, [esp + 4]
push edi
push eax
push esi
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x418402
mov edi, dword [esp + 0x134]
cmp dword [esp + 0x10], edi
je 0x418402
lea ecx, [esp + 8]
push ecx
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x4183ed
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x1c]
pop edi
pop esi
add esp, 0x128
ret
Function at 0x40d1b0
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x1b
mov dword [esp + 4], 1
lea ebx, [esp + 0x24]
mov dword [esp], str.Mingw_w64_runtime_failure:_n
add eax, 0x40
mov dword [esp + 0xc], eax
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sym._vfprintf
call sym._abort
jmp dbg.mark_section_writable

Function at 0x40d210
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
sub esp, 0x30
mov esi, dword [0x492054]
test esi, esi
jle 0x40d2fd
mov edi, dword [0x492058]
xor ebx, ebx
lea edx, [edi + 4]
nop
mov ecx, dword [edx]
cmp ecx, eax
ja 0x40d244
mov edi, dword [edx + 4]
add ecx, dword [edi + 8]
cmp eax, ecx
jb 0x40d2f6
add ebx, 1
add edx, 0xc
cmp ebx, esi
jne 0x40d230
mov dword [esp], eax
mov ebx, eax
call dbg.__mingw_GetSectionForAddress
test eax, eax
mov edi, eax
je 0x40d33a
lea ebx, [esi + esi*2]
mov esi, dword [0x492058]
shl ebx, 2
add esi, ebx
mov dword [esi + 8], eax
mov dword [esi], 0
call dbg._GetPEImageBase
add eax, dword [edi + 0xc]
mov dword [esi + 4], eax
lea eax, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov eax, dword [0x492058]
mov eax, dword [eax + ebx + 4]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x40d31a
mov eax, dword [esp + 0x28]
lea edx, [eax - 4]
and edx, 0xfffffffb
je 0x40d2ef
sub eax, 0x40
and eax, 0xffffffbf
je 0x40d2ef
mov eax, dword [esp + 0x20]
add ebx, dword [0x492058]
mov dword [esp + 8], 0x40
mov dword [esp + 4], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0xc], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
je 0x40d304
add dword [0x492054], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
xor esi, esi
jmp 0x40d24e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call dbg.__report_error
mov eax, dword [0x492058]
mov eax, dword [eax + ebx + 4]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call dbg.__report_error
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call dbg.__report_error
lea esi, [esi]
Function at 0x40d800
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x492408
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x492400]
sub esp, 4
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
test ebx, ebx
je 0x40d855
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x40d84e
test esi, esi
je 0x40d84e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x40d830
mov dword [esp], 0x492408
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x40da70
Capabilities:
Enumerate pe sections

Disassembly:
push esi
push ebx
mov edx, dword [esp + 0xc]
mov ebx, dword [esp + 0x10]
add edx, dword [edx + 0x3c]
movzx esi, word [edx + 6]
movzx eax, word [edx + 0x14]
test esi, esi
lea eax, [edx + eax + 0x18]
je 0x40daa8
xor ecx, ecx
nop
mov edx, dword [eax + 0xc]
cmp edx, ebx
ja 0x40da9e
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x40daaa
add ecx, 1
add eax, 0x28
cmp ecx, esi
jne 0x40da90
xor eax, eax
pop ebx
pop esi
ret
Function at 0x40f150
Capabilities:
Check mutex on windows
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x2c
mov ebx, dword [ebp + 8]
mov dword [esp], ebx
call sym._strlen
mov esi, eax
lea eax, [eax + 0x41]
and eax, 0xfffffff0
call fcn.0040dd80
mov edx, 0x326d
sub esp, eax
lea eax, [esp + 0x1b]
mov dword [esp + 8], esi
mov dword [esp + 4], ebx
lea edi, [esp + 0xc]
mov word [esp + 0x18], dx
mov dword [esp + 0xc], 0x2d636367
mov dword [esp], eax
mov dword [esp + 0x10], 0x656d6873
mov dword [esp + 0x14], 0x64742d6d
mov byte [esp + 0x1a], 0x2d
call sym._memcpy
lea eax, [esi + 0x10]
lea edx, [edi + eax]
mov dword [ebp - 0x20], eax
mov dword [edx], 0x61616161
mov dword [edx + 4], 0x61616161
mov dword [edx + 8], 0x61616161
mov dword [edx + 0xc], 0x61616161
mov dword [edx + 0x10], 0x61616161
mov dword [edx + 0x14], 0x61616161
mov dword [edx + 0x18], 0x61616161
mov dword [edx + 0x1c], 0x61616161
mov dword [ebp - 0x24], edx
mov byte [esp + esi + 0x3c], 0
mov byte [esp + esi + 0x1b], 0
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
sub esp, 0xc
mov byte [edi + esi + 0xf], 0x2d
mov dword [ebp - 0x1c], eax
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
sub esp, 8
test eax, eax
mov edx, dword [ebp - 0x24]
je 0x40f23f
int3
mov dword [ebp - 0x24], edx
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_FindAtomA]
sub esp, 4
test ax, ax
mov edx, dword [ebp - 0x24]
jne 0x40f2e3
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x24], edx
mov dword [esp], eax
call sym._malloc
mov edx, dword [ebp - 0x24]
mov ebx, eax
mov eax, 0x20
bt ebx, eax
jae 0x40f27a
mov byte [edx], 0x41
add edx, 1
sub eax, 1
jne 0x40f272
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_AddAtomA]
sub esp, 4
test ax, ax
je 0x40f2e0
lea ecx, [esi + 0x31]
mov esi, dword [ebp - 0x20]
movzx eax, ax
mov edx, edi
mov dword [esp], esi
call dbg.get_ptr_from_atom
cmp eax, ebx
mov esi, eax
je 0x40f2fa
mov dword [esp], ebx
call sym._free
mov edi, dword [ebp - 0x1c]
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
sub esp, 4
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
int3
lea ecx, [esi + 0x31]
mov esi, dword [ebp - 0x20]
movzx eax, ax
mov edx, edi
mov dword [esp], esi
call dbg.get_ptr_from_atom
mov esi, eax
jmp 0x40f2b4
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], 0
mov dword [esp], ebx
mov dword [esp + 8], eax
call sym._memset
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x40f2b4
mov dword [esp], ebx
call dword [ebp + 0x10]
jmp 0x40f2b4