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

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x44f9fc], 0
push esi
push edi
jne 0x430c16
push 0x44bb10
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [0x4372ac]
mov esi, eax
test esi, esi
je 0x430c16
push esi
push dword [ebp + 8]
call dword [0x437214]
push esi
mov edi, eax
push dword [ebp + 8]
call dword [0x437238]
mov esi, eax
test esi, esi
je 0x430c16
push esi
call dword [0x43722c]
test eax, eax
je 0x430c0f
push edi
push eax
push dword [ebp + 0xc]
call fcn.00430b8a
add esp, 0xc
cmp eax, dword [0x439758]
jne 0x430c1b
push esi
call dword [0x437160]
mov eax, dword [0x439758]
pop edi
pop esi
pop ebp
ret

Function at 0x430c1f
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
cmp dword [0x44f9fc], 0
mov eax, dword [ebp + 8]
push esi
mov esi, dword [0x439758]
jne 0x430d5c
test eax, eax
je 0x430c4c
cmp byte [eax], 0
jne 0x430d5c
push ebx
mov ebx, 0x105
push edi
mov edi, dword [reloc.606162636465666768696A6B6C6D6E6F707172737475767778797A7B7C7D7E7F808182838485868788898A8B8C8D8E8F909192939495969798999A9B9C9D9E9FA0A1A2A3A4A5A6A7A8A9AAABACADAEAFB0B1B2B3B4B5B6B7B8B9BABBBCBDBEBFC0C1C2C3C4C5C6C7C8C9CACBCCCDCECFD0D1D2D3D4D5D6D7D8D9DADBDCDDDEDF_GetModuleFileNameA]
lea eax, [ebp - 0x108]
push ebx
push eax
push dword [0x44f9f4]
call edi
test eax, eax
je 0x430c90
lea eax, [ebp - 0x108]
push eax
call fcn.004309e7
and byte [eax], 0
push dword [ebp + 0xc]
lea eax, [ebp - 0x108]
push eax
call fcn.00430d6a
add esp, 0xc
mov esi, eax
cmp esi, dword [0x439758]
jne 0x430d56
lea eax, [ebp - 0x108]
push ebx
push eax
push 0
call edi
test eax, eax
je 0x430ccf
lea eax, [ebp - 0x108]
push eax
call fcn.004309e7
and byte [eax], 0
push dword [ebp + 0xc]
lea eax, [ebp - 0x108]
push eax
call fcn.00430d6a
add esp, 0xc
mov esi, eax
cmp esi, dword [0x439758]
jne 0x430d56
mov edi, dword [ebp + 0xc]
push edi
push 0x44bb1c
call fcn.00430d6a
mov esi, eax
pop ecx
cmp esi, dword [0x439758]
pop ecx
jne 0x430d56
lea eax, [ebp - 0x108]
push ebx
push eax
call dword [0x437280]
test eax, eax
je 0x430d14
lea eax, [ebp - 0x108]
push edi
push eax
call fcn.00430d6a
pop ecx
mov esi, eax
pop ecx
cmp esi, dword [0x439758]
jne 0x430d56
lea eax, [ebp - 0x108]
push ebx
push eax
call dword [0x43726c]
test eax, eax
je 0x430d3f
lea eax, [ebp - 0x108]
push edi
push eax
call fcn.00430d6a
pop ecx
mov esi, eax
pop ecx
cmp esi, dword [0x439758]
jne 0x430d56
push edi
push str.PATH
call fcn.00430f13
pop ecx
mov esi, eax
pop ecx
pop edi
mov eax, esi
pop ebx
jmp 0x430d67
push dword [ebp + 0xc]
push eax
call fcn.00430d6a
pop ecx
pop ecx
pop esi
leave
ret
Function at 0x431c77
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 4
lea eax, [ebp + 8]
push esi
push eax
call fcn.004308a6
mov eax, dword [ebp + 8]
push 4
lea edi, [eax + esi]
lea eax, [edi + 0x3c]
push eax
lea eax, [ebp - 4]
push eax
call fcn.004308a6
mov eax, dword [ebp - 4]
push 4
add eax, edi
push eax
lea eax, [ebp - 8]
push eax
call fcn.004308a6
add esp, 0x24
cmp dword [ebp - 8], 0x4550
je 0x431cd0
push str.PELD:_peGetProcAddress:_invalid_instance_handle_or_corrupt_memory_image
call fcn.00431517
jmp 0x431d92
mov eax, dword [ebp - 4]
push 8
lea eax, [eax + edi + 0x78]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.004308a6
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x14]
mov ebx, 0x10000
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 0xc], eax
mov dword [ebp + 8], ecx
jb 0x431d02
push str.PELD:_peGetProcAddress:_export_section___64K
jmp 0x431cc6
push eax
call fcn.00430744
mov esi, eax
pop ecx
test esi, esi
jne 0x431d16
push str.PELD:_peGetProcAddress:_picosMalloc_error
jmp 0x431cc6
mov eax, dword [ebp + 8]
push dword [ebp - 0xc]
add eax, edi
push eax
push esi
call fcn.004308a6
mov ecx, dword [ebp + 0xc]
add esp, 0xc
cmp ecx, ebx
jae 0x431d35
sub cx, word [esi + 0x10]
jmp 0x431d83
mov eax, esi
xor ebx, ebx
sub eax, dword [ebp + 8]
add dword [esi + 0x20], eax
cmp dword [esi + 0x18], ebx
jbe 0x431d6c
xor eax, eax
jmp 0x431d4b
mov ecx, dword [ebp + 0xc]
mov edx, dword [esi + 0x20]
mov eax, dword [edx + eax*4]
sub eax, dword [ebp + 8]
add eax, esi
push eax
push ecx
call fcn.004305c6
pop ecx
test eax, eax
pop ecx
je 0x431d6c
inc ebx
movzx eax, bx
cmp eax, dword [esi + 0x18]
jb 0x431d48
movzx eax, bx
cmp eax, dword [esi + 0x18]
jae 0x431d8b
mov ecx, esi
sub ecx, dword [ebp + 8]
add dword [esi + 0x24], ecx
mov ecx, dword [esi + 0x24]
mov cx, word [ecx + eax*2]
movzx eax, cx
cmp eax, dword [esi + 0x14]
jb 0x431d96
push esi
call fcn.0043078a
pop ecx
xor eax, eax
jmp 0x431dae
mov ecx, esi
push esi
sub ecx, dword [ebp + 8]
add dword [esi + 0x1c], ecx
mov ecx, dword [esi + 0x1c]
mov ebx, dword [ecx + eax*4]
call fcn.0043078a
pop ecx
lea eax, [ebx + edi]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4322a0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x30
lea eax, [esp]
push ebx
push ebp
push esi
push edi
push eax
push 0xb0b
call fcn.00432270
mov edi, dword [esp + 0x50]
mov esi, dword [esp + 0x4c]
add esp, 8
lea ebx, [esp + 0x10]
mov ebp, 0xb
mov eax, dword [ebx]
mov edx, dword [esi]
mov ecx, eax
push esi
shl ecx, 0x10
xor ecx, edx
mov edx, dword [edi]
xor ecx, edx
mov dword [esi], ecx
mov edx, dword [edi + 4]
mov ecx, dword [esi + 4]
xor ecx, edx
mov edx, dword [esi + 8]
mov dword [esi + 4], ecx
mov ecx, dword [edi + 8]
xor eax, edx
xor eax, ecx
mov dword [esi + 8], eax
call fcn.00432240
add esp, 4
add ebx, 4
dec ebp
jne 0x4322ca
mov eax, dword [esp + 0x3c]
mov ebx, dword [esi]
mov edx, dword [edi]
mov ecx, eax
mov ebp, dword [esi + 4]
push esi
shl ecx, 0x10
xor ecx, ebx
mov ebx, dword [esi + 8]
xor ecx, edx
xor eax, ebx
mov dword [esi], ecx
mov edx, dword [edi + 4]
xor ebp, edx
mov dword [esi + 4], ebp
mov edx, dword [edi + 8]
xor eax, edx
mov dword [esi + 8], eax
call fcn.00432130
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret

Function at 0x432340
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x3c
mov eax, dword [esp + 0x44]
push ebx
push esi
push edi
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov eax, dword [eax + 8]
mov dword [esp + 0xc], ecx
lea ecx, [esp + 0xc]
mov dword [esp + 0x10], edx
push ecx
mov dword [esp + 0x18], eax
call fcn.00432130
lea edx, [esp + 0x10]
push edx
call fcn.00432080
lea eax, [esp + 0x20]
push eax
push 0xb1b1
call fcn.00432270
mov esi, dword [esp + 0x5c]
push esi
call fcn.00432080
add esp, 0x14
lea edi, [esp + 0x18]
mov ebx, 0xb
mov eax, dword [edi]
mov edx, dword [esi]
mov ecx, eax
push esi
shl ecx, 0x10
xor ecx, edx
mov edx, dword [esp + 0x10]
xor ecx, edx
mov edx, dword [esp + 0x14]
mov dword [esi], ecx
mov ecx, dword [esi + 4]
xor ecx, edx
mov edx, dword [esp + 0x18]
mov dword [esi + 4], ecx
mov ecx, dword [esi + 8]
xor ecx, eax
xor ecx, edx
mov dword [esi + 8], ecx
call fcn.00432240
add esp, 4
add edi, 4
dec ebx
jne 0x432397
mov eax, dword [esp + 0x44]
mov ebx, dword [esi]
mov edi, dword [esp + 0xc]
mov edx, eax
mov ecx, dword [esp + 0x10]
push esi
shl edx, 0x10
xor edx, ebx
mov ebx, dword [esp + 0x18]
xor edx, edi
mov dword [esi], edx
mov edx, dword [esi + 4]
xor edx, ecx
mov dword [esi + 4], edx
mov edx, dword [esi + 8]
xor edx, eax
xor edx, ebx
mov dword [esi + 8], edx
call fcn.00432130
push esi
call fcn.00432080
add esp, 8
pop edi
pop esi
pop ebx
add esp, 0x3c
ret
Function at 0x4328b0
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, dword [esp + 8]
mov eax, dword [esi + 0xb8]
mov ecx, dword [eax + 0x334]
test ecx, ecx
push edi
mov edi, dword [reloc.606162636465666768696A6B6C6D6E6F707172737475767778797A7B7C7D7E7F808182838485868788898A8B8C8D8E8F909192939495969798999A9B9C9D9E9FA0A1A2A3A4A5A6A7A8A9AAABACADAEAFB0B1B2B3B4B5B6B7B8B9BABBBCBDBEBFC0C1C2C3C4C5C6C7C8C9CACBCCCDCECFD0D1D2D3D4D5D6D7D8D9DADBDCDDDEDF_FreeLibrary]
jbe 0x4328ee
mov eax, dword [esi + 8]
test eax, eax
je 0x4328ee
push str.Deinitialize
push eax
call dword [0x437288]
call eax
mov ecx, dword [esi + 8]
push ecx
call edi
mov dword [esi + 8], 0
mov edx, dword [esi + 0xb8]
push edx
call fcn.004329e0
mov eax, dword [esi + 0xac]
add esp, 4
test eax, eax
je 0x432910
push eax
call fcn.004329b0
add esp, 4
mov eax, dword [esi + 0x44]
test eax, eax
je 0x432920
push eax
call fcn.004329b0
add esp, 4
mov eax, dword [esi + 0xb0]
test eax, eax
je 0x432933
push eax
call fcn.004329b0
add esp, 4
mov eax, dword [esi + 0xa0]
test eax, eax
je 0x432946
push eax
call fcn.004329b0
add esp, 4
mov eax, dword [esi + 0xa8]
test eax, eax
je 0x432959
push eax
call fcn.004329b0
add esp, 4
mov eax, dword [esi + 0xa4]
test eax, eax
je 0x43296c
push eax
call fcn.004329b0
add esp, 4
mov eax, dword [esi + 0x4c]
test eax, eax
je 0x43297f
mov eax, dword [esi + 0x48]
push 1
push eax
call dword [0x43715c]
mov eax, dword [esi + 0xc]
test eax, eax
je 0x432989
push eax
call edi
mov eax, dword [esi + 4]
test eax, eax
je 0x432993
push eax
call edi
push esi
call fcn.004329b0
add esp, 4
pop edi
mov eax, 1
pop esi
ret

Function at 0x432a68
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffffc
push str.Debug_Window_for_MASM32
push 0
call fcn.0042877a
or eax, eax
jne 0x432a96
push 1
push str.masm32_bindbgwin.exe
call fcn.004350e2
push str.Debug_Window_for_MASM32
push 0
call fcn.0042877a
or eax, eax
je 0x432b0d
mov dword [ebp - 4], eax
push 0
push 0x44cd22
push 0
push dword [ebp - 4]
call fcn.0043510c
mov dword [ebp - 4], eax
push 0
push 0
push 0xe
push dword [ebp - 4]
call fcn.00428924
push eax
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0xb1
push dword [ebp - 4]
call fcn.00428924
pop eax
or eax, eax
je 0x432aea
push 0x44cd1f
push 0
push 0xc2
push dword [ebp - 4]
call fcn.00428924
push dword [ebp + 8]
push 0
push 0xc2
push dword [ebp - 4]
call fcn.00428924
push 0
push 0
push 0xb7
push dword [ebp - 4]
call fcn.00428924
leave
ret 4
Function at 0x436080
Capabilities:
Check os version
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff6c
push ebx
push edi
push 0xffffffffffffffec
push dword [ebp + 8]
call fcn.00428840
test eax, 0x80000
je 0x43612b
mov dword [ebp - 0x94], 0x94
lea eax, [ebp - 0x94]
push eax
call fcn.004285d0
cmp dword [ebp - 0x90], 5
jb 0x43612b
push str.User32.dll
call fcn.004285a6
push str.SetLayeredWindowAttributes
push eax
call fcn.004285ac
mov edi, eax
push 2
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call edi
push 8
push dword [ebp + 8]
call fcn.0042898a
mov eax, dword [ebp + 0x10]
cmp eax, dword [ebp + 0xc]
jbe 0x43612b
mov eax, dword [ebp + 0x14]
or eax, eax
je 0x43612b
mov eax, dword [ebp + 0x18]
or eax, eax
je 0x43612b
mov ebx, dword [ebp + 0xc]
push 2
push ebx
push 0
push dword [ebp + 8]
call edi
push dword [ebp + 0x18]
call fcn.00428660
add ebx, dword [ebp + 0x14]
cmp ebx, dword [ebp + 0x10]
jb 0x436105
push 2
push dword [ebp + 0x10]
push 0
push dword [ebp + 8]
call edi
pop edi
pop ebx
leave
ret 0x14

Function at 0x436140
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff6c
push ebx
push edi
push 0xffffffffffffffec
push dword [ebp + 8]
call fcn.00428840
test eax, 0x80000
je 0x4361d1
mov dword [ebp - 0x94], 0x94
lea eax, [ebp - 0x94]
push eax
call fcn.004285d0
cmp dword [ebp - 0x90], 5
jb 0x4361d1
push str.User32.dll
call fcn.004285a6
push str.SetLayeredWindowAttributes
push eax
call fcn.004285ac
mov edi, eax
mov eax, dword [ebp + 0x10]
cmp eax, dword [ebp + 0xc]
jae 0x4361d1
mov eax, dword [ebp + 0x14]
or eax, eax
je 0x4361d1
mov eax, dword [ebp + 0x18]
or eax, eax
je 0x4361d1
mov ebx, dword [ebp + 0xc]
push 2
push ebx
push 0
push dword [ebp + 8]
call edi
push dword [ebp + 0x18]
call fcn.00428660
sub ebx, dword [ebp + 0x14]
cmp ebx, dword [ebp + 0x10]
jg 0x4361ab
push 2
push dword [ebp + 0x10]
push 0
push dword [ebp + 8]
call edi
pop edi
pop ebx
leave
ret 0x14
Function at 0x4029e4
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00403f94
test esi, esi
jne 0x402a1a
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA_1
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00404084
jmp 0x402a38
call sub.KERNEL32.DLL_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004028f8
mov edi, eax
test esi, esi
je 0x402a38
cmp dword [ebx], 0
je 0x402a38
dec esi
jmp 0x402a21
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x40309c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x456020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403134
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x403114
xor eax, eax
push ebp
push 0x40310d
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 0x403150
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403114
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
mov ax, word [0x456020]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x456020], ax
mov esp, ebp
pop ebp
ret

Function at 0x403df8
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x458048], 0
je 0x403e59
cmp word [0x45821c], 0xd7b2
jne 0x403e21
cmp dword [0x458224], 0
jbe 0x403e21
mov eax, 0x458218
call dword [0x458234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x45606c
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle_1
push eax
call sub.KERNEL32.DLL_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x403e80
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle_1
push eax
call sub.KERNEL32.DLL_WriteFile_1
pop edx
ret
cmp byte [0x456030], 0
jne 0x403e75
push 0
push 0x456064
push 0x45606c
push 0
call sub.user32.dll_MessageBoxA_1
pop edx
ret
Function at 0x4051f4
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_1
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405424
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
je 0x405277
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405424
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
je 0x405277
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405440
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x405300
xor eax, eax
push ebp
push 0x4052f9
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.0040503c
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_1
test eax, eax
je 0x4052de
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x405460
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x4052de
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 0x405300
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey_1
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_1
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA_1
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x40541a
cmp byte [ebp - 0xd], 0
jne 0x405347
cmp byte [ebp - 0x12], 0
je 0x40541a
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x405360
dec ebx
cmp byte [ebx], 0x2e
je 0x40536f
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x40535f
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x40541a
inc ebx
cmp byte [ebp - 0x12], 0
je 0x4053ac
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 0x40541a
cmp byte [ebp - 0xd], 0
je 0x40541a
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 0x40541a
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 0x405aec
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 0x405b52
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_1
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.00404204
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402c60
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x405b3c
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405b59
lea eax, [ebp - 0x10]
call fcn.00403f94
ret

Function at 0x408594
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00404454
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
cmp eax, 0xffffffff
je 0x4085ad
test al, 0x10
jne 0x4085b1
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x40af10
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 pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA
test eax, eax
jle 0x40af49
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404084
jmp 0x40af52
mov eax, ebx
mov edx, esi
call fcn.00403fe8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40af5c
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
test eax, eax
jle 0x40af7d
mov al, byte [esp]
jmp 0x40af7f
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40bf1c
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 0x40bff2
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.0040402c
lea eax, [ebp - 8]
call fcn.004044a4
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404454
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40bfdc
mov eax, ebx
call fcn.004026bc
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40bfd5
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.00404454
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40bfbf
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40c004
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40bfbf
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 0x40bfdc
mov eax, dword [ebp - 0x10]
call fcn.004026dc
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40bff9
lea eax, [ebp - 8]
call fcn.00403f94
ret
Function at 0x40c4fc
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x40c560
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.00404204
mov eax, dword [ebp - 0xc]
push eax
call sub.KERNEL32.DLL_GetACP
mov edx, eax
pop eax
call fcn.00408214
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c567
lea eax, [ebp - 0xc]
call fcn.00403f94
ret

Function at 0x41a9f8
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x458884
cmp dword [edi], 0
jne 0x41aa74
push 0x40
push 0x1000
push 0x1000
push 0
call sub.KERNEL32.DLL_VirtualAlloc
mov esi, eax
mov eax, dword [0x458880]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x4563ec
mov ecx, 2
call fcn.004028b8
mov edx, 0x41a9d0
lea eax, [esi + 5]
call fcn.0041a9f0
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041a9f0
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0x41aa49
mov dword [0x458880], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x41bf00
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x41bf06
ret

Function at 0x41e354
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
push eax
call sub.KERNEL32.DLL_GetSystemInfo
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
dec ecx
js 0x41e3a5
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x41e38c
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x41e37c
jmp 0x41e3a5
push ebx
xor ebx, ebx
mov eax, dword [edx + ecx*4]
mov bh, al
mov bl, ah
shr eax, 0x10
shl ebx, 8
mov bl, al
mov dword [edx + ecx*4], ebx
dec ecx
jns 0x41e38d
pop ebx
mov esp, ebp
pop ebp
ret