joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40ea30
Capabilities:
Read file on windows

Disassembly:
push ecx
push esi
mov esi, ecx
mov eax, dword [esi + 0x10]
push edi
xor edi, edi
mov dword [esp + 8], edi
cmp eax, 0xffffffff
je 0x40ea7a
mov edx, dword [esi + 0x14]
push edi
lea ecx, [esp + 0xc]
push ecx
mov ecx, dword [esi + 0x18]
push edx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 8]
cmp eax, edi
jbe 0x40ea70
mov edx, dword [esi + 0x18]
shr eax, 1
mov dword [esi + 8], edx
mov dword [esi + 4], eax
mov edi, 1
mov eax, dword [esi + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ecx
ret

Function at 0x40eaa0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x10
mov eax, dword [0x431114]
xor eax, esp
mov dword [esp + 0xc], eax
push esi
push edi
mov edi, dword [esp + 0x1c]
push str.IsIniUnicodeA_n
call fcn.0040e180
add esp, 4
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40eb0b
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.IsIniUnicodeA___File_Open_failed____ld____s__n
call fcn.0040e180
add esp, 0xc
pop edi
xor al, al
pop esi
mov ecx, dword [esp + 0xc]
xor ecx, esp
call fcn.004164fa
add esp, 0x10
ret 4
push 0
lea eax, [esp + 0xc]
push eax
push 2
lea ecx, [esp + 0x18]
push ecx
push esi
mov dword [esp + 0x1c], 0
mov byte [esp + 0x20], 0
mov byte [esp + 0x21], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 0xfd
cmp byte [esp + 0xc], al
jbe 0x40eaf6
cmp byte [esp + 0xd], al
jbe 0x40eaf6
mov ecx, dword [esp + 0x14]
pop edi
pop esi
xor ecx, esp
mov al, 1
call fcn.004164fa
add esp, 0x10
ret 4
Function at 0x4114d0
Capabilities:
Access peb ldr_data
Get ntdll base address
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x426ca9
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x431114]
xor eax, esp
mov dword [esp + 0x10], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x431114]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x38]
mov esi, ecx
lea ecx, [esi + 0x44344]
mov dword [esp + 0x18], esi
call fcn.0040edf0
xor ebx, ebx
push 0x934
mov dword [esp + 0x34], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x44030], ebx
mov byte [esi + 0x44340], bl
mov dword [esi], ebx
call fcn.004160af
add esp, 4
mov dword [esp + 0x14], eax
mov byte [esp + 0x30], 1
cmp eax, ebx
je 0x41155a
mov ecx, eax
call fcn.004139a0
jmp 0x41155c
xor eax, eax
mov ecx, dword [esp + 0x40]
mov dword [esi + 0x20], eax
mov al, byte [eax + 5]
mov byte [esi + 0x24], al
mov eax, dword [esp + 0x3c]
mov byte [esp + 0x30], bl
mov dword [esi + 0x28], eax
cmp ecx, ebx
je 0x41157a
mov eax, ecx
push ebp
mov ecx, esi
mov dword [esi + 0x2c], eax
call fcn.0040e910
mov eax, dword [esi + 0x10]
mov byte [esi + 0x1c], bl
cmp eax, 0xffffffff
je 0x4115cf
push ebx
lea ecx, [esp + 0x18]
push ecx
push 2
lea edx, [esp + 0x28]
push edx
push eax
mov dword [esp + 0x28], ebx
mov byte [esp + 0x30], bl
mov byte [esp + 0x31], bl
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov al, 0xfd
cmp byte [esp + 0x1c], al
jbe 0x4115c2
cmp byte [esp + 0x1d], al
jbe 0x4115c2
mov byte [esi + 0x1c], 1
mov eax, dword [esi + 0x10]
push ebx
push ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, esi
cmp byte [esi + 0x1c], bl
je 0x4115dd
call fcn.0040ea30
jmp 0x4115e2
call fcn.0040e9e0
push ebx
lea edi, [esi + 0x44138]
xor ecx, ecx
push edi
mov word [edi], cx
mov ecx, dword [esi + 0x20]
push ebp
mov byte [esi + 0x44034], bl
call fcn.00412bb0
cmp word [edi], bx
jne 0x41161f
mov eax, 0x42a9e0
sub edi, eax
lea ebx, [ebx]
movzx ecx, word [eax]
mov word [edi + eax], cx
add eax, 2
cmp cx, bx
jne 0x411610
mov ecx, esi
call fcn.00410cb0
mov edx, dword [esi + 0x44348]
push edx
push 0x42a9c0
call fcn.0040e270
add esp, 8
mov ecx, esi
call fcn.00411790
mov eax, esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.004164fa
add esp, 0x20
ret 0xc
Function at 0x412450
Capabilities:
Create directory

Disassembly:
sub esp, 0x41c
mov eax, dword [0x431114]
xor eax, esp
mov dword [esp + 0x418], eax
mov eax, dword [esp + 0x424]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x420]
lea edx, [esp + 8]
sub edx, eax
lea esp, [esp]
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x412480
push ebx
push ebp
push esi
push edi
push 2
mov byte [esp + 0x17], cl
lea ecx, [esp + 0x1c]
push 0x42aad8
push ecx
xor bl, bl
call fcn.0041936f
add esp, 0xc
test eax, eax
jne 0x4124b3
mov bl, 1
lea edx, [esp + 0x18]
push 0x5c
push edx
call fcn.0041780e
mov esi, eax
add esp, 8
test esi, esi
je 0x412596
mov ebp, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4124e0
xor eax, eax
mov word [esi], ax
lea eax, [esp + 0x18]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4124f0
sub eax, edx
sar eax, 1
cmp eax, 2
jbe case.0x41252c.161
mov ecx, dword [esp + 0x14]
push ecx
lea edx, [esp + 0x1c]
push edx
call ebp
test eax, eax
jne case.0x41252c.161
call edi
lea ecx, [eax - 5]
cmp ecx, 0xb2
ja case.0x41252c.6
movzx ecx, byte [ecx + 0x4125d8]
jmp dword [ecx*4 + 0x4125c8]
lea edx, [esp + 0x18]
push 0x5c
push edx
call fcn.0041780e
add esp, 8
test eax, eax
jne 0x4125c4
jmp case.0x41252c.161
test bl, bl
je 0x4125c4
mov eax, 0x5c
mov word [esi], ax
add esi, 2
cmp word [esi], 0
je 0x412562
mov byte [esp + 0x13], 1
push 0x5c
push esi
call fcn.0041780e
mov esi, eax
add esp, 8
test esi, esi
jne 0x4124e0
cmp byte [esp + 0x13], al
je 0x412596
mov ecx, dword [esp + 0x14]
push ecx
lea edx, [esp + 0x1c]
push edx
call ebp
test eax, eax
jne 0x412596
call edi
cmp eax, 0xb7
jne 0x4125c4
mov eax, 1
mov ecx, dword [esp + 0x428]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004164fa
add esp, 0x41c
ret 8
push eax
push str.KXAPI::CreateDirectory___failed__ld_n
call fcn.0040e180
add esp, 8
xor eax, eax
jmp 0x41259b

Function at 0x4128c0
Capabilities:
Check if file exists
Delete file
Move file
Set file attributes

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
push esi
push str.KXAPI::DeleteFile_____s__n
mov ebx, ecx
call fcn.0040e270
add esp, 8
push 0x80
push esi
mov edi, 1
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x41296a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x412913
push str.KXAPI::DeleteFile___ERROR_FILE_NOT_FOUND_n
call fcn.0040e180
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebx
ret 4
cmp eax, 3
jne 0x41292d
push str.KXAPI::DeleteFile___Can_not_find_the_file_path._n
call fcn.0040e180
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebx
ret 4
cmp byte [ebx + 5], 0
je 0x41294d
push str.WIN9X___file_is_in_use__set_the_flag_to_delete_it_when_system_reboot_n
call fcn.0040e180
add esp, 4
mov edi, 2
mov eax, edi
pop edi
pop esi
pop ebx
ret 4
push str.WINNT___file_is_in_use__set_the_flag_to_delete_it_when_system_reboot_n
call fcn.0040e180
add esp, 4
push 4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov edi, 2
mov eax, edi
pop edi
pop esi
pop ebx
ret 4
Function at 0x412c90
Capabilities:
Get common file path

Disassembly:
sub esp, 0x214
mov eax, dword [0x431114]
xor eax, esp
mov dword [esp + 0x210], eax
push esi
mov esi, dword [esp + 0x21c]
push edi
lea ecx, [esp + 0xc]
push ecx
xor eax, eax
push 0x23
push eax
xor edi, edi
mov word [esp + 0x1c], ax
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x412d04
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x10]
push edx
push eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
jne 0x412d04
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov edx, dword [eax]
mov edx, dword [edx + 0x14]
push ecx
push eax
call edx
mov eax, dword [esp + 8]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
cmp word [esp + 0x10], di
je 0x412d47
test esi, esi
je 0x412d2f
lea eax, [esp + 0x10]
mov edx, esi
mov ecx, eax
sub edx, ecx
lea esp, [esp]
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x412d20
lea eax, [esp + 0x10]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x412d36
sub eax, edx
sar eax, 1
jmp 0x412d49
mov eax, edi
mov ecx, dword [esp + 0x218]
pop edi
pop esi
xor ecx, esp
call fcn.004164fa
add esp, 0x214
ret 4
Function at 0x4139f0
Capabilities:
Start service

Disassembly:
push ecx
push edi
mov edi, dword [esp + 0xc]
mov dword [esp + 4], 0
test edi, edi
je 0x413b15
cmp word [edi], 0
je 0x413b15
mov ecx, dword [esp + 0x10]
push esi
lea eax, [esp + 8]
push eax
push ecx
push edi
call dword [sym.imp.ADVAPI32.dll_RegConnectRegistryW]
mov esi, eax
test esi, esi
je 0x413b0d
push esi
push edi
push str.RegConnectRegistry_failed_____s___ld__n
call fcn.0040e270
xor eax, eax
add esp, 0xc
mov dword [esp + 8], eax
cmp esi, 0x35
jne 0x413b11
push ebx
push str.__Try_to_start_Remote_Registry_service_n
call fcn.0040e270
add esp, 4
push 0xf003f
push 0
push edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, eax
test ebx, ebx
je 0x413ac9
push ebp
push 0xf01ff
push str.RemoteRegistry
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebp, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
test esi, esi
je 0x413aaf
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
je 0x413aa6
push str.StartService___Control_service_success_n
call fcn.0040e180
add esp, 4
push esi
call ebp
push ebx
call ebp
pop ebp
jmp 0x413add
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.StartService___OpenService_error___d_n
call fcn.0040e180
add esp, 8
push ebx
call ebp
pop ebp
jmp 0x413add
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.StartService___OpenSCManager_error___d_n
call fcn.0040e180
add esp, 8
push 0x1388
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esp + 0x18]
lea edx, [esp + 0xc]
push edx
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegConnectRegistryW]
pop ebx
test eax, eax
je 0x413b0d
push eax
push edi
push str.RegConnectRegistry_failed_____s___ld__n
call fcn.0040e270
add esp, 0xc
mov eax, dword [esp + 8]
pop esi
pop edi
pop ecx
ret
mov eax, dword [esp + 0x10]
pop edi
pop ecx
ret
Function at 0x413b20
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
sub esp, 0x10
push esi
push eax
push ecx
call fcn.004139f0
mov esi, eax
add esp, 8
test esi, esi
jne 0x413b45
mov eax, dword [esp + 0x28]
pop esi
add esp, 0x10
ret
mov edx, dword [esp + 0x28]
mov dword [esp + 8], edx
call fcn.004139b0
test eax, eax
mov eax, dword [esp + 0x2c]
je 0x413b66
test eax, 0x200
jne 0x413b66
or eax, 0x100
push edi
mov edi, dword [esp + 0x24]
lea ecx, [esp + 8]
push ecx
push eax
push 0
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x413bd0
mov esi, dword [esp + 0x28]
lea edx, [esp + 0x10]
push edx
mov edx, dword [esp + 0xc]
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x1c]
push ecx
push 0
push esi
push edx
mov dword [esp + 0x28], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x413bbb
push esi
push eax
push str.GetRegValueLong___Get_value_error____ld_for__s_n
call fcn.0040e270
add esp, 0xc
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0xc]
pop edi
pop esi
add esp, 0x10
ret
push edi
push eax
push str.GetRegValueLong___Open_registry_error____ld_for__s_n
call fcn.0040e270
mov eax, dword [esp + 0x18]
add esp, 0xc
pop edi
pop esi
add esp, 0x10
ret

Function at 0x413bf0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x420
mov eax, dword [0x431114]
xor eax, esp
mov dword [esp + 0x41c], eax
mov ecx, dword [esp + 0x428]
mov eax, dword [esp + 0x424]
push ebx
mov ebx, dword [esp + 0x434]
push ebp
mov ebp, dword [esp + 0x43c]
push esi
push edi
mov edi, dword [esp + 0x43c]
push ecx
push eax
call fcn.004139f0
mov esi, eax
add esp, 8
test esi, esi
je 0x413cfe
mov dword [esp + 0x10], 1
call fcn.004139b0
test eax, eax
mov eax, dword [esp + 0x448]
je 0x413c63
test eax, 0x200
jne 0x413c63
or eax, 0x100
lea ecx, [esp + 0x14]
push ecx
push eax
push 0
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
xor esi, esi
cmp eax, esi
jne 0x413ce7
lea edx, [esp + 0x10]
push edx
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x20]
push ecx
push esi
push ebx
push edx
mov dword [esp + 0x28], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, esi
je 0x413cc7
push ebx
push eax
xor ecx, ecx
push str.GetRegValueString___Get_value_error____ld_for__s_n
mov word [ebp], cx
mov dword [esp + 0x1c], esi
call fcn.0040e270
mov eax, dword [esp + 0x20]
add esp, 0xc
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x413cfa
lea edx, [esp + 0x1c]
push edx
push 0x104
push ebp
call fcn.00417994
mov eax, dword [esp + 0x20]
add esp, 0xc
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x413cfa
push edi
push eax
push str.GetRegValueString___Open_registry_error____ld_for__s_n
mov dword [esp + 0x1c], esi
call fcn.0040e270
add esp, 0xc
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x42c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004164fa
add esp, 0x420
ret
Function at 0x413da0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
push ebp
push esi
push edi
mov edi, dword [esp + 0x10]
push eax
push ecx
push edx
push edi
xor ebp, ebp
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
mov esi, eax
test esi, esi
je 0x413e16
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
cmp dword [esp + 0x20], ebp
je 0x413e0f
cmp dword [esp + 0x24], ebx
jb 0x413e0f
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x413e0d
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x413e06
push ebx
push eax
mov eax, dword [esp + 0x28]
push eax
call fcn.00416d60
add esp, 0xc
mov ebp, ebx
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, ebp
pop ebx
pop edi
pop esi
pop ebp
ret 0x18
pop edi
pop esi
mov eax, ebp
pop ebp
ret 0x18
Function at 0x414ab0
Capabilities:
Get geographical location

Disassembly:
sub esp, 0x20c
mov eax, dword [0x431114]
xor eax, esp
mov dword [esp + 0x208], eax
push ebx
mov ebx, dword [esp + 0x214]
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
push edi
mov edi, ebx
and edi, 1
mov ebp, ecx
mov byte [esp + 0x10], 0
je 0x414af3
push 0xa
lea eax, [esp + 0x14]
push eax
push 9
push 0x800
call esi
test ebx, ebx
jne 0x414b07
push 0xa
lea ecx, [esp + 0x14]
push ecx
push 9
push 0x400
call esi
and ebx, 0x100
je 0x414b2f
lea edx, [esp + 0x10]
push edx
mov ecx, ebp
call fcn.004147e0
test eax, eax
jne 0x414b2f
push 0xa
lea eax, [esp + 0x14]
push eax
push 9
push 0x400
call esi
lea ecx, [esp + 0x10]
push ecx
push str.szTemp___s__n
call fcn.0040e180
add esp, 8
lea edx, [esp + 0x10]
push edx
mov ecx, ebp
call fcn.00413ea0
cmp eax, 0x40a
jne 0x414c30
push 0x103
lea eax, [esp + 0x119]
push 0
push eax
mov byte [esp + 0x120], 0
call fcn.00416560
add esp, 0xc
test edi, edi
je 0x414b8e
push 0xa
lea ecx, [esp + 0x118]
push ecx
push 1
push 0x800
call esi
cmp dword [esp + 0x220], 0
jne 0x414bab
push 0xa
lea edx, [esp + 0x118]
push edx
push 1
push 0x400
call esi
test ebx, ebx
je 0x414bd5
lea eax, [esp + 0x114]
push eax
mov ecx, ebp
call fcn.004147e0
test eax, eax
jne 0x414bd5
push 0xa
lea ecx, [esp + 0x118]
push ecx
push 1
push 0x400
call esi
lea edx, [esp + 0x114]
push edx
push str.szTest___s__n
call fcn.0040e180
add esp, 8
lea eax, [esp + 0x114]
push eax
mov ecx, ebp
call fcn.00413ea0
cmp eax, 0x403
jne 0x414c30
lea ecx, [esp + 0x114]
push ecx
lea edx, [esp + 0x14]
push edx
push str.Override_value___s__to___s__n
call fcn.0040e180
add esp, 0xc
xor eax, eax
lea esp, [esp]
mov cl, byte [esp + eax + 0x114]
mov byte [esp + eax + 0x10], cl
inc eax
test cl, cl
jne 0x414c20
lea eax, [esp + 0x10]
push eax
push str.szTemp___s__n
call fcn.0040e180
add esp, 8
lea ecx, [esp + 0x10]
push ecx
mov ecx, ebp
call fcn.00413ea0
cmp eax, 0xc04
mov dword [ebp + 8], eax
jg 0x414c83
je 0x414c7a
cmp eax, 0x404
je 0x414c71
cmp eax, 0x804
jne 0x414ca1
mov dword [ebp + 8], 0x8c0
jmp 0x414ca1
mov dword [ebp + 8], 0x4c1
jmp 0x414ca1
mov dword [ebp + 8], 0xcc1
jmp 0x414ca1
cmp eax, 0x1004
je 0x414c9a
cmp eax, 0x1404
jne 0x414ca1
mov dword [ebp + 8], 0x14c1
jmp 0x414ca1
mov dword [ebp + 8], 0x10c0
test byte [esp + 0x220], 0x10
je 0x414cb2
and dword [ebp + 8], 0xff
mov eax, dword [ebp + 8]
mov ecx, dword [esp + 0x218]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004164fa
add esp, 0x20c
ret 4

Function at 0x4164fa
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x431114]
jne 0x416504
repz ret
jmp fcn.0041abec
Function at 0x423623
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0041a5dc
and dword [ebp - 4], 0
cmp dword [0x434074], 0
mov ebx, eax
jne 0x4236d4
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x423785
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x42e02c
push edi
call esi
test eax, eax
je 0x423785
push eax
call fcn.0041a56a
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x434074], eax
call esi
push eax
call fcn.0041a56a
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x434078], eax
call esi
push eax
call fcn.0041a56a
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x43407c], eax
call esi
push eax
call fcn.0041a56a
pop ecx
mov dword [0x434084], eax
test eax, eax
je 0x4236d4
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0041a56a
pop ecx
mov dword [0x434080], eax
mov eax, dword [0x434080]
cmp eax, ebx
je 0x42372c
cmp dword [0x434084], ebx
je 0x42372c
push eax
call fcn.0041a5e5
push dword [0x434084]
mov esi, eax
call fcn.0041a5e5
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x42372c
test edi, edi
je 0x42372c
call esi
test eax, eax
je 0x423723
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x423723
test byte [ebp - 0xc], 1
jne 0x42372c
or dword [ebp + 0x10], 0x200000
jmp 0x423765
mov eax, dword [0x434078]
cmp eax, ebx
je 0x423765
push eax
call fcn.0041a5e5
pop ecx
test eax, eax
je 0x423765
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x423765
mov eax, dword [0x43407c]
cmp eax, ebx
je 0x423765
push eax
call fcn.0041a5e5
pop ecx
test eax, eax
je 0x423765
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x434074]
call fcn.0041a5e5
pop ecx
test eax, eax
je 0x423785
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x423787
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x403050
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x592a80]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x30], ecx
push 0x20
push 0
lea eax, [ebp - 0x2c]
push eax
call fcn.00508920
add esp, 0xc
mov dword [ebp - 0x2c], 0x20
lea ecx, [ebp - 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov edx, dword [ebp - 0x20]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax + 0x354]
lea edx, [ecx + ecx + 0x10]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 8]
ja 0x4030a9
or eax, 0xffffffff
jmp 0x4030ab
xor eax, eax
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.0050876f
mov esp, ebp
pop ebp
ret

Function at 0x407360
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x592a80]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x1c], ecx
push 0x53f8bc
mov eax, dword [ebp + 8]
push eax
call fcn.005096f2
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x407391
xor al, al
jmp 0x4073e9
mov dword [ebp - 8], 8
mov ecx, dword [ebp - 4]
push ecx
push 8
push 1
lea edx, [ebp - 0x18]
push edx
call fcn.00509e58
add esp, 0x10
cmp eax, 8
je 0x4073c1
mov eax, dword [ebp - 4]
push eax
call fcn.005092c3
add esp, 4
xor al, al
jmp 0x4073e9
mov ecx, dword [ebp - 4]
push ecx
call fcn.005092c3
add esp, 4
push 8
push 0
lea edx, [ebp - 0x18]
push edx
call fcn.00522d50
add esp, 0xc
mov dword [ebp - 0xc], eax
xor eax, eax
cmp dword [ebp - 0xc], 0
sete al
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0050876f
mov esp, ebp
pop ebp
ret 4
Function at 0x4080d0
Capabilities:
Connect to wmi namespace via wbemlocator

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], 0
cmp dword [ebp + 8], 0
je 0x4081bf
push 0x595804
push 0x56d838
push 1
push 0
push 0x56d908
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jge 0x408114
call dword [sym.imp.ole32.dll_CoUninitialize]
xor eax, eax
jmp 0x4081f0
push 0x595808
push 0
push 0
push 0x80
push 0
push 0
push 0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [0x595804]
mov edx, dword [ecx]
mov eax, dword [0x595804]
push eax
mov ecx, dword [edx + 0xc]
call ecx
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jge 0x408169
mov edx, dword [0x595804]
mov eax, dword [edx]
mov ecx, dword [0x595804]
push ecx
mov edx, dword [eax + 8]
call edx
call dword [sym.imp.ole32.dll_CoUninitialize]
xor eax, eax
jmp 0x4081f0
push 0
push 0
push 3
push 3
push 0
push 0
push 0xa
mov eax, dword [0x595808]
push eax
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jge 0x4081bd
mov ecx, dword [0x595808]
mov edx, dword [ecx]
mov eax, dword [0x595808]
push eax
mov ecx, dword [edx + 8]
call ecx
mov edx, dword [0x595804]
mov eax, dword [edx]
mov ecx, dword [0x595804]
push ecx
mov edx, dword [eax + 8]
call edx
call dword [sym.imp.ole32.dll_CoUninitialize]
xor eax, eax
jmp 0x4081f0
jmp 0x4081eb
mov eax, dword [0x595808]
mov ecx, dword [eax]
mov edx, dword [0x595808]
push edx
mov eax, dword [ecx + 8]
call eax
mov ecx, dword [0x595804]
mov edx, dword [ecx]
mov eax, dword [0x595804]
push eax
mov ecx, dword [edx + 8]
call ecx
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, 1
mov esp, ebp
pop ebp
ret