joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5388ac
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, 4
push 0
push 0
dec ecx
jne 0x5388b4
push ecx
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x538a17
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0xd], 0
lea edx, [ebp - 0x18]
mov eax, dword [ebx + 0x4b0]
call fcn.00463684
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x14]
call fcn.00414ddc
mov edx, dword [ebp - 0x14]
lea eax, [ebp - 4]
mov ecx, 0x538a38
call fcn.004065c4
mov eax, dword [ebp - 4]
call fcn.0040d298
test al, al
je 0x538941
lea eax, [ebp - 8]
xor edx, edx
call fcn.00406244
push 5
push 0
mov eax, dword [ebp - 8]
call fcn.0040627c
push eax
mov eax, dword [ebp - 4]
call fcn.0040627c
push eax
push 0x538a58
mov eax, ebx
call fcn.0046bf70
push eax
call sub.shell32.dll_ShellExecuteW
cmp eax, 0x20
seta byte [ebp - 0xd]
cmp byte [ebx + 0x53c], 0
je 0x5389da
lea edx, [ebp - 0x1c]
mov eax, dword [ebx + 0x4b0]
call fcn.00463684
mov eax, dword [ebp - 0x1c]
lea edx, [ebp - 0xc]
call fcn.00414ddc
lea eax, [ebp - 0x20]
mov ecx, 0x538a70
mov edx, dword [ebp - 0xc]
call fcn.004065c4
mov eax, dword [ebp - 0x20]
call fcn.0040d298
test al, al
je 0x5389da
xor eax, eax
push ebp
push 0x5389d0
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
mov eax, dword [ebp - 0xc]
call fcn.0040627c
push eax
lea eax, [ebp - 0x24]
mov ecx, 0x538a70
mov edx, dword [ebp - 0xc]
call fcn.004065c4
mov eax, dword [ebp - 0x24]
call fcn.0040627c
push eax
push 0x538a98
push 0x538a58
push 0
call sub.shell32.dll_ShellExecuteW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x5389da
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x538a1e
lea eax, [ebp - 0x24]
mov edx, 2
call fcn.004061e8
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.004061e8
lea eax, [ebp - 0x14]
call fcn.004061e0
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.004061e8
ret

Function at 0x538ab0
Capabilities:
Create process on windows

Disassembly:
push ebx
push esi
mov ebx, edx
push 5
push 0x538b04
push 0x538b04
mov eax, ebx
call fcn.0040627c
mov esi, eax
push esi
push 0x538b08
push 0
call sub.shell32.dll_ShellExecuteW
cmp eax, 0x20
seta al
test al, al
jne 0x538aff
push 5
push 0x538b04
push esi
push 0x538b14
push 0x538b08
push 0
call sub.shell32.dll_ShellExecuteW
cmp eax, 0x20
seta al
pop esi
pop ebx
ret
Function at 0x539d10
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
mov ecx, 5
push 0
push 0
dec ecx
jne 0x539d18
push ecx
push ebx
push esi
push edi
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x539f03
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 9], 0
lea edx, [ebp - 4]
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x4b0]
call fcn.00463684
mov dl, 1
mov eax, dword [0x4206b8]
call fcn.00425fec
mov ebx, eax
mov dx, 0x5c
mov eax, ebx
call fcn.00425600
mov dl, 1
mov eax, ebx
call fcn.0042566c
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.004253c4
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
test eax, eax
jl 0x539db0
inc eax
mov dword [ebp - 0x10], eax
xor esi, esi
lea ecx, [ebp - 0x18]
mov edx, esi
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x14]
call fcn.0040c2f4
mov ecx, dword [ebp - 0x14]
mov edx, esi
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0x20]
inc esi
dec dword [ebp - 0x10]
jne 0x539d87
lea edx, [ebp - 4]
mov eax, ebx
call fcn.00424474
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x4b0]
mov edx, dword [ebp - 4]
call fcn.004636bc
mov eax, ebx
call fcn.00403f64
mov edx, 0x539f24
mov eax, dword [ebp - 4]
call fcn.0040a49c
test al, al
jne 0x539ee0
mov edx, 0x539f34
mov eax, dword [ebp - 4]
call fcn.0040a49c
test al, al
jne 0x539ee0
mov edx, 0x539f44
mov eax, dword [ebp - 4]
call fcn.0040a49c
test al, al
jne 0x539ee0
mov edx, 0x539f54
mov eax, dword [ebp - 4]
call fcn.0040a49c
test al, al
jne 0x539ee0
mov edx, 0x539f64
mov eax, dword [ebp - 4]
call fcn.0040a49c
test al, al
jne 0x539ee0
mov edx, 0x539f74
mov eax, dword [ebp - 4]
call fcn.0040a49c
test al, al
jne 0x539ee0
mov edx, 0x539f84
mov eax, dword [ebp - 4]
call fcn.0040a49c
test al, al
jne 0x539ee0
movzx eax, byte [0x539f88]
push eax
lea eax, [ebp - 0x1c]
push eax
lea edx, [ebp - 0x20]
mov eax, dword [ebp - 4]
call fcn.0040d6b4
mov edx, dword [ebp - 0x20]
xor ecx, ecx
mov eax, dword [ebp - 4]
call fcn.0041585c
mov eax, dword [ebp - 0x1c]
mov edx, 0x539f98
call fcn.0040a49c
test al, al
jne 0x539ee0
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 4]
call fcn.0040c2f4
mov eax, dword [ebp - 0x28]
lea edx, [ebp - 0x24]
call fcn.0040d6b4
mov eax, dword [ebp - 0x24]
call fcn.0040627c
push eax
call sub.kernel32.dll_GetDriveTypeW
cmp eax, 3
jne 0x539ee0
lea edx, [ebp - 0x2c]
mov eax, dword [ebp - 4]
call fcn.0040c2f4
mov eax, dword [ebp - 0x2c]
call fcn.0040627c
push eax
call sub.shlwapi.dll_PathIsNetworkPathW
test eax, eax
jne 0x539ee0
mov byte [ebp - 9], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x539f0a
lea eax, [ebp - 0x2c]
mov edx, 7
call fcn.004061e8
lea eax, [ebp - 4]
call fcn.004061e0
ret
Function at 0x53a014
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
xor edx, edx
push ebp
push 0x53a07b
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp + 0x14]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.shell32.dll_ShellExecuteW
cmp eax, 0x20
jg 0x53a071
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 0x14]
push eax
push 0x53a0ac
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.shell32.dll_ShellExecuteW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x53a0a3
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0x10

Function at 0x430002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
mov eax, section..text
nop
nop
nop
nop
push 4
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
cmp eax, 0
nop
nop
nop
je 0x430072
nop
nop
nop
mov ebx, 0x408ecc
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
push eax
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
mov esi, 0xf25395f
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x430060
nop
nop
nop
mov eax, section..rsrc
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x4300d2
nop
mov ebx, 0x42e1d0
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x2faf572f
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
loop 0x4300c0
nop
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x407010
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40704e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x407046
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x407050
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x407036
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407120
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x407151
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407151
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x407151
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x430005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
mov eax, section..text
nop
mov ebx, 0x408f6c
mov ecx, 0x7b232d7b
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x430024
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42e3d0
nop
nop
mov ecx, 0x78444b43
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x430084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x40b4b0
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x4e804c
call sym._EnterCriticalSection_4
mov ebx, dword [0x4e8044]
sub esp, 4
test ebx, ebx
je 0x40b4fb
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sym._TlsGetValue_4
sub esp, 4
mov esi, eax
call sym._GetLastError_0
test eax, eax
jne 0x40b4f4
test esi, esi
je 0x40b4f4
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x40b4d0
mov dword [esp], 0x4e804c
call sym._LeaveCriticalSection_4
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x40b6e0
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
lea esi, [esp + 0x24]
mov dword [esp], str.Mingw_runtime_failure:_n
lea ebx, [eax + 0x40]
mov dword [esp + 0xc], ebx
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x40b730
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, ecx
push esi
push ebx
mov ebx, eax
mov esi, edx
sub esp, 0x4c
lea eax, [esp + 0x24]
mov dword [esp + 8], 0x1c
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x40b808
mov eax, dword [esp + 0x38]
cmp eax, 0x40
je 0x40b76e
cmp eax, 4
jne 0x40b790
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym._memcpy
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x30]
lea ebp, [esp + 0x20]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov edx, dword [esp + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 0x1c], edx
call sym._memcpy
mov edx, dword [esp + 0x1c]
cmp edx, 0x40
je 0x40b77e
cmp edx, 4
je 0x40b77e
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.0040b6e0

Function at 0x40bd80
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
call sym._GetLastError_0
mov esi, eax
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call sym._TlsGetValue_4
sub esp, 4
mov ebx, eax
mov dword [esp], esi
call sym._SetLastError_4
sub esp, 4
mov eax, ebx
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x40bdb0
Capabilities:
Set thread local storage value

Disassembly:
sub esp, 0x1c
mov eax, dword [esp + 0x24]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call sym._TlsSetValue_8
sub esp, 8
test eax, eax
je 0x40bdd4
xor eax, eax
add esp, 0x1c
ret
add esp, 0x1c
jmp sym._GetLastError_0
Function at 0x41d7a0
Capabilities:
Write file on windows

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x2c
cmp byte [0x4a3abc], 0
jne 0x41d874
mov byte [0x4a3abc], 1
call sym.___cxa_current_exception_type
test eax, eax
je 0x41d90e
mov ebx, dword [eax + 4]
xor eax, eax
cmp byte [ebx], 0x2a
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp + 0x1c], 0xffffffff
sete al
add ebx, eax
lea eax, [esp + 0x1c]
mov dword [esp], ebx
mov dword [esp + 0xc], eax
call sym.___cxa_demangle
mov esi, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x30
mov ebp, eax
mov dword [esp + 4], 1
mov dword [esp], str.terminate_called_after_throwing_an_instance_of_
lea edi, [esi + 0x40]
mov dword [esp + 0xc], edi
call sym._fwrite
cmp dword [esp + 0x1c], 0
mov dword [esp + 4], edi
je 0x41d86a
mov dword [esp], ebx
call sym._fputs
lea eax, [esi + 0x40]
mov dword [esp + 8], 2
mov dword [esp + 4], 1
mov dword [esp], 0x4a42c9
mov dword [esp + 0xc], eax
call sym._fwrite
cmp dword [esp + 0x1c], 0
je 0x41d8a1
call sym.___cxa_rethrow
mov dword [esp], ebp
call sym._fputs
jmp 0x41d83b
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x1d
mov dword [esp + 4], 1
mov dword [esp], str.terminate_called_recursively_n
add eax, 0x40
mov dword [esp + 0xc], eax
call sym._fwrite
call sym._abort
mov dword [esp], ebp
call sym._free
jmp 0x41d865
call sym._abort
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x2d
mov dword [esp + 4], 1
mov dword [esp], str.terminate_called_without_an_active_exception_n
add eax, 0x40
mov dword [esp + 0xc], eax
call sym._fwrite
jmp 0x41d909
Function at 0x4071b4
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffdf4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.0040aa1c
test esi, esi
jne 0x4071ea
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.0040aba4
jmp 0x407208
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004070f8
mov edi, eax
test esi, esi
je 0x407208
cmp dword [ebx], 0
je 0x407208
dec esi
jmp 0x4071f1
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x409678
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff0
mov edi, edx
mov esi, eax
mov ebp, dword [esi + 0x10]
mov eax, esi
call fcn.00409b04
mov byte [esp], al
cmp byte [esp], 0
jne 0x409801
test edi, edi
je 0x409801
mov byte [esp + 1], 0
test ebp, ebp
jle 0x409741
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 0xc], eax
test ebp, ebp
jle 0x40971c
cmp edi, 0xffffffff
je 0x4096dd
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x4096dd
mov byte [esp], 0
jmp 0x409801
cmp dword [esi], 1
jg 0x40971c
cmp dword [esi], 0
jne 0x40970e
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x40970e
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x409801
lea eax, [esp + 0xc]
call fcn.00409334
dec ebp
test ebp, ebp
jg 0x4096c2
cmp edi, 0xffffffff
je 0x409741
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x40973f
mov byte [esp], 0
jmp 0x409801
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x409686
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x409741
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.00409870
mov edx, eax
mov ebx, dword [0x5218f8]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x4097a5
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x4097a3
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x4097a5
xor edi, edi
cmp byte [esp], 0
je 0x4097cb
mov ebx, dword [esi]
test bl, 1
jne 0x4097e1
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x4097ab
mov byte [esp + 1], 1
jmp 0x4097e1
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x4097cb
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x409758
cmp byte [esp], 0
je 0x409801
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
movzx eax, byte [esp]
add esp, 0x10
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x40a678
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x521058], 0
je 0x40a6df
cmp word [0x521344], 0xd7b2
jne 0x40a6a1
cmp dword [0x52134c], 0
jbe 0x40a6a1
mov eax, 0x521340
call dword [0x52135c]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
mov eax, 0x40a70c
call fcn.0040b210
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x502032], 0
jne 0x40a6fb
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x40a8dc
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov edi, dword [ebp + 0x10]
cmp dword [0x502034], 0
je 0x40a907
mov edx, edi
mov eax, esi
call dword [0x502034]
mov ebx, eax
jmp 0x40a918
mov eax, 8
call fcn.00406e54
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x521059], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x40a8a4
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_CreateThread
mov esi, eax
test esi, esi
jne 0x40a948
mov eax, ebx
call fcn.00406e70
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc
Function at 0x40d6d4
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe98
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x160], ecx
mov dword [ebp - 0x164], ecx
mov dword [ebp - 0x168], ecx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x40d839
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0040aa1c
cmp si, word [0x502a08]
jb 0x40d76c
cmp si, word [0x502c08]
ja 0x40d76c
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x40d76c
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x502a08]
jae 0x40d746
mov edi, ebx
dec edi
jmp 0x40d767
cmp si, word [ebx*8 + 0x502a08]
jbe 0x40d756
inc ebx
mov dword [ebp - 8], ebx
jmp 0x40d767
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x502a0c]
call fcn.0040d5f4
jmp 0x40d76c
cmp edi, dword [ebp - 8]
jae 0x40d730
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x40d81b
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40d81b
push 0x55
lea eax, [ebp - 0xb2]
push eax
push 0x59
movzx ebx, si
push ebx
call sub.kernel32.dll_GetLocaleInfoW
push 0x55
lea eax, [ebp - 0x15c]
push eax
push 0x5a
push ebx
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x160]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.0040b610
push dword [ebp - 0x160]
push 0x40d854
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.0040b610
push dword [ebp - 0x164]
push 0x40d864
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.0040b610
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.0040b848
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d840
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.0040aa7c
ret
Function at 0x40d9ec
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40daf0
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x523c10
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x523c28]
jne 0x40da38
mov eax, esi
mov edx, 0x523c2a
mov ecx, 0x55
call fcn.0040b610
push 0x523c10
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40dada
push 0x523c10
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.0040aa1c
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40daa7
cmp byte [0x523c0c], 0
je 0x40da6c
mov edx, esi
mov eax, ebx
call fcn.0040d8d0
jmp 0x40daa7
mov edx, esi
mov eax, ebx
call fcn.0040d6d4
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x40daa7
cmp dword [esi], 0
je 0x40da90
mov eax, esi
mov edx, 0x40db08
call fcn.0040b768
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.0040d6d4
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.0040b768
push 0x523c10
call sub.kernel32.dll_EnterCriticalSection
mov word [0x523c28], bx
mov eax, dword [esi]
call fcn.0040b56c
mov ecx, eax
mov eax, 0x523c2a
mov edx, 0xaa
call fcn.0040d554
push 0x523c10
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40daf7
lea eax, [ebp - 4]
call fcn.0040aa1c
ret
Function at 0x4211f8
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
mov esi, eax
xor eax, eax
push ebp
push 0x42135c
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x104
lea eax, [ebp - 8]
mov ecx, 1
mov edx, dword [0x421198]
call fcn.0040ce08
add esp, 4
push 0x104
lea eax, [ebp - 0xc]
mov ecx, 1
mov edx, dword [0x4211c8]
call fcn.0040ce08
add esp, 4
movzx ebx, byte [0x42136c]
mov dl, 1
mov eax, esi
call fcn.00421748
test al, al
jne 0x421272
mov dl, 1
mov eax, esi
call fcn.004216b0
test al, al
je 0x4212fc
lea edx, [ebp - 0x1c]
mov eax, esi
call fcn.00421a08
mov eax, dword [ebp - 0x1c]
lea edx, [ebp - 4]
call fcn.004281e8
push 0x104
mov eax, dword [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x104
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
call fcn.0040b56c
mov esi, eax
push esi
call sub.kernel32.dll_GetVolumeInformationW
test eax, eax
je 0x4212f7
test byte [ebp - 0x14], 1
je 0x4212c2
or bl, 1
test byte [ebp - 0x14], 2
je 0x4212cb
or bl, 2
test byte [ebp - 0x14], 0x80
je 0x4212d4
or bl, 0x20
push esi
call sub.kernel32.dll_GetDriveTypeW
sub eax, 2
je 0x4212e8
dec eax
je 0x4212ed
dec eax
je 0x4212f2
dec eax
jne 0x42131d
or bl, 0x10
jmp 0x42131d
or bl, 4
jmp 0x42131d
or bl, 8
jmp 0x42131d
call fcn.00428e2c
lea edx, [ebp - 0x20]
mov eax, dword [0x520334]
call fcn.0040fcd0
mov ecx, dword [ebp - 0x20]
mov dl, 1
mov eax, dword [0x419a04]
call fcn.00426bec
call fcn.0040a0dc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x421363
lea eax, [ebp - 0x20]
mov edx, 2
call fcn.0040aa7c
lea eax, [ebp - 0xc]
mov edx, dword [0x4211c8]
call fcn.0040cf2c
lea eax, [ebp - 8]
mov edx, dword [0x421198]
call fcn.0040cf2c
lea eax, [ebp - 4]
call fcn.0040aa1c
ret

Function at 0x4213c8
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 8]
push eax
mov eax, dword [esi]
add eax, edi
push eax
push ebx
call sub.kernel32.dll_ReadFile_1
test eax, eax
jne 0x4213f5
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 4