joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1008ddac
Capabilities:
Get token privileges

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
xor eax, eax
push ebp
push 0x1008df96
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [0x100ad188], 0
jne 0x1008df7b
lea eax, [ebp - 4]
push eax
push 0x28
call sub.KERNEL32.dll_GetCurrentProcess
push eax
call sub.ADVAPI32.dll_OpenProcessToken
test eax, eax
je 0x1008df74
xor eax, eax
push ebp
push 0x1008df6d
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 3
mov eax, dword [ebp - 4]
push eax
call sub.ADVAPI32.dll_GetTokenInformation
cmp dword [ebp - 8], 0
je 0x1008df56
mov eax, dword [ebp - 8]
add eax, eax
push eax
push 0x40
call sub.KERNEL32.dll_LocalAlloc
mov ebx, eax
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 8]
add eax, eax
push eax
push ebx
push 3
mov eax, dword [ebp - 4]
push eax
call sub.ADVAPI32.dll_GetTokenInformation
test eax, eax
je 0x1008df50
lea eax, [ebp - 0x10]
push eax
lea edx, [ebp - 0x24]
mov eax, dword [0x100acd18]
call fcn.10075af8
mov eax, dword [ebp - 0x24]
call fcn.1007287c
push eax
push 0
call sub.ADVAPI32.dll_LookupPrivilegeValueA
test eax, eax
jne 0x1008de84
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
lea eax, [ebp - 0x18]
push eax
lea edx, [ebp - 0x28]
mov eax, dword [0x100acd1c]
call fcn.10075af8
mov eax, dword [ebp - 0x28]
call fcn.1007287c
push eax
push 0
call sub.ADVAPI32.dll_LookupPrivilegeValueA
test eax, eax
jne 0x1008deb7
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
lea eax, [ebp - 0x20]
push eax
lea edx, [ebp - 0x2c]
mov eax, dword [0x100acd20]
call fcn.10075af8
mov eax, dword [ebp - 0x2c]
call fcn.1007287c
push eax
push 0
call sub.ADVAPI32.dll_LookupPrivilegeValueA
test eax, eax
jne 0x1008deea
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov esi, dword [ebx]
dec esi
test esi, esi
jl 0x1008df3c
inc esi
xor ecx, ecx
lea edi, [ecx + ecx*2]
mov eax, dword [ebx + edi*4 + 4]
mov edx, dword [ebx + edi*4 + 8]
cmp edx, dword [ebp - 0xc]
jne 0x1008df07
cmp eax, dword [ebp - 0x10]
je 0x1008df38
lea eax, [ecx + ecx*2]
mov edx, dword [ebx + eax*4 + 8]
mov eax, dword [ebx + eax*4 + 4]
cmp edx, dword [ebp - 0x14]
jne 0x1008df1c
cmp eax, dword [ebp - 0x18]
je 0x1008df38
lea eax, [ecx + ecx*2]
mov edx, dword [ebx + eax*4 + 8]
mov eax, dword [ebx + eax*4 + 4]
cmp edx, dword [ebp - 0x1c]
jne 0x1008df31
cmp eax, dword [ebp - 0x20]
je 0x1008df38
or dword [ebx + edi*4 + 0xc], 2
inc ecx
dec esi
jne 0x1008def4
push 0
push 0
mov eax, dword [ebp - 8]
push eax
push ebx
push 0
mov eax, dword [ebp - 4]
push eax
call sub.ADVAPI32.dll_AdjustTokenPrivileges
push ebx
call sub.KERNEL32.dll_LocalFree
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x1008df74
mov eax, dword [ebp - 4]
push eax
call sub.KERNEL32.dll_CloseHandle
ret
mov byte [0x100ad188], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x1008df9d
lea eax, [ebp - 0x2c]
mov edx, 3
call fcn.1007244c
ret
Function at 0x41e770
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x41e7c9
test eax, edx
je 0x41e7cc
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x41e787
movzx eax, word [eax]
sub eax, ecx
jmp 0x41e7ae
push ebx
mov ebx, dword [eax - 4]
xor ecx, ecx
sub ebx, dword [edx - 4]
push ebx
adc ecx, 0xffffffff
and ecx, ebx
sub ecx, dword [eax - 4]
shl ecx, 1
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x41e7af
add ecx, 4
js 0x41e79f
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x41e7ac
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x41e7ae
xor eax, eax
ret
test eax, eax
je 0x41e7d8
test edx, edx
jne 0x41e778
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x426d60
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffdf8
mov ebx, eax
mov eax, ebx
call fcn.00409af4
mov ebp, eax
push ebp
push 0
push 0
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.0040d2b8
mov edi, eax
cmp edi, 0x104
jbe 0x426d0b
mov eax, edi
add eax, eax
call fcn.004069c0
mov esi, eax
jmp 0x426d0d
mov esi, esp
push ebp
push esi
push edi
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.0040d2b8
push esi
call fcn.0040feec
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x426d46
inc eax
xor edx, edx
mov ecx, ebx
shl ecx, 5
shr ebx, 0x1b
or ecx, ebx
mov ebx, ecx
movzx ecx, word [esi + edx*2]
xor ebx, ecx
inc edx
dec eax
jne 0x426d30
mov eax, esp
cmp esi, eax
je 0x426d53
mov eax, esi
call fcn.004069dc
mov eax, ebx
add esp, 0x208
pop ebp
pop edi
pop esi
pop ebx
ret
push esi
push ebx
mov esi, eax
xor eax, eax
push esi
rol eax, 5
mov bl, byte [esi]
test bl, 0x80
jne 0x426d8c
cmp bl, 0
je 0x426d88
cmp bl, 0x41
jl 0x426d83
cmp bl, 0x5a
jg 0x426d83
or bl, 0x20
xor al, bl
inc esi
jmp 0x426d67
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x426ccc
Function at 0x47eb2c
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov dl, 0xb5
mov ebx, eax
xor eax, eax
mov ecx, eax
mov esi, ebx
shr esi, cl
mov ecx, esi
and cl, 0xff
xor dl, cl
inc eax
cmp eax, 4
jne 0x47eb34
mov eax, edx
pop esi
pop ebx
ret

Function at 0x4d8324
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x10], edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4d847e
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebx + 4], 0
je 0x4d8453
mov eax, dword [ebx + 4]
mov dl, 1
call fcn.0041fb08
test al, al
je 0x4d8453
push 0x20
mov ecx, dword [ebx + 4]
mov dl, 1
mov eax, dword [0x4882f8]
call fcn.004a631c
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x4d844c
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
mov edx, dword [eax]
call dword [edx]
mov esi, eax
mov eax, dword [ebp - 0xc]
call fcn.004a3d2c
sub esi, eax
push esi
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x40465c]
call fcn.0040b530
add esp, 4
mov edx, dword [ebp - 4]
mov ecx, esi
mov eax, dword [ebp - 0xc]
mov esi, dword [eax]
call dword [esi + 0xc]
lea edx, [ebx + 0xc]
mov eax, dword [ebp - 4]
call fcn.0042a39c
mov esi, eax
mov dl, 1
mov eax, dword [0x4854a8]
call fcn.004a3c88
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x4d842f
push dword fs:[eax]
mov dword fs:[eax], esp
mov edi, dword [ebp - 4]
test edi, edi
je 0x4d83f0
sub edi, 4
mov edi, dword [edi]
sub edi, esi
push edi
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebx + 0xc]
mov ecx, esi
mov edx, dword [ebp - 4]
call fcn.0042b6ec
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x30]
mov edx, dword [ebp - 8]
mov eax, ebx
call fcn.004d871c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d8436
mov eax, dword [ebp - 8]
call fcn.004078d0
ret
mov eax, ebx
call fcn.004d8128
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d8485
lea eax, [ebp - 0x10]
call fcn.00409624
lea eax, [ebp - 4]
mov edx, dword [0x40465c]
call fcn.0040b654
ret

Function at 0x4df588
Capabilities:
Hash data with md5

Disassembly:
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
xor edx, edx
mov dword [eax + 0x10], edx
xor edx, edx
mov dword [eax + 0x14], edx
add eax, 0x18
xor ecx, ecx
mov edx, 0x40
call fcn.004072fc
ret
Function at 0x1001cc37
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
cmp byte [esi + 0x2d], 0
jne 0x1001ccba
push ebx
mov ebx, dword [ebp + 0x10]
push edi
push 0
lea eax, [ebp + 0x10]
push eax
push ebx
push dword [ebp + 0xc]
push dword [esi + 0x30]
call dword [sym.imp.kernel32.dll_ReadFile]
mov edi, dword [ebp + 0x10]
cmp edi, ebx
je 0x1001cc84
mov byte [esi + 0x2d], 0xff
test edi, edi
je 0x1001cc84
cmp edi, ebx
jge 0x1001cc84
mov eax, dword [ebp + 0xc]
mov ecx, ebx
sub ecx, edi
push ecx
add eax, edi
push 0
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
cmp dword [esi + 0x18], 0
je 0x1001ccb4
add dword [esi + 0x1c], ebx
cmp dword [esi + 0x1c], 0xffff
jle 0x1001ccb4
xor eax, eax
mov word [esi + 0x1e], ax
mov eax, dword [esi]
push esi
call dword [eax + 0x2c]
mov ecx, dword [esi + 0x18]
mov edx, dword [ecx]
push 1
push dword [esi + 0x20]
push eax
push ecx
call dword [edx + 0xc]
mov edi, dword [ebp + 0x10]
mov eax, edi
pop edi
pop ebx
jmp 0x1001cccc
push dword [ebp + 0x10]
push 0
push dword [ebp + 0xc]
call sub.MSVCR100.dll_memset
add esp, 0xc
xor eax, eax
pop esi
pop ebp
ret 0xc

Function at 0x1001cf62
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x310
mov eax, dword [0x100268b0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push edi
mov edi, dword [ebp + 0xc]
cmp byte [0x100269c0], al
je 0x1001cf99
push ebx
push dword [ebp + 0x10]
push edi
push esi
call dword [sym.imp.kernel32.dll_GetTempFileNameW]
jmp 0x1001cffd
push 0x103
push eax
mov byte [ebp - 0x108], al
lea eax, [ebp - 0x107]
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
lea eax, [ebp - 0x310]
push eax
push esi
call sym.drvSOFT.x3d_public:_void___stdcall_MATRIX3D::Invert_struct_MATRIX3D_const__
lea eax, [ebp - 0x20c]
push eax
push edi
call sym.drvSOFT.x3d_public:_void___stdcall_MATRIX3D::Invert_struct_MATRIX3D_const__
lea eax, [ebp - 0x108]
push eax
push dword [ebp + 0x10]
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x310]
push eax
call dword [sym.imp.kernel32.dll_GetTempFileNameA]
mov esi, eax
push ebx
lea eax, [ebp - 0x108]
push eax
call sym.drvSOFT.x3d_public:_void___stdcall_MATRIX3D::Invert_struct_MATRIX3D_const__
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1001ddeb
leave
ret 0x10

Function at 0x1001d00e
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x100268b0]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x100269c0], 0
push esi
mov esi, dword [ebp + 0xc]
je 0x1001d03a
push esi
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_GetTempPathW]
jmp 0x1001d06b
lea eax, [ebp - 0x108]
push eax
push 0x104
call dword [sym.imp.kernel32.dll_GetTempPathA]
test eax, eax
je 0x1001d069
push dword [ebp + 8]
lea eax, [ebp - 0x108]
push esi
push eax
call sym.drvSOFT.x3d_public:_void___stdcall_MATRIX3D::Invert_struct_MATRIX3D_const__
push esi
call dword [sym.imp.kernel32.dll_lstrlenW]
jmp 0x1001d06b
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.1001ddeb
leave
ret 8
Function at 0x1001d106
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x100268b0]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x100269c0], 0
mov eax, dword [ebp + 8]
je 0x1001d12e
push eax
call dword [sym.imp.kernel32.dll_DeleteFileW]
jmp 0x1001d148
lea ecx, [ebp - 0x108]
push ecx
push eax
call sym.drvSOFT.x3d_public:_void___stdcall_MATRIX3D::Invert_struct_MATRIX3D_const__
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.kernel32.dll_DeleteFileA]
mov ecx, dword [ebp - 4]
test eax, eax
setne al
xor ecx, ebp
call fcn.1001ddeb
leave
ret 4

Function at 0x1001ddeb
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x100268b0]
jne 0x1001ddf5
repz ret
jmp fcn.1001e62c
Function at 0x4072cc
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebx
push esi
add esp, 0xfffffbe4
mov esi, edx
mov ebx, eax
test bl, bl
je 0x40730e
movzx eax, bl
add ax, 0x41
dec eax
mov word [esp], ax
mov word [esp + 2], 0x3a
mov word [esp + 4], 0
lea eax, [esp + 0x212]
push eax
push 0x105
call sub.KERNEL32.DLL_GetCurrentDirectoryW
push esp
call sub.KERNEL32.DLL_SetCurrentDirectoryW
lea eax, [esp + 8]
push eax
push 0x105
call sub.KERNEL32.DLL_GetCurrentDirectoryW
test bl, bl
je 0x40732e
lea eax, [esp + 0x212]
push eax
call sub.KERNEL32.DLL_SetCurrentDirectoryW
mov eax, esi
lea edx, [esp + 8]
mov ecx, 0x105
call fcn.0040b8b4
add esp, 0x41c
pop esi
pop ebx
ret

Function at 0x4075b0
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.0040a790
test esi, esi
jne 0x4075e6
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.0040a918
jmp 0x407604
call sub.KERNEL32.DLL_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00407494
mov edi, eax
test esi, esi
je 0x407604
cmp dword [ebx], 0
je 0x407604
dec esi
jmp 0x4075ed
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

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

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

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

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x8b5008], 0x8088405
inc edx
mov dword [ebx + 0x8b5008], edx
fld qword [ebx + 0x8b5798]
push 0
push edx
fild qword [esp]
add esp, 8
fmulp st(1)
pop ebx
ret
Function at 0x409448
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.004098bc
mov byte [esp], al
cmp byte [esp], 0
jne 0x4095d1
test edi, edi
je 0x4095d1
mov byte [esp + 1], 0
test ebp, ebp
jle 0x409511
call sub.KERNEL32.DLL_GetTickCount
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 0xc], eax
test ebp, ebp
jle 0x4094ec
cmp edi, 0xffffffff
je 0x4094ad
call sub.KERNEL32.DLL_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x4094ad
mov byte [esp], 0
jmp 0x4095d1
cmp dword [esi], 1
jg 0x4094ec
cmp dword [esi], 0
jne 0x4094de
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x4094de
call sub.KERNEL32.DLL_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x4095d1
lea eax, [esp + 0xc]
call fcn.00409124
dec ebp
test ebp, ebp
jg 0x409492
cmp edi, 0xffffffff
je 0x409511
call sub.KERNEL32.DLL_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x40950f
mov byte [esp], 0
jmp 0x4095d1
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x409456
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x409511
call sub.KERNEL32.DLL_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.00409640
mov edx, eax
mov ebx, dword [0x8c28fc]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x409575
call sub.KERNEL32.DLL_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x409573
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x409575
xor edi, edi
cmp byte [esp], 0
je 0x40959b
mov ebx, dword [esi]
test bl, 1
jne 0x4095b1
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x40957b
mov byte [esp + 1], 1
jmp 0x4095b1
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x40959b
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x409528
cmp byte [esp], 0
je 0x4095d1
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 0x40a428
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x8c205c], 0
je 0x40a48f
cmp word [0x8c2348], 0xd7b2
jne 0x40a451
cmp dword [0x8c2350], 0
jbe 0x40a451
mov eax, 0x8c2344
call dword [0x8c2360]
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, 0x40a4bc
call fcn.0040b218
push eax
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
pop edx
ret
cmp byte [0x8b5034], 0
jne 0x40a4ab
push 0
push 0x8b59f2
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x40a650
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 [0x8b5038], 0
je 0x40a67b
mov edx, edi
mov eax, esi
call dword [0x8b5038]
mov ebx, eax
jmp 0x40a68c
mov eax, 8
call fcn.004070f4
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x8c205d], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x40a618
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 0x40a6bc
mov eax, ebx
call fcn.00407110
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc

Function at 0x40dcf0
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 0x40de55
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0040a790
cmp si, word [0x8b5a30]
jb 0x40dd88
cmp si, word [0x8b5c30]
ja 0x40dd88
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x40dd88
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x8b5a30]
jae 0x40dd62
mov edi, ebx
dec edi
jmp 0x40dd83
cmp si, word [ebx*8 + 0x8b5a30]
jbe 0x40dd72
inc ebx
mov dword [ebp - 8], ebx
jmp 0x40dd83
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x8b5a34]
call fcn.0040dc10
jmp 0x40dd88
cmp edi, dword [ebp - 8]
jae 0x40dd4c
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x40de37
push 2
movzx eax, si
push eax
call sub.KERNEL32.DLL_IsValidLocale
test eax, eax
je 0x40de37
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.0040b8b4
push dword [ebp - 0x160]
push 0x40de70
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.0040b8b4
push dword [ebp - 0x164]
push 0x40de80
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.0040b8b4
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.0040baec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40de5c
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.0040a7f0
ret
Function at 0x40e008
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 0x40e10c
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x8c4b8c
call sub.KERNEL32.DLL_EnterCriticalSection
cmp bx, word [0x8c4ba4]
jne 0x40e054
mov eax, esi
mov edx, 0x8c4ba6
mov ecx, 0x55
call fcn.0040b8b4
push 0x8c4b8c
call sub.KERNEL32.DLL_LeaveCriticalSection
jmp 0x40e0f6
push 0x8c4b8c
call sub.KERNEL32.DLL_LeaveCriticalSection
mov eax, esi
call fcn.0040a790
push 2
movzx eax, bx
push eax
call sub.KERNEL32.DLL_IsValidLocale
test eax, eax
je 0x40e0c3
cmp byte [0x8c4b88], 0
je 0x40e088
mov edx, esi
mov eax, ebx
call fcn.0040deec
jmp 0x40e0c3
mov edx, esi
mov eax, ebx
call fcn.0040dcf0
call sub.KERNEL32.DLL_GetSystemDefaultUILanguage
cmp bx, ax
je 0x40e0c3
cmp dword [esi], 0
je 0x40e0ac
mov eax, esi
mov edx, 0x40e124
call fcn.0040ba0c
call sub.KERNEL32.DLL_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.0040dcf0
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.0040ba0c
push 0x8c4b8c
call sub.KERNEL32.DLL_EnterCriticalSection
mov word [0x8c4ba4], bx
mov eax, dword [esi]
call fcn.0040b7f8
mov ecx, eax
mov eax, 0x8c4ba6
mov edx, 0xaa
call fcn.0040db70
push 0x8c4b8c
call sub.KERNEL32.DLL_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e113
lea eax, [ebp - 4]
call fcn.0040a790
ret
Function at 0x4248d8
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 0x424a3c
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x104
lea eax, [ebp - 8]
mov ecx, 1
mov edx, dword [0x424878]
call fcn.0040d2b8
add esp, 4
push 0x104
lea eax, [ebp - 0xc]
mov ecx, 1
mov edx, dword [0x4248a8]
call fcn.0040d2b8
add esp, 4
movzx ebx, byte [0x424a4c]
mov dl, 1
mov eax, esi
call fcn.00424e30
test al, al
jne 0x424952
mov dl, 1
mov eax, esi
call fcn.00424d98
test al, al
je 0x4249dc
lea edx, [ebp - 0x1c]
mov eax, esi
call fcn.00425660
mov eax, dword [ebp - 0x1c]
lea edx, [ebp - 4]
call fcn.0042c2e4
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.0040b7f8
mov esi, eax
push esi
call sub.KERNEL32.DLL_GetVolumeInformationW
test eax, eax
je 0x4249d7
test byte [ebp - 0x14], 1
je 0x4249a2
or bl, 1
test byte [ebp - 0x14], 2
je 0x4249ab
or bl, 2
test byte [ebp - 0x14], 0x80
je 0x4249b4
or bl, 0x20
push esi
call sub.KERNEL32.DLL_GetDriveTypeW
sub eax, 2
je 0x4249c8
dec eax
je 0x4249cd
dec eax
je 0x4249d2
dec eax
jne 0x4249fd
or bl, 0x10
jmp 0x4249fd
or bl, 4
jmp 0x4249fd
or bl, 8
jmp 0x4249fd
call fcn.0042cf78
lea edx, [ebp - 0x20]
mov eax, dword [0x8c1664]
call fcn.00410254
mov ecx, dword [ebp - 0x20]
mov dl, 1
mov eax, dword [0x41d084]
call fcn.0042afcc
call fcn.00409e94
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x424a43
lea eax, [ebp - 0x20]
mov edx, 2
call fcn.0040a7f0
lea eax, [ebp - 0xc]
mov edx, dword [0x4248a8]
call fcn.0040d3dc
lea eax, [ebp - 8]
mov edx, dword [0x424878]
call fcn.0040d3dc
lea eax, [ebp - 4]
call fcn.0040a790
ret

Function at 0x424aa8
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 0x424ad5
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 4