joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4042e0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b66e9
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x629688]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi + 8], 0xffffffff
mov dword [esi + 4], 0xffffffff
mov dword [esi + 0xc], 0
mov dword [esi + 0x20], 0x631534
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 5
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [ebp - 4], 0
lea ecx, [esi + 0x2c]
mov dword [esi], vtable.TiXmlDeclaration.0
mov dword [ecx], 0x631534
mov dword [esi + 0x30], 0x631534
mov dword [esi + 0x34], 0x631534
mov edi, dword [ebp + 8]
mov edx, edi
mov byte [ebp - 4], 3
lea ebx, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x404381
sub edx, ebx
push edx
push edi
call fcn.00407280
mov edi, dword [ebp + 0xc]
mov edx, edi
lea ecx, [edx + 1]
lea esp, [esp]
mov al, byte [edx]
inc edx
test al, al
jne 0x4043a0
sub edx, ecx
push edx
push edi
lea ecx, [esi + 0x30]
call fcn.00407280
mov edi, dword [ebp + 0x10]
mov edx, edi
lea ecx, [edx + 1]
jmp 0x4043c0
mov al, byte [edx]
inc edx
test al, al
jne 0x4043c0
sub edx, ecx
push edx
push edi
lea ecx, [esi + 0x34]
call fcn.00407280
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 0xc

Function at 0x4070b0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebx
push esi
mov esi, ecx
xor bh, bh
push edi
mov word [esi + 0x100], 0
xor eax, eax
mov byte [eax + esi], al
inc eax
cmp eax, 0x100
jl 0x4070c2
xor edi, edi
nop
mov eax, edi
cdq
idiv dword [esi + 0x204]
mov bl, byte [edi + esi]
inc edi
movzx eax, byte [edx + esi + 0x102]
add al, bl
add bh, al
movzx ecx, bh
movzx eax, byte [ecx + esi]
mov byte [edi + esi - 1], al
mov byte [ecx + esi], bl
cmp edi, 0x100
jl 0x4070d0
pop edi
pop esi
pop ebx
ret

Function at 0x407110
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
mov ecx, dword [ebp + 8]
push edi
test ecx, ecx
je 0x40719b
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x40719b
mov eax, dword [ebp + 0x10]
test eax, eax
jle 0x40719b
mov dl, byte [esi + 0x101]
sub ecx, edi
push ebx
mov bh, byte [esi + 0x100]
mov byte [ebp + 0xf], dl
mov dword [ebp + 8], ecx
dec eax
mov dword [ebp + 0x10], eax
mov al, byte [ebp + 0xf]
inc bh
movzx edx, bh
lea edi, [edi + 1]
mov bl, byte [edx + esi]
add al, bl
movzx ecx, al
mov byte [ebp + 0xf], al
movzx eax, byte [ecx + esi]
mov byte [edx + esi], al
mov byte [ecx + esi], bl
movzx eax, byte [edx + esi]
mov ecx, dword [ebp + 8]
add al, bl
movzx eax, al
movzx eax, byte [eax + esi]
xor al, byte [ecx + edi - 1]
mov byte [edi - 1], al
mov eax, dword [ebp + 0x10]
test eax, eax
jg 0x407141
mov dl, byte [ebp + 0xf]
mov byte [esi + 0x100], bh
pop ebx
pop edi
mov byte [esi + 0x101], dl
mov al, 1
pop esi
pop ebp
ret 0xc
pop edi
xor al, al
pop esi
pop ebp
ret 0xc
Function at 0x4071b0
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.00407110
Function at 0x4098c0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
add ecx, 0x4c
mov word [ebp - 4], 0
cmp dword [ecx + 0x14], 8
mov dword [ebp - 8], 0
jb 0x4098de
mov ecx, dword [ecx]
push str.rb__ccsUTF_8
push ecx
lea eax, [ebp - 8]
push eax
call fcn.0058913a
mov eax, dword [ebp - 8]
add esp, 0xc
test eax, eax
je 0x409937
push eax
push 2
lea eax, [ebp - 4]
push 1
push eax
call fcn.00589b23
push dword [ebp - 8]
call fcn.005890ae
mov cl, byte [ebp - 4]
mov al, byte [ebp - 3]
add esp, 0x14
cmp cl, 0xff
jne 0x40991f
cmp al, 0xfe
je 0x409928
cmp al, 0xff
jne 0x409931
cmp cl, 0xfe
jne 0x409931
mov eax, 1
mov esp, ebp
pop ebp
ret
xor eax, eax
mov esp, ebp
pop ebp
ret
mov al, 1
mov esp, ebp
pop ebp
ret
Function at 0x410bd0
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8c
mov eax, dword [0x629688]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [ecx + 0x82], 0
push esi
lea esi, [ecx + 0x82]
jne 0x410c80
lea eax, [ebp - 0x38]
push eax
call fcn.00410de0
test eax, eax
je 0x410c15
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00586d1b
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x8c], 0x67452301
mov dword [ebp - 0x88], 0xefcdab89
mov dword [ebp - 0x84], 0x98badcfe
mov dword [ebp - 0x80], 0x10325476
mov dword [ebp - 0x7c], 0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x410c47
sub ecx, edx
push ecx
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x8c]
push eax
call fcn.00410f60
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x8c]
push eax
call fcn.00411060
push esi
lea eax, [ebp - 0x14]
push 0x10
push eax
call fcn.0051ebe0
add esp, 0x20
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00586d1b
mov esp, ebp
pop ebp
ret

Function at 0x410f30
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0
pop ebp
ret
Function at 0x412360
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
test ecx, ecx
jne 0x412371
mov eax, 4
pop ebp
ret
cmp dword [ecx + 4], ecx
jne 0x41236a
pop ebp
jmp fcn.0041f3f0
Function at 0x415bd0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x629688]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x20c]
push eax
push 0x104
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x415c0d
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00586d1b
mov esp, ebp
pop ebp
ret
cmp word [ebp - 0x20c], 0
jne 0x415c1b
xor ecx, ecx
jmp 0x415c33
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x415c24
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x20c]
push eax
mov ecx, esi
call fcn.00408410
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov al, 1
pop esi
call fcn.00586d1b
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2010
call fcn.00587f10
mov eax, dword [0x629688]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, edx
xor edx, edx
cmp dword [ecx + 0x14], 8
push edi
mov dword [ebp - 0x2008], edx
jb 0x4160bc
mov ecx, dword [ecx]
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0
push 0x80
push 3
push 0
push 3
push 0xc0000000
push ecx
call ebx
cmp dword [esi + 0x14], 8
mov edi, eax
jb 0x4160e1
mov esi, dword [esi]
push 0
push 0x80
push 4
push 0
push 0
push 0x40000000
push esi
call ebx
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x416117
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00586d1b
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ecx]
push 0
lea eax, [ebp - 0x200c]
push eax
push 0x1000
lea eax, [ebp - 0x2004]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41615f
push 0
lea eax, [ebp - 0x2010]
push eax
push dword [ebp - 0x200c]
lea eax, [ebp - 0x2004]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x416167
call esi
mov dword [ebp - 0x2008], eax
cmp dword [ebp - 0x200c], 0x1000
je 0x416120
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call esi
push ebx
call esi
mov edx, dword [ebp - 0x2008]
mov ecx, dword [ebp - 4]
xor eax, eax
test edx, edx
pop edi
sete al
pop esi
xor ecx, ebp
pop ebx
call fcn.00586d1b
mov esp, ebp
pop ebp
ret

Function at 0x416460
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
test edx, edx
je 0x4164b9
push ebx
push esi
push edi
mov edi, 0x5dc3d0
mov ebx, 0x5dc3d1
mov ecx, 0x5dc3d2
sub edi, edx
sub ebx, edx
sub ecx, edx
mov byte [edx], 0xdd
lea eax, [edx + 1]
mov dword [ebp + 8], ecx
mov esi, 0x15
movzx ecx, byte [edi + eax]
xor cl, byte [edx]
lea eax, [eax + 3]
mov byte [eax - 3], cl
movzx ecx, byte [ebx + eax - 3]
xor cl, byte [edx]
mov byte [eax - 2], cl
mov ecx, dword [ebp + 8]
movzx ecx, byte [ecx + eax - 3]
xor cl, byte [edx]
mov byte [eax - 1], cl
dec esi
jne 0x416490
pop edi
pop esi
pop ebx
mov eax, 0x40
pop ebp
ret 4
Function at 0x4164f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov edx, ecx
push esi
push edi
mov edi, 0x5dc458
mov ebx, 0x5dc459
mov ecx, 0x5dc45a
sub edi, edx
sub ebx, edx
sub ecx, edx
mov byte [edx], 0xd0
lea eax, [edx + 1]
mov dword [ebp - 4], ecx
mov esi, 0x15
lea esp, [esp]
movzx ecx, byte [edi + eax]
xor cl, byte [edx]
lea eax, [eax + 3]
mov byte [eax - 3], cl
movzx ecx, byte [ebx + eax - 3]
xor cl, byte [edx]
mov byte [eax - 2], cl
mov ecx, dword [ebp - 4]
movzx ecx, byte [ecx + eax - 3]
xor cl, byte [edx]
mov byte [eax - 1], cl
dec esi
jne 0x416520
pop edi
lea eax, [esi + 0x40]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x416550
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov edx, ecx
push esi
push edi
mov edi, 0x5dc410
mov ebx, 0x5dc411
mov ecx, 0x5dc412
sub edi, edx
sub ebx, edx
sub ecx, edx
mov byte [edx], 0xbd
lea eax, [edx + 1]
mov dword [ebp - 4], ecx
mov esi, 0x15
lea esp, [esp]
movzx ecx, byte [edi + eax]
xor cl, byte [edx]
lea eax, [eax + 3]
mov byte [eax - 3], cl
movzx ecx, byte [ebx + eax - 3]
xor cl, byte [edx]
mov byte [eax - 2], cl
mov ecx, dword [ebp - 4]
movzx ecx, byte [ecx + eax - 3]
xor cl, byte [edx]
mov byte [eax - 1], cl
dec esi
jne 0x416580
pop edi
lea eax, [esi + 0x40]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4165b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov edx, ecx
push ebx
push esi
mov ecx, str.1e210
sub ecx, edx
push edi
mov dword [ebp - 4], ecx
mov edi, 0x5dc270
mov ebx, 0x5dc271
mov ecx, 0x5dc273
sub edi, edx
sub ebx, edx
sub ecx, edx
mov byte [edx], 0x30
lea eax, [edx + 1]
mov dword [ebp - 8], ecx
mov esi, 0x56
jmp 0x4165f0
movzx ecx, byte [edi + eax]
xor cl, byte [edx]
lea eax, [eax + 4]
mov byte [eax - 4], cl
movzx ecx, byte [ebx + eax - 4]
xor cl, byte [edx]
mov byte [eax - 3], cl
mov ecx, dword [ebp - 4]
movzx ecx, byte [ecx + eax - 4]
xor cl, byte [edx]
mov byte [eax - 2], cl
mov ecx, dword [ebp - 8]
movzx ecx, byte [ecx + eax - 4]
xor cl, byte [edx]
mov byte [eax - 1], cl
dec esi
jne 0x4165f0
pop edi
pop esi
mov eax, 0x159
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x416710
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x629688]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push eax
push 1
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x14]
push 0xe
push eax
mov esi, ecx
call fcn.00589b23
add esp, 0x10
cmp eax, 1
je 0x416755
mov eax, 0xfffffffe
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00586d1b
mov esp, ebp
pop ebp
ret 4
mov cl, byte [ebp - 0x14]
mov ch, byte [ebp - 0x13]
mov edx, dword [ebp - 0x12]
mov eax, dword [ebp - 0xa]
push ebx
mov bx, word [ebp - 0xe]
push edi
mov di, word [ebp - 0xc]
mov byte [esi], cl
mov byte [esi + 1], ch
mov dword [esi + 4], edx
mov word [esi + 8], bx
mov word [esi + 0xa], di
mov dword [esi + 0xc], eax
cmp cl, 0x42
jne 0x4168bd
cmp ch, 0x4d
jne 0x4168bd
test bx, bx
jne 0x4168bd
test di, di
jne 0x4168bd
cmp edx, 0x36
jbe 0x4168bd
cmp edx, 0x1e8480
ja 0x4168bd
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x4167c7
push eax
call fcn.005864b7
add esp, 4
push dword [esi + 4]
call fcn.00587a78
add esp, 4
mov dword [esi + 0x3c], eax
test eax, eax
jne 0x4167f1
pop edi
pop ebx
mov eax, 0xfffffff9
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00586d1b
mov esp, ebp
pop ebp
ret 4
xor edx, edx
movzx eax, byte [ebp + edx - 0x14]
mov ecx, dword [esi + 0x3c]
add edx, 2
mov byte [edx + ecx - 2], al
movzx eax, byte [ebp + edx - 0x15]
mov ecx, dword [esi + 0x3c]
mov byte [ecx + edx - 1], al
cmp edx, 0xe
jl 0x4167f3
push dword [ebp - 0x18]
mov eax, dword [esi + 4]
sub eax, 0xe
push 1
push eax
mov eax, dword [esi + 0x3c]
add eax, 0xe
push eax
call fcn.00589b23
add esp, 0x10
cmp eax, 1
je 0x416838
push dword [esi + 0x3c]
jmp 0x4168ae
mov ecx, dword [esi + 0x3c]
mov eax, dword [ecx + 0xe]
mov dword [esi + 0x10], eax
mov eax, dword [ecx + 0x12]
mov dword [esi + 0x14], eax
mov eax, dword [ecx + 0x16]
mov dword [esi + 0x18], eax
movzx eax, word [ecx + 0x1a]
mov dword [esi + 0x1c], eax
cmp dword [esi + 0x1c], 1
movzx eax, word [ecx + 0x1c]
mov dword [esi + 0x20], eax
mov eax, dword [ecx + 0x1e]
mov dword [esi + 0x24], eax
mov eax, dword [ecx + 0x22]
mov dword [esi + 0x28], eax
mov eax, dword [ecx + 0x26]
mov dword [esi + 0x2c], eax
mov eax, dword [ecx + 0x2a]
mov dword [esi + 0x30], eax
mov eax, dword [ecx + 0x2e]
mov dword [esi + 0x34], eax
mov eax, dword [ecx + 0x32]
mov dword [esi + 0x38], eax
jne 0x4168ad
cmp dword [esi + 0x24], 0
jne 0x4168ad
mov eax, dword [esi + 0x20]
cmp eax, 0x18
je 0x416898
cmp eax, 0x20
jne 0x4168ad
pop edi
pop ebx
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00586d1b
mov esp, ebp
pop ebp
ret 4
push ecx
call fcn.005864b7
mov dword [esi + 0x3c], 0
add esp, 4
mov ecx, dword [ebp - 4]
pop edi
pop ebx
xor ecx, ebp
mov eax, 0xfffffffe
pop esi
call fcn.00586d1b
mov esp, ebp
pop ebp
ret 4
Function at 0x4169a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x629688]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push edi
mov edi, ecx
mov dword [ebp - 0x18], edi
mov edx, dword [edi + 0x3c]
mov dword [ebp - 0x14], eax
test edx, edx
jne 0x4169d7
lea eax, [edx - 3]
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00586d1b
mov esp, ebp
pop ebp
ret 8
push ebx
mov ebx, dword [ebp + 0xc]
test ebx, ebx
jne 0x4169f4
lea eax, [ebx - 4]
pop ebx
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00586d1b
mov esp, ebp
pop ebp
ret 8
mov ecx, ebx
push esi
lea esi, [ecx + 1]
lea ebx, [ebx]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x416a00
mov eax, dword [edi + 0x18]
imul eax, dword [edi + 0x14]
sub ecx, esi
inc ecx
lea eax, [eax + eax*2]
mov dword [ebp - 0x10], ecx
cmp ecx, eax
jbe 0x416a33
pop esi
pop ebx
mov eax, 0xfffffffb
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00586d1b
mov esp, ebp
pop ebp
ret 8
mov eax, dword [edi + 0x20]
mov edi, dword [edi + 0xc]
add edi, edx
shr eax, 3
xor ecx, ecx
xor edx, edx
xor esi, esi
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0xc], 0x8040201
mov dword [ebp - 8], 0x80402010
cmp dword [ebp - 0x10], ecx
jbe 0x416ac0
lea ebx, [ebx]
mov al, byte [esi + ebx]
mov bl, byte [ecx + edi]
test byte [ebp + edx - 0xc], al
movzx eax, bl
jne 0x416a81
and eax, 0x80000001
jns 0x416a7b
dec eax
or eax, 0xfffffffe
inc eax
je 0x416a94
dec bl
jmp 0x416a91
and eax, 0x80000001
jns 0x416a8d
dec eax
or eax, 0xfffffffe
inc eax
jne 0x416a94
inc bl
mov byte [ecx + edi], bl
inc ecx
cmp dword [ebp - 0x1c], 4
jne 0x416aaf
mov eax, ecx
and eax, 0x80000003
jns 0x416aa9
dec eax
or eax, 0xfffffffc
inc eax
cmp eax, 3
jne 0x416aaf
inc ecx
inc edx
cmp edx, 8
jne 0x416ab8
xor edx, edx
inc esi
mov ebx, dword [ebp + 0xc]
cmp esi, dword [ebp - 0x10]
jb 0x416a60
push dword [ebp - 0x14]
mov eax, dword [ebp - 0x18]
push 1
push dword [eax + 4]
push dword [eax + 0x3c]
call fcn.0058a2cd
mov ecx, dword [ebp - 4]
add esp, 0x10
dec eax
neg eax
pop esi
sbb eax, eax
pop ebx
xor ecx, ebp
and eax, 0xfffffffa
pop edi
call fcn.00586d1b
mov esp, ebp
pop ebp
ret 8
Function at 0x41b1c0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc04
mov eax, dword [0x629688]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x3ff
lea eax, [ebp - 0x403]
push 0
push eax
mov byte [ebp - 0x404], 0
call fcn.005877c0
lea eax, [ebp - 0x404]
push 0
push eax
call fcn.004016a0
push 1
push 0x5e0864
lea eax, [ebp - 0x404]
push 0x400
push eax
call fcn.0058b4e8
push 3
push 0x5e1df8
lea eax, [ebp - 0x404]
push 0x400
push eax
call fcn.0058b4e8
xor eax, eax
push 0x7fe
push eax
mov word [ebp - 0xc04], ax
lea eax, [ebp - 0xc02]
push eax
call fcn.005877c0
add esp, 0x40
lea eax, [ebp - 0xc04]
push 0x400
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x404]
push eax
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea eax, [ebp - 0xc04]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x41b28c
push 0
lea eax, [ebp - 0xc04]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00586d1b
mov esp, ebp
pop ebp
ret
Function at 0x421c20
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b80f8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x629688]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x10], ecx
mov edi, dword [ebp + 8]
mov ecx, edi
call fcn.00421d40
mov esi, eax
mov dword [ebp + 8], esi
mov dword [ebp - 4], 0
test edi, edi
je 0x421d12
push 0x5e27b8
push edi
call fcn.00589125
mov edi, eax
add esp, 8
test edi, edi
je 0x421d12
push 2
push 0
push edi
call fcn.0058b95c
add esp, 0xc
test eax, eax
jne 0x421d12
push edi
call fcn.0058cb76
cdq
mov ebx, eax
mov eax, dword [ebp - 0x14]
add esp, 4
mov dword [ebp - 0x18], edx
test eax, eax
je 0x421cad
mov dword [eax], ebx
push edi
call fcn.0058ecc4
push ebx
call fcn.00582537
mov ecx, dword [ebp - 0x10]
add esp, 8
mov dword [ecx], eax
push edi
test eax, eax
jne 0x421cd5
call fcn.005890ae
add esp, 4
mov edi, 0x11
jmp 0x421d17
push ebx
push 1
push eax
call fcn.00589b23
add esp, 0x10
cmp eax, ebx
je 0x421d05
mov ebx, dword [ebp - 0x10]
push dword [ebx]
call fcn.0058603b
push edi
mov dword [ebx], 0
call fcn.005890ae
add esp, 8
mov edi, 0xd
jmp 0x421d17
push edi
call fcn.005890ae
add esp, 4
xor edi, edi
jmp 0x421d17
mov edi, 0xc
push esi
call fcn.0058603b
add esp, 4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x422e50
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b7e9f
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x629688]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x10], 0
mov dword [edi], 0x5e27c0
mov dword [edi + 0x70], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
mov dword [ebp - 4], 0
mov eax, dword [edi]
mov dword [ebp - 0x10], 1
mov eax, dword [eax + 4]
mov dword [edi + eax], vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov eax, dword [edi]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x18]
mov dword [ecx + edi - 4], eax
mov eax, dword [edi]
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov esi, dword [eax + 4]
add esi, edi
mov ecx, esi
call fcn.00409640
lea eax, [ebp - 0x14]
lea ebx, [edi + 0x10]
push eax
mov ecx, esi
mov dword [esi + 0x38], ebx
mov dword [esi + 0x3c], 0
call fcn.00409620
push eax
mov dword [ebp - 4], 2
call fcn.00423d50
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x14]
add esp, 4
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x422f1a
mov edx, dword [ecx]
call dword [edx + 8]
test eax, eax
je 0x422f1a
mov edx, dword [eax]
push 1
mov ecx, eax
call dword [edx]
mov ecx, dword [ebp - 0x18]
push 0x20
mov eax, dword [ecx]
mov eax, dword [eax + 0x20]
call eax
cmp dword [esi + 0x38], 0
mov byte [esi + 0x40], al
jne 0x422f3f
mov eax, dword [esi + 0xc]
or eax, 4
push 0
push eax
mov ecx, esi
call fcn.00409570
mov dword [ebp - 4], 3
mov eax, dword [edi]
mov eax, dword [eax + 4]
mov dword [edi + eax], vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov eax, dword [edi]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x70]
mov dword [ecx + edi - 4], eax
mov ecx, ebx
call fcn.00423b30
lea eax, [ebx + 4]
mov dword [ebx + 0xc], eax
lea eax, [ebx + 0x14]
mov dword [ebx + 0x1c], eax
lea eax, [ebx + 0x18]
mov dword [ebx + 0x20], eax
mov dword [ebx], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov byte [ebx + 0x4c], 0
mov byte [ebx + 0x45], 0
lea eax, [ebx + 0x24]
mov dword [ebx + 0x2c], eax
lea ecx, [ebx + 8]
mov dword [ebx + 0x10], ecx
lea eax, [ebx + 0x28]
mov dword [ebx + 0x30], eax
mov dword [ecx], 0
mov eax, dword [ebx + 0x20]
mov dword [eax], 0
mov eax, dword [ebx + 0x30]
mov dword [eax], 0
mov eax, dword [ebx + 0xc]
mov dword [eax], 0
mov eax, dword [ebx + 0x1c]
mov dword [eax], 0
mov eax, dword [ebx + 0x2c]
mov dword [eax], 0
mov dword [ebx + 0x50], 0
mov eax, dword [0x634854]
mov dword [ebx + 0x48], eax
mov dword [ebx + 0x40], 0
mov eax, edi
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 0x4236f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5b8888
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x629688]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push esi
push edi
mov eax, dword [0x629688]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov ebx, ecx
cmp dword [ebx + 0x40], 0
je 0x423844
cmp byte [ebx + 0x45], 0
je 0x423844
mov eax, dword [ebx]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
jne 0x423750
xor al, al
jmp 0x423846
mov ecx, 0xf
mov byte [esp + 0x18], 0
xorps xmm0, xmm0
movq qword [esp + 0x18], xmm0
lea eax, [esp + 0x18]
cmp ecx, 0x10
cmovae eax, dword [esp + 0x18]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x28], 8
mov byte [eax + 8], 0
mov dword [esp + 0x40], 0
jmp 0x423790
cmp dword [esp + 0x2c], 0x10
mov ecx, dword [ebx + 0x40]
lea eax, [esp + 0x14]
mov edx, dword [ecx]
push eax
mov eax, dword [esp + 0x2c]
lea edi, [esp + 0x1c]
cmovae edi, dword [esp + 0x1c]
lea esi, [esp + 0x1c]
cmovae esi, dword [esp + 0x1c]
add eax, edi
push eax
push esi
lea eax, [ebx + 0x48]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x4237d1
dec eax
je 0x4237d5
sub eax, 2
je 0x42382b
xor bl, bl
jmp 0x42382d
mov byte [ebx + 0x45], 0
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
cmp ecx, 0x10
lea eax, [esp + 0x18]
cmovae eax, edx
sub esi, eax
je 0x42380c
push dword [ebx + 0x50]
cmp ecx, 0x10
push esi
lea eax, [esp + 0x20]
cmovae eax, edx
push 1
push eax
call fcn.0058a2cd
add esp, 0x10
cmp esi, eax
jne 0x4237cd
cmp byte [ebx + 0x45], 0
je 0x42382b
test esi, esi
jne 0x423790
push esi
push 8
lea ecx, [esp + 0x20]
call fcn.00411fb0
jmp 0x423790
mov bl, 1
cmp dword [esp + 0x2c], 0x10
jb 0x423840
push dword [esp + 0x18]
call fcn.0058603b
add esp, 4
mov al, bl
jmp 0x423846
mov al, 1
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.00586d1b
mov esp, ebp
pop ebp
ret