joyce8/EMBER2024-capa huggingface dataset:
Function at 0x53c2b0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x60
mov ecx, dword [esp + 0x74]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x74]
push edi
mov edi, dword [esp + 0x80]
mov dword [esp + 0x10], 0
mov dword [esp + 0x84], 0
lea eax, [edi + ecx]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x7c]
add eax, esi
mov dword [esp + 0x7c], 0
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x74]
push dword [eax + 0x6858]
mov ebx, dword [eax + 0x685c]
lea edx, [eax + 0x1808]
mov ebp, dword [eax + 0x6860]
push ecx
mov dword [esp + 0x28], edx
lea ecx, [eax + 0x1004]
lea edx, [eax + 0x1004]
mov dword [esp + 0x88], ebx
push edi
push ecx
mov dword [esp + 0x2c], edx
lea ecx, [eax + 0x1808]
mov edx, dword [eax + 0x6814]
add ebp, ebx
push ecx
push eax
mov dword [esp + 0x3c], edx
mov edx, dword [eax + 0x6818]
mov dword [esp + 0x44], edx
mov edx, dword [eax + 0x681c]
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x98]
mov dword [esp + 0x44], edx
push eax
lea eax, [esp + 0xa4]
push eax
call fcn.0053b9f0
add esp, 0x24
cmp eax, 0xffffff88
ja 0x53c4e3
lea edx, [eax + edi]
mov edi, dword [esp + 0x84]
test edi, edi
je 0x53c498
mov ecx, dword [esp + 0x7c]
xorps xmm0, xmm0
mov eax, dword [esp + 0x10]
add eax, ecx
movlpd qword [esp + 0x30], xmm0
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x18]
sub eax, edx
mov dword [esp + 0x38], 1
push eax
push edx
lea eax, [esp + 0x44]
mov dword [esp + 0x70], ecx
push eax
mov dword [esp + 0x70], 1
call fcn.005389a0
add esp, 0xc
cmp eax, 0xffffff88
ja 0x53c4a0
push dword [esp + 0x74]
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0x54]
push eax
call fcn.00539600
push dword [esp + 0x28]
lea eax, [esp + 0x4c]
push eax
lea eax, [esp + 0x68]
push eax
call fcn.00539600
push dword [esp + 0x38]
lea eax, [esp + 0x58]
push eax
lea eax, [esp + 0x7c]
push eax
call fcn.00539600
lea eax, [esp + 0x60]
push eax
call fcn.00538aa0
add esp, 0x28
cmp eax, 2
jg 0x53c494
mov ebx, dword [esp + 0x24]
test edi, edi
je 0x53c4ad
lea eax, [esp + 0x3c]
dec edi
push eax
lea eax, [esp + 0x34]
push eax
call fcn.0053bd40
movq xmm0, qword [esp + 0x38]
lea eax, [esp + 0x88]
add esp, 8
push dword [esp + 0x28]
push dword [esp + 0x30]
push ebx
push ebp
push eax
mov eax, dword [esp + 0x4c]
sub esp, 0xc
mov ecx, esp
push dword [esp + 0x34]
movq qword [ecx], xmm0
push esi
mov dword [ecx + 8], eax
call fcn.0053c970
add esp, 0x28
cmp eax, 0xffffff88
ja 0x53c4e3
add esi, eax
lea eax, [esp + 0x3c]
push eax
call fcn.00538aa0
add esp, 4
cmp eax, 2
jle 0x53c424
mov ebx, dword [esp + 0x80]
test edi, edi
jne 0x53c4a0
mov eax, ebp
sub eax, ebx
cmp ebx, ebp
jbe 0x53c4b6
mov eax, 0xffffffec
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x60
ret
mov ebx, dword [esp + 0x80]
jmp 0x53c498
lea edi, [eax + esi]
cmp edi, dword [esp + 0x14]
jbe 0x53c4cc
mov eax, 0xffffffba
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x60
ret
test eax, eax
je 0x53c4dd
push eax
push ebx
push esi
call fcn.00547de0
add esp, 0xc
mov esi, edi
sub esi, dword [esp + 0x78]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x60
ret
Function at 0x54c626
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x1020
call fcn.00578400
mov eax, dword [0x5e1040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.00559b9e
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x54c668
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x54c7df
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.005787d0
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1014], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x5e3fa0]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00563115
mov ecx, dword [esi*4 + 0x5e3fa0]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x1020], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x54c7d8
cmp eax, dword [edi + ecx + 0x24]
jne 0x54c7d8
xor esi, esi
lea eax, [ebp - 0x101c]
push esi
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x54c7d8
push dword [ebp - 0x100c]
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00563115
add esp, 0x14
cmp edx, esi
jl 0x54c7d8
jg 0x54c733
cmp eax, esi
jb 0x54c7d8
mov ebx, dword [ebp - 0x1014]
mov eax, dword [ebp - 0x101c]
cmp ebx, esi
jg 0x54c7d8
jl 0x54c755
cmp dword [ebp - 0x1008], eax
ja 0x54c7d8
lea edi, [ebp - 0x1004]
xorps xmm0, xmm0
add edi, eax
movlpd qword [ebp - 0x1018], xmm0
lea ecx, [ebp - 0x1004]
cmp dword [ebp - 0x1008], esi
jne 0x54c77a
cmp ebx, esi
je 0x54c7bf
mov edx, dword [ebp - 0x1014]
mov esi, dword [ebp - 0x1018]
cmp ecx, edi
jae 0x54c7bf
mov al, byte [ecx]
cmp al, 0xd
jne 0x54c7a0
lea eax, [edi - 1]
cmp ecx, eax
jae 0x54c7ac
cmp byte [ecx + 1], 0xa
jne 0x54c7ac
inc ecx
jmp 0x54c7ac
movzx eax, al
movsx eax, byte [eax + 0x5e19c0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x54c786
cmp edx, ebx
jne 0x54c786
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x1020]
jmp 0x54c7dd
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004224b5
leave
ret
Function at 0x562c0d
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x5e1040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x5a55bc
push esi
call fcn.00560f09
pop ecx
pop ecx
test eax, eax
jne 0x562c3b
xor al, al
jmp 0x562cb8
push ebx
lea eax, [ebp - 0x210]
xor ebx, ebx
push eax
push 0x104
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x210], ebx
push esi
push eax
call fcn.005628f0
mov edx, eax
add esp, 0x10
test edx, edx
jne 0x562c75
push dword [ebp - 0x210]
call fcn.0054c170
xor al, al
jmp 0x562cb6
mov ecx, edx
push edi
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x562c7b
sub ecx, edi
sar ecx, 1
pop edi
cmp ecx, 3
je 0x562c9b
push edx
call fcn.00562b44
pop ecx
test al, al
je 0x562c66
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x562ca9
mov bl, 1
push dword [ebp - 0x210]
call fcn.0054c170
mov al, bl
pop ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004224b5
leave
ret
Function at 0x5657f0
Capabilities:
Get file size

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x18
mov eax, dword [eax + 0xc]
nop
shr eax, 3
test al, 1
je 0x56580a
mov al, 1
leave
ret
mov eax, dword [ebp + 8]
push ebx
push esi
mov eax, dword [eax + 0xc]
nop
test al, 0xc0
mov eax, dword [ebp + 8]
je 0x565821
mov ecx, dword [eax]
cmp ecx, dword [eax + 4]
je 0x565879
mov eax, dword [eax + 0x10]
nop
push eax
call fcn.00569a75
mov esi, eax
pop ecx
cmp esi, 0xffffffff
je 0x565879
xor ebx, ebx
lea eax, [ebp - 0x10]
inc ebx
xorps xmm0, xmm0
push ebx
push eax
movlpd qword [ebp - 8], xmm0
push dword [ebp - 4]
push dword [ebp - 8]
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x565879
lea eax, [ebp - 0x18]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x565879
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x18]
jne 0x565873
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x14]
je 0x565875
xor bl, bl
mov al, bl
jmp 0x56587b
xor al, al
pop esi
pop ebx
leave
ret
Function at 0x5659bc
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov edx, dword [ebp + 8]
mov ecx, edx
push ebx
mov ebx, dword [ebp + 0xc]
mov eax, edx
sar ecx, 6
and eax, 0x3f
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x5e3fa0]
mov dword [ebp - 0x18], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x5659fe
cmp byte [ebx], 0xa
jne 0x5659fe
or byte [edi + eax + 0x28], 4
jmp 0x565a03
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x565b06
mov cl, byte [eax]
cmp cl, 0x1a
je 0x565ae1
lea ebx, [eax + 1]
mov dword [ebp - 8], ebx
mov ebx, dword [ebp + 0xc]
cmp cl, 0xd
je 0x565a32
mov eax, dword [ebp - 8]
jmp 0x565a52
mov edx, dword [ebp - 0x10]
cmp dword [ebp - 8], edx
mov edx, dword [ebp + 8]
jae 0x565a6e
mov ebx, dword [ebp - 8]
cmp byte [ebx], 0xa
jne 0x565a4c
add eax, 2
mov cl, 0xa
jmp 0x565a4f
mov eax, dword [ebp - 8]
mov ebx, dword [ebp + 0xc]
mov byte [esi], cl
mov dword [ebp - 0xc], 1
mov dword [ebp - 8], esi
mov esi, dword [ebp - 0xc]
add esi, dword [ebp - 8]
cmp eax, dword [ebp - 0x10]
jb 0x565a14
jmp 0x565b06
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x565adc
cmp dword [ebp - 0x10], 0
je 0x565adc
mov edx, dword [ebp - 0x18]
mov eax, dword [edx*4 + 0x5e3fa0]
test byte [eax + edi + 0x28], 0x48
je 0x565abb
mov cl, byte [ebp - 1]
cmp cl, 0xa
jne 0x565aab
mov byte [esi], 0xa
jmp 0x565b05
mov byte [esi], 0xd
mov eax, dword [edx*4 + 0x5e3fa0]
mov byte [eax + edi + 0x2a], cl
jmp 0x565b05
cmp byte [ebp - 1], 0xa
jne 0x565ac5
cmp esi, ebx
je 0x565aa6
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00563133
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x565b06
mov byte [esi], 0xd
jmp 0x565b05
mov eax, edx
and edx, 0x3f
sar eax, 6
imul edx, edx, 0x38
mov edi, dword [eax*4 + 0x5e3fa0]
mov al, byte [edi + edx + 0x28]
test al, 0x40
jne 0x565b03
or al, 2
mov byte [edi + edx + 0x28], al
jmp 0x565b06
mov byte [esi], cl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x565b0f
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 8]
and eax, 0x3f
push ebx
mov ebx, dword [ebp + 0xc]
sar edx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [edx*4 + 0x5e3fa0]
mov dword [ebp - 8], edx
mov edx, dword [eax + edi + 0x18]
mov dword [ebp - 0x18], edx
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x565b53
push 0xa
pop esi
cmp word [ebx], si
jne 0x565b53
or byte [eax + edi + 0x28], 4
jmp 0x565b58
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + edx*2]
mov eax, ebx
mov dword [ebp - 0x10], edx
mov esi, ebx
cmp ebx, edx
jae 0x565cc3
movzx edx, word [eax]
mov ecx, edx
mov dword [ebp - 0xc], ecx
movzx ecx, cx
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 8]
cmp edx, 0x1a
je 0x565c9b
lea ebx, [eax + 2]
mov dword [ebp - 4], ebx
push 0xd
pop ebx
cmp dx, bx
mov ebx, dword [ebp + 0xc]
je 0x565ba5
mov ebx, dword [ebp - 0x14]
mov edx, esi
mov eax, dword [ebp - 4]
movzx ebx, bx
mov dword [ebp - 4], ebx
jmp 0x565bcf
mov edx, dword [ebp - 4]
cmp edx, dword [ebp - 0x10]
jae 0x565bee
push 0xa
pop ebx
cmp word [edx], bx
jne 0x565bbc
push ebx
add eax, 4
pop edx
jmp 0x565bc4
mov eax, edx
mov edx, dword [ebp - 0xc]
movzx edx, dx
movzx edx, dx
mov dword [ebp - 4], edx
mov edx, esi
mov dword [ebp - 0x14], esi
mov ecx, dword [ebp - 4]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0xc], 2
mov word [esi], cx
mov esi, dword [ebp - 0xc]
add esi, edx
cmp eax, dword [ebp - 0x10]
jb 0x565b6a
jmp 0x565cc3
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x565c96
cmp dword [ebp - 0x14], 0
je 0x565c96
mov eax, dword [ebp - 8]
push 0xa
mov eax, dword [eax*4 + 0x5e3fa0]
test byte [eax + edi + 0x28], 0x48
pop eax
je 0x565c72
mov dx, word [ebp - 4]
cmp dx, ax
jne 0x565c3a
mov word [esi], ax
jmp 0x565cc0
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebp - 8]
movzx ecx, dx
shr ecx, 8
push 0xa
mov eax, dword [eax*4 + 0x5e3fa0]
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x5e3fa0]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x5e3fa0]
pop ecx
mov byte [eax + edi + 0x2c], cl
jmp 0x565cc0
cmp word [ebp - 4], ax
jne 0x565c7c
cmp esi, ebx
je 0x565c32
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00563133
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x565cc3
push 0xd
pop eax
jmp 0x565c32
mov eax, ecx
and ecx, 0x3f
sar eax, 6
imul ecx, ecx, 0x38
mov edi, dword [eax*4 + 0x5e3fa0]
mov al, byte [edi + ecx + 0x28]
test al, 0x40
jne 0x565cbd
or al, 2
mov byte [edi + ecx + 0x28], al
jmp 0x565cc3
mov word [esi], dx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x56b1f3
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x5e1040]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x56b23e
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0056b38c
test al, al
jne 0x56b238
sub edx, 2
cmp edx, edi
jne 0x56b21e
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x56b260
lea eax, [edi + 2]
cmp edx, eax
je 0x56b260
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0056b13f
add esp, 0x10
jmp 0x56b358
push esi
lea ecx, [ebp - 0x255]
call fcn.0056b38c
sub edx, edi
xor ecx, ecx
sar edx, 1
inc edx
test al, al
lea eax, [ebp - 0x254]
cmovne ecx, edx
xor ebx, ebx
push ebx
push ebx
push ebx
push eax
push ebx
push edi
mov dword [ebp - 0x260], ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x56b2a1
push dword [ebp - 0x25c]
jmp 0x56b250
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x56b2de
cmp word [ebp - 0x226], 0
je 0x56b2ff
cmp word [ebp - 0x226], ax
jne 0x56b2de
cmp word [ebp - 0x224], 0
je 0x56b2ff
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0056b13f
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x56b34b
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x56b2b8
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x56b333
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x56b358
push 0x56af6f
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.0055f910
add esp, 0x10
jmp 0x56b328
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004224b5
leave
ret
Function at 0x56bc6e
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x56bd0b
push ebx
push esi
call fcn.0056bc37
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.00569421
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x56bcb8
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x56bd0a
push edi
push eax
call fcn.005666d0
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x56bcd8
call fcn.00564050
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x56bd09
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00569421
add esp, 0x20
test eax, eax
jne 0x56bcf7
push edi
call fcn.00564050
jmp 0x56bcff
push ebx
call fcn.00564050
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x56bd0e
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x56bd1f
pop esi
ret
push ebx
push edi
push esi
call fcn.0056bc37
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.005666d0
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x56bd47
push ebx
push esi
push edi
call fcn.00547de0
add esp, 0xc
push 0
call fcn.00564050
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x56c49e
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0056bfba

Function at 0x56ee34
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.005646f0
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x56eea3
cmp esi, dword [ebp - 4]
je 0x56ee9e
cmp dword [ebp + 0xc], 0
je 0x56ee9e
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x56ee7b
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.0056e989
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x56eea5
xor eax, eax
inc eax
jmp 0x56eea5
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x56ef10
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x5e1040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.005646f0
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.005646f0
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x56ef87
cmp word [ecx], dx
je 0x56ef87
mov eax, dword [0x5a6ea4]
push edi
dec eax
push eax
push 0x5a6d90
call fcn.0056eea9
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x56effa
cmp word [eax], dx
je 0x56effa
mov eax, dword [edi]
test eax, eax
je 0x56efab
cmp word [eax], dx
je 0x56efab
lea eax, [ebp - 0x10]
push eax
call fcn.0056e88f
jmp 0x56efb4
lea eax, [ebp - 0x10]
push eax
call fcn.0056e92a
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x56f024
mov eax, dword [0x5a6d8c]
push dword [ebp - 0x14]
dec eax
push eax
push 0x5a6a80
call fcn.0056eea9
add esp, 0xc
test al, al
je 0x56f024
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x56efef
cmp word [eax], di
je 0x56efef
lea eax, [ebp - 0x10]
push eax
call fcn.0056e88f
pop ecx
jmp 0x56f026
lea eax, [ebp - 0x10]
push eax
call fcn.0056e92a
jmp 0x56efec
mov eax, dword [edi]
test eax, eax
je 0x56f011
cmp word [eax], dx
je 0x56f011
lea eax, [ebp - 0x10]
push eax
call fcn.0056e844
pop ecx
jmp 0x56f024
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x56f0ef
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.0056ed2e
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x56f0ef
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x56f0ef
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x56f0ef
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x56f07c
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.00568c74
test ebx, ebx
je 0x56f0ea
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.00568c74
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x56f0ef
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x56f0ef
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.0055ec0d
add esp, 0x10
xor eax, eax
inc eax
jmp 0x56f0f1
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004224b5
leave
ret
Function at 0x572ce5
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.00572c61
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x572e54
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x572e54
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x572e09
jg 0x572d41
test eax, eax
je 0x572dff
push 1
push 0x1000
call fcn.00569260
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x572d64
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x572df6
push 0x8000
push ebx
call fcn.0055cde4
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x572d8d
jg 0x572d88
cmp ecx, 0x1000
jb 0x572d8d
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.0056523e
add esp, 0x10
cmp eax, 0xffffffff
je 0x572dd2
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x572d88
jl 0x572db9
test ecx, ecx
jne 0x572d7a
push dword [ebp - 0xc]
push ebx
call fcn.0055cde4
push esi
call fcn.00564050
add esp, 0xc
xor ebx, ebx
jmp 0x572e62
cmp byte [edi + 0x24], 0
je 0x572de9
cmp dword [edi + 0x20], 5
jne 0x572de9
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x572df4
mov ebx, dword [edi + 0x18]
jmp 0x572df6
xor ebx, ebx
push esi
call fcn.00564050
pop ecx
jmp 0x572e62
test ecx, ecx
jg 0x572dcb
jl 0x572e09
test eax, eax
jae 0x572dcb
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00563133
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x572e29
cmp byte [edi + 0x1c], 0
je 0x572dcb
jmp 0x572e5a
push ebx
call fcn.00569a75
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x572dcb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x572e62
cmp byte [edi + 0x1c], 0
je 0x572e5f
mov ebx, dword [edi + 0x18]
jmp 0x572e62
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.00563133
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x57620c
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x5e1040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp eax, 0x1a
jbe 0x57624f
call fcn.0055e801
mov dword [eax], 0xf
call fcn.0055e816
mov dword [eax], 0xd
call fcn.0054c0ac
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004224b5
leave
ret
test eax, eax
jne 0x576256
inc eax
jmp 0x576243
add eax, 0x40
push 0x3a
mov word [ebp - 0xc], ax
pop eax
mov word [ebp - 0xa], ax
push 0x5c
pop eax
mov word [ebp - 8], ax
xor eax, eax
mov word [ebp - 6], ax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov ecx, eax
test ecx, ecx
je 0x576241
xor eax, eax
cmp ecx, 1
setne al
jmp 0x576243

Function at 0x578bf0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x578c1d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x578c1d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret