joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45f157
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor ebx, ebx
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push 0x47f87e
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x45f1af
movzx edx, word [ebp + 8]
mov dword [ebp - 8], edx
lea ecx, [ebp - 8]
push ecx
push dword [ebp + 0xc]
push 0
push 0
push 0x47f89f
push dword [ebp - 4]
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x45f1a5
mov bx, 0x2a04
push dword [ebp - 4]
call sub.advapi32.dll_RegCloseKey_1
jmp 0x45f1b3
mov bx, 0x2a04
mov eax, ebx
pop ebx
pop ecx
pop ecx
pop ebp
ret 8

Function at 0x4718f4
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00403f8c
xor eax, eax
push ebp
push 0x47198f
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
mov eax, dword [ebp - 4]
call fcn.00408b5c
test al, al
je 0x471979
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.00408a24
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x471965
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetFileSize_1
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47196c
mov eax, dword [ebp - 0xc]
call fcn.00408aec
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x471996
lea eax, [ebp - 4]
call fcn.00403b5c
ret

Function at 0x4730c8
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call fcn.00403f8c
mov eax, dword [ebp - 8]
call fcn.00403f8c
mov eax, dword [ebp + 8]
call fcn.00403f8c
xor eax, eax
push ebp
push 0x47319c
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
mov edx, 0x4731b4
call fcn.00403de0
lea eax, [ebp - 8]
mov edx, 0x4731b4
call fcn.00403de0
lea eax, [ebp + 8]
mov edx, 0x4731b4
call fcn.00403de0
mov bl, 1
push 1
lea eax, [ebp + 8]
call fcn.00403fa8
push eax
lea eax, [ebp - 8]
call fcn.00403fa8
push eax
lea eax, [ebp - 4]
call fcn.00403fa8
push eax
push 0
push 0
call sub.shell32.dll_ShellExecuteA
cmp eax, 0x20
jae 0x473179
xor ebx, ebx
push 0
lea eax, [ebp - 0xc]
mov ecx, dword [ebp - 4]
mov edx, 0x4731c0
call fcn.00403e24
mov eax, dword [ebp - 0xc]
mov cx, word [0x4731d4]
mov dl, 1
call fcn.0044b1b8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4731a3
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00403b80
lea eax, [ebp + 8]
call fcn.00403b5c
ret
Function at 0x457c27
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push esi
push edi
xor edi, edi
movzx eax, word [ecx + 0x14]
movzx esi, word [ecx + 6]
test esi, esi
lea eax, [eax + ecx + 0x18]
jbe 0x457c62
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x457c49
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp dword [esp + 0xc], edx
jb 0x457c5a
invalid
add edx, ecx
cmp dword [esp + 0xc], edx
jb 0x457c64
inc edi
add eax, 0x28
cmp edi, esi
jb 0x457c3f
xor eax, eax
pop edi
pop esi
ret

Function at 0x4582d4
Capabilities:
Inspect section memory permissions

Disassembly:
xbegin 0x8b4582da
js 0x458300
or byte gs:[eax], al
add byte [eax], al
inc eax

Function at 0x458306
Capabilities:
Inspect section memory permissions

Disassembly:
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x4582be
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x4582dc
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
xbegin 0x8b4582da
js 0x458300
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x45833a
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x458321
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x45832a
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x458334
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x458316
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x4582a0
mov dword [ebp + 8], esi
xor edi, edi

Function at 0x45846f
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov eax, 0x56fffffc
mov byte [ebp - 0x347], 0x56
mov byte [ebp - 0x346], 0x6d
mov byte [ebp - 0x345], 0x40
mov byte [ebp - 0x344], 0x44
inc dword [esi + eax*8 - 0x7b]
mov ebp, 0x55fffffc
mov byte [ebp - 0x342], 0x25
lea eax, [ebp - 0x354]
push eax
call fcn.00457bf7
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.00457bac
add esp, 0xc
mov dword [ebp - 0x68c], eax
call dword [ebp - 0x68c]
mov dword [ebp - 0x674], eax
mov dword [ebp - 0x384], 4
inc dword [eax + eax]
add byte [eax], al
and byte [ebp - 0x334], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x333]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0x670], 4

Function at 0x4584d8
Capabilities:
Contain obfuscated stackstrings

Disassembly:
and byte [ebp - 0x3c4], 0
and byte [ebp - 0x3c3], 0
mov byte [ebp - 0x3c2], 0x99
and byte [ebp - 0x3c1], 0
mov byte [ebp - 0x3c0], 0x21
invalid
test dword [ecx - 4], eax
invalid
Function at 0x458500
Capabilities:
Contain obfuscated stackstrings

Disassembly:
inc dword [ebx]
adc al, 0xfc
jo 0x458630
ja 0x458655
and byte [ebp - 0x534], 0
and byte [ebp - 0x533], 0
mov byte [ebp - 0x532], 0x68
and byte [ebp - 0x531], 0
mov byte [ebp - 0x530], 0xd4
mov byte [ebp - 0x52f], 0xfb
mov byte [ebp - 0x52e], 0xf8
mov byte [ebp - 0x52d], 0xe4
mov byte [ebp - 0x52c], 0xf2
mov byte [ebp - 0x52b], 0xdf
mov byte [ebp - 0x52a], 0xf6
mov byte [ebp - 0x529], 0xf9
mov byte [ebp - 0x528], 0xf3
mov byte [ebp - 0x527], 0xfb
mov byte [ebp - 0x526], 0xf2
mov byte [ebp - 0x525], 0x97
lea eax, [ebp - 0x534]
push eax
call fcn.00457bf7
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.00457bac
add esp, 0xc
mov dword [ebp - 0x680], eax
call fcn.00457be7
pop esp
and dword [edi - 0x635a7fa4], 0xfffffff9
invalid

Function at 0x45872c
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0x65c], 0xb9
mov byte [ebp - 0x65b], 0x94
mov byte [ebp - 0x65a], 0x94
mov byte [ebp - 0x659], 0x97
mov byte [ebp - 0x658], 0x9b
mov byte [ebp - 0x657], 0xf8
lea eax, [ebp - 0x664]
push eax
call fcn.00457bf7
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.00457bac
add esp, 0xc
mov dword [ebp - 0x67c], eax
and byte [ebp - 0x524], 0
and byte [ebp - 0x523], 0
mov byte [ebp - 0x522], 0x15
and byte [ebp - 0x521], 0
mov byte [ebp - 0x520], 0xa2
mov byte [ebp - 0x51f], 0x8f
mov byte [ebp - 0x51e], 0x8b
mov byte [ebp - 0x51d], 0x9a
mov byte [ebp - 0x51c], 0xac
mov byte [ebp - 0x51b], 0x98
mov byte [ebp - 0x51a], 0x8f
mov byte [ebp - 0x519], 0x8f
mov byte [ebp - 0x518], 0xea
call 0xeb4587cd
lea eax, [ebp - 0x524]
push eax
call fcn.00457bf7
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.00457bac
add esp, 0xc
mov dword [ebp - 0x39c], eax
call fcn.00457be7
in al, 0xb
jbe 0x458878
and byte [ebp - 0x514], 0
invalid
movsd dword es:[edi], dword [esi]
in eax, dx
Function at 0x459da6
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sbb byte [edx + eax - 0x6a], dh
lodsd eax, dword [esi]
mov eax, dword [eax + 8]
push eax
call fcn.00457be7
push edx
mov byte [0xf88b3670], al
mov eax, dword [edi + 0x3c]
mov edx, dword [edi + eax + 0x78]
add edx, edi
mov ecx, dword [edx + 0x18]
mov ebx, dword [edx + 0x20]
add ebx, edi
call fcn.00457be7
inc ebx
add eax, 0x8b491cd0
xor al, 0x8b
and byte [ebx], al
fucompi st(0)
pop ss
fdivp st(7)
inc dword [ebx + 5]
rcr byte [ecx + ecx*2], 1
dec ecx
mov esi, dword [ebx + ecx*4]
add esi, edi
mov eax, 0x50746547
cmp dword [esi], eax
jne 0x459dd4
int1
mov eax, 0x41636f72
cmp dword [esi + 4], eax
jne 0x459dd4
call fcn.00457be7
cmp al, 0x5a
das
imul ecx, dword [ebx - 0x20fcdba6], 0x66
mov ecx, dword [ebx + ecx*2]
mov ebx, dword [edx + 0x1c]
add ebx, edi
mov eax, dword [ebx + ecx*4]
add eax, edi
push eax
call fcn.00457be7
jno 0x459dc8
adc dword [ebp - 0xf78a01], ebx
jne 0x459e1d
push dword [ebp]
call fcn.004583e7
or eax, 0x89b44d8b
dec esp
test dword [eax + eax*2 - 0x144fba77], edi
aas
push dword [ebp - 0x58]
mov ecx, edi
call fcn.00458888
mov dword [ebp - 0x54], eax
test eax, eax
jne 0x459f44
invalid
cmp dword [edi + 0x38], 1
jne 0x459e5a
mov ecx, edi
call fcn.004587ce
test al, al
je 0x459e5a
xor eax, eax
inc eax
jmp 0x459e65
mov eax, ebx
jmp 0x459e65
or byte [ebp - 0x45], al
mov eax, dword [ebp - 0x50]
mov ecx, dword [ebp - 0x4c]
inc ecx
mov dword [ebp - 0x4c], ecx
cmp ecx, dword [ebp - 0x5c]
jge 0x459e7e
mov eax, ecx
jmp 0x459de2
test eax, eax
jle 0x459ee0
mov ecx, ebx
mov dword [ebp - 0x4c], ecx
push dword [ebp + ecx*4 - 0x44]
lea ecx, [esi + 0x58]
call fcn.00458fc4
mov edi, eax
test edi, edi
je 0x459ed4
mov ecx, edi
call fcn.004587ce
test al, al
jne 0x459eb9
push dword [ebp - 0x58]
mov ecx, edi
call fcn.00458888
mov dword [ebp - 0x54], eax
test eax, eax
jne 0x459f44
cmp dword [edi + 0x38], 1
jne 0x459ecf
mov ecx, edi
call fcn.004587ce
test al, al
je 0x459ecf
xor eax, eax
inc eax
jmp 0x459ed1
mov eax, ebx
or byte [ebp - 0x45], al
mov ecx, dword [ebp - 0x4c]
inc ecx
mov dword [ebp - 0x4c], ecx
cmp ecx, dword [ebp - 0x50]
jl 0x459e87
lea eax, [ebp - 0x54]
push eax
lea ecx, [esi + 0x34]
call fcn.0045951d
test al, al
je 0x459eff
mov ecx, dword [ebp - 0x54]
push 1
call fcn.00445cdb
mov eax, dword [ebp - 0x54]
jmp 0x459f44
mov eax, dword [esi + 0xe8]
test eax, eax
jle 0x459f42
cmp byte [ebp - 0x45], bl
je 0x459f42
cmp dword [esi + 0x98], ebx
jle 0x459f42
push ebx
lea ecx, [esi + 0x58]
call fcn.00458fc4
test eax, eax
je 0x459f39
cmp dword [eax + 0x38], 1
jne 0x459f39
mov ecx, dword [eax + 0x50]
cmp ecx, dword [eax + 0x4c]
jg 0x459f39
push eax
mov ecx, esi
call fcn.00459bde
inc ebx
cmp ebx, dword [esi + 0x98]
jl 0x459f16
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043ddbb
leave
ret 4
Function at 0x1d00c769
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x1d010190
cmp edx, dword [eax]
je 0x1d00c78b
add eax, 8
inc ecx
cmp eax, 0x1d010220
jl 0x1d00c77c
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x1d010190]
jne 0x1d00c8b9
mov eax, dword [0x1d010bb0]
cmp eax, 1
je 0x1d00c893
test eax, eax
jne 0x1d00c7bc
cmp dword [0x1d0100e4], 1
je 0x1d00c893
cmp edx, 0xfc
je 0x1d00c8b9
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x1d00c7f3
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.1d00d670
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.1d00d490
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x1d00c836
lea eax, [ebp - 0x1a4]
push eax
call fcn.1d00d490
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x1d00f45c
push edi
call fcn.1d00df00
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.1d00d670
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.1d00d680
lea eax, [ebp - 0xa0]
push 0x1d00f43c
push eax
call fcn.1d00d680
push dword [esi + 0x1d010194]
lea eax, [ebp - 0xa0]
push eax
call fcn.1d00d680
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.1d00de75
add esp, 0x2c
pop edi
jmp 0x1d00c8b9
lea eax, [ebp + 8]
lea esi, [esi + 0x1d010194]
push 0
push eax
push dword [esi]
call fcn.1d00d490
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x44ba90
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x35000]
push edi
or ebp, 0xffffffff
jmp 0x44bab2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x44bab9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x44baa8
mov eax, 1
add ebx, ebx
jne 0x44bacb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x44badc
jne 0x44bafb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x44bafb
dec eax
add ebx, ebx
jne 0x44bae8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x44bac0
add ebx, ebx
jne 0x44baf7
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x44bb4d
xor ecx, ecx
sub eax, 3
jb 0x44bb13
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x44bb82
sar eax, 1
mov ebp, eax
jmp 0x44bb1e
add ebx, ebx
jne 0x44bb1e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x44baec
inc ecx
add ebx, ebx
jne 0x44bb2c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x44baec
add ebx, ebx
jne 0x44bb39
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x44bb2e
jne 0x44bb4a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x44bb2e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x44bb6c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x44bb5e
jmp 0x44baae
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x44bb6c
add edi, ecx
jmp 0x44baae
pop esi
mov edi, esi
mov ecx, 0x1215
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x44bb8a
cmp byte [edi], 0x21
jne 0x44bb8a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x44bb8f
lea edi, [esi + 0x48000]
mov eax, dword [edi]
or eax, eax
je 0x44bc07
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x4b3e0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x4b444]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x44bbbc
mov ecx, edi
jns 0x44bbeb
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x4b448]
or eax, eax
je 0x44bc01
mov dword [ebx], eax
add ebx, 4
jmp 0x44bbd9
call dword [esi + 0x4b458]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x44bc38
cmp al, 0xef
ja 0x44bc2b
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x44bc0d
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x44bc1a
mov ebp, dword [esi + 0x4b44c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x44bc6c
sub esp, 0xffffff80
jmp 0x40df70
Function at 0xa21cf1
Capabilities:
Set console window title

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, ecx
push esi
push edi
test ebx, ebx
je 0xa21d0f
cmp dword [0xa45094], 0
je 0xa2bf05
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [0xa450ac], 0
jne 0xa21d0f
mov ecx, 0x20c
call fcn.00a213cb
mov edi, eax
test edi, edi
je 0xa21d0f
push 0x104
push edi
call dword [sym.imp.api_ms_win_core_console_l2_1_0.dll_GetConsoleTitleW]
mov edx, eax
test edx, edx
je 0xa21d0f
and dword [ebp - 8], 0
mov ecx, ebx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 8]
jne 0xa2bf45
mov eax, dword [0xa45104]
sub ecx, esi
sar ecx, 1
add edx, 0xa
add eax, ecx
mov ecx, edi
add eax, edx
mov dword [ebp - 4], eax
lea edx, [eax + eax]
call fcn.00a2217a
mov esi, eax
test esi, esi
je 0xa2bfc6
cmp byte [0xa45045], 0
mov edi, esi
mov edx, dword [ebp - 4]
jne 0xa3b94d
push 0xa2bfd4
mov ecx, esi
call fcn.00a22c30
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 8]
jne 0xa2bf97
sub ecx, edx
mov edx, dword [ebp - 4]
sar ecx, 1
mov dword [0xa45104], ecx
mov ecx, esi
push ebx
call fcn.00a22c30
mov byte [0xa45045], 1
push esi
call dword [sym.imp.api_ms_win_core_console_l2_1_0.dll_SetConsoleTitleW]
mov ecx, edi
call fcn.00a2107b
jmp 0xa21d0f
mov eax, dword [0xa45104]
sub edx, eax
push ebx
lea ecx, [esi + eax*2]
call fcn.00a21417
jmp 0xa2bfbf
Function at 0xa2269e
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebx
xor ebx, ebx
mov byte [0xa45047], bl
push esi
test edx, edx
je 0xa226ca
mov esi, edx
push edi
lea edi, [esi + 2]
mov ax, word [esi]
add esi, 2
cmp ax, bx
jne 0xa226b4
sub esi, edi
sar esi, 1
neg esi
pop edi
sbb esi, esi
and edx, esi
push edx
push ecx
call dword [sym.imp.api_ms_win_core_processenvironment_l1_2_0.dll_SetEnvironmentVariableW]
push dword [0xa4516c]
mov esi, eax
push ebx
call dword [sym.imp.api_ms_win_core_heap_l1_2_0.dll_GetProcessHeap]
push eax
call dword [sym.imp.api_ms_win_core_heap_l1_2_0.dll_HeapFree]
call fcn.00a22701
mov dword [0xa4516c], eax
xor eax, eax
test esi, esi
pop esi
sete al
pop ebx
ret

Function at 0xa22701
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
push edi
call dword [sym.imp.api_ms_win_core_processenvironment_l1_2_0.dll_GetEnvironmentStringsW]
mov esi, eax
xor edi, edi
test esi, esi
je 0xa22746
push ebx
mov ecx, esi
call fcn.00a22669
mov ebx, eax
push ebx
push 8
call dword [sym.imp.api_ms_win_core_heap_l1_2_0.dll_GetProcessHeap]
push eax
call dword [sym.imp.api_ms_win_core_heap_l1_2_0.dll_HeapAlloc]
mov edi, eax
test edi, edi
je 0xa2273e
push ebx
push esi
push edi
call sub.msvcrt.dll_memcpy
add esp, 0xc
push esi
call dword [sym.imp.api_ms_win_core_processenvironment_l1_2_0.dll_FreeEnvironmentStringsW]
pop ebx
mov eax, edi
pop edi
pop esi
ret

Function at 0xa22cf5
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0xa45214]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x3a
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
mov word [ebp - 0xc], cx
call dword [sym.imp.api_ms_win_core_file_l1_2_1.dll_GetDriveTypeW]
xor ecx, ecx
inc ecx
cmp ecx, eax
mov ecx, dword [ebp - 4]
sbb eax, eax
xor ecx, ebp
neg eax
call fcn.00a213b9
mov esp, ebp
pop ebp
ret
Function at 0xa23611
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0xa45214]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x3a
pop eax
mov word [ebp - 0xe], ax
push 0x5c
pop eax
mov word [ebp - 0xc], ax
xor eax, eax
mov word [ebp - 0xa], ax
lea eax, [ebp - 0x10]
push eax
mov word [ebp - 0x10], cx
call dword [sym.imp.api_ms_win_core_file_l1_2_1.dll_GetDriveTypeW]
cmp eax, 1
jbe 0xa3e702
cmp eax, 2
je 0xa23686
cmp eax, 5
je 0xa23686
xor eax, eax
push eax
push eax
push eax
push eax
lea eax, [ebp - 0x220]
push eax
push 0x104
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.api_ms_win_core_file_l1_2_1.dll_GetVolumeInformationW]
test eax, eax
je 0xa3e70a
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00a213b9
mov esp, ebp
pop ebp
ret
xor eax, eax
inc eax
jmp 0xa23688
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
cmp eax, 5
jne 0xa23686
jmp 0xa3e702
Function at 0xa253c9
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, edx
push ecx
mov dword [ebp - 4], esi
call dword [sym.imp.msvcrt.dll__get_osfhandle]
cmp byte [0xa60852], 0
pop ecx
mov dword [ebp + 8], eax
jne 0xa374e7
push edi
mov edi, dword [ebp + 0xc]
mov eax, 0x2000
cmp esi, eax
ja 0xa374fa
test esi, esi
je 0xa2543e
push 0
push 0
push eax
push 0xa46840
push 0xffffffffffffffff
push ebx
push 0
push dword [0xa45160]
call dword [sym.imp.api_ms_win_core_string_l1_1_0.dll_WideCharToMultiByte]
push 0
push edi
lea esi, [eax - 1]
push esi
push 0xa46840
push dword [ebp + 8]
call dword [sym.imp.api_ms_win_core_file_l1_2_1.dll_WriteFile]
test eax, eax
je 0xa2544f
cmp dword [edi], esi
jne 0xa2544f
mov eax, dword [ebp - 4]
mov dword [edi], eax
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
xor eax, eax
jmp 0xa25446

Function at 0xa2557c
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x10
mov eax, dword [0xa45214]
xor eax, esp
mov dword [esp + 0xc], eax
cmp word [ebp + 8], 0
push esi
push edi
mov edi, edx
mov esi, ecx
jne 0xa2f648
push esi
push edi
call dword [sym.imp.api_ms_win_core_processenvironment_l1_2_0.dll_GetCurrentDirectoryW]
xor eax, eax
mov ecx, dword [esp + 0x14]
pop edi
pop esi
xor ecx, esp
call fcn.00a213b9
mov esp, ebp
pop ebp
ret 4
Function at 0xa25a29
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
push 1
push 0
mov edi, ecx
mov dword [ebp - 0x10], edx
push 0
push edi
mov dword [ebp - 8], edi
mov esi, 0xa46840
call dword [sym.imp.api_ms_win_core_file_l1_2_1.dll_SetFilePointer]
mov ebx, dword [ebp + 8]
mov dword [ebp - 0xc], eax
cmp ebx, 0x1fff
jb 0xa25a61
mov ebx, 0x1fff
push 0xa451e4
call dword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_AcquireSRWLockShared]
mov ecx, dword [ebp + 0xc]
push 0
push ecx
push ebx
push 0xa46840
push edi
call dword [sym.imp.api_ms_win_core_file_l1_2_1.dll_ReadFile]
push 0xa451e4
mov edi, eax
call dword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_ReleaseSRWLockShared]
test edi, edi
je 0xa26751
mov eax, dword [ebp + 0xc]
mov edi, dword [eax]
test edi, edi
je 0xa26751
mov ecx, edi
mov dword [ebp - 4], ecx
jle 0xa25ad9
nop
cmp ecx, 3
jl 0xa25ac0
mov al, byte [esi]
cmp al, 0xa
je 0xa3b6ed
cmp al, 0xd
je 0xa25d03
movzx eax, byte [esi]
cmp byte [eax + 0xa45820], 0
jne 0xa3b6fc
dec ecx
inc esi
mov dword [ebp - 4], ecx
test ecx, ecx
jg 0xa25aa9
mov ecx, dword [0xa45160]
cmp ecx, 0x2b
jb 0xa3b755
cmp ecx, 0xc42c
jae 0xa3b755
mov eax, 1
push ebx
push dword [ebp - 0x10]
push edi
push 0xa46840
push eax
push ecx
call dword [sym.imp.api_ms_win_core_string_l1_1_0.dll_MultiByteToWideChar]
mov ecx, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
mov dword [ecx], eax
mov esp, ebp
pop ebp
ret 8
cmp byte [esi + 1], 0xa
jne 0xa25ac0
mov eax, dword [ebp - 0xc]
mov edi, esi
sub edi, 0xa46840
mov byte [esi + 2], 0
push 0
add edi, 2
push 0
add eax, edi
push eax
push dword [ebp - 8]
call dword [sym.imp.api_ms_win_core_file_l1_2_1.dll_SetFilePointer]
jmp 0xa25ad9
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8
cmp byte [esi + 1], 0xd
jne 0xa25ab8
jmp 0xa25d0d
cmp ecx, 1
je 0xa3b70c
sub ecx, 2
add esi, 2
jmp 0xa25ad2
push 0xa451e4
call dword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_AcquireSRWLockShared]
push 0
lea eax, [ebp - 4]
inc esi
push eax
push 1
push esi
push dword [ebp - 8]
call dword [sym.imp.api_ms_win_core_file_l1_2_1.dll_ReadFile]
push 0xa451e4
mov esi, eax
call dword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_ReleaseSRWLockShared]
test esi, esi
je 0xa3b747
cmp dword [ebp - 4], 0
je 0xa3b747
inc edi
jmp 0xa25ad9
mov eax, dword [ebp + 0xc]
mov dword [eax], 0
jmp 0xa26751
cmp ecx, 0xc435
ja 0xa3b796
je 0xa3b7cb
cmp ecx, 0xc431
ja 0xa3b788
je 0xa3b7cb
cmp ecx, 0x2a
je 0xa3b7cb
cmp ecx, 0xc42b
jbe 0xa25af4
cmp ecx, 0xc42e
ja 0xa25af4
jmp 0xa3b7cb
cmp ecx, 0xc433
jne 0xa25af4
jmp 0xa3b7cb
cmp ecx, 0xdeb3
ja 0xa3b7bc
cmp ecx, 0xdeaa
jae 0xa3b7cb
cmp ecx, 0xcec8
je 0xa3b7cb
cmp ecx, 0xd698
jne 0xa25af4
jmp 0xa3b7cb
lea eax, [ecx - 0xfde8]
cmp eax, 1
ja 0xa25af4
xor eax, eax
jmp 0xa25af9