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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x16c
mov eax, dword [ebp + 8]
xor ecx, ecx
mov edx, dword [0x102d302c]
mov dword [0x102d302c], 0xf98
add edx, 0xffffeba2
mov dword [0x102d3030], edx
mov edx, ecx
mov dword [ebp - 0x130], eax
mov dword [ebp - 0x134], edx
mov dword [ebp - 0x138], ecx
jmp 0x10262aa6
lea eax, [0x1026557f]
mov ecx, 0x20
lea edx, [ebp - 0x10c]
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], 0x20
mov dword [ebp - 0x13c], edx
mov dword [ebp - 0x140], ecx
call fcn.10262794
mov eax, dword [ebp - 0x13c]
mov dword [esp], eax
mov ecx, dword [ebp - 0x144]
mov dword [esp + 4], ecx
mov dword [esp + 8], ecx
mov edx, dword [ebp - 0x148]
mov dword [esp + 0xc], edx
call fcn.102632d8
xor eax, eax
mov ecx, dword [ebp - 0x144]
add ecx, 0xfd50b
mov edx, dword [ebp - 0x130]
mov dword [edx], ecx
mov dword [edx + 4], 0x158e00
mov ecx, dword [ebp - 0x144]
add ecx, 0xfa4b1
mov dword [edx + 8], ecx
mov dword [edx + 0xc], 0x2010
mov dword [0x102d302c], 0x2343
add esp, 0x16c
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [ebp - 0x14c]
mov ecx, dword [ebp - 0x150]
lea edx, section..data
mov esi, ecx
add esi, 1
mov edi, dword [ebp - 0x144]
add edi, eax
imul ebx, ecx, 0x10c
mov dword [ebp - 0x154], eax
mov eax, edx
add eax, ebx
add eax, 0x5c
imul ebx, ecx, 0x10c
mov dword [ebp - 0x158], eax
mov eax, edx
add eax, ebx
add eax, 0x60
imul ecx, ecx, 0x10c
add edx, ecx
add edx, 0xbc
mov ecx, dword [edx]
mov edx, dword [ebp - 0x158]
mov ebx, dword [edx]
movzx eax, word [eax]
xor eax, ecx
mov dword [esp], edi
mov dword [esp + 4], ebx
mov dword [esp + 8], eax
mov dword [ebp - 0x15c], eax
mov dword [ebp - 0x160], esi
call fcn.10262c86
mov eax, dword [ebp - 0x15c]
mov ecx, dword [ebp - 0x154]
add eax, ecx
mov edx, dword [ebp - 0x160]
cmp edx, 0x682
mov dword [ebp - 0x150], edx
mov dword [ebp - 0x14c], eax
je 0x10262951
jmp 0x102629f0
mov eax, dword [ebp - 0x138]
mov ecx, dword [ebp - 0x134]
lea edx, section..data
imul esi, eax, 0x10c
mov edi, edx
add edi, esi
add edi, 0xbc
mov esi, dword [edi]
imul edi, eax, 0x10c
add edx, edi
add edx, 0x60
movzx edx, word [edx]
xor edx, esi
add edx, ecx
add eax, 1
cmp eax, 0x682
mov ecx, edx
mov dword [ebp - 0x148], edx
mov dword [ebp - 0x134], ecx
mov dword [ebp - 0x138], eax
jne 0x10262aa6
mov dword [0x102d302c], 0x40d
xor eax, eax
mov dword [ebp - 0x164], eax
jmp 0x10262b13
mov eax, dword [ebp - 0x164]
mov cl, byte [eax + 0x102655a0]
mov dl, byte [eax + 0x10265571]
sub dl, cl
mov byte [ebp + eax - 0x12c], dl
add eax, 1
cmp eax, 0xe
mov dword [ebp - 0x164], eax
jne 0x10262b13
lea eax, [ebp - 0x12c]
mov dword [0x102d302c], 0x158a
mov dword [ebp - 0x168], eax
call fcn.102637a3
mov dword [esp], eax
mov eax, dword [ebp - 0x168]
mov dword [esp + 4], eax
call fcn.1026253c
mov ecx, eax
mov dword [0x102d304c], eax
mov eax, esp
mov edx, dword [ebp - 0x148]
mov dword [eax + 4], edx
mov dword [eax + 0xc], 4
mov dword [eax + 8], 0x1000
mov dword [eax], 0
call ecx
sub esp, 0x10
xor ecx, ecx
mov edx, ecx
mov dword [ebp - 0x144], eax
mov dword [ebp - 0x150], edx
mov dword [ebp - 0x14c], ecx
jmp 0x102629f0
Function at 0x10262d05
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x44
mov eax, dword [ebp + 8]
mov ecx, dword [0x102d302c]
add ecx, 0xfffff1da
mov dword [0x102d302c], ecx
mov dword [ebp - 0x10], eax
call fcn.102623c5
xor ecx, ecx
mov edx, eax
mov esi, dword [eax + 0x3c]
mov edi, edx
add edi, esi
mov esi, dword [eax + esi]
cmp esi, 0x4550
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], edi
je 0x10262d53
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x78]
mov dword [0x102d3030], 0x1650
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x14]
add ecx, dword [edx + eax + 0x20]
mov esi, dword [edx + eax + 0x18]
cmp esi, 0
mov edi, dword [ebp - 0x18]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x30], edi
je 0x10262e5b
jmp 0x10262daa
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x38]
xor edx, edx
mov esi, dword [ebp - 0x28]
mov edi, dword [esi + eax*4]
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x48], edx
jmp 0x10262dbe
xor eax, eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x24]
add ecx, dword [ecx + edx + 0x24]
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x34], eax
jmp 0x10262d8e
mov eax, dword [ebp - 0x48]
mov ecx, eax
mov edx, dword [ebp - 0x44]
add ecx, edx
mov esi, dword [ebp - 0x1c]
mov bl, byte [esi + ecx]
mov ecx, dword [ebp - 0x10]
mov bh, byte [ecx + eax]
cmp bl, bh
sete cl
cmp bl, 0
mov dword [ebp - 0x4c], eax
mov byte [ebp - 0x4d], bh
mov byte [ebp - 0x4e], cl
je 0x10262e0f
mov eax, dword [ebp - 0x4c]
add eax, 1
mov cl, byte [ebp - 0x4d]
cmp cl, 0
setne dl
mov ch, byte [ebp - 0x4e]
and ch, dl
cmp eax, 0x20
setb dl
and ch, dl
test ch, 1
mov dword [ebp - 0x48], eax
jne 0x10262dbe
mov al, byte [ebp - 0x4e]
test al, 1
jne 0x10262e42
jmp 0x10262e18
xor eax, eax
mov ecx, dword [ebp - 0x3c]
add ecx, 1
mov edx, dword [ebp - 0x40]
add edx, 2
mov esi, dword [ebp - 0x2c]
cmp ecx, esi
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x30], eax
jb 0x10262d8e
jmp 0x10262e5b
mov eax, dword [ebp - 0x40]
movzx ecx, word [eax]
mov edx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x24]
add edx, dword [edx + esi + 0x1c]
mov edi, dword [ebp - 0x1c]
add edi, dword [edx + ecx*4]
mov dword [ebp - 0x30], edi
mov eax, dword [ebp - 0x30]
add esp, 0x44
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x10262ead
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 4], 0
mov eax, dword fs:[0x30]
mov dword [ebp - 4], eax
xor ecx, ecx
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x10]
mov edx, dword [edx + 0x3c]
mov dword [0x102d3030], 0xec7
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], ecx
jmp 0x10262f35
mov dword [0x102d3030], 0x1ad2
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x14]
cmp word [eax + ecx*2 - 0x18], 0x6f
je 0x10262f64
jmp 0x10262fb2
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x14]
cmp word [ecx + edx*2 - 0xe], 0x6c
mov dword [ebp - 0x18], eax
je 0x10262fc1
jmp 0x10262fb2
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0xc]
cmp word [ecx + eax*2 - 0x1a], 0x6c
mov dword [ebp - 0x14], eax
je 0x10262ee3
jmp 0x10262fb2
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
cmp word [ecx + eax*2], 0
mov edx, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], edx
je 0x10262f21
mov eax, dword [ebp - 0x20]
add eax, 1
cmp eax, 0x104
mov ecx, eax
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x10], eax
jl 0x10262f35
jmp 0x10262f21
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x14]
cmp word [eax + ecx*2 - 0x16], 0x61
jne 0x10262fb2
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff6
shl eax, 1
mov ecx, dword [ebp - 0xc]
add ecx, eax
mov dword [ebp - 0x24], ecx
mov eax, dword [ebp - 0x24]
cmp word [eax], 0x64
jne 0x10262fb2
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x14]
cmp word [eax + ecx*2 - 0x12], 0x64
jne 0x10262fb2
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x14]
cmp word [eax + ecx*2 - 0x10], 0x6c
je 0x10262f01
xor eax, eax
mov dword [0x102d3030], 0x552
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
add esp, 0x24
pop ebp
ret
Function at 0x10262fc9
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
sub esp, 0x5c
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
xor edx, edx
mov esi, dword [0x102d3030]
mov edi, esi
add edi, 0xfffff500
mov dword [0x102d302c], edi
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x38], edx
jmp 0x10263025
mov eax, dword [ebp - 0x3c]
add eax, 0x1364
mov ecx, dword [ebp - 0x40]
add ecx, 0xffffdeeb
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x48], ecx
mov eax, dword [ebp - 0x48]
mov dword [0x102d302c], eax
mov ecx, dword [ebp - 0x44]
mov dword [ebp - 0x4c], ecx
jmp 0x10263139
mov eax, dword [ebp - 0x38]
mov cl, byte [eax + 0x102655a0]
mov dl, byte [eax + 0x10265571]
sub dl, cl
mov byte [ebp + eax - 0x28], dl
add eax, 1
cmp eax, 0xe
mov dword [ebp - 0x38], eax
jne 0x10263025
lea eax, [ebp - 0x28]
mov ecx, dword [ebp - 0x34]
add ecx, 0xdf4
mov dword [0x102d302c], ecx
mov dword [ebp - 0x50], eax
call fcn.102637a3
mov dword [esp], eax
mov eax, dword [ebp - 0x50]
mov dword [esp + 4], eax
call fcn.1026253c
xor ecx, ecx
cmp eax, 0
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x4c], ecx
je 0x10263139
mov eax, dword [ebp - 0x54]
mov dword [0x102d302c], 0x2474
mov ecx, esp
mov dword [ecx + 0xc], 0x40
mov dword [ecx + 8], 0x1000
mov dword [ecx + 4], 0x6000
mov dword [ecx], 0
call eax
sub esp, 0x10
mov dword [0x102d302c], 0x21bd
mov dword [esp], eax
mov ecx, dword [ebp - 0x2c]
mov dword [esp + 4], ecx
mov dword [ebp - 0x3c], eax
call fcn.1026268f
xor eax, eax
mov dword [0x102d3030], 0xc2e
mov ecx, dword [ebp - 0x3c]
mov word [ecx], 0x5a4d
mov dword [ecx + 0x3c], 0xd0
mov dword [ecx + 0xd0], 0x4550
add ecx, 0xffc00000
mov edx, dword [ebp - 0x30]
mov dword [edx + 0x40], ecx
mov ecx, dword [0x102d3030]
mov esi, ecx
add esi, 0xfffff42a
mov dword [0x102d3030], esi
mov esi, dword [ebp - 0x3c]
mov dword [edx + 0x48], esi
mov dword [0x102d302c], 0x13e6
cmp esi, 0
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x4c], eax
jne 0x10262ffb
mov eax, dword [ebp - 0x4c]
add esp, 0x5c
pop esi
pop edi
pop ebp
ret
Function at 0x102632d8
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x34
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
xor edi, edi
mov dword [0x102d3034], 0
mov dword [0x102d3038], 0
mov dword [0x102d3044], 0
mov ebx, dword [0x102d3030]
add ebx, 0xffffe838
mov dword [0x102d302c], ebx
mov dword [0x102d3030], 0x206a
cmp eax, 0
mov ebx, edi
mov dword [ebp - 0x10], eax
mov eax, edi
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x28], edi
jne 0x10263351
add esp, 0x34
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x24]
mov esi, 0x100
add ecx, 1
mov edi, edx
add edi, 1
mov dword [0x102d302c], 0x13d3
mov dword [ebp - 0x2c], eax
mov eax, ecx
mov dword [ebp - 0x30], edx
cdq
idiv esi
mov dword [0x102d3034], edx
mov ecx, dword [ebp - 0x20]
movzx ebx, byte [ecx + edx]
mov ecx, dword [ebp - 0x2c]
add ebx, ecx
mov eax, ebx
mov dword [ebp - 0x34], edx
cdq
idiv esi
mov dword [0x102d3038], edx
mov dword [0x102d302c], 0xfffff4f3
mov ecx, dword [ebp - 0x20]
mov esi, dword [ebp - 0x34]
mov cl, byte [ecx + esi]
mov byte [0x102d303c], cl
mov dword [0x102d3030], 0x1200
mov ebx, dword [ebp - 0x20]
mov cl, byte [ebx + edx]
mov byte [ebx + esi], cl
mov cl, byte [0x102d303c]
mov edx, dword [0x102d3038]
mov byte [ebx + edx], cl
mov dword [0x102d302c], 0xa15
mov edx, dword [0x102d3034]
movzx edx, byte [ebx + edx]
mov ecx, dword [0x102d3038]
movzx ecx, byte [ebx + ecx]
add ecx, edx
and ecx, 0xff
mov dword [0x102d3044], ecx
mov cl, byte [ebx + ecx]
mov edx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x30]
mov ch, byte [edx + esi]
mov byte [0x102d3049], ch
mov byte [0x102d304a], cl
xor ch, cl
mov byte [0x102d3048], ch
mov edx, dword [0x102d3030]
add edx, 0xfffffe57
mov dword [0x102d302c], edx
mov edx, dword [ebp - 0x1c]
mov byte [edx + esi], ch
mov edx, dword [ebp - 0x10]
cmp edi, edx
mov dword [ebp - 0x38], edi
je 0x10263349
mov eax, dword [0x102d3034]
mov ecx, dword [0x102d3038]
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x40], ecx
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x40]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x28], edx
jmp 0x10263351
Function at 0x102635b7
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x90
call fcn.10001073
xor ecx, ecx
cmp eax, 0
mov dword [esp + 0x24], ecx
jne 0x102636ea
lea eax, [esp + 0x28]
lea ecx, [esp + 0x38]
mov dword [esp], eax
mov dword [esp + 0x20], ecx
call fcn.1026290b
lea ecx, [0x10262e66]
mov edx, dword [esp + 0x28]
mov dword [esp + 0x38], edx
mov dword [esp + 0x5c], 0x158e00
mov edx, dword [0x102d3018]
mov dword [esp + 0x50], edx
mov edx, dword [0x102d301c]
mov dword [esp + 0x40], edx
mov dword [0x102d3030], 0x1c4a
mov edx, dword [0x102d3020]
mov dword [esp + 0x60], edx
mov edx, dword [0x102d3024]
mov dword [esp + 0x68], edx
mov edx, dword [0x102d3028]
mov dword [esp + 0x3c], edx
mov dword [0x102d302c], 0x2267
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], ecx
jmp 0x1026366f
mov eax, dword [esp + 0x14]
add eax, 0xfffff000
and eax, 0xfffff000
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x18], eax
jmp 0x1026366f
mov eax, dword [esp + 0x18]
cmp word [eax], 0x5a4d
mov dword [esp + 0x14], eax
jne 0x10263653
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 0x3c]
cmp dword [eax + ecx], 0x4550
mov dword [esp + 0xc], ecx
jne 0x10263653
mov eax, dword [esp + 0x14]
mov dword [esp + 0x70], eax
mov ecx, dword [esp + 0xc]
mov edx, dword [eax + ecx + 0x50]
mov dword [esp + 0x44], edx
call fcn.10262ead
xor ecx, ecx
cmp eax, 0
mov dword [esp + 8], ecx
jne 0x102636e2
lea eax, [esp + 0x38]
mov ecx, dword [esp + 0x30]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.10262fc9
mov ecx, esp
lea edx, [esp + 0x38]
mov dword [ecx], edx
call eax
sub esp, 4
mov eax, 1
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x24]
mov esp, ebp
pop ebp
ret
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 0x1001000
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push ebx
push esi
mov bl, byte [eax]
cmp bl, 0xd8
je 0x100102e
cmp bl, 0xd7
je 0x100102e
mov esi, dword [ebp + 0x10]
lea ecx, [eax + 1]
test esi, esi
jle 0x100104f
mov eax, dword [ebp + 0xc]
sub ecx, eax
mov dl, byte [ecx + eax]
mov byte [eax], dl
inc eax
dec esi
jne 0x1001023
jmp 0x100104f
mov esi, dword [ebp + 0xc]
inc eax
push esi
push eax
call fcn.01001af0
cmp bl, 0xd8
jne 0x100104f
xor eax, eax
cmp dword [ebp + 0x10], eax
jle 0x100104f
xor byte [eax + esi], 0xf0
inc eax
cmp eax, dword [ebp + 0x10]
jl 0x1001045
pop esi
pop ebx
pop ebp
ret
Function at 0x1f003630
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1f055b16
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x24ac
call fcn.1f03e9c0
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x20], esi
xor edi, edi
mov dword [ebp - 0x14], edi
mov dword [esi + 8], edi
mov ebx, dword [ebp + 8]
cmp ebx, edi
je 0x1f003773
push ebx
call fcn.1f033f60
add esp, 4
test eax, eax
je 0x1f00373e
lea ecx, [ebp - 0x24bc]
call fcn.1f006a70
mov dword [ebp - 4], edi
mov dword [ebp - 0x142c], edi
push edi
push edi
push edi
push edi
push ebx
lea ecx, [ebp - 0x24bc]
call fcn.1f005e30
push str..apiset
lea ecx, [ebp - 0x24bc]
call fcn.1f030580
mov edi, eax
mov dword [ebp - 0x24], edi
test edi, edi
je 0x1f00372c
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x1f00372c
mov ebx, dword [edi + 0x10]
push ebx
call fcn.1f03f57c
add esp, 4
mov edi, eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], 0
push 0
push 0
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 0x14]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea edx, [ebp - 0x1c]
push edx
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
test eax, eax
jne 0x1f003753
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call fcn.1f03f571
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24bc]
call fcn.1f006b10
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24bc]
call fcn.1f006b10
mov esi, dword [ebp - 0x20]
mov ebx, dword [ebp + 8]
jmp 0x1f003782
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov edi, dword [eax + 0x38]
mov dword [ebp - 0x18], edi
mov ecx, esi
call fcn.1f0020e0
mov eax, dword [edi]
mov dword [esi + 8], eax
mov dword [ebp - 4], 1
call fcn.1f02ba00
mov eax, dword [esi + 8]
sub eax, 2
je 0x1f0037d8
sub eax, 2
je 0x1f0037c2
sub eax, 2
jne 0x1f0037e5
push esi
push edi
call fcn.1f003490
add esp, 8
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0xffffffff
jmp 0x1f00382f
push esi
push edi
call fcn.1f0032f0
add esp, 8
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0xffffffff
jmp 0x1f00382f
push esi
push edi
call fcn.1f003130
add esp, 8
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0xffffffff
jmp 0x1f00382f
test ebx, ebx
je 0x1f00383c
push edi
call fcn.1f03f571
add esp, 4
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x1f003860
Capabilities:
Get common file path

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x1f055b2b
push eax
mov eax, 0x111c
mov dword fs:[0], esp
call fcn.1f03e9c0
push ebx
mov ebx, ecx
call fcn.1f001720
lea ecx, [esp + 4]
call fcn.1f007770
mov dword [esp + 0x1128], 0
mov eax, dword [esp + 8]
cmp eax, 6
ja 0x1f0038b1
jne 0x1f0038ad
cmp dword [esp + 0xc], 1
jae 0x1f0038b1
xor eax, eax
jmp 0x1f0038b6
mov eax, 1
mov ecx, dword [esp + 0x1134]
mov dword [ebx + 0xc], eax
test eax, eax
mov eax, dword [esp + 0x1130]
jne 0x1f0038db
test eax, eax
je 0x1f003982
test ecx, ecx
je 0x1f003982
test eax, eax
je 0x1f003976
xor eax, eax
mov word [esp + 0x120], ax
push 0x800
test ecx, ecx
je 0x1f003922
mov ecx, dword [esp + 0x113c]
push ecx
lea edx, [esp + 0x128]
push edx
call fcn.1f03e897
add esp, 0xc
xor eax, eax
mov word [esp + 0x111e], ax
lea eax, [esp + 0x120]
push eax
jmp 0x1f003978
lea ecx, [esp + 0x124]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x1f003982
push esi
lea edx, [esp + 0x124]
push edi
push edx
call fcn.1f0342c0
lea edi, [esp + 0x12c]
add esp, 4
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x1f003950
mov ecx, 8
mov esi, str.apisetschema.dll
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
pop edi
pop esi
lea eax, [esp + 0x120]
push eax
jmp 0x1f003978
push 0
mov ecx, ebx
call fcn.1f003630
mov dword [ebx + 0x10], eax
mov dword [esp + 0x1128], 0xffffffff
lea ecx, [esp + 4]
call fcn.1f029120
mov ecx, dword [esp + 0x1120]
pop ebx
mov dword fs:[0], ecx
add esp, 0x1128
ret 0xc
Function at 0x1f004a20
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1f004a33
xor eax, eax
ret
and eax, 0x400
xor ecx, ecx
cmp eax, 0x400
sete cl
mov eax, ecx
ret

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

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1f004a63
xor eax, eax
ret
test al, 0x10
je 0x1f004a60
and eax, 0x400
xor ecx, ecx
cmp eax, 0x400
sete cl
mov eax, ecx
ret
Function at 0x1f0077e0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x208
push esi
mov esi, dword [esp + 0x210]
push edi
push 4
push 0x1f0578c0
push esi
call fcn.1f03f6f4
add esp, 0xc
test eax, eax
jne 0x1f007828
mov edx, dword [esp + 0x218]
lea eax, [esi + 8]
sub edx, eax
nop
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x1f007810
pop edi
pop esi
add esp, 0x208
ret
push 0xc
push str.SystemRoot_
push esi
call fcn.1f03f6f4
add esp, 0xc
test eax, eax
jne 0x1f007894
push 0x104
lea ecx, [esp + 0xc]
push ecx
mov word [esp + 0x10], ax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov edi, dword [esp + 0x218]
lea eax, [esp + 8]
mov edx, edi
mov ecx, eax
sub edx, ecx
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x1f007862
lea eax, [esi + 0x16]
mov edx, eax
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x1f007876
sub eax, edx
add edi, 0xfffffffe
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x1f007886
jmp 0x1f007900
push 9
push 0x1f057890
push esi
call fcn.1f03f6f4
add esp, 0xc
test eax, eax
jne 0x1f007919
push 0x104
lea eax, [esp + 0xc]
xor edx, edx
push eax
mov word [esp + 0x10], dx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov edi, dword [esp + 0x218]
lea eax, [esp + 8]
mov edx, edi
mov ecx, eax
sub edx, ecx
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x1f0078d0
lea eax, [esi + 0x10]
mov edx, eax
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x1f0078e4
sub eax, edx
add edi, 0xfffffffe
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x1f0078f4
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
add esp, 0x208
ret
mov edx, dword [esp + 0x218]
mov eax, esi
sub edx, esi
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x1f007924
pop edi
pop esi
add esp, 0x208
ret