joyce8/EMBER2024-capa huggingface dataset:
Function at 0x443720
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x28
mov dword [esp + 8], 0xd2d1d0d7
mov dword [esp + 0xc], 0
mov byte [esp + 0x10], 0
mov eax, 0x4dcce63
mov edx, 0xfb23319c
nop
nop
nop
nop
nop
mov dword [esp + 4], edx
movzx ecx, byte [esp + eax - 0x4dcce5b]
mov esi, ecx
not esi
mov edx, esi
and edx, 0x498e514
mov edi, ecx
and edi, 0xffffffeb
or edi, edx
mov edx, edi
xor edx, 0x3671aeb
xor edi, 0x498e514
mov ebx, edi
xor esi, edi
add edi, edx
mov edx, dword [esp + 4]
add edi, esi
and ebx, ecx
sub edi, ebx
inc edi
or edi, edx
add edi, 0x8000000
or ecx, eax
and ecx, edi
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x18]
add cl, 0x4b
mov byte [esp + eax - 0x4dcce5b], cl
inc eax
dec edx
cmp eax, 0x4dcce6c
jne 0x443750
mov eax, dword [esp + 8]
mov ecx, dword [0x44fb4c]
test ecx, ecx
je 0x443811
xor esi, esi
mov edi, dword [0x44fb50]
nop
nop
nop
nop
nop
cmp dword [edi + esi*8], 0xa1e50e2a
je 0x4437e0
inc esi
cmp ecx, esi
jne 0x4437d0
jmp 0x443811
mov esi, dword [edi + esi*8 + 4]
cmp esi, eax
je 0x443811
lea eax, [esp + 0x18]
push 0
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
push 0
push 0
push 0
push dword [ebp + 8]
push 9
push dword [0x44fb54]
push esi
call fcn.00440280
add esp, 0x30
cmp eax, 0x103
jne 0x4438f8
mov dword [esp + 8], 0xd2d1d0d7
mov dword [esp + 0xc], 0
mov byte [esp + 0x10], 0
mov eax, 0x4dcce63
mov edi, 0xfb23319c
nop
nop
nop
nop
nop
mov dword [esp + 4], edi
movzx edx, byte [esp + eax - 0x4dcce5b]
mov edi, edx
not edi
mov ebx, edi
and ebx, 0x498e514
mov esi, edx
and esi, 0xffffffeb
or esi, ebx
mov ebx, esi
xor ebx, 0x3671aeb
xor esi, 0x498e514
mov ecx, esi
xor edi, esi
add esi, ebx
add esi, edi
mov edi, dword [esp + 4]
and ecx, edx
sub esi, ecx
inc esi
or esi, edi
add esi, 0x8000000
or edx, eax
and edx, esi
mov dword [esp + 0x20], edx
mov ecx, dword [esp + 0x20]
add cl, 0x4b
mov byte [esp + eax - 0x4dcce5b], cl
inc eax
dec edi
cmp eax, 0x4dcce6c
jne 0x443840
mov eax, dword [esp + 8]
mov ecx, dword [0x44fb4c]
test ecx, ecx
je 0x4438f0
xor edx, edx
mov esi, dword [0x44fb50]
nop
nop
nop
nop
nop
cmp dword [esi + edx*8], 0x39c83604
je 0x4438d0
inc edx
cmp ecx, edx
jne 0x4438c0
jmp 0x4438f0
mov ecx, dword [esi + edx*8 + 4]
cmp ecx, eax
je 0x4438f0
push 0
push 0
push dword [ebp + 8]
push 3
push dword [0x44fb54]
push ecx
call fcn.00440280
add esp, 0x18
test eax, eax
js 0x4438f8
mov eax, dword [esp + 0x18]
mov edx, dword [ebp + 0x14]
test edx, edx
je 0x443905
mov ecx, dword [esp + 0x1c]
mov dword [edx], ecx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x443910
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x40
mov eax, dword [ebp + 0x18]
mov edi, dword [ebp + 8]
mov ecx, 0xfffffffe
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp word [edi + ecx + 2], 0
lea ecx, [ecx + 2]
jne 0x443930
sar ecx, 1
mov edx, ecx
and edx, 0xfffd
mov ebx, ecx
and ebx, 2
or ecx, 2
imul ecx, ebx
xor ebx, 2
imul ebx, edx
lea edx, [ebx + ecx]
mov word [esp + 4], dx
add ecx, ebx
add ecx, 2
mov word [esp + 6], cx
mov dword [esp + 8], edi
mov dword [esp + 0x24], 0x18
mov dword [esp + 0x28], eax
mov dword [esp + 0x30], 0x40
lea eax, [esp + 4]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x10], 0xd2d1d0d7
mov dword [esp + 0x14], 0
mov byte [esp + 0x18], 0
mov eax, 0x4dcce63
mov esi, 0xfb23319c
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov dword [esp], esi
movzx edx, byte [esp + eax - 0x4dcce53]
mov ecx, edx
not ecx
mov esi, ecx
and esi, 0x498e514
mov ebx, edx
and ebx, 0xffffffeb
or ebx, esi
mov esi, ebx
xor esi, 0x3671aeb
xor ebx, 0x498e514
mov edi, ebx
xor ecx, ebx
add ebx, esi
mov esi, dword [esp]
add ebx, ecx
and edi, edx
sub ebx, edi
inc ebx
or ebx, esi
add ebx, 0x8000000
or edx, eax
and edx, ebx
mov dword [esp + 0xc], edx
mov ecx, dword [esp + 0xc]
add cl, 0x4b
mov byte [esp + eax - 0x4dcce53], cl
inc eax
dec esi
cmp eax, 0x4dcce6c
jne 0x4439c0
mov eax, dword [esp + 0x10]
mov ecx, dword [0x44fb4c]
test ecx, ecx
je 0x443a77
xor edx, edx
mov edi, dword [0x44fb50]
nop
nop
nop
nop
nop
nop
nop
cmp dword [edi + edx*8], 0x55708665
je 0x443a50
inc edx
cmp ecx, edx
jne 0x443a40
jmp 0x443a77
mov ecx, dword [edi + edx*8 + 4]
cmp ecx, eax
je 0x443a77
lea eax, [esp + 0x24]
push dword [ebp + 0x14]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push 4
push dword [0x44fb54]
push ecx
call fcn.00440280
add esp, 0x1c
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
nop
push 4
nop
nop
nop
nop
nop
pop edi
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x433072
nop
mov ebx, 0x40de38
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
div edi
nop
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x57d24744
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x433060
nop
mov eax, section..data
nop
nop
cmp eax, 0
nop
nop
je 0x4330d2
nop
nop
nop
nop
mov ebx, 0x4304d8
nop
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
mov esi, 0x2b061b1e
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x4330c0
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
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 0x430006
Capabilities:
Encode data using xor

Disassembly:
mov eax, section..text
nop
nop
mov ebx, 0x408ecc
mov ecx, 0x54fe7313
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x430024
nop
nop
mov eax, section..data
nop
mov ebx, 0x42e1d0
mov ecx, 0x273f1979
nop
nop
test eax, eax
nop
nop
nop
je 0x430084
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x431000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40915c
nop
nop
mov ecx, 0x425803ad
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x43104e
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x431024
nop
mov eax, section..data
nop
nop
mov ebx, 0x42f3f8
mov ecx, 0x2d28099e
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x431084
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
add eax, 4
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43106c
nop
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x402e51
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
xor ecx, ecx
push 8
mov eax, ecx
pop edx
test al, 1
je 0x402e65
shr eax, 1
xor eax, 0xedb88320
jmp 0x402e67
shr eax, 1
dec edx
jne 0x402e58
mov dword [ecx*4 + 0x4161c0], eax
mov dword [ecx*4 + 0x4181c0], eax
inc ecx
cmp ecx, 0x100
jb 0x402e53
push ebx
push esi
push edi
mov ecx, 0x4165c0
mov edi, 0x101
mov eax, dword [ecx - 0x400]
push 7
mov edx, ecx
pop esi
movzx ebx, al
shr eax, 8
xor eax, dword [ebx*4 + 0x4161c0]
mov dword [edx], eax
add edx, 0x400
dec esi
jne 0x402e99
add ecx, 4
dec edi
jne 0x402e8e
pop edi
pop esi
pop ebx
ret

Function at 0x402ebb
Capabilities:
Encode data using xor

Disassembly:
cmp dword [0x4181c4], 0
jne 0x402ec9
call fcn.00402e51
mov ecx, dword [esp + 8]
mov eax, dword [esp + 4]
push esi
mov esi, dword [esp + 0x10]
push edi
test esi, esi
jbe 0x402ef6
test cl, 7
je 0x402ef6
movzx edx, byte [ecx]
movzx edi, al
xor edx, edi
shr eax, 8
xor eax, dword [edx*4 + 0x4161c0]
dec esi
inc ecx
jmp 0x402ed7
cmp esi, 8
jb 0x402f89
mov edi, esi
shr edi, 3
push ebx
xor eax, dword [ecx]
sub esi, 8
mov ebx, eax
shr ebx, 0x10
movzx ebx, bl
mov edx, eax
shr edx, 0x18
mov edx, dword [edx*4 + 0x4171c0]
xor edx, dword [ebx*4 + 0x4175c0]
mov ebx, eax
shr ebx, 8
movzx ebx, bl
xor edx, dword [ebx*4 + 0x4179c0]
movzx ebx, byte [ecx + 6]
xor edx, dword [ebx*4 + 0x4165c0]
movzx ebx, byte [ecx + 5]
xor edx, dword [ebx*4 + 0x4169c0]
movzx ebx, byte [ecx + 4]
xor edx, dword [ebx*4 + 0x416dc0]
movzx ebx, byte [ecx + 7]
xor edx, dword [ebx*4 + 0x4161c0]
movzx eax, al
xor edx, dword [eax*4 + 0x417dc0]
add ecx, 8
dec edi
mov eax, edx
jne 0x402f05
pop ebx
jmp 0x402f89
movzx edx, byte [ecx]
movzx edi, al
xor edx, edi
shr eax, 8
xor eax, dword [edx*4 + 0x4161c0]
dec esi
inc ecx
test esi, esi
ja 0x402f75
pop edi
pop esi
ret 0xc

Function at 0x4034a1
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1000
call fcn.00401200
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 3
jne 0x403533
push esi
push edi
mov edi, 0x400
push edi
lea eax, [ebp - 0x800]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004071cb
lea eax, [ebp - 0x800]
push eax
call fcn.0040a826
mov esi, eax
lea eax, [ebp - 0x800]
push eax
call fcn.00407aa8
test al, al
jne 0x40350f
lea eax, [ebp - 0x1000]
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_GetCurrentDirectoryW]
lea eax, [ebp - 0x1000]
push eax
call fcn.0040a826
lea esi, [esi + eax + 1]
mov eax, 0x104
pop edi
cmp esi, eax
pop esi
jbe 0x403533
push eax
push 0xaf
call fcn.00409b0b
push eax
push 0x414310
call fcn.0040b986
add esp, 0xc
leave
ret 8
Function at 0x4052ec
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x30c8
call fcn.00401200
push ebx
push esi
push edi
lea ecx, [ebp - 0x30c8]
call fcn.004039b6
xor edi, edi
push edi
lea eax, [ebp - 0x30c8]
push eax
push dword [ebp + 8]
push edi
call fcn.0040695b
test al, al
je 0x405491
cmp word [ebp - 0x2448], di
je 0x405491
lea eax, [ebp - 0x2448]
push eax
lea eax, [ebp - 0x2cc8]
push eax
call fcn.004072cf
push eax
call fcn.0040eefb
test eax, eax
je 0x405491
lea eax, [ebp - 0x2448]
push eax
push dword [ebp + 8]
call fcn.004072cf
push eax
call fcn.0040eefb
test eax, eax
jne 0x405491
mov word [ebp - 0x800], ax
xor ebx, ebx
mov esi, 0x400
cmp word [ebp - 0x800], di
jne 0x4053e2
push esi
push dword [ebp + 8]
lea eax, [ebp - 0x800]
push eax
call fcn.0040e5a3
push ebx
push str.rtmp_d
push esi
lea eax, [ebp - 0x800]
push eax
call fcn.004072cf
push eax
call fcn.0040aac4
add esp, 0x10
lea eax, [ebp - 0x800]
push eax
push edi
call fcn.00406088
test al, al
je 0x4053ca
xor eax, eax
mov word [ebp - 0x800], ax
add ebx, 0x7b
cmp ebx, 0x2710
jl 0x40537b
cmp word [ebp - 0x800], di
je 0x405491
push esi
push dword [ebp + 8]
lea eax, [ebp - 0x1000]
push eax
call fcn.0040e5a3
lea eax, [ebp - 0x2cc8]
push eax
call fcn.004072cf
push eax
lea eax, [ebp - 0x1000]
push eax
call fcn.004072cf
push eax
call fcn.0040a850
mov esi, dword [sym.imp.KERNEL32.DLL_MoveFileW]
lea eax, [ebp - 0x800]
push eax
lea eax, [ebp - 0x1000]
push eax
call esi
test eax, eax
je 0x405491
lea ecx, [ebp - 0x1c28]
call fcn.00405711
push dword [ebp + 8]
xor bl, bl
push edi
call fcn.00406088
test al, al
jne 0x405458
push 9
push dword [ebp + 8]
lea ecx, [ebp - 0x1c28]
push edi
call fcn.00405a95
mov bl, al
lea eax, [ebp - 0x1000]
push eax
lea eax, [ebp - 0x800]
push eax
call esi
test bl, bl
je 0x405482
lea ecx, [ebp - 0x1c28]
call fcn.00405783
lea ecx, [ebp - 0x1c28]
call fcn.00405808
lea ecx, [ebp - 0x1c28]
call fcn.004058fd
mov al, 1
jmp 0x405493
xor al, al
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x405920
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov dword [esi + 0xc20], ebx
cmp byte [esi + 0x1c], bl
jne 0x405940
test byte [ebp + 0x10], 4
jne 0x405940
xor al, al
jmp 0x405942
mov al, 1
mov ecx, dword [ebp + 0x10]
shr ecx, 1
and cl, 1
movzx edi, cl
neg edi
sbb edi, edi
and edi, 0xc0000000
add edi, 0x80000000
test byte [ebp + 0x10], 1
je 0x405969
or edi, 0x40000000
mov dword [ebp + 0x10], 1
cmp al, bl
je 0x40597b
mov dword [ebp + 0x10], 3
xor eax, eax
cmp byte [esi + 0x15], bl
setne al
dec eax
and eax, 0x8000000
mov dword [ebp - 4], eax
call fcn.00406a2a
test eax, eax
je 0x4059b5
mov eax, dword [ebp + 0xc]
cmp eax, ebx
je 0x4059b5
cmp word [eax], bx
je 0x4059b5
push ebx
push dword [ebp - 4]
push 3
push ebx
push dword [ebp + 0x10]
push edi
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
jmp 0x4059c9
push ebx
push dword [ebp - 4]
push 3
push ebx
push dword [ebp + 0x10]
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4059e5
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 2
jne 0x4059e5
mov dword [esi + 0xc20], 1
cmp edi, 0xffffffff
setne byte [ebp + 0x13]
mov byte [esi + 0x12], bl
mov dword [esi + 0xc], ebx
mov byte [esi + 0x10], bl
cmp byte [ebp + 0x13], bl
je 0x405a5d
mov dword [esi + 4], edi
mov edi, dword [ebp + 0xc]
cmp edi, ebx
je 0x405a1e
push edi
call fcn.0040a826
lea eax, [eax + eax + 2]
push eax
push edi
lea eax, [esi + 0x41e]
push eax
call fcn.0040a555
jmp 0x405a27
xor eax, eax
mov word [esi + 0x41e], ax
cmp dword [ebp + 8], ebx
je 0x405a44
push dword [ebp + 8]
call fcn.0040a5a0
inc eax
push eax
push dword [ebp + 8]
lea eax, [esi + 0x1d]
push eax
call fcn.0040a555
jmp 0x405a53
push 0x1000000
lea eax, [esi + 0x1d]
push eax
push edi
call fcn.0040eca0
push dword [esi + 4]
mov ecx, esi
call fcn.0040575c
mov al, byte [ebp + 0x13]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x405bb7
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, ecx
cmp dword [edi + 0xc], 1
mov esi, 0x4e20
jne 0x405bdd
cmp dword [ebp + 0xc], esi
jbe 0x405bd2
mov dword [ebp + 0xc], esi
push 0xfffffffffffffff6
call dword [sym.imp.KERNEL32.DLL_GetStdHandle]
mov dword [edi + 4], eax
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [edi + 4]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
jne 0x405c2d
mov ecx, edi
call fcn.004058da
test al, al
je 0x405c13
cmp dword [ebp + 0xc], esi
jbe 0x405c13
push esi
push dword [ebp + 8]
mov ecx, edi
call fcn.00405bb7
jmp 0x405c30
cmp dword [edi + 0xc], 1
jne 0x405c28
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x6d
jne 0x405c28
xor eax, eax
jmp 0x405c30
or eax, 0xffffffff
jmp 0x405c30
mov eax, dword [ebp - 4]
pop edi
pop esi
leave
ret 8
Function at 0x405e88
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 0xc], 0
push esi
mov esi, ecx
je 0x405f98
mov eax, dword [esi + 0xc]
test eax, eax
je 0x405eb5
dec eax
je 0x405eaa
dec eax
jne 0x405eb5
push 0xfffffffffffffff4
jmp 0x405eac
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.DLL_GetStdHandle]
mov dword [esi + 4], eax
push ebx
mov ebx, dword [sym.imp.KERNEL32.DLL_WriteFile]
push edi
xor edi, edi
mov dword [ebp - 4], edi
cmp dword [esi + 0xc], edi
je 0x405f04
cmp dword [ebp + 0xc], edi
jbe 0x405f1f
mov ecx, dword [ebp + 0xc]
sub ecx, edi
mov eax, 0x4000
cmp ecx, eax
jae 0x405edc
mov eax, ecx
push 0
lea ecx, [ebp - 4]
push ecx
push eax
mov eax, dword [ebp + 8]
add eax, edi
push eax
push dword [esi + 4]
call ebx
dec eax
neg eax
sbb al, al
inc al
je 0x405f1f
add edi, 0x4000
cmp edi, dword [ebp + 0xc]
jb 0x405ecc
jmp 0x405f1b
push edi
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 4]
call ebx
dec eax
neg eax
sbb al, al
inc al
test al, al
jne 0x405f92
cmp byte [esi + 0x14], 0
je 0x405f92
cmp dword [esi + 0xc], 0
jne 0x405f92
push 0
lea eax, [esi + 0x41e]
push eax
lea eax, [esi + 0x1d]
mov edi, 0x418e8c
push eax
mov ecx, edi
call fcn.00403617
test al, al
je 0x405f7c
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 0xc]
jae 0x405ebd
test eax, eax
jbe 0x405ebd
push 0
mov ecx, esi
call fcn.00405838
mov ecx, dword [ebp - 4]
xor edi, edi
sub eax, ecx
sbb edx, edi
push edx
push eax
mov ecx, esi
call fcn.00405de9
jmp 0x405ebd
lea eax, [esi + 0x41e]
push eax
lea eax, [esi + 0x1d]
push eax
push 0
push 0
mov ecx, edi
call fcn.004038bd
pop edi
mov byte [esi + 8], 1
pop ebx
pop esi
leave
ret 8

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

Disassembly:
call fcn.00406a2a
test eax, eax
je 0x4060b2
mov eax, dword [esp + 8]
test eax, eax
je 0x4060b2
cmp word [eax], 0
je 0x4060b2
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov al, cl
jmp 0x4060cf
cmp dword [esp + 4], 0
je 0x4060cd
push dword [esp + 4]
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4060cd
xor eax, eax
inc eax
jmp 0x4060cf
xor eax, eax
ret 8

Function at 0x4060fd
Capabilities:
Get file attributes

Disassembly:
call fcn.00406a2a
test eax, eax
je 0x40611d
mov eax, dword [esp + 8]
test eax, eax
je 0x40611d
cmp word [eax], 0
je 0x40611d
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
jmp 0x406127
push dword [esp + 4]
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
ret 8

Function at 0x40612a
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
call fcn.00406a2a
test eax, eax
je 0x40614f
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x40614f
cmp word [eax], 0
je 0x40614f
push dword [ebp + 0x10]
push eax
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesW]
jmp 0x406161
cmp dword [ebp + 8], 0
je 0x406168
push dword [ebp + 0x10]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesA]
test eax, eax
setne al
jmp 0x40616a
xor al, al
pop ebp
ret 0xc
Function at 0x4061a0
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
call fcn.00406a2a
mov esi, dword [ebp + 0xc]
xor ebx, ebx
test eax, eax
je 0x4061c6
cmp esi, ebx
je 0x4061c6
cmp word [esi], bx
je 0x4061c6
push ebx
push esi
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryW]
jmp 0x4061d5
cmp dword [ebp + 8], ebx
je 0x406203
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryA]
cmp eax, ebx
je 0x4061ee
cmp byte [ebp + 0x10], bl
je 0x4061ea
push dword [ebp + 0x14]
push esi
push dword [ebp + 8]
call fcn.0040612a
xor eax, eax
jmp 0x406206
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 2
je 0x406203
cmp eax, 3
je 0x406203
xor eax, eax
inc eax
jmp 0x406206
push 2
pop eax
pop esi
pop ebx
pop ebp
ret 0x10
Function at 0x40ad38
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
xor esi, esi
cmp dword [0x41e0e8], esi
jne 0x40ad51
mov ecx, 0x41e0e0
call fcn.0040acf9
cmp byte [ebp + 0x14], 0
mov ebx, dword [ebp + 0x10]
je 0x40ada7
cmp dword [0x41e0e8], esi
je 0x40add8
test bl, 0xf
jne 0x40add8
add ebx, ebx
push ebx
push dword [ebp + 8]
push dword [ebp + 0xc]
call fcn.0040a4cd
push esi
push ebx
push dword [ebp + 0xc]
call dword [0x41e0e8]
test eax, eax
jne 0x40ae00
push str.CryptProtectMemory_failed
mov esi, 0x418e8c
mov ecx, esi
call fcn.004036fa
mov ecx, esi
call fcn.0040359c
push 2
mov ecx, esi
call fcn.00403897
jmp 0x40ae00
cmp dword [0x41e0ec], esi
je 0x40add8
test bl, 0xf
jne 0x40add8
add ebx, ebx
push ebx
push dword [ebp + 8]
push dword [ebp + 0xc]
call fcn.0040a4cd
push esi
push ebx
push dword [ebp + 0xc]
call dword [0x41e0ec]
test eax, eax
jne 0x40ae00
push str.CryptUnprotectMemory_failed
jmp 0x40ad89
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcessId]
xor edx, edx
cmp ebx, esi
jbe 0x40ae00
mov ecx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
sub esi, ecx
push edi
lea edi, [eax + edx + 0x4b]
xor di, word [esi + ecx]
inc edx
mov word [ecx], di
inc ecx
inc ecx
cmp edx, ebx
jb 0x40aded
pop edi
pop esi
pop ebx
pop ebp
ret 0x10

Function at 0x40af55
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
cmp dword [0x4160b0], 0
push ebx
push esi
push edi
mov edi, 0x400
jne 0x40afa0
push 0x64
lea eax, [ebp - 0x12c]
push eax
push 0xf
push edi
call dword [sym.imp.KERNEL32.DLL_GetLocaleInfoW]
mov ax, word [ebp - 0x12c]
mov word [0x42aa7c], ax
xor eax, eax
mov word [0x42aa7e], ax
mov dword [0x4160b0], 0x42aa7c
lea eax, [ebp - 0x64]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040e623
mov ebx, dword [ebp + 0x14]
mov esi, dword [ebp + 0x10]
push ebx
push esi
xor eax, eax
push 0x4160a0
mov word [esi], ax
lea eax, [ebp - 0x64]
push eax
push 0
push edi
call dword [sym.imp.KERNEL32.DLL_GetNumberFormatW]
xor eax, eax
pop edi
mov word [esi + ebx*2 - 2], ax
pop esi
pop ebx
leave
ret 0x10