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

Disassembly:
push 0x24
mov eax, 0x44209b
call fcn.00428d04
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.0041caa0
mov edi, dword [eax + 0xc]
xor ebx, ebx
cmp dword [esi + 0x58], ebx
je 0x4164c9
call fcn.0041caa0
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 0x4164da
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], ebx
jne 0x4164e7
or eax, 0xffffffff
jmp 0x416643
mov ecx, esi
call fcn.00415fd0
mov dword [ebp - 0x14], eax
call fcn.00419406
and dword [ebp - 0x28], ebx
cmp dword [ebp - 0x14], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x24], ebx
je 0x416565
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp dword [ebp - 0x14], eax
je 0x416565
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x416565
push 0
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x2c], 1
call fcn.00415e81
mov ebx, eax
test ebx, ebx
mov dword [ebp - 0x24], ebx
je 0x416565
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x120]
test eax, eax
je 0x416565
mov ecx, ebx
call fcn.0041d8df
test eax, eax
je 0x416565
push 0
mov ecx, ebx
call fcn.0041d8fa
mov dword [ebp - 0x28], 1
and dword [ebp - 4], 0
push esi
call fcn.0041ada9
push dword [ebp - 0x14]
call fcn.0041935e
push edi
push eax
push dword [ebp - 0x1c]
mov ecx, esi
call fcn.00416286
xor edi, edi
cmp eax, edi
je 0x4165c2
test byte [esi + 0x3c], 0x10
je 0x4165ac
push 4
pop edi
mov ecx, esi
call fcn.0041d84c
test ax, 0x100
je 0x4165a2
push 5
pop edi
push edi
mov ecx, esi
call fcn.00418ef4
xor edi, edi
cmp dword [esi + 0x20], edi
je 0x4165c2
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.0041d961
or dword [ebp - 4], 0xffffffff
jmp 0x4165ed
cmp dword [ebp - 0x28], edi
je 0x4165fb
push 1
mov ecx, ebx
call fcn.0041d8fa
cmp dword [ebp - 0x2c], edi
je 0x41660b
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x416624
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x20]
jne 0x416624
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.0041600a
cmp dword [esi + 0x58], edi
je 0x416640
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [esi + 0x44]
call fcn.00428d70
ret
Function at 0x41bec6
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 0x41bf09
call fcn.0041caa0
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x41bf09
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x41bf24
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.0041ba7d
test ebx, ebx
mov esi, eax
je 0x41bf22
test edi, edi
je 0x41bf22
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x41ea4c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x453ac0]
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 0x41ea8c
push 0x446b58
push 4
push eax
call fcn.00425ddd
push eax
call fcn.00408bb0
add esp, 0x10
jmp 0x41ea9e
push 4
push eax
push 3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x41eb0c
push edi
call fcn.0042a80a
mov edi, dword [eax]
call fcn.0042a80a
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.00426b1e
add esp, 0x18
mov ebx, eax
call fcn.0042a80a
cmp dword [eax], 0
je 0x41eaec
call fcn.0042a80a
push dword [eax]
call fcn.00416d5b
pop ecx
jmp 0x41eaf3
call fcn.0042a80a
mov dword [eax], edi
cmp ebx, 0xffffffff
pop edi
je 0x41eb0c
cmp ebx, esi
jae 0x41eb0c
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
jmp 0x41eb0e
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00424c71
leave
ret
Function at 0x4206f1
Capabilities:
Read file on windows

Disassembly:
cmp dword [esp + 8], 0
push esi
mov esi, ecx
jne 0x4206fa
xor eax, eax
jmp 0x420763
cmp dword [esp + 8], 0
jne 0x420706
call fcn.0041c114
push edi
push dword [esi + 0x10]
push dword [esp + 0x14]
push 1
push dword [esp + 0x18]
call fcn.0042bddc
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x420741
push dword [esi + 0x10]
call fcn.0042bae2
test eax, eax
pop ecx
jne 0x420741
mov esi, dword [esi + 0xc]
call fcn.0042a81d
push esi
push dword [eax]
push 1
call fcn.00421bbc
push dword [esi + 0x10]
call fcn.0042bb11
test eax, eax
pop ecx
je 0x420760
push dword [esi + 0x10]
call fcn.0042ba36
push eax
call fcn.00408bb0
pop ecx
pop ecx
jmp 0x42072f
mov eax, edi
pop edi
pop esi
ret 8

Function at 0x42076c
Capabilities:
Write file on windows

Disassembly:
cmp dword [esp + 4], 0
push esi
mov esi, ecx
jne 0x420776
call fcn.0041c114
push dword [esi + 0x10]
push dword [esp + 0x10]
push 1
push dword [esp + 0x14]
call fcn.004265a3
add esp, 0x10
cmp eax, dword [esp + 0xc]
je 0x4207a3
mov esi, dword [esi + 0xc]
call fcn.0042a81d
push esi
push dword [eax]
push 1
call fcn.00421bbc
pop esi
ret 8

Function at 0x422a81
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 0x422aaf
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x422acd
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004229eb
jmp 0x422acd
mov eax, dword [esi + 0x14]
test eax, eax
je 0x422acd
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.004229eb
test edi, edi
mov eax, edi
jne 0x422ab7
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x457e1c]
test ecx, ecx
je 0x422b90
jmp 0x422a80
ret 8

Function at 0x424c71
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x453ac0]
jne 0x424c7b
repz ret
jmp fcn.0042c9ab

Function at 0x4256ac
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
jne 0x4256d9
call fcn.0042a81d
mov dword [eax], esi
call fcn.0042a80a
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.00425835
add esp, 0x14
or eax, 0xffffffff
pop esi
ret
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4256f7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0042a830
pop ecx
jmp 0x4256d4
test byte [esp + 0xc], 0x80
je 0x425703
and eax, 0xfffffffe
jmp 0x425706
or eax, 1
push eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
je 0x4256e8
xor eax, eax
pop esi
ret
Function at 0x42bb40
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ebx
je 0x42bb7d
cmp dword [ebp + 0x14], edi
je 0x42bb7d
cmp ecx, edi
jne 0x42bb84
call fcn.0042a80a
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.00425835
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x42bb98
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x42bbb9
cmp ebx, 0xffffffff
je 0x42bba8
push ebx
push edi
push ecx
call fcn.00428890
add esp, 0xc
cmp esi, edi
je 0x42bb65
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x42bb65
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x42bbd5
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x42bbdc
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x42bccd
test word [esi + 0xc], 0x10c
je 0x42bc30
mov eax, dword [esi + 4]
test eax, eax
je 0x42bc30
jl 0x42bd2e
cmp ebx, eax
mov edi, ebx
jb 0x42bc01
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x42bcd5
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.00424fa2
sub dword [esi + 4], edi
add dword [esi], edi
add dword [ebp - 8], edi
sub ebx, edi
add esp, 0x10
sub dword [ebp - 4], edi
mov edi, dword [ebp - 0x10]
jmp 0x42bcc5
cmp ebx, dword [ebp - 0xc]
jb 0x42bc9d
cmp dword [ebp - 0xc], 0
je 0x42bc5a
mov ecx, 0x7fffffff
xor edx, edx
cmp ebx, ecx
jbe 0x42bc4f
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x42bc56
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x42bc65
mov eax, 0x7fffffff
cmp ebx, eax
ja 0x42bc65
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x42bd01
push eax
push dword [ebp - 8]
push esi
call fcn.0042b883
pop ecx
push eax
call fcn.00437d78
add esp, 0xc
test eax, eax
je 0x42bd40
cmp eax, 0xffffffff
je 0x42bd2e
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x42bcc5
push esi
call fcn.004344dc
cmp eax, 0xffffffff
pop ecx
je 0x42bd32
cmp dword [ebp - 4], 0
je 0x42bd01
mov ecx, dword [ebp - 8]
inc dword [ebp - 8]
mov byte [ecx], al
mov eax, dword [esi + 0x18]
dec ebx
dec dword [ebp - 4]
mov dword [ebp - 0xc], eax
test ebx, ebx
jne 0x42bbe4
mov eax, dword [ebp + 0x14]
jmp 0x42bb7f
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x42bcec
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.00428890
add esp, 0xc
call fcn.0042a80a
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x42bb75
cmp dword [ebp + 0xc], 0xffffffff
je 0x42bd17
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.00428890
add esp, 0xc
call fcn.0042a80a
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x42bb75
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x42bb7f
or dword [esi + 0xc], 0x10
jmp 0x42bd32
Function at 0x4317b3
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x454628]
je 0x4317ce
inc edi
cmp edi, 0x17
jb 0x4317bf
cmp edi, 0x17
jae 0x43194e
push ebp
push 3
call fcn.0043a93a
cmp eax, 1
pop ecx
je 0x43191a
push 3
call fcn.0043a93a
test eax, eax
pop ecx
jne 0x431802
cmp dword [0x453ab0], 1
je 0x43191a
cmp ebx, 0xfc
je 0x43194d
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x4583e0
push ebp
call fcn.00425ddd
add esp, 0xc
test eax, eax
je 0x431838
push esi
push esi
push esi
push esi
push esi
call fcn.00425739
add esp, 0x14
push 0x104
mov esi, 0x4583f9
push esi
push 0
mov byte [0x4584fd], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x43187c
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.00425ddd
add esp, 0xc
test eax, eax
je 0x43187c
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00425739
add esp, 0x14
push esi
call fcn.0042a6d0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x4318c1
push esi
call fcn.0042a6d0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x4586f4
push 0x447abc
sub ecx, eax
push ecx
push eax
call fcn.0042a413
add esp, 0x14
test eax, eax
je 0x4318c1
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.00425739
add esp, 0x14
jmp 0x4318c3
xor esi, esi
push 0x447ab8
push ebx
push ebp
call fcn.00425e42
add esp, 0xc
test eax, eax
je 0x4318e3
push esi
push esi
push esi
push esi
push esi
call fcn.00425739
add esp, 0x14
push dword [edi*8 + 0x45462c]
push ebx
push ebp
call fcn.00425e42
add esp, 0xc
test eax, eax
je 0x431905
push esi
push esi
push esi
push esi
push esi
call fcn.00425739
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.0043a77d
add esp, 0xc
jmp 0x43194d
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x43194d
cmp ebp, 0xffffffff
je 0x43194d
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x45462c]
push dword [esi]
call fcn.0042a6d0
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x43a77d
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0042e53f
xor ebx, ebx
cmp dword [0x458928], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x43a853
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x43a933
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x449450
push edi
call esi
cmp eax, ebx
je 0x43a933
push eax
call fcn.0042e4d1
mov dword [esp], 0x449440
push edi
mov dword [0x458928], eax
call esi
push eax
call fcn.0042e4d1
mov dword [esp], 0x44942c
push edi
mov dword [0x45892c], eax
call esi
push eax
call fcn.0042e4d1
mov dword [0x458930], eax
lea eax, [ebp - 0xc]
push eax
call fcn.0042a9b5
test eax, eax
pop ecx
pop ecx
je 0x43a821
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00425739
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x43a853
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.0042e4d1
cmp eax, ebx
pop ecx
mov dword [0x458938], eax
je 0x43a853
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0042e4d1
pop ecx
mov dword [0x458934], eax
mov eax, dword [0x458934]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x43a8d8
cmp dword [0x458938], ecx
je 0x43a8d8
push eax
call fcn.0042e548
push dword [0x458938]
mov esi, eax
call fcn.0042e548
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x43a8d8
cmp edi, ebx
je 0x43a8d8
call esi
cmp eax, ebx
je 0x43a8a5
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x43a8a5
test byte [ebp - 0x18], 1
jne 0x43a8d8
lea eax, [ebp - 0x10]
push eax
call fcn.0042a9ec
test eax, eax
pop ecx
je 0x43a8c0
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00425739
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x43a8cf
or dword [ebp + 0x10], 0x200000
jmp 0x43a913
or dword [ebp + 0x10], 0x40000
jmp 0x43a913
mov eax, dword [0x45892c]
cmp eax, dword [ebp - 8]
je 0x43a913
push eax
call fcn.0042e548
cmp eax, ebx
pop ecx
je 0x43a913
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x43a913
mov eax, dword [0x458930]
cmp eax, dword [ebp - 8]
je 0x43a913
push eax
call fcn.0042e548
cmp eax, ebx
pop ecx
je 0x43a913
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x458928]
call fcn.0042e548
cmp eax, ebx
pop ecx
je 0x43a933
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x43a935
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x43f3f1
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x453ac0]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.0043f386
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.00428890
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 0x43f440
cmp dword [ebp - 0x1c], 5
jb 0x43f458
jmp 0x43f454
cmp dword [ebp - 0x10], 1
jne 0x43f458
cmp dword [ebp - 0x1c], 4
ja 0x43f454
jne 0x43f458
cmp dword [ebp - 0x18], 0
jbe 0x43f458
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x4495bc
call fcn.0043f277
test eax, eax
jge 0x43f479
mov byte [0x458e70], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00424c71
add ebp, 0x78
leave
ret
Function at 0x40307c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x468020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403114
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4030f4
xor eax, eax
push ebp
push 0x4030ed
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x403130
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4030f4
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x468020]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x468020], ax
mov esp, ebp
pop ebp
ret

Function at 0x403de0
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x46a04c], 0
je 0x403e41
cmp word [0x46a220], 0xd7b2
jne 0x403e09
cmp dword [0x46a228], 0
jbe 0x403e09
mov eax, 0x46a21c
call dword [0x46a238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x46806c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x403e68
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x468030], 0
jne 0x403e5d
push 0
push 0x468064
push 0x46806c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x4055b0
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4057e0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405633
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4057e0
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405633
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4057fc
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4056bc
xor eax, eax
push ebp
push 0x4056b5
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.004053f8
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x40569a
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x40581c
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x40569a
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4056bc
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpynA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x4057d6
cmp byte [ebp - 0xd], 0
jne 0x405703
cmp byte [ebp - 0x12], 0
je 0x4057d6
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x40571c
dec ebx
cmp byte [ebx], 0x2e
je 0x40572b
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x40571b
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x4057d6
inc ebx
cmp byte [ebp - 0x12], 0
je 0x405768
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x4057d6
cmp byte [ebp - 0xd], 0
je 0x4057d6
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x4057d6
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x405ea8
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x405f0e
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.004041cc
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402c40
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x405ef8
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405f15
lea eax, [ebp - 0x10]
call fcn.00403f5c
ret

Function at 0x40b0bc
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push 0x100
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40b0f5
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.0040404c
jmp 0x40b0fe
mov eax, ebx
mov edx, esi
call fcn.00403fb0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40b108
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40b129
mov al, byte [esp]
jmp 0x40b12b
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40c11c
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40c1f2
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00403ff4
lea eax, [ebp - 8]
call fcn.0040446c
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.0040441c
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40c1dc
mov eax, ebx
call fcn.0040277c
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40c1d5
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.0040441c
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40c1bf
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40c204
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40c1bf
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c1dc
mov eax, dword [ebp - 0x10]
call fcn.0040279c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c1f9
lea eax, [ebp - 8]
call fcn.00403f5c
ret