joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402c8c
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x413008], 0x8088405
inc edx
mov dword [ebx + 0x413008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x4030b4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x413024]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x40314c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x40312c
xor eax, eax
push ebp
push 0x403125
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 0x403168
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 0x40312c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x413024]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x413024], ax
mov esp, ebp
pop ebp
ret

Function at 0x403c04
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x414044], 0
je 0x403c65
cmp word [0x414218], 0xd7b2
jne 0x403c2d
cmp dword [0x414220], 0
jbe 0x403c2d
mov eax, 0x414214
call dword [0x414230]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x413070
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 0x403c8c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x413034], 0
jne 0x403c81
push 0
push 0x413068
push 0x413070
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x4057d4
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 0x40583a
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.00403ff8
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402ca8
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x405824
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405841
lea eax, [ebp - 0x10]
call fcn.00403d88
ret

Function at 0x409ae8
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_1
test eax, eax
jle 0x409b21
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403e78
jmp 0x409b2a
mov eax, ebx
mov edx, esi
call fcn.00403ddc
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x409b34
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 0x409b55
mov al, byte [esp]
jmp 0x409b57
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40a1ec
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40a054
mov eax, dword [0x413518]
xor eax, 0x38800041
invalid
je 0x40a268
mov eax, dword [0x41343c]
call fcn.00402c08
call fcn.00402aa8
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.0040743c
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
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 0x40a2b0
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40a29e
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x413418]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x414660]
call fcn.00404c7c
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret
Function at 0x40afb0
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 0x40b014
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_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.00403ff8
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00406ff0
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40b01b
lea eax, [ebp - 0xc]
call fcn.00403d88
ret

Function at 0x412a78
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff74
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
xor edx, edx
mov dword [edi], edx
xor edx, edx
mov dword [esi], edx
mov byte [ebp - 0x8c], 0x88
push 0
lea edx, [ebp - 0x8c]
push edx
push eax
call sub.kernel32.dll_OpenFile
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
je 0x412b0c
xor eax, eax
push ebp
push 0x412b05
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_GetFileSize
mov ebx, eax
test ebx, ebx
ja 0x412ad5
call fcn.004037e4
jmp 0x412b0c
mov eax, ebx
call fcn.004029a4
mov dword [esi], eax
push 0
push edi
push ebx
mov eax, dword [esi]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_ReadFile
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x412b0c
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll__lclose
ret
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x412b4c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff24
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0xdc], ebx
mov ebx, ecx
mov dword [ebp - 4], edx
xor edx, edx
push ebp
push 0x412cd6
push dword fs:[edx]
mov dword fs:[edx], esp
lea ecx, [ebp - 8]
lea edx, [ebp - 0xc]
call fcn.00412a78
xor ecx, ecx
push ebp
push 0x412cb6
push dword fs:[ecx]
mov dword fs:[ecx], esp
mov esi, dword [ebp - 8]
dec esi
test esi, esi
jl 0x412bd5
inc esi
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
mov al, byte [eax + edx]
mov edx, eax
movzx ecx, bx
shr ecx, 8
xor al, cl
and edx, 0xff
add bx, dx
imul dx, bx, 0x5163
add dx, 0x7d52
mov ebx, edx
mov edx, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
lea ecx, [edx + ecx]
mov byte [ecx], al
inc dword [ebp - 0x10]
dec esi
jne 0x412b9c
mov dl, 1
mov eax, dword [0x40faa0]
call fcn.004031e8
mov dword [ebp - 0x14], eax
xor eax, eax
push ebp
push 0x412c93
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 0x14]
mov ebx, dword [eax]
call dword [ebx + 0x10]
call fcn.00402b7c
mov dword [ebp - 0x10], 0xbe
lea eax, [ebp - 0xd6]
mov dword [ebp - 0x18], eax
xor eax, eax
push ebp
push 0x412c3c
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, 0xff
call fcn.00402c8c
mov edx, dword [ebp - 0x18]
mov byte [edx], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x412c46
inc dword [ebp - 0x18]
dec dword [ebp - 0x10]
jne 0x412c15
lea edx, [ebp - 0xd6]
mov ecx, 0xbe
mov eax, dword [ebp - 0x14]
mov ebx, dword [eax]
call dword [ebx + 0x10]
lea eax, [ebp - 0xdc]
mov edx, dword [ebp - 4]
call fcn.00403f80
mov edx, dword [ebp - 0xdc]
mov eax, dword [ebp - 0x14]
call fcn.00411cd8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x412c9a
mov eax, dword [ebp - 0x14]
call fcn.00403218
ret

Function at 0x412ce4
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404214
xor eax, eax
push ebp
push 0x412d76
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x48]
xor ecx, ecx
mov edx, 0x44
call fcn.00402c6c
mov dword [ebp - 0x48], 0x44
mov dword [ebp - 0x1c], 1
mov word [ebp - 0x18], bx
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x48]
push eax
push 0
push 0
push 0x30
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00404224
push eax
push 0
call sub.kernel32.dll_CreateProcessA
test eax, eax
je 0x412d54
mov eax, dword [ebp - 0x58]
jmp 0x412d56
xor eax, eax
test eax, eax
jbe 0x412d60
push eax
call sub.kernel32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x412d7d
lea eax, [ebp - 4]
call fcn.00403d88
ret
Function at 0x13141904
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
cmp byte [0x1314b5bc], 0
je 0x131419e1
xor edx, edx
push ebp
push 0x131419da
push dword fs:[edx]
mov dword fs:[edx], esp
cmp byte [0x1314b045], 0
je 0x13141936
push 0x1314b5c4
call sub.KERNEL32.DLL_VirtualQuery
mov byte [0x1314b5bc], 0
mov eax, dword [0x1314b61c]
push eax
call sub.KERNEL32.DLL_SetFilePointer
xor eax, eax
mov dword [0x1314b61c], eax
mov ebx, dword [0x1314b5e4]
jmp 0x13141969
push 0x8000
push 0
mov eax, dword [ebx + 8]
push eax
call sub.KERNEL32.DLL_VirtualAllocEx
mov ebx, dword [ebx]
cmp ebx, 0x1314b5e4
jne 0x13141957
mov eax, 0x1314b5e4
call fcn.13141204
mov eax, 0x1314b5f4
call fcn.13141204
mov eax, 0x1314b620
call fcn.13141204
mov eax, dword [0x1314b5dc]
test eax, eax
je 0x131419af
mov edx, dword [eax]
mov dword [0x1314b5dc], edx
push eax
call sub.KERNEL32.DLL_SetFilePointer
mov eax, dword [0x1314b5dc]
test eax, eax
jne 0x13141998
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x131419e1
cmp byte [0x1314b045], 0
je 0x131419cf
push 0x1314b5c4
call sub.KERNEL32.DLL_WriteFile
push 0x1314b5c4
call sub.KERNEL32.DLL_WriteProcessMemory
ret
pop ebx
pop ebp
ret
Function at 0x13141f2c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov ebx, eax
cmp byte [0x1314b5bc], 0
jne 0x13141f49
call fcn.13141840
test al, al
je 0x13141f51
cmp ebx, 0x7ffffff8
jle 0x13141f5b
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x131420af
xor ecx, ecx
push ebp
push 0x131420a8
push dword fs:[ecx]
mov dword fs:[ecx], esp
cmp byte [0x1314b045], 0
je 0x13141f7c
push 0x1314b5c4
call sub.KERNEL32.DLL_VirtualQuery
add ebx, 7
and ebx, 0xfffffffc
cmp ebx, 0xc
jge 0x13141f8c
mov ebx, 0xc
cmp ebx, 0x1000
jg 0x1314202b
mov eax, ebx
test eax, eax
jns 0x13141fa1
add eax, 3
sar eax, 2
mov edx, dword [0x1314b61c]
mov edx, dword [edx + eax*4 - 0xc]
test edx, edx
je 0x1314202b
mov esi, edx
mov eax, esi
add eax, ebx
and dword [eax], 0xfffffffe
mov eax, dword [edx + 4]
cmp edx, eax
jne 0x13141fdc
mov eax, ebx
test eax, eax
jns 0x13141fcb
add eax, 3
sar eax, 2
mov ecx, dword [0x1314b61c]
xor edi, edi
mov dword [ecx + eax*4 - 0xc], edi
jmp 0x13142002
mov ecx, ebx
test ecx, ecx
jns 0x13141fe5
add ecx, 3
sar ecx, 2
mov edi, dword [0x1314b61c]
mov dword [edi + ecx*4 - 0xc], eax
mov ecx, dword [edx]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 8]
mov dword [ecx + 4], eax
mov ecx, dword [ebp - 8]
mov dword [eax], ecx
mov eax, esi
mov edx, dword [edx + 8]
or edx, 2
mov dword [eax], edx
add eax, 4
mov dword [ebp - 4], eax
inc dword [0x1314b5ac]
sub ebx, 4
add dword [0x1314b5b0], ebx
call fcn.131432b0
jmp 0x131420af
cmp ebx, dword [0x1314b614]
jg 0x1314207d
sub dword [0x1314b614], ebx
cmp dword [0x1314b614], 0xc
jge 0x1314204f
add ebx, dword [0x1314b614]
xor eax, eax
mov dword [0x1314b614], eax
mov eax, dword [0x1314b618]
add dword [0x1314b618], ebx
mov edx, ebx
or edx, 2
mov dword [eax], edx
add eax, 4
mov dword [ebp - 4], eax
inc dword [0x1314b5ac]
sub ebx, 4
add dword [0x1314b5b0], ebx
call fcn.131432b0
jmp 0x131420af
mov eax, ebx
call fcn.13141e38
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x131420af
cmp byte [0x1314b045], 0
je 0x131420a7
push 0x1314b5c4
call sub.KERNEL32.DLL_WriteFile
ret
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret
Function at 0x131420bc
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
mov dword [0x1314b5c0], eax
cmp byte [0x1314b5bc], 0
jne 0x131420f4
call fcn.13141840
test al, al
jne 0x131420f4
mov dword [0x1314b5c0], 8
mov dword [ebp - 4], 8
jmp 0x13142255
xor ecx, ecx
push ebp
push 0x1314224e
push dword fs:[ecx]
mov dword fs:[ecx], esp
cmp byte [0x1314b045], 0
je 0x13142115
push 0x1314b5c4
call sub.KERNEL32.DLL_VirtualQuery
mov esi, ebx
sub esi, 4
mov ebx, dword [esi]
test bl, 2
jne 0x13142130
mov dword [0x1314b5c0], 9
jmp 0x13142225
dec dword [0x1314b5ac]
mov eax, ebx
and eax, 0x7ffffffc
sub eax, 4
sub dword [0x1314b5b0], eax
test bl, 1
je 0x13142190
mov eax, esi
sub eax, 0xc
mov edx, dword [eax + 8]
cmp edx, 0xc
jl 0x13142160
test edx, 0x80000003
je 0x1314216f
mov dword [0x1314b5c0], 0xa
jmp 0x13142225
mov eax, esi
sub eax, edx
cmp edx, dword [eax + 8]
je 0x13142187
mov dword [0x1314b5c0], 0xa
jmp 0x13142225
add ebx, edx
mov esi, eax
call fcn.131419e4
and ebx, 0x7ffffffc
mov eax, esi
add eax, ebx
mov edi, eax
cmp edi, dword [0x1314b618]
jne 0x131421d0
sub dword [0x1314b618], ebx
add dword [0x1314b614], ebx
cmp dword [0x1314b614], 0x3c00
jle 0x131421c1
call fcn.13141cd4
xor eax, eax
mov dword [ebp - 4], eax
call fcn.131432b0
jmp 0x13142255
mov edx, dword [eax]
test dl, 2
je 0x131421f3
and edx, 0x7ffffffc
cmp edx, 4
jge 0x131421ee
mov dword [0x1314b5c0], 0xb
jmp 0x13142225
or dword [eax], 1
jmp 0x1314221c
mov eax, edi
cmp dword [eax + 4], 0
je 0x13142206
cmp dword [eax], 0
je 0x13142206
cmp dword [eax + 8], 0xc
jge 0x13142212
mov dword [0x1314b5c0], 0xb
jmp 0x13142225
mov edx, dword [eax + 8]
add ebx, edx
call fcn.131419e4
mov edx, ebx
mov eax, esi
call fcn.13141c4c
mov eax, dword [0x1314b5c0]
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x13142255
cmp byte [0x1314b045], 0
je 0x1314224d
push 0x1314b5c4
call sub.KERNEL32.DLL_WriteFile
ret
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret

Function at 0x13142770
Capabilities:
Get file attributes

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.131437a4
test esi, esi
jne 0x131427a6
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.KERNEL32.DLL_GetLocalTime
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.13143894
jmp 0x131427c4
call sub.KERNEL32.DLL_GetFileAttributesA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.13142684
mov edi, eax
test esi, esi
je 0x131427c4
cmp dword [ebx], 0
je 0x131427c4
dec esi
jmp 0x131427ad
add esp, 0x108
pop edi
pop esi
pop ebx
ret
Function at 0x13142ce4
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x1314a018]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x13142d7c
push 0x80000002
call sub.user32.dll_FindWindowA
test eax, eax
jne 0x13142d5c
xor eax, eax
push ebp
push 0x13142d55
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 0x13142d98
mov eax, dword [ebp - 4]
push eax
call sub.user32.dll_GetClassNameA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x13142d5c
mov eax, dword [ebp - 4]
push eax
call sub.user32.dll_EnumWindows
ret
mov ax, word [0x1314a018]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x1314a018], ax
mov esp, ebp
pop ebp
ret

Function at 0x131436b4
Capabilities:
Get disk information

Disassembly:
push ebx
push esi
push edi
push ebp
mov ebx, 0x1314b630
mov esi, section.DATA
mov edi, 0x1314b040
cmp byte [ebx + 0x28], 0
jne 0x131436e3
cmp dword [edi], 0
je 0x131436e3
mov edx, dword [edi]
mov eax, edx
xor edx, edx
mov dword [edi], edx
mov ebp, eax
call ebp
cmp dword [edi], 0
jne 0x131436d2
cmp dword [0x1314a004], 0
je 0x131436fd
call fcn.1314359c
call fcn.13143628
xor eax, eax
mov dword [0x1314a004], eax
cmp byte [ebx + 0x28], 2
jne 0x1314370d
cmp dword [esi], 0
jne 0x1314370d
xor eax, eax
mov dword [ebx + 0xc], eax
call fcn.13143450
cmp byte [ebx + 0x28], 1
jbe 0x1314371d
cmp dword [esi], 0
je 0x1314373e
mov eax, dword [ebx + 0x10]
test eax, eax
je 0x1314373e
call fcn.131445c8
mov edx, dword [ebx + 0x10]
mov eax, dword [edx + 0x10]
cmp eax, dword [edx + 4]
je 0x1314373e
test eax, eax
je 0x1314373e
push eax
call sub.KERNEL32.DLL_GetDriveTypeA
call fcn.13143428
cmp byte [ebx + 0x28], 1
jne 0x1314374c
call dword [ebx + 0x24]
cmp byte [ebx + 0x28], 0
je 0x13143757
call fcn.131435f8
cmp dword [ebx], 0
jne 0x13143773
cmp dword [0x1314b024], 0
je 0x1314376b
call dword [0x1314b024]
mov eax, dword [esi]
push eax
call sub.KERNEL32.DLL_GetACP
mov eax, dword [ebx]
push esi
mov esi, eax
mov edi, ebx
mov ecx, 0xb
rep movsd dword es:[edi], dword [esi]
pop esi
jmp 0x131436fd
Function at 0x13144134
Capabilities:
Get disk size
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdb0
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], eax
push 0x131442c8
call sub.KERNEL32.DLL_GetLocaleInfoA
mov esi, eax
test esi, esi
je 0x1314419c
push 0x131442d8
push esi
call sub.KERNEL32.DLL_GetModuleFileNameA
mov ebx, eax
test ebx, ebx
je 0x1314419c
push 0x105
lea eax, [ebp - 0x24f]
push eax
mov eax, dword [ebp - 4]
push eax
call ebx
test eax, eax
je 0x1314419c
mov eax, dword [ebp - 8]
push eax
lea eax, [ebp - 0x24f]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.KERNEL32.DLL_GetStringTypeExA
jmp 0x131442be
mov eax, dword [ebp - 4]
cmp byte [eax], 0x5c
jne 0x131441dc
mov eax, dword [ebp - 4]
cmp byte [eax + 1], 0x5c
jne 0x131442be
mov eax, dword [ebp - 4]
add eax, 2
call fcn.13144120
mov esi, eax
cmp byte [esi], 0
je 0x131442be
lea eax, [esi + 1]
call fcn.13144120
mov esi, eax
cmp byte [esi], 0
je 0x131442be
jmp 0x131441e2
mov esi, dword [ebp - 4]
add esi, 2
mov ebx, esi
sub ebx, dword [ebp - 4]
lea eax, [ebx + 1]
push eax
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x24f]
push eax
call sub.KERNEL32.DLL_GetStringTypeExA
jmp 0x131442a1
lea eax, [esi + 1]
call fcn.13144120
mov edi, eax
mov eax, edi
sub eax, esi
mov edx, eax
add edx, ebx
inc edx
cmp edx, 0x105
jg 0x131442be
inc eax
push eax
push esi
lea eax, [ebp - 0x24f]
add eax, ebx
push eax
call sub.KERNEL32.DLL_GetStringTypeExA
lea eax, [ebp - 0x14a]
push eax
lea eax, [ebp - 0x24f]
push eax
call sub.KERNEL32.DLL_GetDiskFreeSpaceA
mov esi, eax
cmp esi, 0xffffffff
je 0x131442be
push esi
call sub.KERNEL32.DLL_GetCPInfo
lea eax, [ebp - 0x11e]
push eax
call sub.KERNEL32.DLL_GetThreadLocale
lea edx, [ebx + 1]
add eax, edx
inc eax
cmp eax, 0x105
jg 0x131442be
mov byte [ebp + ebx - 0x24f], 0x5c
mov eax, 0x105
sub eax, ebx
dec eax
push eax
lea eax, [ebp - 0x11e]
push eax
lea eax, [ebp - 0x24f]
add eax, ebx
inc eax
push eax
call sub.KERNEL32.DLL_GetStringTypeExA
lea eax, [ebp - 0x11e]
push eax
call sub.KERNEL32.DLL_GetThreadLocale
inc eax
add ebx, eax
mov esi, edi
cmp byte [esi], 0
jne 0x13144200
mov eax, dword [ebp - 8]
push eax
lea eax, [ebp - 0x24f]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.KERNEL32.DLL_GetStringTypeExA
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x131442ec
Capabilities:
Enumerate gui resources

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_GetLocalTime
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x1314451c
push 0x80000001
call sub.user32.dll_FindWindowA
test eax, eax
je 0x1314436f
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x1314451c
push 0x80000002
call sub.user32.dll_FindWindowA
test eax, eax
je 0x1314436f
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x13144538
push 0x80000001
call sub.user32.dll_FindWindowA
test eax, eax
jne 0x131443f8
xor eax, eax
push ebp
push 0x131443f1
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.13144134
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.user32.dll_GetClassNameA
test eax, eax
je 0x131443d6
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x13144558
mov eax, dword [ebp - 8]
push eax
call sub.user32.dll_GetClassNameA
test eax, eax
je 0x131443d6
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 0x131443f8
mov eax, dword [ebp - 8]
push eax
call sub.user32.dll_EnumWindows
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_GetStringTypeExA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.KERNEL32.DLL_GetProcAddress
push eax
call sub.KERNEL32.DLL_GetLastError
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x13144512
cmp byte [ebp - 0xd], 0
jne 0x1314443f
cmp byte [ebp - 0x12], 0
je 0x13144512
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_GetThreadLocale
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x13144458
dec ebx
cmp byte [ebx], 0x2e
je 0x13144467
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x13144457
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x13144512
inc ebx
cmp byte [ebp - 0x12], 0
je 0x131444a4
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_GetStringTypeExA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_GetStdHandle
mov esi, eax
test esi, esi
jne 0x13144512
cmp byte [ebp - 0xd], 0
je 0x13144512
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_GetStringTypeExA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_GetStdHandle
mov esi, eax
test esi, esi
jne 0x13144512
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_GetStringTypeExA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_GetStdHandle
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret