joyce8/EMBER2024-capa huggingface dataset:
Function at 0x412c2c
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
cmp dword [esi + 0xec], 9
je 0x412d6b
mov ebx, dword [sym.imp.WINMM.dll_timeGetTime]
push 1
push edi
push edi
push edi
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x412c79
cmp dword [ebp - 0x18], 0x12
je 0x412df5
lea eax, [ebp - 0x1c]
push eax
call fcn.004126b4
pop ecx
jmp 0x412d5e
mov eax, dword [esi + 0xec]
sub eax, 1
je 0x412cf3
sub eax, 1
je 0x412d13
sub eax, 1
je 0x412cba
push 3
pop ecx
sub eax, ecx
je 0x412dec
sub eax, 1
je 0x412de3
sub eax, 1
jne 0x412d71
mov dword [esi + 0xec], ecx
jmp 0x412d5e
push edi
push edi
push edi
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.USER32.dll_GetMessageA]
cmp dword [ebp - 0x18], 0x12
je 0x412df5
lea eax, [ebp - 0x1c]
push eax
call fcn.004126b4
cmp dword [esi + 0xec], 3
pop ecx
je 0x412cba
push 0x4ff
push 0x3e8
jmp 0x412d96
cmp dword [0x44f0b8], 0xffffffff
jne 0x412d04
call dword [sym.imp.KERNEL32.dll_GetTickCount]
jmp 0x412d06
call ebx
push eax
call fcn.004042f8
pop ecx
mov dword [esi + 0xec], eax
cmp dword [0x44f0b8], 0xffffffff
jne 0x412d76
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, eax
push edi
call fcn.004042a5
pop ecx
test eax, eax
je 0x412d3f
mov ecx, dword [esi + 0xf8]
push 0x4ff
sub ecx, edi
push ecx
jmp 0x412d94
mov eax, dword [0x450acc]
test byte [eax + 0x30c], 2
je 0x412d5c
mov eax, dword [0x450ae0]
test eax, eax
je 0x412d5c
dec eax
mov dword [0x450ae0], eax
xor edi, edi
cmp dword [esi + 0xec], 9
jne 0x412c4d
mov dword [esi + 0xec], edi
pop edi
pop esi
pop ebx
leave
ret
call ebx
lea edi, [eax + 5]
push edi
call fcn.004042a5
pop ecx
test eax, eax
je 0x412da9
mov eax, dword [esi + 0xf8]
push 0x4ff
sub eax, edi
push eax
xor edi, edi
push edi
push edi
push edi
call dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
jmp 0x412d5e
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
call ebx
cmp eax, dword [esi + 0xf8]
jl 0x412da1
mov dword [esi + 0xfc], eax
xor edi, edi
mov eax, dword [0x450acc]
mov dword [esi + 0xec], edi
test byte [eax + 0x30c], 2
je 0x412d5e
mov eax, dword [0x450ae0]
test eax, eax
je 0x412d5e
dec eax
mov dword [0x450ae0], eax
jmp 0x412d5e
mov dword [ebp + 8], 0x2b
jmp 0x412df8
mov dword [ebp + 8], 0xa
jmp 0x412df8
mov dword [ebp + 8], edi
push 0x44c354
lea eax, [ebp + 8]
push eax
call fcn.0041ec7c
int3
Function at 0x4146e4
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
and dword [ebp - 4], 0
lea eax, [ebp - 0x14]
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_GetClientRect]
push edi
mov edi, dword [ebp + 8]
push eax
mov dword [ebp - 0x18], ecx
push dword [edi + 8]
call esi
cmp dword [edi + 0xc], 0
mov ebx, dword [ebp + 0xc]
jl 0x414775
mov ecx, dword [ebp - 0x18]
push dword [edi + 0xc]
mov ecx, dword [ecx + 0x130]
call fcn.0041634b
mov ecx, dword [ebp + 0x10]
mov dword [ebp + 8], eax
sub ecx, 1
je 0x414747
sub ecx, 1
je 0x41473d
movzx ecx, word [edi + 0x14]
movzx edx, word [edi + 0x16]
jmp 0x41474f
movzx ecx, word [edi + 0x18]
movzx edx, word [edi + 0x1a]
jmp 0x41474f
movzx ecx, word [edi + 0x1c]
movzx edx, word [edi + 0x1e]
push 0xcc0020
movsx eax, dx
push eax
movsx eax, cx
push eax
mov eax, dword [ebp + 8]
push dword [eax + 0x10]
push dword [ebp - 8]
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push ebx
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, 0x200
test word [edi + 2], ax
je 0x4147a2
push 0xfffffffffffffffd
push 0xfffffffffffffffd
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.USER32.dll_InflateRect]
lea eax, [ebp - 0x14]
push eax
push ebx
call dword [sym.imp.USER32.dll_DrawFocusRect]
lea eax, [ebp - 0x14]
push eax
push dword [edi + 8]
call esi
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
lea eax, [ebp - 0x118]
push eax
push 0xff
push 0xd
push dword [edi + 8]
call esi
push 0
push 0
push 0x31
push dword [edi + 8]
call esi
mov edi, dword [sym.imp.GDI32.dll_SelectObject]
push eax
push ebx
call edi
push 1
push ebx
mov esi, eax
call dword [sym.imp.GDI32.dll_SetBkMode]
push 0
push ebx
call dword [sym.imp.GDI32.dll_SetTextColor]
push 0x25
lea eax, [ebp - 0x14]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x118]
push eax
call fcn.00408d18
pop ecx
pop ecx
push eax
push ebx
call dword [sym.imp.USER32.dll_DrawTextA]
lea eax, [ebp - 4]
push eax
call fcn.00408d25
pop ecx
push esi
push ebx
call edi
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x415c7c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push ebx
push esi
push edi
push 0x43d420
mov esi, ecx
push eax
push dword [ebp + 8]
mov ebx, dword [esi + 0x40]
call fcn.00408d18
pop ecx
pop ecx
push eax
call fcn.004214ca
mov edi, eax
lea eax, [ebp - 4]
push eax
call fcn.00408d25
add esp, 0xc
test edi, edi
jne 0x415cbe
or eax, 0xffffffff
jmp 0x415d10
mov ecx, dword [esi + 0x3c]
mov eax, 0x4d42
mov word [ebp - 0x14], ax
lea eax, [ebx + 0xe]
add eax, ecx
mov dword [ebp - 0x12], eax
lea eax, [ecx + 0xe]
mov dword [ebp - 0xa], eax
xor eax, eax
push edi
push 0xe
mov dword [ebp - 0xe], eax
lea eax, [ebp - 0x14]
push 1
push eax
call fcn.00421719
push edi
push dword [esi + 0x3c]
push 1
push dword [esi + 0x18]
call fcn.00421719
push edi
push ebx
push 1
push dword [esi + 0x14]
call fcn.00421719
push edi
call fcn.00421389
add esp, 0x34
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x4168e5
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push ebx
mov edi, ecx
call fcn.004161f7
mov eax, dword [edi + 0x324]
and dword [ebp + 8], 0
mov esi, dword [eax + ebx*4]
test esi, esi
je 0x416937
mov eax, dword [esi + 0x34]
mov ecx, esi
mov dword [ebp + 8], eax
call fcn.00415530
push 0x1bc
push esi
call fcn.0041d192
mov eax, dword [edi + 0x324]
pop ecx
pop ecx
push 0
push dword [ebp + 8]
and dword [eax + ebx*4], 0
call dword [sym.imp.USER32.dll_ShowWindow]
push 0x1bc
call fcn.0041d162
mov esi, eax
mov dword [ebp - 4], esi
pop ecx
test esi, esi
je 0x416973
xor eax, eax
mov dword [esi + 0x1b8], 0xf
mov dword [esi + 0x1a4], eax
mov dword [esi + 0x1b4], eax
mov byte [esi + 0x1a4], al
mov dword [esi], eax
mov dword [esi + 0xc4], eax
jmp 0x416975
xor esi, esi
mov eax, dword [edi + 0x324]
xor ecx, ecx
inc ecx
mov dword [eax + ebx*4], esi
mov eax, dword [ebp + 0x14]
and eax, ecx
mov dword [esi + 0x44], ecx
push eax
push dword [ebp + 0x10]
mov dword [esi + 0x48], ebx
mov ecx, esi
push dword [ebp + 0xc]
mov dword [esi + 0x130], edi
push dword [ebp + 8]
push dword [edi + 0x320]
call fcn.0041665b
and dword [esi + 0x50], 0
and dword [esi + 0x54], 0
pop edi
pop esi
pop ebx
leave
ret 0x10

Function at 0x41b476
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
mov eax, dword [esi + 8]
mov edi, eax
mov edx, eax
and edi, 7
je 0x41b4a4
cmp eax, edi
jge 0x41b498
push esi
call fcn.0041a600
mov eax, dword [esi + 8]
pop ecx
mov ecx, edi
shr dword [esi + 0xc], cl
sub eax, edi
mov dword [esi + 8], eax
mov edx, eax
xor ecx, ecx
test eax, eax
jle 0x41b4c7
mov edi, dword [esi + 0xc]
mov al, byte [esi + 0xc]
sub edx, 8
mov byte [ebp + ecx + 8], al
inc ecx
shr edi, 8
mov dword [esi + 0xc], edi
test edx, edx
jg 0x41b4ad
mov dword [esi + 8], edx
jmp 0x41b4dc
mov eax, dword [esi]
cmp eax, dword [esi + 4]
jb 0x41b4d2
xor dl, dl
jmp 0x41b4d7
mov dl, byte [eax]
inc eax
mov dword [esi], eax
mov byte [ebp + ecx + 8], dl
inc ecx
cmp ecx, 4
jl 0x41b4c7
mov eax, dword [ebp + 8]
movzx ecx, byte [ebp + 0xb]
movzx edi, ah
movzx eax, al
shl edi, 8
add edi, eax
shl ecx, 8
movzx eax, byte [ebp + 0xa]
add ecx, eax
mov eax, edi
xor eax, 0xffff
cmp ecx, eax
je 0x41b515
mov dword [0x450b18], str.zlib_corrupt
xor eax, eax
jmp 0x41b55a
mov eax, dword [esi]
add eax, edi
cmp eax, dword [esi + 4]
jbe 0x41b52a
mov dword [0x450b18], str.read_past_buffer
jmp 0x41b511
mov ecx, dword [esi + 0x10]
lea eax, [ecx + edi]
cmp eax, dword [esi + 0x18]
jbe 0x41b544
push edi
push ecx
push esi
call fcn.0041c828
add esp, 0xc
test eax, eax
je 0x41b511
push edi
push dword [esi]
push dword [esi + 0x10]
call fcn.0041e520
add dword [esi], edi
xor eax, eax
add dword [esi + 0x10], edi
add esp, 0xc
inc eax
pop edi
pop esi
pop ebp
ret

Function at 0x41cc91
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.00429a8f
Function at 0x41cca8
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x140
push ebx
push esi
mov esi, dword [ebp + 0x10]
mov ecx, esi
and ecx, 1
mov eax, esi
shl ecx, 4
mov ebx, ecx
or ebx, 6
and al, 2
push edi
lea eax, [ebp - 0x140]
cmove ebx, ecx
push eax
push dword [ebp + 8]
xor edi, edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp + 0x10], eax
cmp eax, 0xffffffff
jne 0x41ccec
xor eax, eax
jmp 0x41cd8e
and esi, 4
xor eax, eax
mov ecx, ebx
and ecx, dword [ebp - 0x140]
cmp eax, ecx
sbb eax, eax
neg eax
test esi, esi
jne 0x41cd0a
xor eax, eax
cmp eax, ecx
sbb eax, eax
inc eax
test eax, eax
je 0x41cd5c
mov al, byte [ebp - 0x114]
xor ecx, ecx
test al, al
setne cl
cmp al, 0x2e
jne 0x41cd38
mov al, byte [ebp - 0x113]
xor edx, edx
test al, al
cmove ecx, edx
cmp al, 0x2e
jne 0x41cd38
cmp byte [ebp - 0x112], dl
je 0x41cd5c
test ecx, ecx
je 0x41cd5c
lea eax, [ebp - 0x114]
inc edi
push eax
push dword [ebp + 0xc]
call fcn.0040a5dc
push 0x43d9e8
push dword [ebp + 0xc]
call fcn.0040a5dc
add esp, 0x10
lea eax, [ebp - 0x140]
push eax
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x41ccef
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
jne 0x41ccef
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x43258e
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0043240d

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

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
push 4
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
je 0x42e072
nop
nop
nop
nop
mov ebx, 0x407ef8
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x37b0758a
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x42e060
nop
nop
mov eax, section..data
nop
nop
cmp eax, 0
nop
nop
nop
je 0x42e0d2
nop
nop
mov ebx, 0x42cd70
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x62865c4b
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x42e0c0
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x403370
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.00405490
test esi, esi
jne 0x4033a6
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.00405580
jmp 0x4033c4
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00403214
mov edi, eax
test esi, esi
je 0x4033c4
cmp dword [ebx], 0
je 0x4033c4
dec esi
jmp 0x4033ad
add esp, 0x108
pop edi
pop esi
pop ebx
ret

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

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

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

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x5ae008], 0x8088405
inc edx
mov dword [ebx + 0x5ae008], edx
fld qword [ebx + 0x5ae760]
push 0
push edx
fild qword [esp]
add esp, 8
fmulp st(1)
pop ebx
ret

Function at 0x404374
Capabilities:
Query or enumerate registry value

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

Function at 0x40523c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x5c104c], 0
je 0x40529d
cmp word [0x5c1220], 0xd7b2
jne 0x405265
cmp dword [0x5c1228], 0
jbe 0x405265
mov eax, 0x5c121c
call dword [fcn.005c1238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x5ae790
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 0x4052c4
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x5ae030], 0
jne 0x4052b9
push 0
push 0x5ae788
push 0x5ae790
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x405414
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 4], edx
mov edi, eax
mov esi, dword [ebp + 0x10]
cmp dword [0x5ae038], 0
je 0x40543a
mov edx, esi
mov eax, ebx
call dword [0x5ae038]
jmp 0x405449
mov eax, 8
call fcn.00402f18
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x5c104d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x4053dc
push eax
mov eax, dword [ebp - 4]
push eax
push edi
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0xc
Function at 0x406eb0
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 0x4070e0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x406f33
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4070e0
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x406f33
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4070fc
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x406fbc
xor eax, eax
push ebp
push 0x406fb5
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00406cec
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 0x406f9a
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x40711c
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x406f9a
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 0x406fbc
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 0x4070d6
cmp byte [ebp - 0xd], 0
jne 0x407003
cmp byte [ebp - 0x12], 0
je 0x4070d6
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x40701c
dec ebx
cmp byte [ebx], 0x2e
je 0x40702b
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x40701b
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x4070d6
inc ebx
cmp byte [ebp - 0x12], 0
je 0x407068
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 0x4070d6
cmp byte [ebp - 0xd], 0
je 0x4070d6
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 0x4070d6
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 0x409d38
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, eax
mov eax, edx
test esi, esi
je 0x409dc8
mov edx, dword [esi - 4]
mov edi, eax
test edx, edx
jle 0x409dc8
mov ecx, dword [eax]
mov ebx, edx
test ecx, ecx
je 0x409d7b
test edx, 3
jne 0x409d6a
xor edx, dword [ecx - 4]
cmp edx, 3
jbe 0x409d75
jmp 0x409d7b
or edx, 2
xor edx, dword [ecx - 4]
cmp edx, 1
ja 0x409d7b
cmp dword [ecx - 8], 1
je 0x409d85
mov edx, ebx
or edx, 3
call fcn.00405bdc
mov edi, dword [edi]
mov dword [edi - 4], ebx
mov byte [edi + ebx], 0
add ebx, 0xffffffff
and ebx, 0xfffffffc
mov eax, dword [esi + ebx]
mov ecx, eax
or eax, 0x80808080
mov edx, eax
sub eax, 0x7b7b7b7b
xor edx, ecx
or eax, 0x80808080
sub eax, 0x66666666
and eax, edx
shr eax, 2
xor eax, ecx
mov dword [edi + ebx], eax
mov eax, dword [esi + ebx - 4]
sub ebx, 4
jge 0x409d97
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
pop ebx
jmp fcn.00405490

Function at 0x409dd4
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, eax
mov eax, edx
test esi, esi
je 0x409e64
mov edx, dword [esi - 4]
mov edi, eax
test edx, edx
jle 0x409e64
mov ecx, dword [eax]
mov ebx, edx
test ecx, ecx
je 0x409e17
test edx, 3
jne 0x409e06
xor edx, dword [ecx - 4]
cmp edx, 3
jbe 0x409e11
jmp 0x409e17
or edx, 2
xor edx, dword [ecx - 4]
cmp edx, 1
ja 0x409e17
cmp dword [ecx - 8], 1
je 0x409e21
mov edx, ebx
or edx, 3
call fcn.00405bdc
mov edi, dword [edi]
mov dword [edi - 4], ebx
mov byte [edi + ebx], 0
add ebx, 0xffffffff
and ebx, 0xfffffffc
mov eax, dword [esi + ebx]
mov ecx, eax
or eax, 0x80808080
mov edx, eax
sub eax, 0x5b5b5b5b
xor edx, ecx
or eax, 0x80808080
sub eax, 0x66666666
and eax, edx
shr eax, 2
xor eax, ecx
mov dword [edi + ebx], eax
mov eax, dword [esi + ebx - 4]
sub ebx, 4
jge 0x409e33
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
pop ebx
jmp fcn.00405490

Function at 0x40ab4c
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_ReadFile_1
test eax, eax
jne 0x40ab7d
mov dword [ebp - 0x10], 0xffffffff
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret

Function at 0x40ab84
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_WriteFile_1
test eax, eax
jne 0x40abb5
mov dword [ebp - 0x10], 0xffffffff
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret
Function at 0x40ac10
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405954
push eax
call sub.kernel32.dll_GetFileAttributesA
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
je 0x40ac36
test byte [ebp - 0xc], 0x10
je 0x40ac3a
xor eax, eax
jmp 0x40ac3c
mov al, 1
mov byte [ebp - 5], al
mov al, byte [ebp - 5]
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405954
push eax
call sub.kernel32.dll_GetFileAttributesA
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
je 0x40ac6e
test byte [ebp - 0xc], 0x10
jne 0x40ac72
xor eax, eax
jmp 0x40ac74
mov al, 1
mov byte [ebp - 5], al
mov al, byte [ebp - 5]
mov esp, ebp
pop ebp
ret

Function at 0x40ada8
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405954
push eax
call sub.kernel32.dll_GetFileAttributesA
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
pop ecx
pop ecx
pop ebp
ret

Function at 0x40adcc
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
call fcn.00405954
push eax
call sub.kernel32.dll_SetFileAttributesA
test eax, eax
jne 0x40adfb
call sub.kernel32.dll_GetLastError_1
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret

Function at 0x40b748
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
mov dword [ebp - 4], eax
push 0
mov eax, dword [ebp - 4]
call fcn.00405954
push eax
call sub.kernel32.dll_CreateDirectoryA
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 5], al
mov al, byte [ebp - 5]
pop ecx
pop ecx
pop ebp
ret

Function at 0x40b774
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405954
push eax
call sub.kernel32.dll_RemoveDirectoryA
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 5], al
mov al, byte [ebp - 5]
pop ecx
pop ecx
pop ebp
ret

Function at 0x40e9a8
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef0
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push pe_nt_image_headers32
lea eax, [ebp - 0x110]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jle 0x40e9f0
mov ecx, dword [ebp - 0x10]
dec ecx
lea edx, [ebp - 0x110]
mov eax, dword [ebp + 8]
call fcn.00405580
jmp 0x40e9fb
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0xc]
call fcn.004054e4
mov esp, ebp
pop ebp
ret 4