joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100234e0
Capabilities:
Access peb ldr_data

Disassembly:
add esp, 8
and dword [esp], ebx
push ecx
push edx
push edi
push esi
or edi, 0xffffffff
not edi
add edi, dword [ebp + 8]
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov ecx, dword [eax + 0xc]
push ecx
xor edx, edx
mov ecx, dword [ecx]
cmp ecx, dword [esp]
je 0x100237b6
push ebp
push 0xffffffffffffffff
sub esp, 0x32
mov dword [esp + 0x2e], 0x6bded62c
add esp, 0x2e
sub esp, 4
mov dword [esp], 0x6bde45f2
push 0xffffffffffffffff
call fcn.1001a6e0
xchg edx, eax
and eax, 0
add eax, 0x75d46dc4
push ecx
and ecx, 0xcfb6d7ec
mov ecx, esp
mov dword [ecx - 0x54], esi
pop ecx
ja 0x1002354a
and eax, eax
xchg edx, eax
mov edx, dword [ecx + edx - 0x75d46dac]
call fcn.10023562
mov byte [0xee69f033], al
invalid
mov eax, ecx
pop esi
mov edi, dword [esp]
add esp, 4
pop edx
xor ecx, ecx
add ecx, 0xffffffff
and ecx, dword [esp]
xor ecx, 0
add esp, 4
pop ebx
mov esp, ebp
mov ebp, dword [esp]
add esp, 4
jno 0x100237aa
xor eax, 0
ret 4
xor ecx, ecx
jmp 0x1002377e
Function at 0x10032fb0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push ecx
lea esp, [esp - 0x10]
mov dword [esp + 0xc], edx
lea esp, [esp + 0xc]
sub esp, 4
mov dword [esp], 0x8b92e34e
mov dword [esp], edi
push esi
mov eax, dword [ebp + 8]
and ax, 0xf001
dec eax
cmp word [eax], 0x5a4d
jne 0x10032fd2
mov ebx, dword [eax + 0x3c]
cmp ebx, 0xf08
ja 0x10032fd2
add ebx, eax
cmp dword [ebx], 0x4550
jne 0x10032fd2
ret
cmp word [ebx + 4], 0x14c
jne 0x10032fd2
test word [ebx + 0x16], 2
je 0x10032fd2
test word [ebx + 0x16], 0x100
je 0x10032fd2
cmp word [ebx + 0x18], 0x10b
jne 0x10032fd2
mov edx, dword [ebx + 0x78]
cmp edx, 0
je 0x10032fd2
lea edx, [eax + edx]
mov edx, dword [edx + 0xc]
push 0xe1641d81
call 0x1003305e
adc al, 0xbd
mov dl, 3
cmp byte [ecx + 0x75ac5ffe], 0xa
jnp 0x10032ff2
int1
salc
push edi
inc esp
add esp, 8
lea edx, [edx + eax]
mov ebx, eax
push edx
call fcn.10019f3d
xchg ebx, eax
cmp ebx, dword [ebp + 0xc]
jne 0x10032fd2
sub esp, 0x3e
mov esi, dword [esp + 0x3e]
add esp, 0x42
pop edi
mov edx, dword [esp]
add esp, 4
pop ecx
pop ebx
leave
ret 8

Function at 0x1003305e
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push ecx
lea esp, [esp - 0x10]
mov dword [esp + 0xc], edx
lea esp, [esp + 0xc]
sub esp, 4
mov dword [esp], 0x8b92e34e
mov dword [esp], edi
push esi
mov eax, dword [ebp + 8]
and ax, 0xf001
dec eax
cmp word [eax], 0x5a4d
jne 0x10032fd2
mov ebx, dword [eax + 0x3c]
cmp ebx, 0xf08
ja 0x10032fd2
add ebx, eax
cmp dword [ebx], 0x4550
jne 0x10032fd2
ret
cmp word [ebx + 4], 0x14c
jne 0x10032fd2
test word [ebx + 0x16], 2
je 0x10032fd2
test word [ebx + 0x16], 0x100
je 0x10032fd2
cmp word [ebx + 0x18], 0x10b
jne 0x10032fd2
mov edx, dword [ebx + 0x78]
cmp edx, 0
je 0x10032fd2
lea edx, [eax + edx]
mov edx, dword [edx + 0xc]
push 0xe1641d81
call 0x1003305e
adc al, 0xbd
mov dl, 3
cmp byte [ecx + 0x75ac5ffe], 0xa
jnp 0x10032ff2
int1
salc
push edi
inc esp
add esp, 8
lea edx, [edx + eax]
mov ebx, eax
push edx
call fcn.10019f3d
xchg ebx, eax
cmp ebx, dword [ebp + 0xc]
jne 0x10032fd2
sub esp, 0x3e
mov esi, dword [esp + 0x3e]
add esp, 0x42
pop edi
mov edx, dword [esp]
add esp, 4
pop ecx
pop ebx
leave
ret 8
Function at 0x10033115
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0
push ecx
xor ecx, ecx
jne 0x1003316e
mov ecx, esp
xor dword [ecx - 0x55], edi
pop ecx
call 0x10033115
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
call 0x10033124
cld
test edx, ebx
or ebp, eax
add dword [esi - 0x7cc26b19], esp
les ecx, [eax]
or dword [esp], ebp
mov ebp, esp
sub esp, 0x100
push ebx
push edx
push ecx
push edi
push esi
mov ebx, dword [ebp + 8]
mov edx, ebx
add ebx, dword [ebx + 0x3c]
mov ebx, dword [ebx + 0x78]
lea ebx, [ebx + edx]
mov eax, dword [ebx + 0x24]
add eax, edx
xor edi, edi
jne 0x10438dc7
or edi, dword [ebx + 0x20]
add edi, edx
mov ecx, dword [ebx + 0x18]
mov esi, dword [edi]
add esi, edx
push 0
push ecx
mov ecx, esp
push 0x55d34c8a
call 0x10033175
sti
sbb byte [ecx + 0x56], dh
xlatb
les ebp, [ebp + 0x8c483e2]
xchg dword [ecx + 4], eax
xor eax, edx
shl eax, 3
xor ecx, 0
shl eax, 0x1d
add eax, dword [ecx + 4]
pop ecx
push esi
call fcn.10019feb
cmp eax, dword [ebp + 0xc]
pop eax
je 0x10033214
add edi, 4
add eax, 2
dec ecx
jne 0x1003315a
call 0x100331c1
loope 0x100331b7
invalid
sbb esi, ebx
mov edi, 0xdbead58c
js 0x10033211
mov dh, 0xe8
or byte [eax], al
add byte [eax], al
mov bh, 0x24
lea eax, [edx + 0x53]
nop
mov dword [esi + 0x2308c483], ecx
sal byte [ecx], 0xc0
fsub st(7)
int 0xf
mov bh, 0
movzx eax, word [eax]
jmp 0x10033222
shl eax, 2
add eax, dword [ebx + 0x1c]
add eax, edx
mov eax, dword [eax]
add eax, edx
mov ebx, edx
add ebx, dword [edx + 0x3c]
mov ecx, dword [ebx + 0x7c]
mov ebx, dword [ebx + 0x78]
add ebx, edx
add ecx, ebx
cmp eax, ebx
jb 0x100331d5
cmp eax, ecx
ja 0x100331d5
mov esi, eax
lea edi, [ebp - 0x100]
mov al, byte [esi]
mov byte [edi], al
inc edi
inc esi
js 0x1003325f
or ecx, ecx
xor dword [esp - 0x6b], eax
cmp al, 0x2e
jne 0x10033255
lea edi, [ebp - 0x100]
push 0x100
push edi
push esi
call fcn.1001a4ca
lea esp, [esp - 0x60]
mov dword [esp + 0x5c], edi
lea esp, [esp + 0x5c]
Function at 0x10033124
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0
push ecx
xor ecx, ecx
jne 0x1003316e
mov ecx, esp
xor dword [ecx - 0x55], edi
pop ecx
call 0x10033115
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
call 0x10033124
cld
test edx, ebx
or ebp, eax
add dword [esi - 0x7cc26b19], esp
les ecx, [eax]
or dword [esp], ebp
mov ebp, esp
sub esp, 0x100
push ebx
push edx
push ecx
push edi
push esi
mov ebx, dword [ebp + 8]
mov edx, ebx
add ebx, dword [ebx + 0x3c]
mov ebx, dword [ebx + 0x78]
lea ebx, [ebx + edx]
mov eax, dword [ebx + 0x24]
add eax, edx
xor edi, edi
jne 0x10438dc7
or edi, dword [ebx + 0x20]
add edi, edx
mov ecx, dword [ebx + 0x18]
mov esi, dword [edi]
add esi, edx
push 0
push ecx
mov ecx, esp
push 0x55d34c8a
call 0x10033175
sti
sbb byte [ecx + 0x56], dh
xlatb
les ebp, [ebp + 0x8c483e2]
xchg dword [ecx + 4], eax
xor eax, edx
shl eax, 3
xor ecx, 0
shl eax, 0x1d
add eax, dword [ecx + 4]
pop ecx
push esi
call fcn.10019feb
cmp eax, dword [ebp + 0xc]
pop eax
je 0x10033214
add edi, 4
add eax, 2
dec ecx
jne 0x1003315a
call 0x100331c1
loope 0x100331b7
invalid
sbb esi, ebx
mov edi, 0xdbead58c
js 0x10033211
mov dh, 0xe8
or byte [eax], al
add byte [eax], al
mov bh, 0x24
lea eax, [edx + 0x53]
nop
mov dword [esi + 0x2308c483], ecx
sal byte [ecx], 0xc0
fsub st(7)
int 0xf
mov bh, 0
movzx eax, word [eax]
jmp 0x10033222
shl eax, 2
add eax, dword [ebx + 0x1c]
add eax, edx
mov eax, dword [eax]
add eax, edx
mov ebx, edx
add ebx, dword [edx + 0x3c]
mov ecx, dword [ebx + 0x7c]
mov ebx, dword [ebx + 0x78]
add ebx, edx
add ecx, ebx
cmp eax, ebx
jb 0x100331d5
cmp eax, ecx
ja 0x100331d5
mov esi, eax
lea edi, [ebp - 0x100]
mov al, byte [esi]
mov byte [edi], al
inc edi
inc esi
js 0x1003325f
or ecx, ecx
xor dword [esp - 0x6b], eax
cmp al, 0x2e
jne 0x10033255
lea edi, [ebp - 0x100]
push 0x100
push edi
push esi
call fcn.1001a4ca
lea esp, [esp - 0x60]
mov dword [esp + 0x5c], edi
lea esp, [esp + 0x5c]
Function at 0x4038c0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
call fcn.004034e0
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4038f2
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0xc]
mov dword [ebp - 8], edx
mov ecx, dword [ebp - 8]
call dword [0x42c168]
call dword [ebp - 8]
jmp 0x4038fc
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esp, ebp
pop ebp
ret

Function at 0x414f70
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x34
call fcn.00417fd0
mov byte [ebp - 1], al
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x414fae
cmp dword [ebp + 8], 0
je 0x414f9c
lea eax, [ebp + 8]
push eax
call fcn.00415170
add esp, 4
movzx ecx, byte [ebp - 1]
test ecx, ecx
je 0x414fae
mov eax, 4
jmp 0x4150de
call fcn.00417e00
movzx edx, al
test edx, edx
jne 0x414fdc
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x414fcd
mov dword [ebp - 0xc], 4
jmp 0x414fd4
mov dword [ebp - 0xc], 3
mov eax, dword [ebp - 0xc]
jmp 0x4150de
movzx eax, byte [ebp - 1]
test eax, eax
je 0x415085
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x34], ecx
mov edx, dword [ebp + 8]
mov dword [ebp - 0x30], edx
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], 0
push 0
push 0
lea ecx, [ebp - 0x34]
push ecx
push 0x415120
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
lea ecx, [ebp - 8]
call fcn.00407040
lea ecx, [ebp - 8]
call fcn.004151b0
movzx edx, al
test edx, edx
jne 0x415047
mov dword [ebp - 0x10], 0
lea ecx, [ebp - 8]
call fcn.00415190
mov eax, dword [ebp - 0x10]
jmp 0x4150de
push 0
push 0xffffffffffffffff
lea ecx, [ebp - 8]
call fcn.00407150
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObjectEx]
test eax, eax
je 0x415072
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 8]
call fcn.00415190
mov eax, dword [ebp - 0x14]
jmp 0x4150de
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 8]
call fcn.00415190
mov eax, dword [ebp - 0x18]
jmp 0x4150de
call fcn.00417f20
movzx ecx, al
test ecx, ecx
jne 0x4150be
mov edx, dword [ebp + 0x10]
or edx, 0x200000
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], 0
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp + 0xc]
push ecx
lea edx, [ebp + 8]
push edx
lea eax, [ebp - 0x20]
push eax
call fcn.004150f0
add esp, 0x10
jmp 0x4150de
call fcn.00417e30
mov dword [ebp - 0x24], eax
lea ecx, [ebp + 0x10]
push ecx
lea edx, [ebp + 0xc]
push edx
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x24]
push ecx
call fcn.004150f0
add esp, 0x10
mov esp, ebp
pop ebp
ret

Function at 0x417437
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00416fd3
Function at 0x431001
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
call 0x43100c
nop
nop
nop
nop
nop
pop eax
nop
add eax, 0x403e6a
nop
sub eax, 0x403e10
nop
nop
nop
mov ebx, dword [eax]
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x431030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43101e
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp fcn.00401219
Function at 0x401f10
Capabilities:
Get disk information
Inspect load icon resource
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x148
push ebx
push esi
push edi
push 0x65
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [esp + 0xc]
call fcn.00401000
lea ecx, [esp + 0x50]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x50]
lea ecx, [esp + 0xc]
push edx
call fcn.004012b0
test eax, eax
je 0x402021
lea eax, [esp + 0x50]
push 0x404030
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x402084
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x10]
call fcn.00401290
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
sub eax, 8
push 0
push eax
push esi
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea edx, [esp + 0x24]
push 8
push edx
call ebx
mov eax, dword [esp + 0x2c]
push 0
push eax
push esi
call edi
push esi
push 1
lea ecx, [esp + 0x48]
push 0x38
push ecx
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x50]
add esp, 0x3c
test eax, eax
mov eax, dword [esp + 0x10]
push edx
push eax
jne 0x401ffe
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401800
jmp 0x402084
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401a90
jmp 0x402084
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
mov esi, 1
xor ebx, ebx
test edi, esi
je 0x40206a
mov dl, bl
lea ecx, [esp + 0x10]
add dl, 0x41
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x40412c
lea ecx, [esp + 0x14]
call fcn.004020e2
lea ecx, [esp + 0xc]
mov eax, dword [esp + 0x10]
push eax
push 0
call fcn.00401cf0
add esi, esi
inc ebx
cmp ebx, 0x1a
jl 0x402039
lea ecx, [esp + 0xc]
call fcn.00401040
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
call fcn.00401030
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x148
ret 0x10

Function at 0x402000
Capabilities:
Encode data using xor

Disassembly:
call dword [sym.imp.kernel32.dll_GetACP]
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
jmp loc.00409000
Function at 0x5a030f0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b1c44b
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x5b920e8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.0
call fcn.05aeb9e4
push 4
mov dword [ebp - 4], 0
call fcn.05ac813b
mov edi, eax
add esp, 4
test edi, edi
je 0x5a0316c
call fcn.05aeb8bc
mov dword [edi], eax
call fcn.05aeb67b
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.05aeb9a5
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x5a03162
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.05aeb9cd
jmp 0x5a0316e
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x5a14840
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b1c47b
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x5b920e8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.05aeb9e4
mov dword [ebp - 4], 0
push 4
call fcn.05ac813b
mov edi, eax
add esp, 4
test edi, edi
je 0x5a148a4
call fcn.05aeb8bc
mov dword [edi], eax
call fcn.05aeb67b
mov ecx, eax
call fcn.05a05510
jmp 0x5a148a6
xor edi, edi
mov dword [esi + 0x38], edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x5a1cd4e
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
push 0
call fcn.05a17c6c
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x5a1cd7a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x5a1cd7a
mov eax, 0x80000008
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x5a1ce94
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x5b920e8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
mov ecx, esi
call fcn.05a17c5d
test eax, eax
je 0x5a1d005
mov ecx, edi
call fcn.05a17c5d
test eax, eax
je 0x5a1d005
push 0x5b27df4
mov ecx, esi
call fcn.05a17cb0
test al, al
je 0x5a1ceea
call fcn.05acd750
mov dword [ebp - 0x208], eax
jmp 0x5a1cf0e
push 0x5b27df0
mov ecx, esi
call fcn.05a17c6c
push eax
lea eax, [ebp - 0x208]
push eax
call fcn.05acd709
add esp, 0xc
test eax, eax
jne 0x5a1cffe
push dword [ebp - 0x208]
call fcn.05acd37f
pop ecx
test eax, eax
jne 0x5a1cfd5
push 0x5b27dec
mov ecx, edi
call fcn.05a17c6c
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.05acd709
add esp, 0xc
test eax, eax
jne 0x5a1cfce
xor edi, edi
jmp 0x5a1cfa7
test edi, edi
js 0x5a1cfb7
push dword [ebp - 0x208]
lea eax, [ebp - 0x204]
push 0x200
push 1
push eax
call fcn.05acd619
push dword [ebp - 0x208]
mov esi, eax
call fcn.05acd3a7
add esp, 0x14
test eax, eax
jne 0x5a1cfa2
test esi, esi
je 0x5a1cfa7
push dword [ebp - 0x20c]
lea eax, [ebp - 0x204]
push esi
push 1
push eax
call fcn.05acd305
add esp, 0x10
cmp esi, eax
je 0x5a1cfa7
mov edi, 0x8000000b
jmp 0x5a1cfa7
mov edi, 0x8000000c
push dword [ebp - 0x208]
call fcn.05acd37f
pop ecx
test eax, eax
je 0x5a1cf4a
cmp dword [ebp - 0x20c], 0
je 0x5a1cfda
push dword [ebp - 0x20c]
call fcn.05acd13a
pop ecx
jmp 0x5a1cfda
mov edi, 0x8000000d
jmp 0x5a1cfda
mov edi, 0x8000000c
cmp dword [ebp - 0x208], 0
je 0x5a1d00a
call fcn.05acd750
cmp dword [ebp - 0x208], eax
je 0x5a1d00a
push dword [ebp - 0x208]
call fcn.05acd13a
pop ecx
jmp 0x5a1d00a
mov edi, 0x8000000e
jmp 0x5a1d00a
mov edi, 0x80000004
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.05ac7ec0
leave
ret

Function at 0x5a1d01a
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0xc]
mov ecx, esi
call fcn.05a17c5d
test eax, eax
je 0x5a1d09f
mov ecx, dword [ebp + 8]
call fcn.05a17c5d
test eax, eax
je 0x5a1d09f
mov ecx, dword [ebp + 8]
push 0x5b27df8
call fcn.05a17c6c
push eax
lea eax, [ebp - 4]
push eax
call fcn.05acd709
add esp, 0xc
test eax, eax
jne 0x5a1d098
push edi
push dword [ebp - 4]
mov ecx, esi
call fcn.05a17c5d
push eax
push 1
mov ecx, esi
call fcn.05a17c6c
push eax
call fcn.05acd305
add esp, 0x10
mov ecx, esi
mov edi, eax
call fcn.05a17c5d
push dword [ebp - 4]
mov esi, eax
sub esi, edi
neg esi
sbb esi, esi
and esi, 0x8000000b
call fcn.05acd13a
pop ecx
pop edi
jmp 0x5a1d0a4
mov esi, 0x8000000d
jmp 0x5a1d0a4
mov esi, 0x80000004
mov eax, esi
pop esi
leave
ret
Function at 0x5a1fb40
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x5b920e8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov ebx, ecx
lea edi, [esi + 0x54]
push edi
lea ecx, [ebp - 0x18]
call fcn.05a17f0e
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
movzx eax, ax
push eax
push str._0x_04x
lea eax, [ebp - 0xc]
push 8
push eax
call fcn.05a1f544
add esp, 0x10
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x18]
call fcn.05a17dd8
lea eax, [ebp - 0x18]
push eax
mov ecx, edi
call fcn.05a17dc7
push 0
push 0x3f
push esi
lea ecx, [ebx + 0x1c]
call fcn.05a2a678
lea ecx, [ebp - 0x18]
mov esi, eax
call fcn.05a17dc2
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.05ac7ec0
leave
ret 4

Function at 0x5a1fdaa
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, ecx
mov ecx, dword [ebp + 0xc]
call fcn.05a17c6f
test al, al
je 0x5a1fdc9
mov eax, 0x80000004
pop esi
leave
ret 0x10
mov eax, dword [ebp + 0x14]
mov dword [esi + 0x1c], eax
mov eax, dword [ebp + 8]
push edi
push 0
mov dword [esi + 0x24], eax
call fcn.05a9026e
mov dword [esp], 0x5a1f560
mov edi, eax
push 0x5a1fd93
push edi
call fcn.05a8a078
push 0x5a1f574
push edi
call fcn.05a8a08b
push esi
push edi
call fcn.05a8a058
add esp, 0x1c
push dword [0x5b27be0]
lea ecx, [ebp - 0xc]
call fcn.05a179ec
mov ecx, dword [ebp + 0x10]
call fcn.05a17c6f
test al, al
jne 0x5a1fe5b
mov ecx, dword [ebp + 0x10]
call fcn.05a17c5d
test eax, eax
je 0x5a1fe5b
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.05a1e5c8
add esp, 0xc
test eax, eax
jns 0x5a1fe66
mov esi, eax
push edi
call fcn.05a8b9f4
pop ecx
lea ecx, [ebp - 0xc]
call fcn.05a17dc2
mov eax, esi
pop edi
jmp 0x5a1fdc4
push dword [ebp + 0xc]
lea ecx, [ebp - 0xc]
call fcn.05a17dc7
lea ecx, [ebp - 0xc]
call fcn.05a17c5d
cmp eax, 0x7fffffff
jbe 0x5a1fe7c
mov esi, 0x80000005
jmp 0x5a1fe44
push 1
lea ecx, [ebp - 0xc]
call fcn.05a17c5d
push eax
lea ecx, [ebp - 0xc]
call fcn.05a17c6c
push eax
push edi
call fcn.05a8bb04
add esp, 0x10
test eax, eax
jne 0x5a1fea4
mov esi, 0x80000010
jmp 0x5a1fe44
mov ecx, dword [esi + 0x24]
call fcn.05a28283
test eax, eax
jne 0x5a1feb7
mov esi, 0x80000015
jmp 0x5a1fe44
mov ecx, dword [esi + 0x24]
call fcn.05a29f75
xor esi, esi
jmp 0x5a1fe44