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

Disassembly:
push 0x24
mov eax, 0x10154c96
call fcn.101441ad
mov edi, ecx
mov dword [ebp - 0x24], edi
mov ebx, dword [edi + 0x8c]
mov esi, dword [edi + 0x88]
mov dword [ebp - 0x18], ebx
call fcn.1000ebcf
cmp dword [edi + 0x84], 0
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x20], eax
je 0x10023f77
call fcn.1000ebcf
push 5
push dword [edi + 0x84]
mov ebx, dword [eax + 0xc]
push ebx
mov dword [ebp - 0x20], ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x10023f8b
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, dword [ebp - 0x18]
mov esi, eax
test esi, esi
je 0x10023f87
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov dword [ebp - 0x18], eax
test ebx, ebx
jne 0x10023f93
or eax, 0xffffffff
jmp 0x100240e5
mov ecx, edi
call fcn.10024523
mov ebx, eax
mov dword [ebp - 0x2c], ebx
call fcn.100168c2
xor esi, esi
and dword [ebp - 0x1c], esi
and dword [ebp - 0x28], esi
mov dword [ebp - 0x14], esi
test ebx, ebx
je 0x1002401f
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp ebx, eax
je 0x1002401f
push ebx
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x1002401f
push esi
push ebx
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x14], 1
call fcn.10009446
mov esi, eax
mov dword [ebp - 0x1c], esi
test esi, esi
je 0x1002401c
mov ecx, dword [esi]
mov esi, dword [ecx + 0x150]
mov ecx, esi
call dword [0x10162a70]
mov ecx, dword [ebp - 0x1c]
call esi
test eax, eax
je 0x1002401c
mov esi, dword [ebp - 0x1c]
mov ecx, esi
call fcn.1001cb47
test eax, eax
je 0x1002401c
push 0
mov ecx, esi
call fcn.1001c91a
mov dword [ebp - 0x28], 1
mov esi, dword [ebp - 0x14]
and dword [ebp - 4], 0
push edi
call fcn.10016561
push ebx
call fcn.10017b76
push dword [ebp - 0x20]
mov ecx, edi
push eax
push dword [ebp - 0x18]
call fcn.10023ebb
test eax, eax
jne 0x10024068
cmp dword [edi + 0x9c], eax
jne 0x10024068
call fcn.1000ebcf
push ebx
mov eax, dword [eax + 8]
mov dword [ebp - 0x20], eax
call fcn.10017b76
push dword [ebp - 0x20]
mov ecx, edi
push eax
push dword [ebp - 0x18]
call fcn.10023ebb
and dword [edi + 0x9c], 0
jmp 0x10024093
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x28], 0
je 0x100240a7
mov ecx, dword [ebp - 0x1c]
push 1
call fcn.1001c91a
test esi, esi
je 0x100240b4
push 1
push ebx
call dword [sym.imp.USER32.dll_EnableWindow]
test ebx, ebx
je 0x100240ca
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [edi + 0x20]
jne 0x100240ca
push ebx
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [edi]
mov esi, dword [eax + 0x60]
mov ecx, esi
call dword [0x10162a70]
mov ecx, edi
call esi
mov ecx, edi
call fcn.100244da
mov eax, dword [edi + 0x68]
call fcn.10144112
ret
Function at 0x10025dcf
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, ecx
mov dword [ebp - 4], ebx
test byte [edi + 4], 1
mov esi, dword [edi + 0xc]
jne 0x10025e25
push 5
push esi
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x10025dfe
call fcn.10014f04
push esi
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x10025e13
call fcn.10014f04
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x10025e25
call fcn.10014f04
call fcn.1000ebcf
cmp dword [eax + 0x3c], 0
je 0x10025e3a
push esi
mov ecx, ebx
call fcn.100254f5
mov esi, eax
push dword [ebp + 0xc]
push esi
call fcn.10026020
mov ebx, eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x88]
test ecx, ecx
je 0x10025e63
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 4]
and dword [eax + 0x88], 0
test ebx, ebx
je 0x10025e6f
mov esi, ebx
mov dword [eax + 0x88], ebx
or dword [edi + 4], 1
mov dword [edi + 0xc], esi
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x10028522
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
mov ecx, dword [esi + 4]
call fcn.1001c9c2
push 0xfffffffffffffff0
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowLongW]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x1002855e
call fcn.1002873f
mov dword [esi + 0xc], 1
jmp 0x10028563
call fcn.1002873f
cmp dword [esi], 0
je 0x100285ae
push edi
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov esi, dword [ebp + 0x10]
mov edi, eax
mov ecx, esi
test edi, edi
jle 0x10028589
push edi
call fcn.1000f83e
lea ecx, [edi + 1]
push ecx
jmp 0x10028598
push 0xff
call fcn.1000a05c
push 0x100
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0xffffffffffffffff
mov ecx, esi
call fcn.1000c5e7
pop edi
jmp 0x100285d2
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xffffffff
jne 0x100285d2
push dword [esi]
push dword [ebp - 4]
call fcn.1001118e
pop esi
leave
ret 0xc

Function at 0x10028696
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, esi
push edi
push dword [ebp + 0xc]
call fcn.1002873f
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x100286de
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.1000f83e
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.1000c5e7
jmp 0x100286e9
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.1001118e
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x1002af55
Capabilities:
Extract resource via kernel32 functions
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 0x1002b09b
mov ecx, 0x101af568
call fcn.1000e542
mov esi, eax
test esi, esi
je 0x1002b090
xor eax, eax
cmp word [esi + 8], ax
jne 0x1002b05a
push str.comctl32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ebx, eax
test ebx, ebx
je 0x1002b016
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
mov edi, dword [ebp + 0x10]
mov ecx, 0x3ff
and ax, cx
cmp ax, 0x11
jne 0x1002afdc
push str.MS_UI_Gothic
call fcn.1002b0d9
pop ecx
test eax, eax
je 0x1002afdc
mov eax, edi
neg eax
push 0xfc11
sbb eax, eax
and eax, 0xe
add eax, 0x3ee
push eax
push 5
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
test eax, eax
jne 0x1002aff7
neg edi
push 5
sbb edi, edi
and edi, 0xe
add edi, 0x3ee
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x1002b016
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
test eax, eax
je 0x1002b01c
push ebx
push edi
push eax
call fcn.1002a7e1
add esp, 0xc
jmp 0x1002b01c
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov eax, dword [edi]
push 2
mov eax, dword [eax - 0xc]
inc eax
push eax
call fcn.1000e005
pop ecx
pop ecx
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ecx, eax
mov dword [esi + 4], ecx
test ecx, ecx
je 0x1002b095
mov eax, dword [edi]
push eax
mov eax, dword [eax - 0xc]
inc eax
push eax
push ecx
call fcn.1000ef30
mov ax, word [ebx]
add esp, 0xc
mov word [esi + 8], ax
xor eax, eax
jmp 0x1002b05d
mov ebx, dword [ebp + 0xc]
mov edi, dword [esi + 4]
test edi, edi
je 0x1002b06b
push edi
call sub.msvcrt.dll_wcslen
pop ecx
mov ecx, dword [ebp + 8]
push eax
push edi
call fcn.1000a58f
movzx ecx, word [esi + 8]
mov edx, 0xffff
xor eax, eax
mov word [ebx], cx
pop edi
cmp cx, dx
pop esi
setne al
pop ebx
pop ebp
ret 0xc
call fcn.1000dcc5
call fcn.1000dcdf
int3
Function at 0x1003a457
Capabilities:
Get file system object information

Disassembly:
push 0x6f8
mov eax, 0x10155e84
call fcn.10144177
mov ebx, ecx
mov ecx, dword [ebp + 0x14]
xor esi, esi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x700], edi
test ecx, ecx
je 0x1003a5e8
mov eax, dword [ebp + 0x10]
sub eax, esi
je 0x1003a5ba
sub eax, 1
je 0x1003a4d6
sub eax, 1
je 0x1003a4ae
sub eax, 1
je 0x1003a4d6
push 0x10163418
mov ecx, edi
call fcn.10008dc9
mov eax, edi
call fcn.10144126
ret 0x10
push 0x408
push 0x2b4
lea eax, [ebp - 0x6fc]
push eax
push esi
push dword [ecx + 4]
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test eax, eax
je 0x1003a498
lea eax, [ebp - 0x4e8]
push eax
jmp 0x1003a49d
lea eax, [ebp - 0x218]
push eax
push dword [ecx + 4]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x1003a498
push esi
lea eax, [ebp - 0x448]
mov dword [ebp - 0x448], esi
push eax
lea eax, [ebp - 0x218]
mov dword [ebp - 0x444], esi
push eax
mov dword [ebp - 0x440], esi
mov dword [ebp - 0x43c], esi
mov dword [ebp - 0x438], esi
mov dword [ebp - 0x434], esi
call fcn.10020ec8
test eax, eax
je 0x1003a498
lea ecx, [ebp - 0x700]
call fcn.10008e73
cmp dword [ebp + 0x10], 1
mov dword [ebp - 4], esi
jne 0x1003a570
test byte [ebp - 0x428], 0x18
jne 0x1003a592
mov eax, dword [ebx]
lea ecx, [ebp - 0x700]
push ecx
push dword [ebp - 0x42c]
mov esi, dword [eax + 0x1a0]
mov ecx, esi
push dword [ebp - 0x430]
call dword [0x10162a70]
mov ecx, ebx
call esi
jmp 0x1003a592
mov eax, dword [ebx]
lea ecx, [ebp - 0x700]
push ecx
lea ecx, [ebp - 0x440]
push ecx
mov esi, dword [eax + 0x1a4]
mov ecx, esi
call dword [0x10162a70]
mov ecx, ebx
call esi
mov eax, dword [ebp - 0x700]
add eax, 0xfffffff0
push eax
call fcn.100096fa
pop ecx
mov ecx, dword [ebp - 0x700]
add eax, 0x10
mov dword [edi], eax
lea ecx, [ecx - 0x10]
call fcn.1000a420
jmp 0x1003a4a4
push 0x208
push 0x2b4
lea eax, [ebp - 0x6fc]
push eax
push esi
push dword [ecx + 4]
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test eax, eax
je 0x1003a498
lea eax, [ebp - 0x6f0]
jmp 0x1003a4d3
call fcn.1000dcc5
int3

Function at 0x1003a760
Capabilities:
Get common file path

Disassembly:
push esi
mov esi, ecx
call fcn.1008a642
call fcn.1000ec23
cmp dword [eax + 0x14], 0
jne 0x1003a77b
mov ecx, esi
pop esi
jmp fcn.10039a79
pop esi
ret

Function at 0x1003b0f6
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c0
mov eax, dword [0x101b0064]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x2bc], esi
test eax, eax
je 0x1003b160
push 0x208
push 0x2b4
lea ecx, [ebp - 0x2b8]
push ecx
push 0
push dword [eax + 4]
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov ecx, esi
test eax, eax
je 0x1003b145
lea eax, [ebp - 0x2ac]
push eax
jmp 0x1003b14a
push 0x1016c800
call fcn.10008dc9
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.10144104
leave
ret 8
call fcn.1000dcc5
int3
Function at 0x1003b645
Capabilities:
Get common file path
Get file system object information

Disassembly:
push esi
mov esi, ecx
call fcn.10004180
call fcn.1000ec23
cmp dword [eax + 0x14], 0
jne 0x1003b660
mov ecx, esi
pop esi
jmp fcn.1003aea0
pop esi
ret
Function at 0x1004466c
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
push edi
test esi, esi
jne 0x10044685
call fcn.1000ebcf
mov esi, dword [eax + 0xc]
push 0x1016ded8
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x100446c7
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x100446c7
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x100446c7
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 4]
push eax
push ebx
call fcn.100446d0
jmp 0x100446c9
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x100e0f2e
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
xor eax, eax
push ebx
push esi
mov esi, ecx
push edi
push 1
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], eax
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x100e0f5b
or dword [esi + 0x3c], 1
or dword [esi + 0x38], 2
jmp 0x100e0f70
push 2
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x100e0f70
or dword [esi + 0x3c], 2
or dword [esi + 0x38], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount64]
mov edi, dword [ebp + 8]
mov ebx, eax
mov dword [ebp - 4], edx
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_SetCapture]
push eax
call fcn.10017b76
jmp 0x100e1041
call dword [sym.imp.USER32.dll_GetCapture]
push eax
call fcn.10017b76
cmp eax, edi
jne 0x100e104b
push 1
push 0x209
push 0x200
push 0
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
jne 0x100e0fdd
push 1
push 0x109
push 0x100
push eax
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x100e1021
mov eax, dword [ebp - 0x1c]
cmp eax, 0x202
je 0x100e104b
cmp eax, 0x205
je 0x100e104b
cmp eax, 0x201
je 0x100e104b
cmp eax, 0x204
je 0x100e104b
cmp eax, 0x100
jne 0x100e1009
cmp dword [ebp - 0x18], 0x1b
je 0x100e104b
push dword [ebp - 8]
lea eax, [esi + 0x24]
push dword [ebp - 0xc]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
neg eax
sbb eax, eax
inc eax
mov dword [esi + 0x34], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount64]
sub eax, ebx
sbb edx, dword [ebp - 4]
test edx, edx
jb 0x100e1041
ja 0x100e103a
cmp eax, dword [0x101b7760]
jbe 0x100e1041
mov dword [esi + 0x34], 1
cmp dword [esi + 0x34], 0
je 0x100e0f92
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov eax, dword [esi + 0x34]
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x100e1423
Capabilities:
Create process on windows

Disassembly:
push esi
mov esi, dword [ecx + 0x14]
cmp dword [esi - 0xc], 0
je 0x100e1459
push ebx
mov ebx, dword [ecx + 8]
push edi
mov edi, dword [ecx + 0xc]
call fcn.10009446
test eax, eax
je 0x100e1441
mov eax, dword [eax + 0x20]
push 1
push edi
push ebx
push esi
push 0
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
pop edi
sbb eax, eax
pop ebx
inc eax
pop esi
ret
xor eax, eax
pop esi
ret
Function at 0x100fb2c3
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
call sub.msvcrt.dll_rand_s
pop ecx
test eax, eax
jne 0x100fb305
push dword [ebp - 4]
push dword [ebp + 0xc]
push dword [ebp + 8]
push str._s_s_X.tmp
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.1000c872
add esp, 0x18
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x100fb2cb
leave
ret
push dword [ebp + 0x10]
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
leave
ret

Function at 0x10102807
Capabilities:
Log keystrokes via polling
Open clipboard
Write clipboard data

Disassembly:
push 8
mov eax, 0x10155741
call fcn.10144144
mov edi, ecx
mov ebx, dword [ebp + 8]
cmp dword [ebx + 4], 0x100
jne 0x101028f3
mov esi, dword [ebx + 8]
push 0x11
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
bt ax, 0xf
jae 0x101028f3
cmp esi, 0x43
je 0x10102849
cmp esi, 0x2d
jne 0x101028f3
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x101028f3
call dword [sym.imp.USER32.dll_EmptyClipboard]
lea ecx, [ebp - 0x10]
call fcn.10008e73
movzx eax, byte [edi + 0xe6]
and dword [ebp - 4], 0
push eax
movzx eax, byte [edi + 0xe5]
push eax
movzx eax, byte [edi + 0xe4]
push eax
lea eax, [ebp - 0x10]
push str.RGB__d___d___d_
push eax
call fcn.10009a81
mov esi, dword [ebp - 0x10]
add esp, 0x14
lea eax, [esi - 0x10]
mov dword [ebp - 0x14], eax
mov eax, dword [eax + 4]
lea eax, [eax*2 + 2]
push eax
push 0x2000
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x101028e1
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x101028e1
push esi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov esi, dword [ebp - 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov ecx, dword [ebp - 0x14]
or dword [ebp - 4], 0xffffffff
call fcn.1000a420
push ebx
mov ecx, edi
call fcn.100ffc8d
call fcn.10144112
ret 4
Function at 0x10145f00
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x328
mov eax, dword [0x101b0064]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x17
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x10145f27
mov ecx, 5
int 0x29
push 2
call fcn.10144c16
push 0x50
lea eax, [ebp - 0x320]
push 0
push eax
call sub.msvcrt.dll_memset
push 0x2cc
lea eax, [ebp - 0x2d0]
push 0
push eax
call sub.msvcrt.dll_memset
lea eax, [ebp - 0x320]
add esp, 0x1c
mov dword [ebp - 0x328], eax
lea eax, [ebp - 0x2d0]
mov dword [ebp - 0x324], eax
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x224], ecx
mov dword [ebp - 0x228], edx
mov dword [ebp - 0x22c], ebx
mov dword [ebp - 0x230], esi
mov dword [ebp - 0x234], edi
mov word [ebp - 0x208], ss
mov word [ebp - 0x214], cs
mov word [ebp - 0x238], ds
mov word [ebp - 0x23c], es
mov word [ebp - 0x240], fs
mov word [ebp - 0x244], gs
pushfd
pop dword [ebp - 0x210]
mov eax, dword [ebp + 4]
mov dword [ebp - 0x218], eax
lea eax, [ebp + 4]
mov dword [ebp - 0x20c], eax
mov dword [ebp - 0x2d0], 0x10001
mov eax, dword [eax - 4]
mov dword [ebp - 0x21c], eax
mov eax, dword [ebp + 4]
mov dword [ebp - 0x320], 0xc0000417
mov dword [ebp - 0x31c], 1
mov dword [ebp - 0x314], eax
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
push 0
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea eax, [ebp - 0x328]
push eax
call dword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
test eax, eax
jne 0x10146032
test esi, esi
jne 0x10146032
push 2
call fcn.10144c16
add esp, 4
push 0xc0000417
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.10144104
mov esp, ebp
pop ebp
ret
Function at 0x1014f000
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
call fcn.1014f030
mov esi, dword [ebp + 8]
test al, al
je 0x1014f01e
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call fcn.1014f040
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x1014f700
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x504
mov eax, dword [0x101b0064]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x1014f7fb
push 0x2d
push esi
call sub.msvcrt.dll_strchr
add esp, 8
test eax, eax
je 0x1014f7fb
xor ecx, ecx
mov al, byte [esi + ecx]
lea edx, [ecx + ecx]
test al, al
je 0x1014f75a
cbw
inc ecx
mov word [ebp + edx - 0x204], ax
cmp ecx, 0x100
jne 0x1014f738
jmp 0x1014f7fb
cmp edx, 0x200
jae 0x1014f84b
xor eax, eax
mov word [ebp + edx - 0x204], ax
lea eax, [ebp - 0x204]
push 0x2d
push eax
call sub.msvcrt.dll_wcsrchr
add esp, 8
test eax, eax
je 0x1014f7fb
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
lea eax, [ebp - 0x504]
push 0xff
push eax
push 0x1001
lea eax, [ebp - 0x204]
push eax
call edi
test eax, eax
je 0x1014f7fa
lea edx, [ebp - 0x504]
mov ecx, 0x5f
lea edx, [edx + eax*2]
mov word [edx - 2], cx
mov ecx, 0x100
sub ecx, eax
lea eax, [ebp - 0x204]
push ecx
push edx
push 0x1002
push eax
call edi
test eax, eax
je 0x1014f7fa
lea edi, [ebp - 0x504]
xor eax, eax
nop
movzx ecx, word [edi + eax*2]
lea edx, [ebp - 0x304]
test cx, cx
je 0x1014f82d
mov byte [edx + eax], cl
inc eax
cmp eax, 0x100
jne 0x1014f7e0
pop edi
bt dword [0x10162d8c], 0
mov edx, str.setlocale
mov ecx, 0x101af010
call fcn.1014f980
test eax, eax
je 0x1014f839
push esi
push ebx
call eax
add esp, 8
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10144104
mov esp, ebp
pop ebp
ret
mov byte [edx + eax], 0
lea esi, [ebp - 0x304]
jmp 0x1014f7fa
mov ecx, dword [ebp - 4]
xor eax, eax
pop esi
xor ecx, ebp
pop ebx
call fcn.10144104
mov esp, ebp
pop ebp
ret
call fcn.101446a1
int3
Function at 0x4087d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x2c
push ebx
push ebp
push esi
push edi
mov esi, ecx
call fcn.00408720
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ebp, dword [esp + 0x40]
mov edi, eax
and ebp, 0xffff
push ebp
push edi
call dword [sym.imp.USER32.dll_LoadBitmapA]
mov ebx, eax
test ebx, ebx
jne 0x40880c
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x2c
ret 4
lea eax, [esp + 0x10]
push eax
push 0x2c
push ebx
call dword [sym.imp.GDI32.dll_GetObjectA]
push ebx
call dword [sym.imp.GDI32.dll_DeleteObject]
push 2
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
jne 0x408845
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x2c
ret 4
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov edi, dword [sym.imp.OPENGL32.dll_glPixelStorei]
push 4
push 0xcf5
mov ebp, eax
mov dword [esi + 0x44], ecx
mov dword [esi + 0x48], edx
call edi
push 0
push 0xcf2
call edi
push 0
push 0xcf3
call edi
push 0
push 0xcf4
call edi
mov eax, dword [esi + 0x48]
mov ecx, dword [esi + 0x44]
add ebp, 0x2e
push ebp
push 0x1401
push 0x80e0
push eax
push ecx
push 3
push 0xde1
call sub.GLU32.dll_gluBuild2DMipmaps
push ebx
call dword [sym.imp.GDI32.dll_DeleteObject]
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x2c
ret 4