joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100059f0
Capabilities:
Inspect section memory permissions

Disassembly:
adc cl, dh
add dword [eax], edx
shr byte [ebx - 0x542feff9], 1
pop es
adc byte [esi + 0x3a], ah
pop esp
pop esp
jbe 0x10005a67
je 0x10005a75
outsd dx, dword [esi]
insb byte es:[edi], dx
jae 0x10005a66
arpl word [edx + 0x74], si
pop esp
arpl word [edx + 0x74], si
ja 0x10005a46
xor bl, byte [ebx + esi*2 + 0x74]
push 0x785c7070
insb byte es:[edi], dx
outsd dx, dword [esi]
arpl word [ecx + 0x6c], sp
add byte gs:[esi + ebx*4], ch
invalid

Function at 0x10005a38
Capabilities:
Inspect section memory permissions

Disassembly:
sal cl, 1
adc al, dh
adc dword [edx], eax
adc byte [eax - 2], ah
add dword [eax], edx
sub al, byte [eax]

Function at 0x10005a94
Capabilities:
Inspect section memory permissions

Disassembly:
push eax
in eax, dx
add dword [eax], edx
lock adc dword [edx], eax
adc byte [eax - 2], ah
add dword [eax], edx
nop
sub al, byte [edx]
adc al, dl
cmp dword [edx], eax
adc al, ah
sub al, byte [edx]
adc byte [eax], al
xor dword [edx], eax
adc byte [eax + 0x70100240], al
dec edx
add dl, byte [eax]
sal byte [edi], 1
add dl, byte [eax]
test byte [edi - 0x11eff000], bl
adc dh, ch
add dword [eax], edx
lock adc dword [edx], eax
adc byte [eax - 2], ah
add dword [eax], edx
mov al, byte [0x10022a]
cmp al, byte [edx]
adc byte [eax], dl
sub eax, dword [edx]
adc byte [eax - 0x4feffdcd], al
inc edx
add dl, byte [eax]
nop
dec edx
add dl, byte [eax]
cmp byte [eax], 2
adc byte [esi], ah
cmp al, byte [eax]
pop esp
add byte [eax + eax + 0x64], ah
add byte [eax + eax + 0x76], bl
add byte [ebx], ah
je 0x10005afa
outsd dx, dword [esi]
add byte [edi], ch
insb byte es:[edi], dx
add byte [ebx], dh
pop esp
add byte [ebx], ah
jb 0x10005b08
je 0x10005b0a
pop esp
add byte [ebx], ah
jb 0x10005b10
je 0x10005b12
ja 0x10005b14
xor eax, dword [eax]
xor al, byte [eax]
pop esp
add byte [ebx], dh
je 0x10005b1e
add byte fs:[eax], ch
jo 0x10005b24
jo 0x10005b26
pop esp
add byte [eax], bh
insb byte es:[edi], dx
add byte [edi], ch
arpl word [eax], ax
popal
add byte [eax + eax + 0x65], ch
add byte [eax], al
add ah, bl
lahf
add byte [eax], dl
Function at 0x10005ac0
Capabilities:
Inspect section memory permissions

Disassembly:
push eax
in eax, dx
add dword [eax], edx
lock adc dword [edx], eax
adc byte [eax - 2], ah
add dword [eax], edx
nop
sub al, byte [edx]
adc al, dl
cmp dword [edx], eax
adc al, ah
sub al, byte [edx]
adc byte [eax], al
xor dword [edx], eax
adc byte [eax + 0x70100240], al
dec edx
add dl, byte [eax]
sal byte [edi], 1
add dl, byte [eax]
test byte [edi - 0x11eff000], bl
adc dh, ch
add dword [eax], edx
lock adc dword [edx], eax
adc byte [eax - 2], ah
add dword [eax], edx
mov al, byte [0x10022a]
cmp al, byte [edx]
adc byte [eax], dl
sub eax, dword [edx]
adc byte [eax - 0x4feffdcd], al
inc edx
add dl, byte [eax]
nop
dec edx
add dl, byte [eax]
cmp byte [eax], 2
adc byte [esi], ah
cmp al, byte [eax]
pop esp
add byte [eax + eax + 0x64], ah
add byte [eax + eax + 0x76], bl
add byte [ebx], ah
je 0x10005afa
outsd dx, dword [esi]
add byte [edi], ch
insb byte es:[edi], dx
add byte [ebx], dh
pop esp
add byte [ebx], ah
jb 0x10005b08
je 0x10005b0a
pop esp
add byte [ebx], ah
jb 0x10005b10
je 0x10005b12
ja 0x10005b14
xor eax, dword [eax]
xor al, byte [eax]
pop esp
add byte [ebx], dh
je 0x10005b1e
add byte fs:[eax], ch
jo 0x10005b24
jo 0x10005b26
pop esp
add byte [eax], bh
insb byte es:[edi], dx
add byte [edi], ch
arpl word [eax], ax
popal
add byte [eax + eax + 0x65], ch
add byte [eax], al
add ah, bl
lahf
add byte [eax], dl
Function at 0x10005b68
Capabilities:
Inspect section memory permissions

Disassembly:
inc eax
add dword [eax], edx
lock adc dword [edx], eax
adc byte [eax - 2], ah
add dword [eax], edx
Function at 0x10005ba8
Capabilities:
Inspect section memory permissions

Disassembly:
push eax
lock add dword [eax], edx
lock adc dword [edx], eax
adc byte [eax - 2], ah
add dword [eax], edx
pushal
xor eax, 0x35b01002
add dl, byte [eax]
mov al, 0x44
add dl, byte [eax]
jo 0x10005c07
add dl, byte [eax]
invalid
adc byte [eax + 0x46], ah
Function at 0x10005d28
Capabilities:
Inspect section memory permissions

Disassembly:
shr bl, 1
adc byte [eax], al
add byte [eax], al
add byte [eax], cl
add byte [eax], al
add byte [eax - 0x65], dh
add byte [eax], dl

Function at 0x10005d2c
Capabilities:
Inspect section memory permissions

Disassembly:
shr bl, 1
adc byte [eax], al
add byte [eax], al
add byte [eax], cl
add byte [eax], al
add byte [eax - 0x65], dh
add byte [eax], dl
Function at 0x10007b28
Capabilities:
Encode data using xor

Disassembly:
add byte [eax], dl
loopne sym.MSVCP140D.dll_const_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::vftable
pushal
jp 0x10007b1e
adc byte [eax], al
add byte [eax], al
add byte [eax], cl
add byte [eax], al
add byte [eax], dh
stosb byte es:[edi], al
add byte [eax], dl
add byte [eax], al
or byte [eax], al
add byte [eax], al
xor byte [edx - 0x218ff000], ch
jo 0x10007b08
push es
adc byte [eax - 0x80], dl
add edx, dword [eax]
mov al, 0x81
add edx, dword [eax]
jo 0x10007abe
add edx, dword [eax]
invalid

Function at 0x1000de50
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 8]
add eax, 4
push eax
push 0
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
push 0
push 0
call dword [sym.imp.ucrtbased.dll__beginthreadex]
add esp, 0x18
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
mov dword [eax], ecx
cmp dword [ebp - 4], 0
jne 0x1000de8e
mov dword [ebp - 8], 4
jmp 0x1000de95
mov dword [ebp - 8], 0
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
Function at 0x1002a3d0
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ucrtbased.dll__wrmdir]
add esp, 4
cmp eax, 0xffffffff
je 0x1002a3ef
mov dword [ebp - 4], 1
jmp 0x1002a3f6
mov dword [ebp - 4], 0
mov al, byte [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x1002a400
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ucrtbased.dll__wrename]
add esp, 8
test eax, eax
jne 0x1002a422
mov dword [ebp - 4], 0
jmp 0x1002a42b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x1002a440
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov byte [ebp - 1], 0
push 0
push 0
push 3
push 0
push 7
push 0x120116
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
je 0x1002a4c0
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x14], edx
push 0
push 0
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1002a4a9
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x1002a4a9
mov dword [ebp - 0xc], 1
jmp 0x1002a4b0
mov dword [ebp - 0xc], 0
mov cl, byte [ebp - 0xc]
mov byte [ebp - 1], cl
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
movzx eax, byte [ebp - 1]
test eax, eax
je 0x1002a4d1
mov dword [ebp - 0x10], 0
jmp 0x1002a4da
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret

Function at 0x1002a940
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ucrtbased.dll__wremove]
add esp, 4
test eax, eax
jne 0x1002a95e
mov dword [ebp - 4], 0
jmp 0x1002a967
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x100543bb
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push esi
push edi
xor edi, edi
movzx eax, word [ecx + 0x14]
movzx esi, word [ecx + 6]
test esi, esi
lea eax, [eax + ecx + 0x18]
jbe 0x100543f6
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x100543dd
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp dword [esp + 0xc], edx
jb 0x100543ee
add edx, ecx
cmp dword [esp + 0xc], edx
jb 0x100543f8
inc edi
add eax, 0x28
cmp edi, esi
jb 0x100543d3
xor eax, eax
pop edi
pop esi
ret

Function at 0x10054750
Capabilities:
Contain obfuscated stackstrings

Disassembly:
inc ebp
mov byte [0xa345c659], al
dec eax
mov byte [ebp - 0x5c], 0x4e
mov byte [ebp - 0x5b], 0x59
mov byte [ebp - 0x5a], 0x2d
call fcn.1005438b
push eax
push edi
push dword [ebp + 8]
call sym.MSVCP140D.dll_protected_virtual:_class_std::ostreambuf_iterator_wchar_t__struct_std::char_traits_wchar_t_____thiscall_std::num_put_wchar_t__class_std::ostreambuf_iterator_wchar_t__struct_std::char_traits_wchar_t___::do_put_class_std::ostreambuf_iterator_wchar_t__struct_std::char_traits_wchar_t____class_std::ios_base___wchar_t__void_const__
mov dword [ebp - 0xc4], eax
mov byte [ebp - 0x44], bl
lea eax, [ebp - 0x44]
mov byte [ebp - 0x43], bl
push eax
mov byte [ebp - 0x42], 0xfd
mov byte [ebp - 0x41], bl
mov byte [ebp - 0x40], 0x4e
mov byte [ebp - 0x3f], 0x6d
mov byte [ebp - 0x3e], 0x63
mov byte [ebp - 0x3d], 0x66
mov byte [ebp - 0x3c], 0x4e
mov byte [ebp - 0x3b], 0x6b
mov byte [ebp - 0x3a], 0x60
mov byte [ebp - 0x39], 0x70
mov byte [ebp - 0x38], 0x63
mov byte [ebp - 0x37], 0x70
mov byte [ebp - 0x36], 0x7b
mov byte [ebp - 0x35], 0x43
mov byte [ebp - 0x34], 2
call fcn.1005438b
push eax
push edi
push dword [ebp + 8]
call sym.MSVCP140D.dll_protected_virtual:_class_std::ostreambuf_iterator_wchar_t__struct_std::char_traits_wchar_t_____thiscall_std::num_put_wchar_t__class_std::ostreambuf_iterator_wchar_t__struct_std::char_traits_wchar_t___::do_put_class_std::ostreambuf_iterator_wchar_t__struct_std::char_traits_wchar_t____class_std::ios_base___wchar_t__void_const__
add esp, 0x20
mov dword [ebp - 0xc8], eax
mov byte [ebp - 0x84], bl
mov byte [ebp - 0x83], bl
mov byte [ebp - 0x82], 0x7b
mov byte [ebp - 0x81], bl
mov byte [ebp - 0x80], 0xc3
mov byte [ebp - 0x7f], 0xe1
mov byte [ebp - 0x7e], 0xf0
mov byte [ebp - 0x7d], 0xc9
mov byte [ebp - 0x7c], 0xeb
mov byte [ebp - 0x7b], 0xe0
mov byte [ebp - 0x7a], 0xf1
mov byte [ebp - 0x79], 0xe8
mov byte [ebp - 0x78], 0xe1
mov byte [ebp - 0x77], 0xcc
mov byte [ebp - 0x76], 0xe5
mov byte [ebp - 0x75], 0xea
mov byte [ebp - 0x74], 0xe0
mov byte [ebp - 0x73], 0xe8
mov byte [ebp - 0x72], 0xe1
mov byte [ebp - 0x71], 0xc5
mov byte [ebp - 0x70], 0x84
call fcn.1005437b
mov dword [edi], ecx
enter 0xffffffffffff8d83, 0xffffffffffffff85
jl 0x1005483e
invalid
invalid
Function at 0x10055970
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push eax
call fcn.100542ec
add esp, 0xc
movsx eax, byte [ebp - 8]
mov ecx, dword [ebp - 0x540]
sub ecx, eax
mov dword [ebp - 0x540], ecx
call fcn.1005437b
jle 0x1005591b
in eax, 0xf0
push 4
mov eax, dword [ebp - 0x378]
mov ecx, dword [ebp - 4]
lea eax, [ecx + eax - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.100542ec
add esp, 0xc
movsx eax, byte [ebp - 8]
mov ecx, dword [ebp - 0xc]
sub ecx, eax
mov dword [ebp - 0xc], ecx
push 4
mov eax, dword [ebp - 0x378]
mov ecx, dword [ebp - 4]
dec ebp
cld
lea eax, [ecx + eax - 0x10]
push eax
lea eax, [ebp - 0x400]
push eax
call fcn.100542ec
add esp, 0xc
movsx eax, byte [ebp - 8]
mov ecx, dword [ebp - 0x400]
sub ecx, eax
mov dword [ebp - 0x400], ecx
push 4
mov eax, dword [ebp - 0x378]
mov ecx, dword [ebp - 4]
lea eax, [ecx + eax - 0xc]
push eax
lea eax, [ebp - 0x54c]
push eax
invalid

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x402924
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebx
push esi
add esp, 0xfffffdf0
mov esi, edx
mov ebx, eax
test bl, bl
je 0x402961
xor eax, eax
mov al, bl
add eax, 0x41
dec eax
mov byte [esp], al
mov byte [esp + 1], 0x3a
mov byte [esp + 2], 0
lea eax, [esp + 0x109]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
push esp
call sub.kernel32.dll_SetCurrentDirectoryA
lea eax, [esp + 4]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
test bl, bl
je 0x402981
lea eax, [esp + 0x109]
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
mov eax, esi
lea edx, [esp + 4]
mov ecx, 0x105
call fcn.00404934
add esp, 0x210
pop esi
pop ebx
ret

Function at 0x402b50
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.004046c4
test esi, esi
jne 0x402b86
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.004047b4
jmp 0x402ba4
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402a64
mov edi, eax
test esi, esi
je 0x402ba4
cmp dword [ebx], 0
je 0x402ba4
dec esi
jmp 0x402b8d
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x4030a8
Capabilities:
Generate random numbers using the delphi lcg

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

Function at 0x40362c
Capabilities:
Query or enumerate registry value

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

Function at 0x4044a4
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x49204c], 0
je 0x404505
cmp word [0x492220], 0xd7b2
jne 0x4044cd
cmp dword [0x492228], 0
jbe 0x4044cd
mov eax, 0x49221c
call dword [0x492238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x489074
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 0x40452c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x489034], 0
jne 0x404521
push 0
push 0x48906c
push 0x489074
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x404678
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.004026f8
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x49204d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x404640
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x405e48
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 0x406078
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405ecb
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406078
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405ecb
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406094
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x405f54
xor eax, eax
push ebp
push 0x405f4d
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00405c90
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 0x405f32
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x4060b8
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x405f32
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 0x405f54
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 0x40606e
cmp byte [ebp - 0xd], 0
jne 0x405f9b
cmp byte [ebp - 0x12], 0
je 0x40606e
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x405fb4
dec ebx
cmp byte [ebx], 0x2e
je 0x405fc3
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x405fb3
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x40606e
inc ebx
cmp byte [ebp - 0x12], 0
je 0x406000
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 0x40606e
cmp byte [ebp - 0xd], 0
je 0x40606e
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 0x40606e
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 0x406760
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 0x4067c6
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.00404934
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.004030c4
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x4067b0
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4067cd
lea eax, [ebp - 0x10]
call fcn.004046c4
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00404ba0
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x408e69
test al, 0x10
jne 0x408e6d
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x40cc74
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 0x40ccad
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004047b4
jmp 0x40ccb6
mov eax, ebx
mov edx, esi
call fcn.00404718
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40d4c4
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40d32c
mov eax, dword [0x491588]
cmp byte [eax], 0
je 0x40d540
mov eax, dword [0x491414]
call fcn.00402f50
call fcn.004028b0
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.00409734
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 0x40d588
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40d576
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x4913e0]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x492668]
call fcn.00405c54
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 0x40e4b4
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 0x40e518
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.00404934
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00408ab0
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e51f
lea eax, [ebp - 0xc]
call fcn.004046c4
ret

Function at 0x41dcf8
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_ResumeThread
mov esi, eax
test esi, esi
setge dl
mov eax, ebx
call fcn.0041dae0
dec esi
jne 0x41dd1a
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret

Function at 0x41fc74
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
mov eax, esi
call fcn.00404ba0
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x41fccc
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x491670]
mov dl, 1
mov eax, dword [0x41f82c]
call fcn.0040d6a8
call fcn.00403ff8
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.0041f934
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8