joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4068a8
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff4
mov edi, edx
mov esi, eax
mov ebp, dword [esi + 0x10]
mov eax, esi
call fcn.00406c94
mov byte [esp], al
cmp byte [esp], 0
jne 0x406a31
test edi, edi
je 0x406a31
mov byte [esp + 1], 0
test ebp, ebp
jle 0x406968
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
test ebp, ebp
jle 0x406943
cmp edi, 0xffffffff
je 0x406907
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x406907
mov byte [esp], 0
jmp 0x406a31
mov ebx, dword [esi]
cmp ebx, 1
jg 0x406943
test ebx, ebx
jne 0x40693c
mov eax, esi
xor ecx, ecx
mov edx, 1
call fcn.0040277c
test eax, eax
jne 0x40693c
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x406a31
pause
dec ebp
test ebp, ebp
jg 0x4068ec
cmp edi, 0xffffffff
je 0x406968
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x406966
mov byte [esp], 0
jmp 0x406a31
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x4068b6
lea edx, [ebx + 2]
mov eax, esi
mov ecx, ebx
call fcn.0040277c
cmp ebx, eax
jne 0x406968
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.00406aa4
mov edx, eax
mov ebx, dword [0x5968cc]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x4069cf
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x4069cd
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x4069cf
xor edi, edi
cmp byte [esp], 0
je 0x4069f8
mov ebx, dword [esi]
test bl, 1
jne 0x406a11
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, esi
mov ecx, ebx
call fcn.0040277c
cmp ebx, eax
jne 0x4069d5
mov byte [esp + 1], 1
jmp 0x406a11
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, esi
mov ecx, ebx
call fcn.0040277c
cmp ebx, eax
jne 0x4069f8
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x406982
cmp byte [esp], 0
je 0x406a31
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
movzx eax, byte [esp]
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x40788c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x596054], 0
je 0x4078ed
cmp word [0x596330], 0xd7b2
jne 0x4078b5
cmp dword [0x596338], 0
jbe 0x4078b5
mov eax, 0x59632c
call dword [0x596348]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x407918
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x58c028], 0
jne 0x407909
push 0
push 0x58c7b6
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x407ae4
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov edi, dword [ebp + 0x10]
cmp dword [0x58c02c], 0
je 0x407b0f
mov edx, edi
mov eax, esi
call dword [0x58c02c]
mov ebx, eax
jmp 0x407b20
mov eax, 8
call fcn.00404930
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x596055], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x407aac
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_CreateThread
mov esi, eax
test esi, esi
jne 0x407b55
mov edx, 8
mov eax, ebx
call fcn.0040494c
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc

Function at 0x40a670
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe98
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x160], ecx
mov dword [ebp - 0x164], ecx
mov dword [ebp - 0x168], ecx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x40a7d5
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00407c28
cmp si, word [0x58c808]
jb 0x40a708
cmp si, word [0x58ca08]
ja 0x40a708
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x40a708
mov ebx, dword [ebp - 8]
add ebx, edi
shr ebx, 1
cmp si, word [ebx*8 + 0x58c808]
jae 0x40a6e2
mov edi, ebx
dec edi
jmp 0x40a703
cmp si, word [ebx*8 + 0x58c808]
jbe 0x40a6f2
inc ebx
mov dword [ebp - 8], ebx
jmp 0x40a703
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x58c80c]
call fcn.0040a580
jmp 0x40a708
cmp edi, dword [ebp - 8]
jae 0x40a6cc
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x40a7b7
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40a7b7
push 0x55
lea eax, [ebp - 0xb2]
push eax
push 0x59
movzx ebx, si
push ebx
call sub.kernel32.dll_GetLocaleInfoW
push 0x55
lea eax, [ebp - 0x15c]
push eax
push 0x5a
push ebx
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x160]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.00408a10
push dword [ebp - 0x160]
push 0x40a7f0
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.00408a10
push dword [ebp - 0x164]
push 0x40a800
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.00408a10
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.00408c48
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40a7dc
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.00407c88
ret
Function at 0x40a988
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40aa8b
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x598b55
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x598b6e]
jne 0x40a9d4
mov eax, esi
mov edx, 0x598b70
mov ecx, 0x55
call fcn.00408a10
push 0x598b55
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40aa75
push 0x598b55
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.00407c28
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40aa43
cmp byte [0x598b54], 0
je 0x40aa08
mov edx, esi
mov eax, ebx
call fcn.0040a86c
jmp 0x40aa43
mov edx, esi
mov eax, ebx
call fcn.0040a670
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x40aa43
cmp dword [esi], 0
je 0x40aa2c
mov eax, esi
mov edx, 0x40aaa4
call fcn.00408b68
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.0040a670
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.00408b68
push 0x598b55
call sub.kernel32.dll_EnterCriticalSection
mov word [0x598b6e], bx
push 0xaa
mov eax, dword [esi]
call fcn.0040895c
push eax
push 0x598b70
call sub.kernel32.dll_lstrcpynW
push 0x598b55
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40aa92
lea eax, [ebp - 4]
call fcn.00407c28
ret
Function at 0x40acc0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde4
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00407d0c
xor eax, eax
push ebp
push 0x40aee5
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x40ad00
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x40ad1a
push 0x105
mov eax, dword [ebp - 4]
call fcn.0040895c
push eax
lea eax, [ebp - 0x21a]
push eax
call sub.kernel32.dll_lstrcpynW
cmp word [ebp - 0x21a], 0
je 0x40aecf
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40aef4
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40ade9
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40aef4
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40ade9
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40af30
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40ade9
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40af30
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40ade9
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40af64
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40ade9
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40af98
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x40aecf
xor eax, eax
push ebp
push 0x40aec8
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.0040aacc
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x21a]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40ae58
mov eax, dword [ebp - 0x10]
call fcn.00404930
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
lea eax, [ebp - 0x21a]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.004089bc
jmp 0x40aea3
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x40afd8
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40aea3
mov eax, dword [ebp - 0x10]
call fcn.00404930
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x40afd8
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.004089bc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40aecf
cmp dword [ebp - 8], 0
je 0x40aebe
mov eax, dword [ebp - 8]
call fcn.0040494c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40aeec
lea eax, [ebp - 4]
call fcn.00407c28
ret
Function at 0x40b224
Capabilities:
Get geographical location
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00407d0c
xor eax, eax
push ebp
push 0x40b2e4
push dword fs:[eax]
mov dword fs:[eax], esp
push 8
lea eax, [ebp - 0xc]
push eax
push 3
call sub.kernel32.dll_GetUserDefaultUILanguage
movzx eax, ax
push eax
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.00408a10
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00408bc0
mov eax, dword [ebx]
call fcn.0040b0ec
test al, al
jne 0x40b2c1
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.00408a10
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00408bc0
mov eax, dword [ebx]
call fcn.0040b0ec
test al, al
jne 0x40b2c1
mov eax, ebx
call fcn.00407c28
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40b2eb
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00407c88
lea eax, [ebp - 4]
call fcn.00407c28
ret

Function at 0x4101b8
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
xor edx, edx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x18], edx
mov dword [ebp - 4], edx
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x4102fd
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x41030c
call fcn.00410404
push eax
call fcn.0040d334
mov ebx, eax
push 0x41032c
call fcn.00410404
push eax
call fcn.0040d334
mov dword [ebp - 0x10], eax
test ebx, ebx
je 0x410275
cmp dword [ebp - 0x10], 0
je 0x410275
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 8]
call fcn.00410178
mov eax, dword [ebp - 0x18]
call fcn.0040895c
push eax
call ebx
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x410275
xor eax, eax
push ebp
push 0x41026e
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x400
push 0
mov eax, dword [ebp - 8]
call fcn.0040895c
push eax
call sub.kernel32.dll_LoadLibraryExW_1
mov dword [ebp - 0xc], eax
call fcn.00407404
jmp 0x4102da
lea edx, [ebp - 4]
xor eax, eax
call fcn.00404b30
xor eax, eax
push ebp
push 0x4102d3
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x1c]
mov eax, dword [ebp - 8]
call fcn.00410178
mov eax, dword [ebp - 0x1c]
call fcn.0040895c
push eax
call sub.kernel32.dll_SetCurrentDirectoryW_1
mov eax, dword [ebp - 8]
call fcn.0040895c
push eax
call sub.kernel32.dll_LoadLibraryW
mov dword [ebp - 0xc], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4102da
mov eax, dword [ebp - 4]
call fcn.0040895c
push eax
call sub.kernel32.dll_SetCurrentDirectoryW_1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x410304
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.00407c88
lea eax, [ebp - 4]
call fcn.00407c28
ret
Function at 0x4121a8
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov esi, eax
mov eax, esi
call fcn.0040895c
mov edi, eax
push edi
call sub.kernel32.dll_GetFileAttributesW
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4121d0
and ebx, 0xfffffff8
push ebx
push edi
call sub.kernel32.dll_SetFileAttributesW
push edi
call sub.kernel32.dll_DeleteFileW
cmp eax, 1
sbb eax, eax
inc eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x41288c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov ebx, ecx
mov edi, edx
mov esi, eax
xor eax, eax
push ebp
push 0x412a0a
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x598f20], 0
je 0x4128c2
mov eax, ebx
call dword [0x598f20]
movzx eax, byte [edi]
sub al, 2
jae 0x412943
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00408050
mov eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x4128ea
mov eax, dword [ebp - 0x14]
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x14], eax
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x14]
test eax, eax
jns 0x4128fc
call fcn.00405fc0
push eax
mov eax, dword [ebp - 8]
call fcn.0040895c
push eax
push esi
call sub.kernel32.dll_WriteConsoleW
test eax, eax
jne 0x412914
mov al, 1
jmp 0x41291b
cmp dword [ebp - 0x10], 0
sete al
test al, al
je 0x412937
mov eax, 0x412a28
call fcn.004127a8
test al, al
je 0x412932
mov byte [edi], 3
jmp 0x412943
mov byte [edi], 2
jmp 0x412943
mov byte [ebp - 9], 0
mov byte [edi], 1
jmp 0x4129ec
mov byte [ebp - 9], 1
cmp byte [edi], 3
jne 0x412991
mov eax, ebx
test eax, eax
je 0x412957
sub eax, 4
mov eax, dword [eax]
push 0
lea edx, [ebp - 0x10]
push edx
add eax, eax
test eax, eax
jns 0x412968
call fcn.00405fc0
push eax
mov eax, 1
dec eax
test ebx, ebx
je 0x412978
cmp eax, dword [ebx - 4]
jb 0x41297d
call fcn.00405fc0
inc eax
lea eax, [ebx + eax*2 - 2]
push eax
push esi
call sub.kernel32.dll_WriteFile_1
push esi
call sub.kernel32.dll_FlushFileBuffers
jmp 0x4129ec
lea eax, [ebp - 4]
mov edx, ebx
mov ecx, 0
call fcn.004086e4
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x4129ac
sub ebx, 4
mov ebx, dword [ebx]
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, ebx
test eax, eax
jns 0x4129bd
call fcn.00405fc0
push eax
lea eax, [ebp - 4]
call fcn.00408210
mov edx, 1
dec edx
test eax, eax
je 0x4129d5
cmp edx, dword [eax - 4]
jb 0x4129da
call fcn.00405fc0
inc edx
lea eax, [eax + edx - 1]
push eax
push esi
call sub.kernel32.dll_WriteFile_1
push esi
call sub.kernel32.dll_FlushFileBuffers
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x412a11
lea eax, [ebp - 8]
call fcn.00407c28
lea eax, [ebp - 4]
call fcn.00407c4c
ret
Function at 0x412bb0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
mov dword [ebp - 8], ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040a13c
test eax, eax
jne 0x412bd4
push 0x57
call sub.kernel32.dll_SetLastError
jmp 0x412c53
lea eax, [ebp - 0xc]
push eax
push 0x40
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x412c53
xor eax, eax
push ebp
push 0x412c45
push dword fs:[eax]
mov dword fs:[eax], esp
mov ecx, dword [ebp - 8]
test ecx, ecx
jns 0x412c05
call fcn.00405fc0
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.00404bcc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x412c4c
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.kernel32.dll_FlushInstructionCache
ret
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x41b794
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
call fcn.0041b648
lea eax, [ebp - 0x28]
xor ecx, ecx
mov edx, 0x24
call fcn.004052b4
lea eax, [ebp - 0x28]
push eax
call sub.kernel32.dll_GetSystemInfo_1
push 0x10
push 0x3000
mov eax, dword [ebp - 0x24]
push eax
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x41b7f5
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov ebx, dword [eax]
mov eax, ebx
call fcn.0041b790
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x41b801
push 0x8000
push 0
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_VirtualFree_1
test bl, bl
je 0x41b81d
mov eax, dword [0x5956b8]
or dword [eax], 0x10
xor ebx, ebx
xor eax, eax
test al, al
je 0x41b8a1
push 4
push 0x3000
mov eax, dword [ebp - 0x24]
push eax
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov dword [ebp - 4], eax
mov esi, fcn.0041b790
mov eax, esi
mov edx, 0x32
call fcn.0041b374
mov ebx, eax
test ebx, ebx
jns 0x41b856
call fcn.00405fc0
mov edx, dword [ebp - 4]
mov eax, esi
mov ecx, ebx
call fcn.00404bcc
mov eax, dword [ebp - 4]
xor edx, edx
push ebp
push 0x41b885
push dword fs:[edx]
mov dword fs:[edx], esp
mov esi, eax
mov eax, ebx
call esi
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x41b891
push 0x8000
push 0
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_VirtualFree_1
test bl, bl
je 0x41b8ba
mov eax, dword [0x5957cc]
mov eax, dword [eax]
or eax, 2
or eax, 4
mov edx, dword [0x5957cc]
mov dword [edx], eax
call fcn.0041b73c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41d2a0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov byte [ebp - 1], dl
mov edi, eax
mov ebx, dword [ebp + 8]
test bl, bl
je 0x41d3d5
mov eax, ebx
cmp al, 7
ja 0x41d2cf
and eax, 0x7f
movzx edx, byte [0x58e3d0]
bt edx, eax
jb 0x41d3d5
mov esi, 0xcc
movzx eax, bl
cmp eax, 6
ja case.0x41d2e6.0
jmp dword [eax*4 + 0x41d2ed]
push 0x41d3e0
call sub.kernel32.dll_OutputDebugStringW
jmp 0x41d399
push 0x41d40c
call sub.kernel32.dll_OutputDebugStringW
jmp 0x41d399
push 0x41d43c
call sub.kernel32.dll_OutputDebugStringW
jmp 0x41d399
push 0x41d470
call sub.kernel32.dll_OutputDebugStringW
jmp 0x41d399
push 0x41d494
call sub.kernel32.dll_OutputDebugStringW
jmp 0x41d399
push 0x41d4c8
call sub.kernel32.dll_OutputDebugStringW
mov esi, 0xcb
mov eax, dword [0x699490]
cmp eax, 0x1000
jb 0x41d36a
cmp eax, 0x80808080
jne 0x41d36e
xor eax, eax
jmp 0x41d370
mov al, 1
test al, al
je 0x41d399
push 0x8000
push 0
mov eax, dword [0x699490]
push eax
call sub.kernel32.dll_VirtualFree_1
xor eax, eax
mov dword [0x699490], eax
jmp 0x41d399
push 0x41d4fc
call sub.kernel32.dll_OutputDebugStringW
cmp dword [0x58e3d4], 0
jne 0x41d3b7
mov eax, esi
cmp eax, 0xff
jbe 0x41d3b0
call fcn.00405fc0
call fcn.00407a54
jmp 0x41d3d5
push dword [ebp + 0x18]
push dword [ebp + 0x14]
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov ecx, dword [ebp - 8]
movzx edx, byte [ebp - 1]
mov eax, edi
call dword [0x58e3d4]
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0x14

Function at 0x4218e8
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push esi
push edi
mov eax, dword [ebp + 8]
push eax
call fcn.004215f4
pop ecx
lea eax, [ebp - 0x2c]
call fcn.0040452c
cmp dword [ebp - 0x20], 0
je 0x421921
mov ecx, 0x242010
mov edx, 0x4219ec
mov eax, 0x421a4c
call fcn.0041d1c4
jmp 0x4219d8
xor eax, eax
push ebp
push 0x4219d1
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
push 0
push 4
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
push eax
call sub.kernel32.dll_MapViewOfFile
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4219b0
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov esi, eax
mov edi, 0x58e438
mov ecx, 6
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov edx, 0x58e450
mov esi, eax
mov edi, edx
mov ecx, 6
rep movsd dword es:[edi], dword [esi]
call fcn.00421430
mov eax, 0x58e438
call fcn.004049e4
mov byte [0x69944e], 1
mov byte [0x69944f], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4219b7
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_UnmapViewOfFile
ret
pop edi
pop esi
mov esp, ebp
pop ebp
ret