joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40c231
Capabilities:
Link many functions at runtime

Disassembly:
push 4
mov eax, 0x44d7c4
call fcn.00437226
mov esi, ecx
xor ebx, ebx
lea edi, [esi + 0x16c]
mov dword [ebp - 4], ebx
cmp dword [edi], ebx
jne 0x40c25b
push str.PSAPI.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [edi], eax
mov edi, dword [edi]
cmp edi, ebx
je 0x40c282
lea ebx, [esi + 0x170]
cmp dword [ebx], 0
jne 0x40c280
push str.GetModuleFileNameExW
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
call edi
mov dword [ebx], eax
xor ebx, ebx
jmp 0x40c288
xor ebx, ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [esi + 0x60]
cmp ecx, 2
jne 0x40c336
mov eax, dword [esi + 0x54]
cmp eax, 4
je 0x40c2ae
cmp eax, 5
jne 0x40c336
cmp dword [esi + 0x58], ebx
jne 0x40c336
cmp dword [esi + 0x1c], ebx
jne 0x40c416
push str.PSAPI
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp eax, ebx
mov dword [esi + 0x1c], eax
jne 0x40c2d0
xor al, al
jmp 0x40c418
push str.EnumProcesses
push eax
call edi
push str.EnumProcessModules
push dword [esi + 0x1c]
mov dword [esi + 0x20], eax
call edi
push str.GetModuleFileNameExW
push dword [esi + 0x1c]
mov dword [esi + 0x24], eax
call edi
push str.GetModuleBaseNameW
push dword [esi + 0x1c]
mov dword [esi + 0x28], eax
call edi
cmp dword [esi + 0x20], ebx
mov dword [esi + 0x2c], eax
je 0x40c319
cmp dword [esi + 0x24], ebx
je 0x40c319
cmp dword [esi + 0x28], ebx
je 0x40c319
cmp eax, ebx
jne 0x40c416
push ebx
push ebx
push str.NT:_Could_not_get_the_ProcAddress_for_process_enum_
call fcn.0040735b
add esp, 0xc
push dword [esi + 0x1c]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [esi + 0x1c], ebx
jmp 0x40c2c9
cmp ecx, 1
je 0x40c34e
cmp ecx, 2
jne 0x40c416
cmp dword [esi + 0x54], 4
jbe 0x40c416
cmp dword [esi + 0x30], ebx
jne 0x40c416
push str.Kernel32
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp eax, ebx
mov dword [esi + 0x30], eax
je 0x40c2c9
push 0x496d14
push eax
call edi
push 0x496d30
push dword [esi + 0x30]
mov dword [esi + 0x34], eax
call edi
push 0x496d40
push dword [esi + 0x30]
mov dword [esi + 0x38], eax
call edi
push str.Module32FirstW
push dword [esi + 0x30]
mov dword [esi + 0x3c], eax
call edi
push str.Module32NextW
push dword [esi + 0x30]
mov dword [esi + 0x40], eax
call edi
push str.Thread32First
push dword [esi + 0x30]
mov dword [esi + 0x44], eax
call edi
push str.Thread32Next
push dword [esi + 0x30]
mov dword [esi + 0x48], eax
call edi
cmp dword [esi + 0x34], ebx
mov dword [esi + 0x4c], eax
je 0x40c3df
cmp dword [esi + 0x38], ebx
je 0x40c3df
cmp dword [esi + 0x3c], ebx
je 0x40c3df
cmp dword [esi + 0x40], ebx
je 0x40c3df
cmp dword [esi + 0x44], ebx
jne 0x40c416
push ebx
push ebx
push str.2K__XP:_Could_not_get_the_ProcAddress_for_process_enum_
call fcn.0040735b
add esp, 0xc
push dword [esi + 0x30]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [esi + 0x30], ebx
jmp 0x40c2c9
mov al, 1
call fcn.004372cb
ret
Function at 0x40c678
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
cmp dword [ebp + 8], 0xffffffff
je 0x40c6dc
lea eax, [ebp - 0x10]
push eax
push str.SeDebugPrivilege
push 0
mov dword [ebp - 0x14], 1
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x40c6dc
push 0x10
pop eax
lea ecx, [ebp - 4]
push ecx
push dword [ebp + 0xc]
mov dword [ebp - 4], eax
push eax
lea eax, [ebp - 0x14]
push eax
push 0
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
je 0x40c6dc
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
cmp eax, 0x514
setne cl
mov eax, ecx
jmp 0x40c6de
xor eax, eax
leave
ret 8

Function at 0x40d32c
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x4a96b0]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0x206
push eax
mov dword [ebp - 0x210], eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.00433330
add esp, 0xc
push dword [esi + 0x14]
lea eax, [ebp - 0x20c]
push 0x104
push eax
push 0x492328
push str.PRODUCT_REG
push str.Settings
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x20c]
push eax
mov ecx, edi
call fcn.004015ab
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, edi
call fcn.00432ef0
leave
ret

Function at 0x40e75a
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xc
mov eax, 0x44d766
call fcn.004371f3
xor ebx, ebx
cmp dword [ecx + 0x10], ebx
mov dword [ebp - 0x14], 0x104
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x18], 4
mov eax, 0x20019
je 0x40e788
mov eax, 0x20119
mov ecx, dword [ebp + 0x10]
mov esi, dword [ebp + 8]
mov dword [ecx], ebx
lea ecx, [ebp - 0x10]
push ecx
push eax
push ebx
push esi
push dword [ebp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x40e7c1
lea ecx, [esi - 0x10]
call fcn.004010ea
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
call fcn.004010ea
xor al, al
call fcn.004372cb
ret 0x10
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x14]
push eax
push ebx
lea eax, [ebp - 0x18]
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp - 0x10]
call edi
test eax, eax
jne 0x40e846
cmp dword [ebp - 0x14], 0x14
ja 0x40e846
cmp dword [ebp - 0x18], 4
jne 0x40e838
cmp dword [ebp - 0x14], ebx
je 0x40e838
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 0x10]
lea eax, [ebp - 0x18]
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp - 0x10]
call edi
test eax, eax
push dword [ebp - 0x10]
je 0x40e826
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esi - 0x10]
call fcn.004010ea
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
call fcn.004010ea
mov al, bl
jmp 0x40e7b9
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esi - 0x10]
call fcn.004010ea
mov bl, 1
jmp 0x40e817
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40e7a4
push dword [ebp - 0x10]
jmp 0x40e809
Function at 0x40e84b
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x10
mov eax, 0x44cab0
call fcn.00437226
xor ebx, ebx
mov dword [ebp - 4], ebx
mov byte [ebp - 4], 2
mov ecx, dword [ebp + 0x14]
push 0x492e9e
mov dword [ebp - 0x18], 0x104
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x1c], 1
call fcn.0040682c
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x10], ebx
mov eax, 0x20019
je 0x40e890
mov eax, 0x20119
mov edi, dword [ebp + 0xc]
lea ecx, [ebp - 0x14]
push ecx
push eax
push ebx
push edi
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x40e8c4
lea ecx, [edi - 0x10]
call fcn.004010ea
mov ecx, dword [ebp + 0x10]
add ecx, 0xfffffff0
call fcn.004010ea
xor al, al
call fcn.004372cb
ret 0x14
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x18]
push eax
push ebx
lea eax, [ebp - 0x1c]
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp - 0x14]
call esi
cmp eax, ebx
je 0x40e8eb
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40e8a7
cmp dword [ebp - 0x1c], 1
je 0x40e8f7
cmp dword [ebp - 0x1c], 2
jne 0x40e8e0
cmp dword [ebp - 0x18], ebx
je 0x40e8e0
push dword [ebp - 0x18]
call fcn.00414d91
pop ecx
push dword [ebp - 0x18]
mov dword [ebp + 8], eax
push ebx
push eax
call fcn.00433330
add esp, 0xc
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x1c]
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp - 0x14]
call esi
cmp eax, ebx
push dword [ebp - 0x14]
je 0x40e950
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [edi - 0x10]
call fcn.004010ea
mov ecx, dword [ebp + 0x10]
add ecx, 0xfffffff0
call fcn.004010ea
mov al, bl
jmp 0x40e8bc
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp + 8]
push 0x492750
push dword [ebp + 0x14]
call fcn.00406d5c
add esp, 0xc
push dword [ebp + 8]
call fcn.00414d8c
pop ecx
lea ecx, [edi - 0x10]
call fcn.004010ea
mov bl, 1
jmp 0x40e93e

Function at 0x40fad9
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push edi
xor edi, edi
cmp dword [esi + 0x8c], edi
je 0x40fb1e
mov eax, esi
call fcn.0041051a
test eax, eax
je 0x40fb23
lea eax, [ebp - 4]
push eax
push 4
push esi
push 0x40fe3f
push edi
push edi
mov dword [ebp - 4], edi
call fcn.00436cb5
add esp, 0x18
cmp eax, edi
mov dword [esi + 0xa8], eax
je 0x40fb1e
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
xor eax, eax
pop edi
leave
ret
mov eax, dword [esi + 0xb0]
cmp eax, edi
je 0x40fb1e
mov ecx, dword [eax]
lea edx, [ebp - 8]
push edx
push eax
call dword [ecx + 0x18]
mov eax, dword [esi + 0xb0]
mov ecx, dword [eax]
lea edx, [ebp - 4]
push edx
push eax
call dword [ecx + 0x1c]
mov edx, dword [ebp - 4]
mov eax, dword [esi + 0xb0]
push edi
mov ecx, dword [eax]
neg edx
push edx
push dword [ebp - 8]
push dword [ebp - 4]
push edi
push dword [esi + 0x68]
push dword [esi + 0x64]
push edi
push edi
push dword [esi + 0x90]
push eax
call dword [ecx + 0x20]
test eax, eax
jne 0x40fb1e
push edi
push edi
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_InvalidateRect]
xor eax, eax
inc eax
jmp 0x40fb20
Function at 0x40fb83
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
call fcn.00420ea1
mov eax, dword [eax + 0xc]
push 0x492794
push 0x87
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x40fc2f
call fcn.00420ea1
mov eax, dword [eax + 0xc]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 4], eax
je 0x40fc2f
call fcn.00420ea1
mov eax, dword [eax + 0xc]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
push edi
push 0x22
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x40fc2f
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push dword [ebp - 4]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x40fc28
test ebx, ebx
je 0x40fc28
push edi
push eax
push ebx
call fcn.00434bc0
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [ebp + 8]
push edi
push esi
call fcn.0040f5e2
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, edi
jmp 0x40fc31
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x411672
Capabilities:
Read .ini file

Disassembly:
push 0x96c
mov eax, 0x44ca60
call fcn.0043725c
and dword [ebp - 4], 0
mov eax, dword [ebp + 8]
and dword [ebp - 0x974], 0
mov ecx, dword [eax + 4]
test ecx, ecx
mov dword [ebp - 0x978], esi
jl 0x4116f6
cmp ecx, dword [eax + 0x10]
jge 0x4116f6
mov eax, dword [eax + 0xc]
lea eax, [eax + ecx*4]
mov eax, dword [eax]
mov ecx, dword [edx]
push eax
push 0x4b0
lea eax, [ebp - 0x970]
push eax
push 0x492328
push ecx
push str.Strings
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x970]
push eax
mov ecx, esi
call fcn.004015ab
and dword [ebp - 4], 0
mov ecx, esi
mov dword [ebp - 0x974], 1
call fcn.004116fc
mov eax, esi
call fcn.004372df
ret 4
call fcn.0041c4ff
int3

Function at 0x4118e5
Capabilities:
Get geographical location

Disassembly:
push ebp
sub esp, 0x208
lea ebp, [esp - 4]
mov eax, dword [0x4a96b0]
xor eax, ebp
mov dword [ebp + 0x208], eax
push 4
mov eax, 0x44c82b
call fcn.004371f3
xor edi, edi
push 0x206
lea eax, [ebp + 2]
push edi
push eax
mov word [ebp], di
call fcn.00433330
add esp, 0xc
push 0x104
lea eax, [ebp]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLCID]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x411994
call fcn.0041c6fd
push eax
lea ecx, [ebp - 0x10]
call fcn.00401755
lea eax, [ebp]
push eax
lea eax, [ebp - 0x10]
push 0x492750
push eax
mov dword [ebp - 4], edi
call fcn.00406d5c
add esp, 0xc
push str.English
lea esi, [ebp - 0x10]
call fcn.00406970
cmp eax, 0xffffffff
jne 0x411987
push str.Deutsch
call fcn.00406970
cmp eax, 0xffffffff
je 0x411987
xor edi, edi
inc edi
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.004010ea
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x208]
xor ecx, ebp
call fcn.00432ef0
add ebp, 0x20c
leave
ret
Function at 0x414059
Capabilities:
Enumerate processes

Disassembly:
push ebp
sub esp, 0x674
lea ebp, [esp - 4]
mov eax, dword [0x4a96b0]
xor eax, ebp
mov dword [ebp + 0x674], eax
push 0x18
mov eax, 0x44e1f3
call fcn.00437226
mov esi, 0x22c
xor edi, edi
push esi
lea eax, [ebp + 0x448]
push edi
push eax
mov dword [ebp - 4], edi
call fcn.00433330
add esp, 0xc
push edi
push 2
mov dword [ebp - 0x1c], edi
mov byte [ebp - 4], 1
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
lea ecx, [ebp + 0x448]
push ecx
push eax
mov dword [ebp - 0x24], eax
mov dword [ebp + 0x448], esi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x41417a
mov edi, dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, 0x1f0fff
lea eax, [ebp + 0x46c]
push eax
lea ecx, [ebp - 0x18]
call fcn.004015ab
lea esi, [ebp]
mov byte [ebp - 4], 2
call fcn.0040b6eb
lea eax, [ebp - 0x20]
push eax
mov eax, esi
push eax
mov byte [ebp - 4], 3
call fcn.0040b73e
push str.Windows_2000
mov ecx, eax
mov byte [ebp - 4], 4
call fcn.00406bfc
mov ecx, dword [ebp - 0x20]
xor esi, esi
cmp eax, esi
sete byte [ebp - 0x11]
add ecx, 0xfffffff0
call fcn.004010ea
cmp byte [ebp - 0x11], 0
je 0x4141b0
push str.explorer.exe
push dword [ebp - 0x18]
call fcn.004331e8
test eax, eax
pop ecx
pop ecx
jne 0x414148
push dword [ebp + 0x450]
push esi
push ebx
call edi
mov dword [ebp - 0x1c], eax
lea esi, [ebp]
mov byte [ebp - 4], 2
call fcn.0040b718
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.004010ea
lea eax, [ebp + 0x448]
push eax
push dword [ebp - 0x24]
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x4140d0
mov ecx, dword [ebp + 0x680]
add ecx, 0xfffffff0
call fcn.004010ea
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x674]
xor ecx, ebp
call fcn.00432ef0
add ebp, 0x678
leave
ret 4
cmp dword [ebp + 0x680], esi
je 0x414148
push dword [ebp + 0x680]
push dword [ebp - 0x18]
call fcn.004331e8
test eax, eax
pop ecx
pop ecx
jne 0x414148
push dword [ebp + 0x450]
push esi
push ebx
call edi
lea esi, [ebp]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 4], 2
call fcn.0040b718
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.004010ea
jmp 0x41417a
Function at 0x4148b0
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
push edi
push 0x499b8c
lea ecx, [ebp - 4]
call fcn.004015ab
mov esi, SysReAllocString
push esi
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
jne 0x4148df
xor al, al
jmp 0x41492d
push ebx
push esi
push dword [ebp - 4]
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebx, eax
test ebx, ebx
jne 0x4148fa
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x414921
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jne 0x414915
push edi
call esi
push ebx
jmp 0x41491f
cmp dword [ebp - 0x1c], 4
push ebx
je 0x414925
call esi
push edi
call esi
xor al, al
jmp 0x41492c
call esi
push edi
call esi
mov al, 1
pop ebx
mov ecx, dword [ebp + 8]
mov byte [ecx + 0x46], al
mov ecx, dword [ebp - 4]
add ecx, 0xfffffff0
call fcn.004010ea
pop edi
pop esi
leave
ret 4
Function at 0x414ade
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ecx
cmp byte [esi + 0x45], 0
push ebx
push edi
jne 0x414af4
push esi
call fcn.004148b0
push str.GlobalRC_MUTEX
lea ecx, [esp + 0x10]
call fcn.004015ab
push dword [esp + 0xc]
lea eax, [esi + 0x38]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov ecx, dword [esp + 0xc]
add ecx, 0xfffffff0
mov dword [esi + 8], eax
call fcn.004010ea
push str.GlobalRC_QUARANTINE_EVENT
lea ecx, [esp + 0x10]
call fcn.004015ab
lea eax, [esi + 0xc]
push eax
push esi
lea eax, [esp + 0x14]
call fcn.00414944
mov ecx, dword [esp + 0xc]
add ecx, 0xfffffff0
call fcn.004010ea
mov ebx, str.GlobalRC_SM
push ebx
mov edi, 0x1570
push edi
push 0
push 4
lea eax, [esi + 0x38]
push eax
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [esi + 4], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x414b86
push ebx
xor ebx, ebx
push ebx
push 2
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov dword [esi + 4], eax
jmp 0x414b88
xor ebx, ebx
cmp dword [esi + 4], ebx
jne 0x414b9c
push ebx
push ebx
push str.CreateFileMapping_failed
call fcn.0040735b
add esp, 0xc
push edi
push ebx
push ebx
push 2
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, ebx
mov dword [esi], eax
jne 0x414bbf
push ebx
push ebx
push str.MapViewOfFile_failed
call fcn.0040735b
add esp, 0xc
push str.GlobalRC_RESULT_EVENT
lea ecx, [esp + 0x10]
call fcn.004015ab
lea eax, [esi + 0x10]
push eax
push esi
lea eax, [esp + 0x14]
call fcn.00414944
mov ecx, dword [esp + 0xc]
add ecx, 0xfffffff0
call fcn.004010ea
push str.GlobalRC_RECOVER_EVENT
lea ecx, [esp + 0x10]
call fcn.004015ab
lea eax, [esi + 0x14]
push eax
push esi
lea eax, [esp + 0x14]
call fcn.00414944
mov ecx, dword [esp + 0xc]
add ecx, 0xfffffff0
call fcn.004010ea
push str.GlobalRC_DEFRAGGER_EVENT
lea ecx, [esp + 0x10]
call fcn.004015ab
lea eax, [esi + 0x18]
push eax
push esi
lea eax, [esp + 0x14]
call fcn.00414944
mov ecx, dword [esp + 0xc]
add ecx, 0xfffffff0
call fcn.004010ea
push str.GlobalRC_STOP_EVENT
lea ecx, [esp + 0x10]
call fcn.004015ab
lea eax, [esi + 0x1c]
push eax
push esi
lea eax, [esp + 0x14]
call fcn.00414944
mov ecx, dword [esp + 0xc]
add ecx, 0xfffffff0
call fcn.004010ea
push str.GlobalRC_OPTIONS_EVENT
lea ecx, [esp + 0x10]
call fcn.004015ab
lea eax, [esi + 0x20]
push eax
push esi
lea eax, [esp + 0x14]
call fcn.00414944
mov ecx, dword [esp + 0xc]
add ecx, 0xfffffff0
call fcn.004010ea
push str.GlobalRC_SETUP_EVENT
lea ecx, [esp + 0x10]
call fcn.004015ab
lea eax, [esi + 0x24]
push eax
push esi
lea eax, [esp + 0x14]
call fcn.00414944
mov ecx, dword [esp + 0xc]
mov bl, al
neg bl
sbb bl, bl
add ecx, 0xfffffff0
inc bl
call fcn.004010ea
test bl, bl
je 0x414ccc
push 0
push 0
push str.Create_event_for_RCSetupEvent_failed
call fcn.0040735b
add esp, 0xc
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4184da
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x418513
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0040c0da
push eax
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00406b3f
pop esi
ret 4
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
pop esi
jmp dword [eax + 0x8c]

Function at 0x41a0f4
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 0x41a137
call fcn.00420ea1
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x41a137
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x41a152
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.00419cae
test ebx, ebx
mov esi, eax
je 0x41a150
test edi, edi
je 0x41a150
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x41de46
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x4a96b0]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0x800
push ebx
push esi
mov esi, ecx
mov ebx, edx
lea eax, [ebp - 0xc]
jne 0x41de83
push 0x48a370
push 4
push eax
call fcn.00434655
push eax
call section..text
add esp, 0x10
jmp 0x41de95
push 4
push eax
push 3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x41df00
push edi
call fcn.004375a5
mov edi, dword [eax]
call fcn.004375a5
and dword [eax], 0
lea eax, [ebp - 0xc]
push eax
push ebx
push esi
push 0x111
mov esi, 0x112
lea eax, [ebp - 0x230]
push esi
push eax
call fcn.0043483f
add esp, 0x18
mov ebx, eax
call fcn.004375a5
cmp dword [eax], 0
je 0x41dee0
call fcn.004375a5
push dword [eax]
call fcn.00414d96
pop ecx
jmp 0x41dee7
call fcn.004375a5
mov dword [eax], edi
cmp ebx, 0xffffffff
pop edi
je 0x41df00
cmp ebx, esi
jae 0x41df00
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
jmp 0x41df02
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00432ef0
leave
ret
Function at 0x41ed90
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 0x41edd6
call fcn.00420ea1
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x41edd6
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 4], eax
je 0x41ee19
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 0x41ee02
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 0x41ee02
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x41ee16
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