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

Disassembly:
push edi
push esi
mov eax, dword [ecx]
mov esi, edx
sub esi, eax
je 0x42ab02
mov edx, eax
test esi, esi
jle 0x42ab02
mov edi, ecx
inc esi
nop word cs:[eax + eax]
call fcn.0042ab40
mov ecx, eax
mov eax, 0x80000000
xor edx, edx
div esi
xor edx, 0x7fffffff
cmp ecx, edx
ja 0x42aae0
mov eax, ecx
xor edx, edx
div esi
add edx, dword [edi]
mov eax, edx
pop esi
pop edi
ret

Function at 0x42e3c0
Capabilities:
Log keystrokes via polling

Disassembly:
cmp byte [ecx + 2], 2
ja 0x42e3cf
cmp word [ecx], 0x71
jbe 0x42e3cf
xor eax, eax
ret
push edi
push esi
sub esp, 0x10
mov edx, dword [0x486b88]
xor eax, eax
cmp edx, 0xff
cmovae edx, eax
lea esi, [edx*4]
mov edi, dword [ecx + 0x10]
mov dword [esi + esi*4 + 0x485798], edi
movups xmm0, xmmword [ecx]
movups xmmword [esi + esi*4 + 0x485788], xmm0
inc edx
mov dword [0x486b88], edx
cmp dword [ecx + 0xc], 1
je 0x42e4d4
movzx eax, byte [ecx + 2]
cmp eax, 4
ja case.default.0x42e41f
jmp dword [eax*4 + 0x473444]
mov esi, ecx
movsx ecx, word [ecx]
or byte [ecx + 0x485710], 1
xorps xmm0, xmm0
movups xmmword [esp], xmm0
mov edx, 2
call fcn.0042e360
cmp byte [0x48f714], 0
je 0x42e4de
movsx eax, word [esi]
mov edx, eax
xor eax, dword [0x48e078]
sar edx, 0x1f
xor edx, dword [0x48e07c]
or edx, eax
jne 0x42e4e4
call dword [0x4949ac]
mov ecx, esi
mov al, 1
jmp 0x42e4e8
movzx eax, word [ecx]
mov word [0x485786], ax
jmp 0x42e4cd
movsx eax, word [ecx]
xor byte [eax + 0x485710], 2
mov ecx, eax
sar ecx, 0x1f
xor ecx, dword [0x4947fc]
xor eax, dword [0x4947f8]
or eax, ecx
sete cl
cmp byte [0x4947d4], 0
setne al
and al, cl
jmp case.default.0x42e50e
movzx eax, word [ecx + 4]
mov word [0x485782], ax
movzx eax, word [ecx + 8]
mov word [0x485784], ax
jmp 0x42e4cd
movsx eax, word [ecx]
and byte [eax + 0x485710], 0xfe
xor eax, eax
test al, al
setne al
add esp, 0x10
pop esi
pop edi
ret
xor eax, eax
jmp 0x42e4d4
xor eax, eax
mov ecx, esi
jmp 0x42e4e8
mov ecx, esi
xor eax, eax
cmp byte [0x490514], 0
je case.default.0x42e50e
test byte [0x485762], 1
jne 0x42e503
test byte [0x485763], 1
je case.default.0x42e50e
movzx ecx, word [ecx]
add ecx, 0xffffffa9
cmp ecx, 3
ja case.default.0x42e50e
jmp dword [ecx*4 + 0x473458]
call fcn.0040efb0
mov al, 1
jmp case.default.0x42e50e
call fcn.0040ef70
mov al, 1
jmp case.default.0x42e50e
call fcn.0040efe0
mov al, 1
jmp case.default.0x42e50e
call fcn.0040ef40
mov al, 1
jmp case.default.0x42e50e
Function at 0x42efc0
Capabilities:
Create thread

Disassembly:
call fcn.004323d0
cmp byte [0x51852b], 0
jne 0x42efea
mov byte [0x51852b], 1
push 0
push 0
push 0
push 0x4324a0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
ret
Function at 0x436d00
Capabilities:
Query environment variable

Disassembly:
push edi
push esi
push 0x208
call fcn.0043a28a
add esp, 4
mov edi, eax
push 0x208
call fcn.0043a28a
add esp, 4
mov esi, eax
mov word [edi], 0
mov word [eax], 0
push 0x104
push edi
push str.USERPROFILE
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x436d76
mov ecx, edi
mov edx, esi
push 0x104
call fcn.00413360
add esp, 4
mov ecx, edi
mov edx, str.AppdataLocalMicrosoftWindowsTemporary_Internet_FilesContent
call fcn.00429ec0
mov ecx, edi
call fcn.00437b30
mov ecx, esi
mov edx, str.AppdataLocalMicrosoftWindowsCaches
call fcn.00429ec0
mov ecx, esi
call fcn.00437b30
push edi
call fcn.0043a293
add esp, 4
push esi
call fcn.0043a293
add esp, 4
pop esi
pop edi
ret

Function at 0x437b30
Capabilities:
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x268
mov ebx, ecx
mov eax, dword [0x47f400]
xor eax, esp
mov dword [esp + 0x264], eax
push ecx
call fcn.0044fcf1
add esp, 4
mov ebp, eax
mov edi, eax
add edi, 0x106
lea eax, [eax + eax + 0x20c]
mov ecx, 0xffffffff
cmovns ecx, eax
mov dword [esp + 8], ecx
push ecx
call fcn.0043a28a
add esp, 4
mov esi, eax
inc ebp
mov dword [esp + 0x10], ebx
push ebx
mov dword [esp + 0x10], ebp
push ebp
push eax
call fcn.0044fc8d
add esp, 0xc
push 0x4767de
mov dword [esp + 8], edi
push edi
push esi
call fcn.0044fbde
add esp, 0xc
lea edi, [esp + 0x14]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebp, eax
push esi
call fcn.0043a293
add esp, 4
cmp ebp, 0xffffffff
je 0x437ca9
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov dword [esp], ebp
jmp 0x437bf9
mov ecx, ebp
call fcn.00437b30
mov esi, eax
push ebp
call fcn.0043a293
add esp, 4
test esi, esi
mov ebp, dword [esp]
jne 0x437ccc
push edi
push ebp
call ebx
test eax, eax
je 0x437c80
cmp word [esp + 0x40], 0x2e
je 0x437bed
cmp word [esp + 0x42], 0
je 0x437bed
push dword [esp + 8]
call fcn.0043a28a
add esp, 4
mov ebp, eax
push dword [esp + 0x10]
push dword [esp + 0x10]
push eax
call fcn.0044fc8d
add esp, 0xc
push 0x47612c
mov esi, dword [esp + 8]
push esi
push ebp
call fcn.0044fbde
add esp, 0xc
lea eax, [esp + 0x40]
push eax
push esi
push ebp
call fcn.0044fbde
add esp, 0xc
test byte [esp + 0x14], 0x10
jne 0x437bd0
push 0x80
push ebp
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x437c97
push ebp
call fcn.00433860
test eax, eax
je 0x437c97
push ebp
call fcn.0043a293
add esp, 4
mov ebp, dword [esp]
jmp 0x437bed
push ebp
call dword [sym.imp.KERNEL32.dll_FindClose]
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor esi, esi
cmp eax, 0x12
cmovne esi, eax
jmp 0x437cb1
push ebp
call fcn.0043a293
add esp, 4
push dword [esp]
call dword [sym.imp.KERNEL32.dll_FindClose]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov ecx, dword [esp + 0x264]
xor ecx, esp
call fcn.0043b6ab
mov eax, esi
add esp, 0x268
pop esi
pop edi
pop ebx
pop ebp
ret
push ebp
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x437cb1
Function at 0x4385b0
Capabilities:
Terminate thread

Disassembly:
xor eax, eax
xchg dword [0x48507c], eax
ret
call fcn.0040ae10
mov eax, dword [0x485080]
test eax, eax
je 0x40ae60
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push dword [0x485080]
call dword [sym.imp.KERNEL32.dll_HeapDestroy]
mov dword [0x485080], 0
jmp 0x40ae60
cmp byte [0x517cf3], 0
je 0x4385ba
ret
mov byte [0x517cf3], 1
push 0x32
call fcn.00412aa0
mov byte [0x49d7f1], 1
push 0x14d
call fcn.00412aa0
push 0
push 0x4324a0
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push 0x14d
call fcn.00412aa0
cmp byte [0x486b8c], 1
jne 0x438608
call fcn.0042e9b0
push 0x14d
call fcn.00412aa0
mov eax, dword [0x485108]
test eax, eax
je 0x43861b
push eax
call fcn.00410880
test eax, eax
je 0x438625
call fcn.0042ea00
jmp 0x40ae70
mov ecx, dword [0x485108]
test ecx, ecx
je 0x438635
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [0x485108], 0
call fcn.0042ea00
jmp 0x40ae70

Function at 0x43b3c6
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x43b405
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x43b405
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x43b405
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x43b405
cmp dword [ecx + 0x74], 0xe
jbe 0x43b405
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x448e6c
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x47f400]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x479c18
push esi
call fcn.004565cb
pop ecx
pop ecx
test eax, eax
jne 0x448e9a
xor al, al
jmp 0x448f17
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.00448bfb
mov edx, eax
add esp, 0x10
test edx, edx
jne 0x448ed4
push dword [ebp - 0x210]
call fcn.0044eceb
xor al, al
jmp 0x448f15
mov ecx, edx
push edi
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x448eda
sub ecx, edi
sar ecx, 1
pop edi
cmp ecx, 3
je 0x448efa
push edx
call fcn.00448dbe
pop ecx
test al, al
je 0x448ec5
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x448f08
mov bl, 1
push dword [ebp - 0x210]
call fcn.0044eceb
mov al, bl
pop ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0043b6ab
leave
ret

Function at 0x451140
Capabilities:
Parse pe header

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

Function at 0x4520ed
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x46d458
push 0x46d450
push str.FlsAlloc
push 0x1f
call fcn.004525a0
mov esi, eax
add esp, 0x10
test esi, esi
je 0x452121
push dword [ebp + 8]
mov ecx, esi
call dword [section..00cfg]
call esi
jmp 0x452127
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4
Function at 0x45216b
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x46d468
push 0x46d460
push str.FlsGetValue
push 0x21
call fcn.004525a0
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4521a2
push dword [ebp + 8]
mov ecx, esi
call dword [section..00cfg]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x4521aa
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x46d470
push 0x46d468
push str.FlsSetValue
push 0x22
call fcn.004525a0
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4521e4
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [section..00cfg]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x4572af
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x47f400]
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.004517b7
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.004517b7
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 0x457326
cmp word [ecx], dx
je 0x457326
mov eax, dword [0x46d8e4]
push edi
dec eax
push eax
push 0x46d7d0
call fcn.0045749f
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x457399
cmp word [eax], dx
je 0x457399
mov eax, dword [edi]
test eax, eax
je 0x45734a
cmp word [eax], dx
je 0x45734a
lea eax, [ebp - 0x10]
push eax
call fcn.00457500
jmp 0x457353
lea eax, [ebp - 0x10]
push eax
call fcn.004577ee
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x4573c3
mov eax, dword [0x46d7cc]
push dword [ebp - 0x14]
dec eax
push eax
push 0x46d4c0
call fcn.0045749f
add esp, 0xc
test al, al
je 0x4573c3
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x45738e
cmp word [eax], di
je 0x45738e
lea eax, [ebp - 0x10]
push eax
call fcn.00457500
pop ecx
jmp 0x4573c5
lea eax, [ebp - 0x10]
push eax
call fcn.004577ee
jmp 0x45738b
mov eax, dword [edi]
test eax, eax
je 0x4573b0
cmp word [eax], dx
je 0x4573b0
lea eax, [ebp - 0x10]
push eax
call fcn.00457922
pop ecx
jmp 0x4573c3
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 0x45748e
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.00457a14
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x45748e
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x45748e
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x45748e
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x45741b
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.004523e3
test ebx, ebx
je 0x457489
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.004523e3
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x45748e
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 0x45748e
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.0045f941
add esp, 0x10
xor eax, eax
inc eax
jmp 0x457490
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043b6ab
leave
ret
Function at 0x457b1a
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.004517b7
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 0x457b89
cmp esi, dword [ebp - 4]
je 0x457b84
cmp dword [ebp + 0xc], 0
je 0x457b84
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x457b61
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.00457be3
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x457b8b
xor eax, eax
inc eax
jmp 0x457b8b
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x458b45
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0043bc80
mov eax, dword [0x47f400]
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.00455651
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x458b87
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x458ce3
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0045a3a0
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x484df0]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.004588ed
mov ecx, dword [esi*4 + 0x484df0]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x458cdc
cmp eax, dword [ecx + edi + 0x24]
jne 0x458cdc
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x458cdc
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004588ed
add esp, 0x14
test edx, edx
jl 0x458cdc
jg 0x458c52
test eax, eax
jb 0x458cdc
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x458cdc
jl 0x458c6c
cmp dword [ebp - 0x1008], eax
ja 0x458cdc
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x458c8a
test ebx, ebx
je 0x458cc3
cmp ecx, edi
jae 0x458cc3
mov al, byte [ecx]
cmp al, 0xd
jne 0x458ca4
lea eax, [edi - 1]
cmp ecx, eax
jae 0x458cb0
cmp byte [ecx + 1], 0xa
jne 0x458cb0
inc ecx
jmp 0x458cb0
movzx eax, al
movsx eax, byte [eax + 0x482820]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x458c8a
cmp edx, ebx
jne 0x458c8a
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x458ce1
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0043b6ab
leave
ret
Function at 0x459916
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 0x4599b3
push ebx
push esi
call fcn.00459a04
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.00451675
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x459960
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4599b2
push edi
push eax
call fcn.00451565
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x459980
call fcn.0045152b
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4599b1
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00451675
add esp, 0x20
test eax, eax
jne 0x45999f
push edi
call fcn.0045152b
jmp 0x4599a7
push ebx
call fcn.0045152b
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 0x4599b6
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x4599c7
pop esi
ret
push ebx
push edi
push esi
call fcn.00459a04
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00451565
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4599ef
push ebx
push esi
push edi
call fcn.0043dfa0
add esp, 0xc
push 0
call fcn.0045152b
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x459a46
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00459cb1
Function at 0x45cb3c
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x484df0]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x45cb7c
cmp byte [ebx], 0xa
jne 0x45cb7c
or byte [edi + eax + 0x28], 4
jmp 0x45cb81
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x45cc80
mov dl, byte [eax]
cmp dl, 0x1a
je 0x45cc63
inc eax
cmp dl, 0xd
je 0x45cbad
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x45cbd3
cmp eax, ecx
jae 0x45cbe1
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x45cb95
jmp 0x45cc80
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 0x45cc5e
cmp dword [ebp - 0x10], 0
je 0x45cc5e
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x484df0]
test byte [eax + edi + 0x28], 0x48
je 0x45cc38
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x45cc23
mov byte [esi], dl
jmp 0x45cc34
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x484df0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x45cc80
cmp byte [ebp - 1], 0xa
jne 0x45cc47
cmp esi, ebx
jne 0x45cc47
mov byte [esi], 0xa
jmp 0x45cc7f
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0045888f
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x45cc80
mov byte [esi], 0xd
jmp 0x45cc7f
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x484df0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x45cc7d
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x45cc80
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x45cc89
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x484df0]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x45cccf
cmp word [ebx], dx
jne 0x45cccf
or byte [eax + edi + 0x28], 4
jmp 0x45ccd4
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x45ce37
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x45ce17
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x45cd15
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x45cd4b
cmp eax, edx
jae 0x45cd59
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x45ccf0
jmp 0x45ce37
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x45ce12
cmp dword [ebp - 0x18], 0
je 0x45ce12
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x484df0]
test byte [eax + edi + 0x28], 0x48
je 0x45cde8
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x45cdac
mov word [esi], cx
jmp 0x45cde3
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x484df0]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x484df0]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x484df0]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x45ce37
pop eax
cmp word [ebp - 4], ax
jne 0x45cdf8
cmp esi, ebx
jne 0x45cdf8
mov word [esi], ax
jmp 0x45ce34
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0045888f
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x45ce37
push 0xd
pop eax
jmp 0x45cdf3
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x484df0]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x45ce31
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x45ce37
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x460fcd
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x47f400]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp eax, 0x1a
jbe 0x461010
call fcn.0044767d
mov dword [eax], 0xf
call fcn.0044766a
mov dword [eax], 0xd
call fcn.004481f9
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043b6ab
leave
ret
test eax, eax
jne 0x461017
inc eax
jmp 0x461004
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 0x461002
xor eax, eax
cmp ecx, 1
setne al
jmp 0x461004