joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100adad0
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100c49f0
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x100f408c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
call fcn.100026b2
mov esi, eax
mov dword [ebp - 4], 0
push 0x100abc10
push 0x100f9a74
mov dword [ebp - 0x14], esi
call fcn.10002b80
mov eax, dword [0x100f4074]
add esp, 8
cmp eax, 0xffffffff
je 0x100adb30
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100c4c3e
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x100f408c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x100f4074]
cmp eax, 0xffffffff
jne 0x100aeac6
xor ebx, ebx
jmp 0x100aeacf
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], 0
test ebx, ebx
je 0x100aeb11
nop dword [eax]
cmp dword [ebx + 0x18], 0
mov esi, dword [ebx + 0xc]
jne 0x100aeb50
test esi, esi
jne 0x100aeb54
push 0x100abc10
push 0x100f9a74
call fcn.10002b80
mov eax, dword [0x100f4074]
add esp, 8
cmp eax, 0xffffffff
je 0x100aeb11
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [ebp - 4], 1
test ebx, ebx
je 0x100aeb3e
or eax, 0xffffffff
lock xadd dword [ebx + 4], eax
jne 0x100aeb3e
mov eax, dword [ebx]
mov ecx, ebx
push 0
call dword [eax]
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x100aeb96
mov eax, dword [esi + 4]
mov dword [ebx + 0xc], eax
mov ecx, dword [esi]
test ecx, ecx
je 0x100aeb7f
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [esi]
mov ecx, edi
push 0
mov eax, dword [edi]
call dword [eax]
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov esi, dword [ebx + 0xc]
test esi, esi
jne 0x100aeb54
cmp dword [ebx + 0x18], 0
je 0x100aeae0
mov esi, dword [ebx + 0x14]
mov esi, dword [esi]
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x100aebb9
mov edx, dword [esi + 0x1c]
test edx, edx
je 0x100aebb9
mov eax, dword [ecx]
push edx
call dword [eax + 4]
push esi
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebx + 0x14]
call fcn.10001fe6
cmp dword [ebx + 0x18], 0
jne 0x100aeba0
jmp 0x100aeae0
Function at 0x4014aa
Capabilities:
Shutdown system

Disassembly:
sub esp, 0x14
cmp byte [0x45af68], 1
push esi
mov esi, ecx
jne 0x40154f
push 0x34
push str.The_Printer_Driver_Change
push str.You_must_restart_your_computer_before_the_new_printer_driver_will_take_effect_._t_t_t_t_t_nDo_you_want_to_restart_your_computer_now__
call fcn.00412c00
cmp eax, 6
jne 0x40154f
mov eax, dword [0x45af54]
test eax, eax
je 0x401545
cmp eax, 1
je 0x401545
lea eax, [esp + 4]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x401501
call dword [sym.imp.KERNEL32.dll_GetLastError]
or eax, 0xffffffff
pop esi
add esp, 0x14
ret
lea ecx, [esp + 0xc]
push ecx
push str.SeShutdownPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov eax, dword [esp + 4]
push 0
push 0
push 0
lea edx, [esp + 0x14]
push edx
push 0
push eax
mov dword [esp + 0x20], 1
mov dword [esp + 0x2c], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x40154f
push 0
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
mov ecx, esi
call fcn.00410327
pop esi
add esp, 0x14
ret

Function at 0x4016a0
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 0x4016b9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4016f4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x4016f0
lea ebx, [ebx]
cmp esi, eax
jae 0x4016f4
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x4016e0
cmp esi, eax
jb 0x4016fa
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 0x402dd0
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x443b6e
mov eax, dword fs:[0]
push eax
sub esp, 0x7dc
mov eax, dword [0x459a70]
xor eax, esp
mov dword [esp + 0x7d8], eax
push ebp
push esi
push edi
mov eax, dword [0x459a70]
xor eax, esp
push eax
lea eax, [esp + 0x7ec]
mov dword fs:[0], eax
mov esi, ecx
mov ecx, dword [esi]
xor edi, edi
mov dword [esp + 0x7f4], edi
call fcn.0041af13
mov eax, dword [esi + 0x10]
mov ebp, dword [esp + 0x7fc]
push eax
push 0x7d0
lea eax, [esp + 0x20]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionA]
mov dword [esi + 0xc], eax
call fcn.00419d3c
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x402e55
push 0x80004005
call fcn.00401680
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x10], eax
cmp dword [esi + 0xc], 0
mov byte [esp + 0x7f4], 1
jle 0x402f16
movzx eax, byte [esp + edi + 0x18]
test al, al
je 0x402ecf
push eax
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x1c]
push edx
call fcn.00402c90
add esp, 0xc
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x7f8], 2
call fcn.00402420
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x7f4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402f0a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x402f0a
mov ecx, dword [esp + 0x10]
push 0x447c62
push ecx
call fcn.0042eae7
add esp, 8
test eax, eax
setne al
test al, al
je 0x402efa
mov ecx, dword [esi]
mov eax, dword [ecx + 8]
lea edx, [esp + 0x10]
push edx
push eax
call fcn.0041afa8
push 0
push 0x447c62
lea ecx, [esp + 0x18]
call fcn.00402220
add edi, 1
cmp edi, dword [esi + 0xc]
jl 0x402e77
mov eax, dword [esp + 0x10]
mov esi, dword [esi]
add eax, 0xfffffff0
mov byte [esp + 0x7f4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402f40
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebp - 0x10]
mov dword [esp + 0x7f4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402f67
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x7ec]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x7d8]
xor ecx, esp
call fcn.0042e618
add esp, 0x7e8
ret 4
Function at 0x402fa0
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x443bb0
mov eax, dword fs:[0]
push eax
sub esp, 0x108
mov eax, dword [0x459a70]
xor eax, esp
mov dword [esp + 0x104], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x459a70]
xor eax, esp
push eax
lea eax, [esp + 0x11c]
mov dword fs:[0], eax
mov edi, dword [esp + 0x12c]
mov esi, ecx
mov dword [esp + 0x14], 0
mov eax, dword [esi + 0x10]
mov ebp, dword [esp + 0x130]
mov ebx, dword [esp + 0x134]
push eax
push 0xff
lea eax, [esp + 0x20]
push eax
push 0x447c62
push ebp
push ebx
mov dword [esp + 0x13c], 1
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ecx, [esp + 0x18]
push ecx
mov ecx, edi
mov dword [esi + 0xc], eax
call fcn.004027b0
lea eax, [ebp - 0x10]
mov byte [esp + 0x124], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x403053
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebx - 0x10]
mov dword [esp + 0x124], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40307a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [esp + 0x11c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.0042e618
add esp, 0x114
ret 0xc

Function at 0x403130
Capabilities:
Check os version

Disassembly:
sub esp, 0xa0
mov eax, dword [0x459a70]
xor eax, esp
mov dword [esp + 0x9c], eax
push esi
push 0x9c
lea eax, [esp + 8]
push 0
push eax
call fcn.0042ebd0
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
add esp, 0xc
lea ecx, [esp + 4]
push ecx
mov dword [esp + 8], 0x9c
call esi
test eax, eax
jne 0x403189
lea edx, [esp + 4]
push edx
mov dword [esp + 8], 0x94
call esi
test eax, eax
je 0x40324a
mov eax, dword [esp + 0x14]
sub eax, 0
je 0x40324a
sub eax, 1
je 0x4031fe
sub eax, 1
jne 0x40324a
mov eax, dword [esp + 8]
cmp eax, 5
jne 0x4031de
mov eax, dword [esp + 0xc]
cmp eax, 2
je 0x4031c3
cmp eax, 1
je 0x4031c3
test eax, eax
jne 0x40324a
mov eax, 3
pop esi
mov ecx, dword [esp + 0x9c]
xor ecx, esp
call fcn.0042e618
add esp, 0xa0
ret
cmp eax, 6
jne 0x40324a
mov eax, 4
pop esi
mov ecx, dword [esp + 0x9c]
xor ecx, esp
call fcn.0042e618
add esp, 0xa0
ret
cmp dword [esp + 8], 4
jne 0x40324a
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x403225
xor eax, eax
pop esi
mov ecx, dword [esp + 0x9c]
xor ecx, esp
call fcn.0042e618
add esp, 0xa0
ret
cmp eax, 0xa
je 0x40320d
cmp eax, 0x5a
jne 0x40324a
mov eax, 1
pop esi
mov ecx, dword [esp + 0x9c]
xor ecx, esp
call fcn.0042e618
add esp, 0xa0
ret
mov ecx, dword [esp + 0xa0]
pop esi
xor ecx, esp
or eax, 0xffffffff
call fcn.0042e618
add esp, 0xa0
ret
Function at 0x408df0
Capabilities:
Check os version

Disassembly:
sub esp, 0xa0
mov eax, dword [0x459a70]
xor eax, esp
mov dword [esp + 0x9c], eax
push esi
push 0x9c
lea eax, [esp + 8]
push 0
push eax
call fcn.0042ebd0
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
add esp, 0xc
lea ecx, [esp + 4]
push ecx
mov dword [esp + 8], 0x9c
call esi
test eax, eax
jne 0x408e49
lea edx, [esp + 4]
push edx
mov dword [esp + 8], 0x94
call esi
test eax, eax
je 0x408f25
mov eax, dword [esp + 0x14]
sub eax, 0
je 0x408f25
sub eax, 1
je 0x408ed9
sub eax, 1
jne 0x408f25
mov eax, dword [esp + 8]
cmp eax, 5
jne 0x408eb9
mov eax, dword [esp + 0xc]
cmp eax, 2
jne 0x408e91
mov eax, 3
pop esi
mov ecx, dword [esp + 0x9c]
xor ecx, esp
call fcn.0042e618
add esp, 0xa0
ret
cmp eax, 1
je 0x408e76
test eax, eax
jne 0x408f25
mov eax, 2
pop esi
mov ecx, dword [esp + 0x9c]
xor ecx, esp
call fcn.0042e618
add esp, 0xa0
ret
cmp eax, 6
jne 0x408f25
mov eax, 4
pop esi
mov ecx, dword [esp + 0x9c]
xor ecx, esp
call fcn.0042e618
add esp, 0xa0
ret
cmp dword [esp + 8], 4
jne 0x408f25
mov eax, dword [esp + 0xc]
test eax, eax
je 0x408f25
cmp eax, 0xa
jne 0x408f05
xor eax, eax
pop esi
mov ecx, dword [esp + 0x9c]
xor ecx, esp
call fcn.0042e618
add esp, 0xa0
ret
cmp eax, 0x5a
jne 0x408f25
mov eax, 1
pop esi
mov ecx, dword [esp + 0x9c]
xor ecx, esp
call fcn.0042e618
add esp, 0xa0
ret
mov ecx, dword [esp + 0xa0]
pop esi
xor ecx, esp
or eax, 0xffffffff
call fcn.0042e618
add esp, 0xa0
ret

Function at 0x40b23c
Capabilities:
Encode data using xor

Disassembly:
push ebx
push ecx
push edx
push esi
mov ebx, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov edx, ecx
cmp edx, 4
jl 0x40b283
cmp edx, 0x10
jl 0x40b26f
shr ecx, 4
nop
xor eax, dword [ebx]
mov esi, dword [ebx + 4]
xor eax, dword [ebx + 8]
xor esi, dword [ebx + 0xc]
add ebx, 0x10
xor eax, esi
dec ecx
jne 0x40b25c
mov ecx, edx
shr ecx, 2
and ecx, 3
test ecx, ecx
je 0x40b283
xor eax, dword [ebx]
add ebx, 4
dec ecx
jne 0x40b27b
and edx, 3
cmp edx, 3
jne 0x40b297
xor ecx, ecx
mov cl, byte [ebx]
inc ebx
shl ecx, 0x10
xor eax, ecx
jmp 0x40b29c
cmp edx, 2
jne 0x40b2a8
xor ecx, ecx
mov cl, byte [ebx]
inc ebx
shl ecx, 8
xor eax, ecx
jmp 0x40b2ad
cmp edx, 1
jne 0x40b2b3
xor ecx, ecx
mov cl, byte [ebx]
xor eax, ecx
pop esi
pop edx
pop ecx
pop ebx
ret
Function at 0x411136
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
test byte [esi + 4], 1
push edi
mov ebx, ecx
je 0x41114c
mov edi, dword [esi + 0xc]
jmp 0x41118c
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x411165
call fcn.00417b86
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x41117a
call fcn.00417b86
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x41118c
call fcn.00417b86
call fcn.0041a8f1
cmp dword [eax + 0x3c], 0
je 0x4111a1
push edi
mov ecx, ebx
call fcn.00410081
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.00411050
mov dword [ebp + 8], eax
mov eax, dword [ebx + 0x5c]
test eax, eax
je 0x4111bf
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
and dword [ebx + 0x5c], 0
mov eax, dword [ebp + 8]
test eax, eax
je 0x4111cb
mov edi, eax
mov dword [ebx + 0x5c], eax
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x414d9e
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x414dd7
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.00414d39
push eax
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00413bde
pop esi
ret 4
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
pop esi
jmp dword [eax + 0x8c]

Function at 0x4168eb
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 0x41692e
call fcn.0041a8f1
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x41692e
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x416949
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.004164a2
test ebx, ebx
mov esi, eax
je 0x416947
test edi, edi
je 0x416947
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x418cde
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x24
mov eax, 0x444e09
call fcn.004318d0
mov esi, ecx
mov dword [ebp - 0x20], esi
mov eax, dword [esi + 0x60]
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 0x5c]
mov dword [ebp - 0x18], eax
call fcn.0041a8f1
mov edi, dword [eax + 0xc]
xor ebx, ebx
cmp dword [esi + 0x58], ebx
je 0x418d29
call fcn.0041a8f1
mov edi, dword [eax + 0xc]
push 5
push dword [esi + 0x58]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], ebx
je 0x418d3a
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], ebx
jne 0x418d47
or eax, 0xffffffff
jmp 0x418ea3
mov ecx, esi
call fcn.00418830
mov dword [ebp - 0x14], eax
call fcn.00413d8d
and dword [ebp - 0x28], ebx
cmp dword [ebp - 0x14], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x24], ebx
je 0x418dc5
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp dword [ebp - 0x14], eax
je 0x418dc5
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x418dc5
push 0
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x2c], 1
call fcn.00412927
mov ebx, eax
test ebx, ebx
mov dword [ebp - 0x24], ebx
je 0x418dc5
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x120]
test eax, eax
je 0x418dc5
mov ecx, ebx
call fcn.00417180
test eax, eax
je 0x418dc5
push 0
mov ecx, ebx
call fcn.0041719b
mov dword [ebp - 0x28], 1
and dword [ebp - 4], 0
push esi
call fcn.004157ce
push dword [ebp - 0x14]
call fcn.00413ce5
push edi
push eax
push dword [ebp - 0x1c]
mov ecx, esi
call fcn.00418ae6
xor edi, edi
cmp eax, edi
je 0x418e22
test byte [esi + 0x3c], 0x10
je 0x418e0c
push 4
pop edi
mov ecx, esi
call fcn.00417067
test ax, 0x100
je 0x418e02
push 5
pop edi
push edi
mov ecx, esi
call fcn.00413888
xor edi, edi
cmp dword [esi + 0x20], edi
je 0x418e22
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.0041736a
or dword [ebp - 4], 0xffffffff
jmp 0x418e4d
cmp dword [ebp - 0x28], edi
je 0x418e5b
push 1
mov ecx, ebx
call fcn.0041719b
cmp dword [ebp - 0x2c], edi
je 0x418e6b
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x418e84
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x20]
jne 0x418e84
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x60]
mov ecx, esi
call fcn.0041886a
cmp dword [esi + 0x58], edi
je 0x418ea0
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [esi + 0x44]
call fcn.00431975
ret
Function at 0x41c524
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
push dword [ebp + 8]
xor esi, esi
mov dword [ebp - 8], esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
jne 0x41c554
push dword [ebp + 8]
call edi
push eax
call fcn.0041c0ad
mov ebx, dword [ebp + 0xc]
movzx eax, byte [ebx + 0x20]
cmp eax, dword [ebp - 4]
je 0x41c57f
test byte [ebp - 4], 1
je 0x41c57f
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x41c57f
push dword [ebp + 8]
call edi
push eax
call fcn.0041c0ad
lea eax, [ebx + 8]
mov ecx, dword [eax]
or ecx, dword [eax + 4]
je 0x41c639
lea ecx, [ebp - 0x20]
push ecx
push eax
call fcn.0041c489
pop ecx
lea eax, [ebx + 0x10]
pop ecx
mov ecx, dword [eax]
or ecx, dword [eax + 4]
je 0x41c5b5
lea ecx, [ebp - 0x10]
push ecx
push eax
call fcn.0041c489
pop ecx
lea eax, [ebp - 0x10]
pop ecx
mov dword [ebp - 8], eax
mov eax, dword [ebx]
or eax, dword [ebx + 4]
je 0x41c5cb
lea eax, [ebp - 0x18]
push eax
push ebx
call fcn.0041c489
pop ecx
pop ecx
lea esi, [ebp - 0x18]
push 0
push 0x80
push 3
push 0
push 1
push 0xc0000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x41c5f8
push dword [ebp + 8]
call edi
push eax
call fcn.0041c0ad
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 8]
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileTime]
test eax, eax
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
jne 0x41c624
call edi
push ebx
mov dword [ebp - 8], eax
call esi
push dword [ebp + 8]
push dword [ebp - 8]
call fcn.0041c0ad
push ebx
call esi
test eax, eax
jne 0x41c636
push dword [ebp + 8]
call edi
push eax
call fcn.0041c0ad
mov ebx, dword [ebp + 0xc]
movzx eax, byte [ebx + 0x20]
cmp eax, dword [ebp - 4]
je 0x41c661
test byte [ebp - 4], 1
jne 0x41c661
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x41c661
push dword [ebp + 8]
call edi
push eax
call fcn.0041c0ad
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x41ce0b
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x459a70]
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 - 0x11c]
jne 0x41ce4b
push 0x44b1e0
push 4
push eax
call fcn.004332e1
push eax
call fcn.00404b30
add esp, 0x10
jmp 0x41ce5d
push 4
push eax
push 3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x41cecb
push edi
call fcn.00431bf7
mov edi, dword [eax]
call fcn.00431bf7
and dword [eax], 0
lea eax, [ebp - 0x11c]
push eax
push ebx
push esi
push 0x111
mov esi, 0x112
lea eax, [ebp - 0x118]
push esi
push eax
call fcn.004300e7
add esp, 0x18
mov ebx, eax
call fcn.00431bf7
cmp dword [eax], 0
je 0x41ceab
call fcn.00431bf7
push dword [eax]
call fcn.00411601
pop ecx
jmp 0x41ceb2
call fcn.00431bf7
mov dword [eax], edi
cmp ebx, 0xffffffff
pop edi
je 0x41cecb
cmp ebx, esi
jae 0x41cecb
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
jmp 0x41cecd
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0042e618
leave
ret
Function at 0x41e61f
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 0x41e665
call fcn.0041a8f1
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x41e665
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 4], eax
je 0x41e6a8
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 0x41e691
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 0x41e691
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x41e6a5
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 0x41ff0e
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 0x41ff3c
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x41ff5a
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0041fe78
jmp 0x41ff5a
mov eax, dword [esi + 0x14]
test eax, eax
je 0x41ff5a
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.0041fe78
test edi, edi
mov eax, edi
jne 0x41ff44
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x45dc30]
test ecx, ecx
je 0x42001d
jmp 0x41ff0d
ret 8

Function at 0x42e618
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x459a70]
jne 0x42e622
repz ret
jmp fcn.00435c7c