joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43eab8
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x457190]
push esi
mov esi, ecx
cmp dword [esi + 0x50], 0
mov dword [ebp - 4], eax
je 0x43eb05
push dword [ebp + 8]
call fcn.00440805
mov esi, eax
test esi, esi
je 0x43eb2d
push edi
push 4
lea eax, [ebp + 0x10]
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
pop edi
jmp 0x43eb2d
push dword [ebp + 0x10]
lea eax, [ebp - 0x14]
push 0x445b00
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push dword [esi + 0x64]
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov ecx, dword [ebp - 4]
pop esi
call fcn.00428e41
leave
ret 0xc

Function at 0x43f431
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
cmp dword [ebp + 0xc], 0x800
mov eax, dword [0x457190]
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
jne 0x43f48f
push 0x446dfc
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push esi
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
mov esi, 0x112
lea eax, [ebp - 0x118]
push esi
push eax
call fcn.00429b9c
add esp, 0x10
cmp eax, 0xffffffff
je 0x43f4a3
cmp eax, esi
jae 0x43f4a3
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
jmp 0x43f4a5
push 4
push eax
push 3
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x43f45a
jmp 0x43f4a6
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
call fcn.00428e41
leave
ret
Function at 0x43f4c6
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x457190]
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
xor ebx, ebx
push str.kernel32.dll
mov dword [ebp - 4], eax
mov dword [ebp - 0x18], ebx
xor esi, esi
call edi
push str.GetUserDefaultUILanguage
push eax
mov dword [ebp - 0x20], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x43f568
call eax
mov esi, dword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
mov ebx, 0x3ff
mov edi, 0xfc00
mov dword [ebp - 0x18], eax
movzx eax, ax
mov ecx, eax
and ecx, ebx
movzx ecx, cx
and eax, edi
or eax, ecx
push eax
mov dword [ebp - 0x1c], ecx
call esi
push dword [ebp - 0x1c]
mov dword [ebp - 0x3c], eax
call esi
push str.GetSystemDefaultUILanguage
push dword [ebp - 0x20]
mov dword [ebp - 0x38], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
call eax
mov dword [ebp - 0x18], eax
movzx eax, ax
mov ecx, eax
and ecx, ebx
movzx ebx, cx
and eax, edi
or eax, ebx
push eax
call esi
push ebx
mov dword [ebp - 0x34], eax
call esi
mov dword [ebp - 0x30], eax
push 4
xor ebx, ebx
jmp 0x43f66a
call dword [sym.imp.KERNEL32.dll_GetVersion]
test eax, eax
jns 0x43f618
lea eax, [ebp - 0x1c]
push eax
push 0x20019
push ebx
push str.Control_PanelDesktopResourceLocale
push SysReAllocStringLen
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x43f66b
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x24]
push eax
push ebx
push ebx
push dword [ebp - 0x1c]
mov dword [ebp - 0x20], 0x10
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x43f60d
cmp dword [ebp - 0x24], 1
jne 0x43f60d
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x14]
push 0x446e0c
push eax
call fcn.0042a417
add esp, 0xc
cmp eax, 1
jne 0x43f60d
mov eax, dword [ebp - 0x28]
mov esi, dword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
mov dword [ebp - 0x18], eax
movzx eax, ax
mov ecx, eax
and ecx, 0x3ff
movzx edi, cx
and eax, 0xfc00
or eax, edi
push eax
call esi
push edi
mov dword [ebp - 0x3c], eax
call esi
push 2
mov dword [ebp - 0x38], eax
pop esi
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x43f66b
push str.ntdll.dll
call edi
cmp eax, ebx
je 0x43f66b
lea ecx, [ebp - 0x18]
push ecx
push 0x43f4b0
push 1
push 0x10
push eax
mov dword [ebp - 0x18], ebx
call dword [sym.imp.KERNEL32.dll_EnumResourceLanguagesA]
cmp word [ebp - 0x18], bx
je 0x43f66b
movzx eax, word [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
mov ecx, eax
and ecx, 0x3ff
movzx edi, cx
and eax, 0xfc00
or eax, edi
push eax
call esi
push edi
mov dword [ebp - 0x3c], eax
call esi
mov dword [ebp - 0x38], eax
push 2
pop esi
mov dword [ebp + esi*4 - 0x3c], 0x800
inc esi
xor edi, edi
cmp esi, ebx
jle 0x43f691
push dword [ebp + edi*4 - 0x3c]
push dword [ebp + 8]
call fcn.0043f431
cmp eax, ebx
pop ecx
pop ecx
jne 0x43f693
inc edi
cmp edi, esi
jl 0x43f67a
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.00428e41
leave
ret 4
Function at 0x43f6a2
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push edi
xor edi, edi
mov dword [ecx + 0x9c], edi
cmp dword [str.SoftwareMicrosoftWindowsCurrentVersionPoliciesExplorer], edi
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], 4
mov dword [ebp - 0xc], edi
mov ebx, 0x4561e4
je 0x43f75e
push esi
lea eax, [ebp - 4]
push eax
push 1
push edi
push dword [ebx]
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x43f746
mov esi, dword [ebx + 4]
jmp 0x43f740
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 0xc]
push ecx
push edi
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x43f730
cmp dword [ebp - 0xc], 4
jne 0x43f730
cmp dword [ebp - 8], edi
mov eax, dword [ebp - 0x10]
mov ecx, dword [esi + 4]
je 0x43f728
or dword [eax + 0x9c], ecx
jmp 0x43f730
not ecx
and dword [eax + 0x9c], ecx
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], 4
mov dword [ebp - 0xc], edi
add esi, 8
mov eax, dword [esi]
cmp eax, edi
jne 0x43f6f4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add ebx, 8
cmp dword [ebx], edi
mov dword [ebp - 4], edi
jne 0x43f6d7
pop esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
inc eax
pop ebx
leave
ret

Function at 0x43fb4c
Capabilities:
Query or enumerate registry key

Disassembly:
mov eax, 0x443dfe
call fcn.0042a44c
sub esp, 0x11c
mov eax, dword [0x457190]
push ebx
push esi
push edi
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov dword [ebp - 0x10], esp
lea ecx, [ebp - 0x124]
push ecx
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov esi, eax
test esi, esi
jne 0x43fc45
push 0x104
lea eax, [ebp - 0x11c]
push eax
push 0
push dword [ebp - 0x124]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov esi, eax
test esi, esi
jne 0x43fc19
and dword [ebp - 4], eax
lea eax, [ebp - 0x11c]
push eax
lea ecx, [ebp - 0x120]
call fcn.00401fe0
lea eax, [ebp - 0x120]
push eax
push dword [ebp - 0x124]
mov byte [ebp - 4], 1
call fcn.0043fb4c
mov ecx, dword [ebp - 0x120]
mov esi, eax
test esi, esi
setne bl
add ecx, 0xfffffff0
mov byte [ebp - 4], 0
call fcn.00401840
test bl, bl
jne 0x43fc19
or dword [ebp - 4], 0xffffffff
jmp 0x43fb8a
cmp esi, 0x103
je 0x43fc29
cmp esi, 0x3f2
jne 0x43fc39
mov eax, dword [ebp + 0xc]
push dword [eax]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov esi, eax
push dword [ebp - 0x124]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
mov eax, esi
call fcn.00428e41
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x440e75
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [esp + 0x10]
test edi, edi
jle 0x440eaa
cmp edi, dword [esi + 0xc]
jge 0x440eaa
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x440eaa
cmp edi, dword [eax + 8]
jge 0x440eaa
mov eax, dword [eax + 0xc]
mov edi, dword [eax + edi*4]
jmp 0x440eac
xor edi, edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
pop edi
pop esi
pop ebx
ret 4

Function at 0x440fb0
Capabilities:
Allocate thread local storage

Disassembly:
xor eax, eax
push esi
mov esi, ecx
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x18], 4
mov dword [esi + 4], eax
mov dword [esi + 8], 1
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [esi], eax
jne 0x440fe4
jmp fcn.00436136
lea eax, [esi + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov eax, esi
pop esi
ret

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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
lea esi, [edi + 0x1c]
push esi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp + 8]
xor ebx, ebx
cmp eax, ebx
jle 0x44114e
cmp eax, dword [edi + 0xc]
jge 0x44114e
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
cmp esi, ebx
je 0x4410a6
mov ecx, dword [ebp + 8]
cmp ecx, dword [esi + 8]
jl 0x441137
cmp dword [ebp + 0xc], ebx
je 0x441137
jmp 0x4410d0
push 0x10
call fcn.00440d41
cmp eax, ebx
je 0x4410bc
mov ecx, eax
call fcn.00440fa7
mov esi, eax
jmp 0x4410be
xor esi, esi
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov ecx, dword [edi + 0x14]
mov eax, dword [edi + 0x18]
mov dword [esi + eax], ecx
mov dword [edi + 0x14], esi
mov eax, dword [esi + 0xc]
cmp eax, ebx
jne 0x4410e7
mov eax, dword [edi + 0xc]
shl eax, 2
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
jmp 0x4410f7
mov ecx, dword [edi + 0xc]
push 2
shl ecx, 2
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
cmp eax, ebx
jne 0x441109
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.00436136
mov ecx, dword [esi + 8]
mov dword [esi + 0xc], eax
mov edx, dword [edi + 0xc]
sub edx, ecx
shl edx, 2
push edx
lea eax, [eax + ecx*4]
push ebx
push eax
call fcn.0042a870
mov eax, dword [edi + 0xc]
add esp, 0xc
push esi
mov dword [esi + 8], eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [ebp + 8]
mov eax, dword [esi + 0xc]
cmp eax, ebx
je 0x441149
cmp ecx, dword [esi + 8]
jge 0x441149
mov edx, dword [ebp + 0xc]
mov dword [eax + ecx*4], edx
push dword [ebp - 4]
jmp 0x44114f
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x44120d
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x44123b
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x441259
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00441177
jmp 0x441259
mov eax, dword [esi + 0x14]
test eax, eax
je 0x441259
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.00441177
test edi, edi
mov eax, edi
jne 0x441243
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x56b32c]
test ecx, ecx
je 0x44130c
jmp 0x44120c
ret 8
Function at 0x4016f0
Capabilities:
Enumerate processes

Disassembly:
push 0xffffffffffffffff
push 0x4332db
mov eax, dword fs:[0]
push eax
sub esp, 0x134
mov eax, dword [0x4423f0]
xor eax, esp
mov dword [esp + 0x130], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4423f0]
xor eax, esp
push eax
lea eax, [esp + 0x148]
mov dword fs:[0], eax
call fcn.004036ce
xor ecx, ecx
xor ebx, ebx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x401747
push 0x80004005
call fcn.00401150
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea edi, [eax + 0x10]
mov dword [esp + 0x18], edi
push ebx
mov dword [esp + 0x154], ebx
push 2
mov dword [esp + 0x24], 0x128
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
or ebp, 0xffffffff
cmp esi, ebp
jne 0x40179b
lea eax, [edi - 0x10]
mov dword [esp + 0x150], ebp
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebp
dec ebp
test ebp, ebp
jg 0x401797
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x401819
lea ecx, [esp + 0x1c]
push ecx
push esi
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x4017f0
lea ebx, [ebx]
lea edx, [esp + 0x40]
push edx
lea eax, [esp + 0x1c]
push 0x4398bc
push eax
call fcn.00401ce0
mov edi, dword [esp + 0x24]
push str.GGDesk.exe
push edi
call fcn.0041ed6f
add esp, 0x14
test eax, eax
je 0x4017eb
lea ecx, [esp + 0x1c]
push ecx
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x4017b0
jmp 0x4017f0
mov ebx, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [edi - 0x10]
mov dword [esp + 0x150], ebp
lea edx, [eax + 0xc]
lock xadd dword [edx], ebp
dec ebp
test ebp, ebp
jg 0x401817
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebx
mov ecx, dword [esp + 0x148]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x130]
xor ecx, esp
call fcn.0041e388
add esp, 0x140
ret
Function at 0x401850
Capabilities:
Check if file exists
Create process on windows
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4333dd
mov eax, dword fs:[0]
push eax
sub esp, 0x460
mov eax, dword [0x4423f0]
xor eax, esp
mov dword [esp + 0x458], eax
push esi
mov eax, dword [0x4423f0]
xor eax, esp
push eax
lea eax, [esp + 0x468]
mov dword fs:[0], eax
mov esi, ecx
call fcn.004016f0
test eax, eax
je 0x4018b2
push 0
push 0x4398cc
push 0x4398d8
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x4019ff
push 0x103
lea eax, [esp + 0x251]
push 0
push eax
mov byte [esp + 0x258], 0
call fcn.00420c10
add esp, 0xc
push 0x104
lea ecx, [esp + 0x250]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x24c]
push 0x5c
push edx
call fcn.0041f1a0
add esp, 8
test eax, eax
je 0x401975
xor eax, eax
mov edi, edi
mov cl, byte [esp + eax + 0x24c]
mov byte [esp + eax + 0x354], cl
add eax, 1
test cl, cl
jne 0x401900
lea eax, [esp + 0x354]
push 0x5c
push eax
call fcn.0041f1a0
mov ecx, dword [str.unins000.exe]
add eax, 1
mov dword [eax], ecx
mov edx, dword [0x439918]
mov dword [eax + 4], edx
mov ecx, dword [0x43991c]
mov dword [eax + 8], ecx
mov dl, byte [0x439920]
mov byte [eax + 0xc], dl
add esp, 8
lea eax, [esp + 0x354]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x401975
push 5
lea ecx, [esp + 0x358]
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
jmp 0x4019ff
push 0x124
push 0x439924
push 0x439938
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 7
je 0x4019ff
lea edx, [esp + 0xc]
push edx
mov dword [esp + 0x10], 8
mov dword [esp + 0x14], 0xff
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
mov ecx, esi
call fcn.0040b45b
push 0
call fcn.0040cc33
add esp, 4
push 0x439970
mov ecx, esi
call fcn.0040c184
lea eax, [esp + 0x14]
push eax
call fcn.00401ea0
lea ecx, [esp + 0x14]
mov dword [esp + 0x470], 0
mov dword [esi + 0x20], ecx
call fcn.0040e010
lea edx, [esp + 0x14]
push edx
mov dword [esp + 0x474], 0xffffffff
call fcn.00401a30
xor eax, eax
mov ecx, dword [esp + 0x468]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x458]
xor ecx, esp
call fcn.0041e388
mov esp, ebp
pop ebp
ret

Function at 0x401d80
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401d99
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401dd4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x401dd0
lea ebx, [ebx]
cmp esi, eax
jae 0x401dd4
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401dc0
cmp esi, eax
jb 0x401dda
pop esi
pop edi
xor eax, eax
pop ebx
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x40873f
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x408778
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00404af6
push eax
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00404ad1
pop esi
ret 4
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
pop esi
jmp dword [eax + 0x8c]

Function at 0x40a286
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x40a2c9
call fcn.0040ece5
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x40a2c9
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x40a2e4
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.00409e3d
test ebx, ebx
mov esi, eax
je 0x40a2e2
test edi, edi
je 0x40a2e2
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x40c77a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
je 0x40c7c0
call fcn.0040ece5
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x40c7c0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 4], eax
je 0x40c803
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
je 0x40c7ec
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x40c7ec
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x40c800
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x410642
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x410670
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x41068e
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004105ac
jmp 0x41068e
mov eax, dword [esi + 0x14]
test eax, eax
je 0x41068e
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.004105ac
test edi, edi
mov eax, edi
jne 0x410678
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x4456e8]
test ecx, ecx
je 0x410751
jmp 0x410641
ret 8
Function at 0x41e388
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4423f0]
jne 0x41e392
repz ret
jmp fcn.00422e9e

Function at 0x42bc6a
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00424e90
xor ebx, ebx
cmp dword [0x4461f0], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x42bd3f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x42bcaa
xor eax, eax
jmp 0x42be03
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x437da8
push edi
call esi
cmp eax, ebx
je 0x42bca3
push eax
call fcn.00424e2d
mov dword [esp], 0x437d98
push edi
mov dword [0x4461f0], eax
call esi
push eax
call fcn.00424e2d
mov dword [esp], 0x437d84
push edi
mov dword [0x4461f4], eax
call esi
push eax
call fcn.00424e2d
mov dword [0x4461f8], eax
lea eax, [ebp - 8]
push eax
call fcn.0042182c
test eax, eax
pop ecx
pop ecx
je 0x42bd0d
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00423d33
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x42bd3f
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00424e2d
cmp eax, ebx
pop ecx
mov dword [0x446200], eax
je 0x42bd3f
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00424e2d
pop ecx
mov dword [0x4461fc], eax
mov eax, dword [0x4461fc]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x42bdb8
cmp dword [0x446200], esi
je 0x42bdb8
push eax
call fcn.00424e99
pop ecx
call eax
cmp eax, ebx
je 0x42bd85
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x446200]
call fcn.00424e99
pop ecx
call eax
test eax, eax
je 0x42bd85
test byte [ebp - 0x18], 1
jne 0x42bdb8
lea eax, [ebp - 0xc]
push eax
call fcn.00421863
test eax, eax
pop ecx
je 0x42bda0
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00423d33
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x42bdaf
or dword [ebp + 0x10], 0x200000
jmp 0x42bde9
or dword [ebp + 0x10], 0x40000
jmp 0x42bde9
mov eax, dword [0x4461f4]
cmp eax, esi
je 0x42bde9
push eax
call fcn.00424e99
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x42bde9
mov eax, dword [0x4461f8]
cmp eax, esi
je 0x42bde9
push dword [ebp - 4]
push eax
call fcn.00424e99
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x4461f0]
call fcn.00424e99
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x431ba2
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x4423f0]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.00431b37
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.00420c10
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x431bf1
cmp dword [ebp - 0x1c], 5
jb 0x431c09
jmp 0x431c05
cmp dword [ebp - 0x10], 1
jne 0x431c09
cmp dword [ebp - 0x1c], 4
ja 0x431c05
jne 0x431c09
cmp dword [ebp - 0x18], 0
jbe 0x431c09
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x439698
call fcn.00431a28
test eax, eax
jge 0x431c2a
mov byte [0x4462d1], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0041e388
add ebp, 0x78
leave
ret