joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405a40
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x405a55
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x405a94
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x405a90
lea ebx, [ebx]
cmp esi, edx
jae 0x405a94
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
dec ecx
jne 0x405a80
cmp esi, edx
jb 0x405a99
xor eax, eax
pop esi
pop ebp
ret
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop ebp
ret

Function at 0x405f20
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x549ec6
mov eax, dword fs:[0]
push eax
sub esp, 0x2e0
mov eax, dword [0x5b1178]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0x55bd4b
push 0
call fcn.0052c072
add esp, 8
push str.JetPrice
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
test eax, eax
je 0x405fab
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x405fab
push str.Kairos
call fcn.004097d0
add esp, 4
mov esi, eax
push esi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push 0
push 0x8003
push 0x111
push esi
call dword [sym.imp.USER32.dll_SendMessageA]
jmp 0x4060f8
push 0
call fcn.00413a9d
add esp, 4
mov ecx, esi
push str.JetPrice
call fcn.00412c7e
call fcn.0041380d
call fcn.004110f3
mov eax, dword [eax + 0x40]
mov ecx, 0x5b2a20
mov dword [eax + 0x3c], 0xc350
call fcn.0040a8d0
mov ecx, 0x5b2a20
call fcn.0040ab20
push 0xff00ff
push 0
mov ecx, 0x5b2a20
call fcn.0040af90
push 0xf7f6f4
push 1
mov ecx, 0x5b2a20
call fcn.0040af90
push 0x333333
push 2
mov ecx, 0x5b2a20
call fcn.0040af90
push 0xe1e1e1
push 3
mov ecx, 0x5b2a20
call fcn.0040af90
push 0x969696
push 4
mov ecx, 0x5b2a20
call fcn.0040af90
lea ecx, [ebp - 0x2ec]
call fcn.0040a1b0
lea ecx, [ebp - 0x2ec]
mov dword [ebp - 4], 0
call fcn.0040a200
push 0
lea ecx, [ebp - 0x2e4]
call fcn.00406210
push 0
push 8
push ecx
lea eax, [ebp - 0x2e4]
mov ecx, esp
push str.Arial
mov byte [ebp - 4], 1
mov dword [esi + 0x20], eax
call fcn.004011a0
push 0
mov ecx, 0x5b2a20
call fcn.0040adf0
push 1
push 9
push ecx
mov ecx, esp
push str.Tahoma
call fcn.004011a0
push 1
mov ecx, 0x5b2a20
call fcn.0040adf0
push 1
push 0xb
push ecx
mov ecx, esp
push str.Arial
call fcn.004011a0
push 2
mov ecx, 0x5b2a20
call fcn.0040adf0
lea ecx, [ebp - 0x2e4]
call fcn.004105f8
lea ecx, [ebp - 0x2e4]
mov byte [ebp - 4], 0
call fcn.00405da0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2ec]
call fcn.0040a1c0
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0052bb26
mov esp, ebp
pop ebp
ret

Function at 0x406420
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
movzx eax, word [ebp + 8]
mov dword [ebp + 8], eax
pop ebp
jmp fcn.00410294
Function at 0x407f70
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54a318
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x5b1178]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push dword [edi + 0xa0]
lea eax, [ebp - 0x74]
push 0x64
push eax
push 0x55c748
push 0x55c74c
push str.INFO
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
call fcn.0040c96b
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x407fd9
push 0x80004005
call fcn.004019d0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x78], eax
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x78]
push 0x55bf18
push eax
mov dword [ebp - 4], 0
call fcn.00402ee0
mov esi, dword [ebp - 0x78]
push 0x55c728
push esi
call fcn.0052b41f
add esp, 0x14
test eax, eax
sete al
test al, al
je 0x408024
push 0
push 0
mov ecx, edi
call fcn.00406e00
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x408045
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0052bb26
mov esp, ebp
pop ebp
ret

Function at 0x4097d0
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, dword [ebp + 8]
push edi
push esi
push 0
call dword [sym.imp.USER32.dll_FindWindowA]
mov edi, eax
test edi, edi
jne 0x409863
test esi, esi
jne 0x4097f6
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
push ebx
mov ebx, esi
lea ecx, [ebx + 1]
lea esp, [esp]
mov al, byte [ebx]
inc ebx
test al, al
jne 0x409800
sub ebx, ecx
lea edi, [ebx + 5]
push edi
call fcn.0040b2d8
push edi
mov edi, eax
push 0
push edi
mov dword [ebp + 8], eax
call fcn.0052bf20
mov ecx, edi
add esp, 0x10
sub ecx, esi
mov al, byte [esi]
mov byte [ecx + esi], al
lea esi, [esi + 1]
test al, al
jne 0x409827
mov byte [edi + ebx], al
lea eax, [ebp - 8]
push eax
push 0x409e50
mov dword [ebp - 4], 0
mov dword [ebp - 8], edi
call dword [sym.imp.USER32.dll_EnumWindows]
mov eax, dword [ebp + 8]
mov edi, dword [ebp - 4]
push eax
call fcn.0040b2d3
add esp, 4
pop ebx
test edi, edi
je 0x4097ee
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x40a200
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ecx
call fcn.0040a340
test eax, eax
je 0x40a24e
lea eax, [ebp - 4]
push eax
push 0x58a394
push 0x58a384
push 0
mov dword [ebp - 4], 0
call fcn.0040a260
add esp, 0x10
test eax, eax
jns 0x40a23f
push str.Fail_:_CoCreateInstanceAsAdmin_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov esp, ebp
pop ebp
ret
push str.Succ_:_CoCreateInstanceAsAdmin_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov esp, ebp
pop ebp
ret
push str.No_Vista_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov esp, ebp
pop ebp
ret
Function at 0x40a340
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x5b1178]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x98]
push eax
xor esi, esi
mov dword [ebp - 0x98], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x40a389
cmp dword [ebp - 0x88], 2
jne 0x40a389
cmp dword [ebp - 0x94], 6
mov eax, 1
cmovae esi, eax
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0052bb26
mov esp, ebp
pop ebp
ret

Function at 0x4102f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor esi, esi
call fcn.0040e358
mov ebx, dword [eax + 0xc]
push 5
push dword [ebp + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x410327
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
mov ecx, dword [ebp - 4]
push ebx
push dword [ebp + 0xc]
push esi
call fcn.00410346
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8

Function at 0x4140cc
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor edi, edi
mov esi, edi
mov eax, ecx
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], esi
je 0x414116
call fcn.0040e358
mov ebx, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x414113
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x41414f
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov eax, dword [ebp - 4]
xor ebx, ebx
inc ebx
test edi, edi
je 0x414138
push dword [ebp + 0x10]
mov edx, dword [eax]
push edi
push dword [ebp + 8]
mov ecx, eax
call dword [edx + 0x20]
mov ebx, eax
test esi, esi
je 0x414138
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x68]
test ecx, ecx
je 0x41414d
mov eax, dword [ecx]
push dword [ebp + 0x10]
call dword [eax + 0xa0]
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x417a47
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x5b1178]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x5b48b4]
push esi
push edi
mov edi, dword [ebp + 8]
test eax, eax
jne 0x417a93
push 0x55e2f0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x417ab0
push str.SetDefaultDllDirectories
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_EncodePointer]
mov dword [0x5b48b4], eax
jmp 0x417a9c
push eax
call dword [sym.imp.KERNEL32.dll_DecodePointer]
mov esi, eax
test esi, esi
je 0x417ab0
push 0x800
push 0
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
jmp 0x417b1d
mov esi, 0x105
push esi
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x417acb
xor eax, eax
jmp 0x417b1d
lea eax, [ebp - 0x210]
push eax
call fcn.0052de67
cmp word [ebp + eax*2 - 0x212], 0x5c
pop ecx
je 0x417afc
push 0x55e328
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.005305c3
add esp, 0xc
test eax, eax
jne 0x417ac7
push edi
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.005305c3
add esp, 0xc
test eax, eax
jne 0x417ac7
lea eax, [ebp - 0x210]
push eax
call fcn.0041c7de
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0052bb26
leave
ret

Function at 0x4182b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor edi, edi
mov esi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], esi
je 0x4182f5
call fcn.0040e358
mov ebx, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x4182f5
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x418311
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0041d8aa
mov ebx, eax
test edi, edi
je 0x41830f
test esi, esi
je 0x41830f
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x41cf04
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x54b710
call fcn.0052dc99
mov edi, ecx
xor esi, esi
cmp dword [edi + 0x6c], esi
jne 0x41cf2a
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x41cf7e
call fcn.0040c96b
push eax
lea ecx, [ebp - 0x10]
call fcn.00401170
mov ecx, dword [edi + 0x6c]
lea edx, [ebp - 0x10]
mov eax, dword [ecx]
push edx
mov dword [ebp - 4], esi
call dword [eax + 0x8c]
mov edi, dword [ebp + 8]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push edi
call fcn.0052dc4c
push eax
call fcn.00401870
add esp, 0x14
test edi, edi
je 0x41cf71
push edi
call fcn.0052dd80
pop ecx
mov esi, eax
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00404160
mov eax, esi
call fcn.0052dc67
ret 8
Function at 0x41d4c3
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
mov ecx, dword [esi + 4]
push eax
push dword [ebp + 0xc]
call fcn.0041cb66
push 0xfffffffffffffff0
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowLongA]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x41d4ff
call fcn.0041d6de
mov dword [esi + 0xc], 1
jmp 0x41d504
call fcn.0041d6de
cmp dword [esi], 0
je 0x41d54d
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov esi, dword [ebp + 0x10]
test eax, eax
jle 0x41d527
lea ecx, [eax + 1]
push ecx
push eax
mov ecx, esi
call fcn.0040c622
jmp 0x41d538
push 0xff
mov ecx, esi
call fcn.00404090
push 0x100
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextA]
push 0xffffffffffffffff
mov ecx, esi
call fcn.0040ada0
jmp 0x41d571
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SendMessageA]
cmp eax, 0xffffffff
jne 0x41d571
push dword [esi]
push dword [ebp - 4]
call fcn.00421ec2
pop esi
leave
ret 0xc

Function at 0x41d635
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push dword [ebp + 0xc]
mov ecx, esi
call fcn.0041d6de
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x41d67d
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.0040c622
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.0040ada0
jmp 0x41d688
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.00421ec2
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x424108
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x5b1178]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov dword [ebp - 0x20], eax
mov eax, dword [0x5b4bdc]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], ebx
test eax, eax
jne 0x424161
push 0x55e2f0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x42417e
push str.GetThreadPreferredUILanguages
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_EncodePointer]
mov dword [0x5b4bdc], eax
jmp 0x42416a
push eax
call dword [sym.imp.KERNEL32.dll_DecodePointer]
mov esi, eax
test esi, esi
je 0x42417e
mov eax, dword [ebp - 0x20]
push ebx
push edi
push eax
push dword [ebp + 8]
call esi
jmp 0x4242bb
mov eax, dword [ebp - 0x20]
and dword [eax], 0
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx ecx, ax
mov ebx, ecx
push 7
lea eax, [ebp - 0x14]
and ecx, 0xfc00
and ebx, 0x3ff
push eax
or ecx, ebx
push ecx
call fcn.00548fb6
lea eax, [ebp - 0x14]
push eax
call fcn.0052de67
mov esi, eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
push dword [eax]
push edi
call fcn.0052de0b
push 7
lea eax, [ebp - 0x14]
push eax
push ebx
lea edi, [esi + 1]
call fcn.00548fb6
lea eax, [ebp - 0x14]
push eax
call fcn.0052de67
lea esi, [eax + 1]
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
mov eax, dword [ebp - 0x1c]
sub ecx, edi
push ecx
lea ecx, [eax + edi*2]
push ecx
call fcn.0052de0b
add esp, 0x38
add edi, esi
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
movzx ecx, ax
mov ebx, ecx
push 7
lea eax, [ebp - 0x14]
and ecx, 0xfc00
and ebx, 0x3ff
push eax
or ecx, ebx
push ecx
call fcn.00548fb6
lea eax, [ebp - 0x14]
push eax
call fcn.0052de67
lea esi, [eax + 1]
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
mov eax, dword [ebp - 0x1c]
sub ecx, edi
push ecx
lea ecx, [eax + edi*2]
push ecx
call fcn.0052de0b
push 7
lea eax, [ebp - 0x14]
push eax
push ebx
add edi, esi
call fcn.00548fb6
lea eax, [ebp - 0x14]
push eax
call fcn.0052de67
lea esi, [eax + 1]
lea eax, [ebp - 0x14]
mov ebx, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
sub ecx, edi
push ecx
lea ecx, [ebx + edi*2]
push ecx
call fcn.0052de0b
push 7
lea eax, [ebp - 0x14]
push eax
push 0x800
add edi, esi
call fcn.00548fb6
add esp, 0x44
lea eax, [ebp - 0x14]
push eax
call fcn.0052de67
mov esi, eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
sub ecx, edi
push ecx
lea ecx, [ebx + edi*2]
push ecx
call fcn.0052de0b
lea eax, [edi + esi]
xor ecx, ecx
mov word [ebx + eax*2 + 2], cx
xor eax, eax
add esp, 0x10
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0052bb26
leave
ret
Function at 0x450ff1
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
test esi, esi
jne 0x451009
call fcn.0040e358
mov esi, dword [eax + 0xc]
push 0x565fac
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov ebx, eax
test ebx, ebx
je 0x45105f
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x45105e
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp + 0xc], eax
test eax, eax
jne 0x45103f
xor esi, esi
jmp 0x451055
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 4]
push eax
push dword [ebp + 0xc]
call fcn.00451065
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x5105fa
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
test byte [esi + 4], 1
push edi
mov dword [ebp - 4], ebx
je 0x510614
mov edi, dword [esi + 0xc]
jmp 0x510654
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x51062d
call fcn.00414fc0
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x510642
call fcn.00414fc0
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x510654
call fcn.00414fc0
call fcn.0040e358
cmp dword [eax + 0x3c], 0
je 0x510669
push edi
mov ecx, ebx
call fcn.0050fe96
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.0051082c
mov ebx, eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x7c]
test ecx, ecx
je 0x51068c
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 4]
and dword [eax + 0x7c], 0
test ebx, ebx
je 0x510695
mov edi, ebx
mov dword [eax + 0x7c], ebx
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x544281
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.00533fcf
mov esi, dword [ebp + 8]
push 2
mov edi, eax
lea eax, [ebp - 4]
push eax
mov ecx, esi
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x5442b9
xor eax, eax
jmp 0x5442e5
cmp esi, dword [ebp - 4]
je 0x5442e2
cmp dword [ebp + 0xc], 0
je 0x5442e2
push dword [edi + 0x9c]
call fcn.00543e8f
push dword [edi + 0x9c]
mov esi, eax
call fcn.0052de67
pop ecx
pop ecx
cmp esi, eax
je 0x5442b5
xor eax, eax
inc eax
pop edi
pop esi
leave
ret
Function at 0x544503
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x5b1178]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.0053b846
mov dword [ebp - 0x14], eax
cmp dword [0x5b907c], edi
jne 0x5445f4
push 0x800
push edi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x544581
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x5446d4
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x5446d4
push str.MessageBoxW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x5446d4
push eax
call ebx
push 0x589fec
push esi
mov dword [0x5b907c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x589ffc
push esi
mov dword [0x5b9080], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x5b9084], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x5b908c], eax
test eax, eax
je 0x5445f1
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x5b9088], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x544619
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x54460c
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x54462e
push 4
pop eax
jmp 0x5446d6
cmp dword [ebp - 0x14], edi
je 0x54462e
push dword [0x5b907c]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x544613
mov eax, dword [0x5b9088]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x54468c
cmp dword [0x5b908c], esi
je 0x54468c
push eax
call ebx
push dword [0x5b908c]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x54468c
test eax, eax
je 0x54468c
call ecx
test eax, eax
je 0x544681
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x544681
test byte [ebp - 8], 1
jne 0x54468c
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x5446bc
mov eax, dword [0x5b9080]
cmp eax, esi
je 0x5446b9
push eax
call ebx
test eax, eax
je 0x5446b9
call eax
mov edi, eax
test edi, edi
je 0x5446b9
mov eax, dword [0x5b9084]
cmp eax, esi
je 0x5446b9
push eax
call ebx
test eax, eax
je 0x5446b9
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x5b907c]
call ebx
test eax, eax
je 0x5446d4
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x5446d6
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0052bb26
leave
ret
Function at 0x401000
Capabilities:
Check if file exists
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
push 0x104
lea eax, [ebp - 0x208]
push eax
push str._userprofile_
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea ecx, [ebp - 0x208]
push ecx
push str._s975666578.jpg
lea edx, [ebp - 0x410]
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x410]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x401053
xor al, al
jmp 0x40108d
push 0
push 2
push 1
push 0
push 0
push 0x40000000
lea ecx, [ebp - 0x410]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x414], eax
cmp dword [ebp - 0x414], 0xffffffff
je 0x40108b
mov edx, dword [ebp - 0x414]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
mov esp, ebp
pop ebp
ret