joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a3e71
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a0]
sub esp, 0x420
mov eax, dword [0x58f2d4]
push edi
xor edi, edi
cmp dword [ebp + 0x3b0], edi
mov dword [ebp + 0x39c], eax
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x7c], edi
jne 0x4a3ea2
xor eax, eax
jmp 0x4a402b
mov eax, dword [ebp + 0x3a8]
push ebx
mov ebx, dword [ebp + 0x3a8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x5c6660]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x4a3ede
push 2
push edi
push edi
push dword [ebp + 0x3a8]
call fcn.004ae2b6
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x4a3fb9
cmp dword [ebp + 0x3b0], edi
mov eax, dword [ebp + 0x3ac]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x6c], edi
jbe 0x4a3ff7
mov ecx, dword [ebp - 0x74]
sub ecx, dword [ebp + 0x3ac]
lea eax, [ebp - 0x68]
mov dword [ebp - 0x70], edi
cmp ecx, dword [ebp + 0x3b0]
jae 0x4a3f42
mov edx, dword [ebp - 0x74]
inc dword [ebp - 0x74]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x4a3f33
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0x70]
mov byte [eax], dl
inc eax
inc dword [ebp - 0x70]
cmp dword [ebp - 0x70], 0x400
jl 0x4a3f13
mov edi, eax
lea eax, [ebp - 0x68]
sub edi, eax
push 0
lea eax, [ebp - 0x80]
push eax
push edi
lea eax, [ebp - 0x68]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.kernel32.dll_WriteFile]
test eax, eax
je 0x4a3f82
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x78], eax
cmp eax, edi
jl 0x4a3f8b
mov eax, dword [ebp - 0x74]
sub eax, dword [ebp + 0x3ac]
xor edi, edi
cmp eax, dword [ebp + 0x3b0]
jb 0x4a3f04
jmp 0x4a3f8d
call dword [sym.imp.kernel32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
xor edi, edi
mov eax, dword [ebp - 0x78]
cmp eax, edi
jne 0x4a4026
cmp dword [ebp - 0x6c], edi
je 0x4a3ff7
push 5
pop esi
cmp dword [ebp - 0x6c], esi
jne 0x4a3fec
call fcn.004a37d5
mov dword [eax], 9
call fcn.004a37de
mov dword [eax], esi
jmp 0x4a4021
push edi
lea ecx, [ebp - 0x80]
push ecx
push dword [ebp + 0x3b0]
push dword [ebp + 0x3ac]
push dword [eax]
call dword [sym.imp.kernel32.dll_WriteFile]
test eax, eax
je 0x4a3fe1
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x78], eax
jmp 0x4a3f8d
call dword [sym.imp.kernel32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
jmp 0x4a3f8d
push dword [ebp - 0x6c]
call fcn.004a37e7
pop ecx
jmp 0x4a4021
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x4a400f
mov eax, dword [ebp + 0x3ac]
cmp byte [eax], 0x1a
jne 0x4a400f
xor eax, eax
jmp 0x4a4029
call fcn.004a37d5
mov dword [eax], 0x1c
call fcn.004a37de
mov dword [eax], edi
or eax, 0xffffffff
jmp 0x4a4029
sub eax, dword [ebp - 0x7c]
pop esi
pop ebx
mov ecx, dword [ebp + 0x39c]
pop edi
call fcn.004a5518
add ebp, 0x3a0
leave
ret
Function at 0x4a52bb
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x564968
call fcn.004a6418
mov edi, 0x94
mov eax, edi
call fcn.004a2fa0
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.kernel32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x594450], ecx
mov eax, dword [esi + 4]
mov dword [0x59445c], eax
mov edx, dword [esi + 8]
mov dword [0x594460], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x594454], esi
cmp ecx, 2
je 0x4a531b
or esi, 0x8000
mov dword [0x594454], esi
shl eax, 8
add eax, edx
mov dword [0x594458], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.kernel32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x4a5356
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4a5356
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x4a536e
cmp eax, 0x20b
je 0x4a535b
mov dword [ebp - 0x1c], esi
jmp 0x4a5382
cmp dword [ecx + 0x84], 0xe
jbe 0x4a5356
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x4a537c
cmp dword [ecx + 0x74], 0xe
jbe 0x4a5356
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.004a8f22
pop ecx
test eax, eax
jne 0x4a5396
push 0x1c
call fcn.004a5297
pop ecx
call fcn.004a7358
test eax, eax
jne 0x4a53a7
push 0x10
call fcn.004a5297
pop ecx
call fcn.004a9c1a
mov dword [ebp - 4], esi
call fcn.004add3e
test eax, eax
jge 0x4a53c0
push 0x1b
call fcn.004a5272
pop ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x5c79e0], eax
call fcn.004af3cf
mov dword [0x5944a0], eax
call fcn.004af32d
test eax, eax
jge 0x4a53e6
push 8
call fcn.004a5272
pop ecx
call fcn.004af0fa
test eax, eax
jge 0x4a53f7
push 9
call fcn.004a5272
pop ecx
push 1
call fcn.004a26a9
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x4a540d
push eax
call fcn.004a5272
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.kernel32.dll_GetStartupInfoA]
call fcn.004af09d
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x4a542e
movzx eax, word [ebp - 0x40]
jmp 0x4a5431
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.004f739d
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x4a544f
push edi
call fcn.004a27d6
call fcn.004a27f8
jmp 0x4a5481
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.004a6453
ret
Function at 0x4a5a46
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, dword [ebp + 0x10]
xor ebx, ebx
test edi, edi
jne 0x4a5a63
call fcn.004a37d5
mov dword [eax], 0x16
xor eax, eax
jmp 0x4a5acd
push esi
push 0x8c
push 1
call fcn.004a6464
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x4a5ab8
push esi
call fcn.004a715e
mov eax, dword [ebp + 0x14]
or dword [esi + 4], 0xffffffff
mov dword [esi + 0x50], eax
mov eax, dword [ebp + 0x1c]
test eax, eax
pop ecx
mov dword [esi + 0x4c], edi
jne 0x4a5a96
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0x18]
push esi
push 0x4a59b1
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_CreateThread]
test eax, eax
jne 0x4a5acc
call dword [sym.imp.kernel32.dll_GetLastError]
mov ebx, eax
push esi
call fcn.004a25de
test ebx, ebx
pop ecx
je 0x4a5aca
push ebx
call fcn.004a37e7
pop ecx
xor eax, eax
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4a6e87
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x4a6eb5
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x4a6ebc
cmp ebx, dword [eax + 4]
jae 0x4a6ebc
xor eax, eax
jmp 0x4a70ac
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x4a6ecd
xor eax, eax
inc eax
jmp 0x4a70ab
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x4a6ee3
cmp ecx, edx
jae 0x4a7028
cmp dword [eax + 4], 0
je 0x4a6eec
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x4a6ed4
cmp dword [ebp + 8], 0
je 0x4a6f0e
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x4a7028
cmp eax, esi
jae 0x4a7028
mov eax, dword [0x5944b0]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x4a6f33
cmp dword [esi*4 + 0x5944b8], edi
je 0x4a702c
inc esi
cmp esi, eax
jl 0x4a6f21
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.kernel32.dll_VirtualQuery]
test eax, eax
je 0x4a70a8
cmp dword [ebp - 8], 0x1000000
jne 0x4a70a8
test byte [ebp - 0xc], 0xcc
je 0x4a6fb1
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x4a70a8
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x4a70a8
cmp word [eax + 0x18], 0x10b
jne 0x4a70a8
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x4a70a8
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x4a6fb1
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x4a6fb1
test byte [ecx + 0x27], 0x80
jne 0x4a7028
push 1
push 0x5944f8
call dword [sym.imp.kernel32.dll_InterlockedExchange]
test eax, eax
jne 0x4a6ec5
mov ecx, dword [0x5944b0]
test ecx, ecx
mov edx, ecx
jle 0x4a6fe5
lea eax, [ecx*4 + 0x5944b4]
cmp dword [eax], edi
je 0x4a6fe5
dec edx
sub eax, 4
test edx, edx
jg 0x4a6fd9
test edx, edx
jne 0x4a7016
push 0xf
pop ebx
cmp ecx, ebx
jg 0x4a6ff2
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x4a700a
lea eax, [edx*4 + 0x5944b8]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x4a6ff8
cmp ecx, 0x10
jge 0x4a7016
inc ecx
mov dword [0x5944b0], ecx
push 0
push 0x5944f8
call dword [sym.imp.kernel32.dll_InterlockedExchange]
jmp 0x4a6ec5
xor eax, eax
jmp 0x4a70ab
test esi, esi
jle 0x4a6ec5
mov ebx, dword [sym.imp.kernel32.dll_InterlockedExchange]
push 1
push 0x5944f8
call ebx
test eax, eax
jne 0x4a6ec5
cmp dword [esi*4 + 0x5944b8], edi
je 0x4a7082
mov eax, dword [0x5944b0]
lea esi, [eax - 1]
test esi, esi
jl 0x4a7070
cmp dword [esi*4 + 0x5944b8], edi
je 0x4a706c
dec esi
jns 0x4a7060
test esi, esi
jge 0x4a7080
cmp eax, 0x10
jge 0x4a707b
inc eax
mov dword [0x5944b0], eax
lea esi, [eax - 1]
jmp 0x4a7082
je 0x4a709a
xor ecx, ecx
test esi, esi
jl 0x4a709a
lea eax, [ecx*4 + 0x5944b8]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x4a7088
push 0
push 0x5944f8
call ebx
jmp 0x4a6ec5
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4adbfd
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.004a2fa0
mov eax, dword [0x58f2d4]
push ebx
push esi
push 1
xor esi, esi
push esi
push dword [ebp + 8]
mov dword [ebp - 4], eax
call fcn.004a4208
or ebx, 0xffffffff
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 0x1008], eax
je 0x4add30
push 2
push esi
push dword [ebp + 8]
call fcn.004a4208
add esp, 0xc
cmp eax, ebx
je 0x4add30
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x4adcd0
mov ebx, 0x1000
push ebx
lea eax, [ebp - 0x1004]
push esi
push eax
call fcn.004a5920
push 0x8000
push dword [ebp + 8]
call fcn.004b3d39
add esp, 0x14
mov dword [ebp - 0x100c], eax
cmp edi, ebx
mov eax, ebx
jge 0x4adc86
mov eax, edi
push eax
lea eax, [ebp - 0x1004]
push eax
push dword [ebp + 8]
call fcn.004a3e71
add esp, 0xc
cmp eax, 0xffffffff
je 0x4adca6
sub edi, eax
test edi, edi
jg 0x4adc7e
jmp 0x4adcbe
call fcn.004a37de
cmp dword [eax], 5
jne 0x4adcbb
call fcn.004a37d5
mov dword [eax], 0xd
or esi, 0xffffffff
push dword [ebp - 0x100c]
push dword [ebp + 8]
call fcn.004b3d39
pop ecx
pop ecx
jmp 0x4add18
jge 0x4add18
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004a4208
push dword [ebp + 8]
call fcn.004ae037
add esp, 0x10
push eax
call dword [sym.imp.kernel32.dll_SetEndOfFile]
mov esi, eax
neg esi
sbb esi, esi
neg esi
dec esi
cmp esi, ebx
jne 0x4add18
call fcn.004a37d5
mov dword [eax], 0xd
call fcn.004a37de
mov edi, eax
call dword [sym.imp.kernel32.dll_GetLastError]
mov dword [edi], eax
push 0
push dword [ebp - 0x1008]
push dword [ebp + 8]
call fcn.004a4208
add esp, 0xc
mov eax, esi
pop edi
jmp 0x4add32
mov eax, ebx
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.004a5518
leave
ret
Function at 0x4add3e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x48
push ebx
mov ebx, 0x480
push ebx
call fcn.004a2ea9
test eax, eax
pop ecx
jne 0x4add5a
or eax, 0xffffffff
jmp 0x4adf37
mov dword [0x5c6660], eax
mov dword [0x5c6658], 0x20
lea ecx, [eax + 0x480]
jmp 0x4add8f
or dword [eax], 0xffffffff
and dword [eax + 8], 0
mov byte [eax + 4], 0
mov byte [eax + 5], 0xa
mov ecx, dword [0x5c6660]
add eax, 0x24
add ecx, 0x480
cmp eax, ecx
jb 0x4add71
push ebp
push esi
push edi
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.kernel32.dll_GetStartupInfoA]
cmp word [esp + 0x46], 0
je 0x4ade96
mov eax, dword [esp + 0x48]
test eax, eax
je 0x4ade96
mov edi, dword [eax]
lea ebp, [eax + 4]
lea eax, [edi + ebp]
mov dword [esp + 0x10], eax
mov eax, 0x800
cmp edi, eax
jl 0x4addd0
mov edi, eax
cmp dword [0x5c6658], edi
jge 0x4ade26
mov esi, 0x5c6664
push ebx
call fcn.004a2ea9
test eax, eax
pop ecx
je 0x4ade20
add dword [0x5c6658], 0x20
mov dword [esi], eax
lea ecx, [eax + 0x480]
jmp 0x4ade0f
or dword [eax], 0xffffffff
and dword [eax + 8], 0
mov byte [eax + 4], 0
mov byte [eax + 5], 0xa
mov ecx, dword [esi]
add eax, 0x24
add ecx, ebx
cmp eax, ecx
jb 0x4addf9
add esi, 4
cmp dword [0x5c6658], edi
jl 0x4adddd
jmp 0x4ade26
mov edi, dword [0x5c6658]
xor ebx, ebx
test edi, edi
jle 0x4ade96
mov eax, dword [esp + 0x10]
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x4ade8b
mov cl, byte [ebp]
test cl, 1
je 0x4ade8b
test cl, 8
jne 0x4ade4f
push eax
call dword [sym.imp.kernel32.dll_GetFileType]
test eax, eax
je 0x4ade8b
mov ecx, ebx
mov eax, ebx
and eax, 0x1f
lea eax, [eax + eax*8]
sar ecx, 5
mov ecx, dword [ecx*4 + 0x5c6660]
lea esi, [ecx + eax*4]
mov eax, dword [esp + 0x10]
mov eax, dword [eax]
mov dword [esi], eax
mov al, byte [ebp]
mov byte [esi + 4], al
lea eax, [esi + 0xc]
push 0xfa0
push eax
call fcn.004b042d
test eax, eax
pop ecx
pop ecx
je 0x4adeb6
inc dword [esi + 8]
add dword [esp + 0x10], 4
inc ebx
inc ebp
cmp ebx, edi
jl 0x4ade2c
xor ebx, ebx
mov ecx, dword [0x5c6660]
lea eax, [ebx + ebx*8]
lea esi, [ecx + eax*4]
cmp dword [esi], 0xffffffff
jne 0x4adf18
test ebx, ebx
mov byte [esi + 4], 0x81
jne 0x4adebb
push 0xfffffffffffffff6
pop eax
jmp 0x4adec5
or eax, 0xffffffff
jmp 0x4adf34
mov eax, ebx
dec eax
neg eax
sbb eax, eax
add eax, 0xfffffff5
push eax
call dword [sym.imp.kernel32.dll_GetStdHandle]
mov edi, eax
cmp edi, 0xffffffff
je 0x4adf12
push edi
call dword [sym.imp.kernel32.dll_GetFileType]
test eax, eax
je 0x4adf12
and eax, 0xff
cmp eax, 2
mov dword [esi], edi
jne 0x4adef0
or byte [esi + 4], 0x40
jmp 0x4adef9
cmp eax, 3
jne 0x4adef9
or byte [esi + 4], 8
lea eax, [esi + 0xc]
push 0xfa0
push eax
call fcn.004b042d
test eax, eax
pop ecx
pop ecx
je 0x4adeb6
inc dword [esi + 8]
jmp 0x4adf1c
or byte [esi + 4], 0x40
jmp 0x4adf1c
or byte [esi + 4], 0x80
inc ebx
cmp ebx, 3
jl 0x4ade98
push dword [0x5c6658]
call dword [sym.imp.kernel32.dll_LockResource]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x48
ret
Function at 0x4ae3db
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4ae3fb
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
call fcn.004a37e7
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x4ae41e
test byte [esp + 8], 2
je 0x4ae41e
call fcn.004a37d5
mov dword [eax], 0xd
call fcn.004a37de
mov dword [eax], 5
jmp 0x4ae3f7
xor eax, eax
ret

Function at 0x4ae77e
Capabilities:
Get common file path

Disassembly:
push pe_nt_image_headers32
push 0x5688b0
call fcn.004a6418
mov eax, dword [0x58f2d4]
mov dword [ebp - 0x1c], eax
lea edi, [ebp - 0x124]
and dword [ebp - 0x128], 0
mov eax, edi
push eax
push 0x105
call dword [sym.imp.kernel32.dll_GetCurrentDirectoryA]
mov esi, eax
mov dword [ebp - 0x12c], esi
cmp esi, 0x104
jle 0x4ae822
and dword [ebp - 4], 0
lea eax, [esi + 1]
add eax, 3
and eax, 0xfffffffc
call fcn.004a2fa0
mov dword [ebp - 0x18], esp
mov edi, esp
mov dword [ebp - 0x130], edi
jmp 0x4ae80f
or dword [ebp - 4], 0xffffffff
test esi, esi
je 0x4ae822
push edi
inc esi
push esi
call dword [sym.imp.kernel32.dll_GetCurrentDirectoryA]
mov esi, eax
xor ebx, ebx
test esi, esi
je 0x4ae83d
cmp byte [edi + 1], 0x3a
jne 0x4ae83d
movzx eax, byte [edi]
push eax
call fcn.004a28df
pop ecx
mov ebx, eax
sub ebx, 0x40
cmp dword [ebp - 0x128], 0
je 0x4ae84d
push edi
call fcn.004a25de
pop ecx
mov eax, ebx
lea esp, [ebp - 0x13c]
mov ecx, dword [ebp - 0x1c]
call fcn.004a5518
call fcn.004a6453
ret
Function at 0x4aed89
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x58f2d4]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x58fa80]
je 0x4aedbe
inc eax
cmp eax, 0x13
jb 0x4aedaf
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x58fa80]
jne 0x4aeee4
mov eax, dword [0x5944a8]
cmp eax, 1
je 0x4aeebc
cmp eax, edx
jne 0x4aedee
cmp dword [0x58f2d0], 1
je 0x4aeebc
cmp ecx, 0xfc
je 0x4aeee4
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.kernel32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4aee24
lea eax, [ebp - 0x80]
push 0x568cbc
push eax
call fcn.004a8e10
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.004a5890
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x4aee58
mov eax, edi
push eax
call fcn.004a5890
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x568cb8
push edi
call fcn.004ad700
add esp, 0x10
push edi
call fcn.004a5890
push dword [esi + 0x58fa84]
mov ebx, eax
call fcn.004a5890
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.004a2fa0
mov ebx, esp
push 0x568c9c
push ebx
call fcn.004a8e10
push edi
push ebx
call fcn.004a8e20
push 0x568c98
push ebx
call fcn.004a8e20
push dword [esi + 0x58fa84]
push ebx
call fcn.004a8e20
push 0x12010
push 0x568c70
push ebx
call fcn.004b40a1
add esp, 0x2c
jmp 0x4aeee4
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x58fa84]
push dword [esi]
call fcn.004a5890
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]
lea esp, [ebp - 0x8c]
mov ecx, dword [ebp + 0x88]
call fcn.004a5518
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x4b3e83
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
je 0x4b3eb1
add al, 0x40
mov byte [ebp + 8], al
lea eax, [ebp + 8]
push eax
mov byte [ebp + 9], 0x3a
mov byte [ebp + 0xa], 0x5c
mov byte [ebp + 0xb], 0
call dword [sym.imp.kernel32.dll_GetDriveTypeA]
test eax, eax
je 0x4b3eb6
cmp eax, 1
je 0x4b3eb6
xor eax, eax
inc eax
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x4b3eba
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x58f2d4]
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
mov dword [ebp - 4], eax
je 0x4b3f32
push ebx
call fcn.004b3e83
test eax, eax
pop ecx
jne 0x4b3f01
call fcn.004a37de
mov dword [eax], 0xf
call fcn.004a37d5
mov dword [eax], 0xd
xor eax, eax
mov ecx, dword [ebp - 4]
pop ebx
call fcn.004a5518
leave
ret
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x108]
push eax
push 0x104
lea eax, [ebp + 8]
add bl, 0x40
push eax
mov byte [ebp + 8], bl
mov byte [ebp + 9], 0x3a
mov byte [ebp + 0xa], 0x2e
mov byte [ebp + 0xb], 0
call dword [sym.imp.kernel32.dll_GetFullPathNameA]
jmp 0x4b3f44
lea eax, [ebp - 0x108]
push eax
push 0x104
call dword [sym.imp.kernel32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x4b3ef4
inc eax
cmp eax, 0x104
ja 0x4b3ef4
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jne 0x4b3f7c
cmp eax, dword [ebp + 0x10]
jg 0x4b3f5f
mov eax, dword [ebp + 0x10]
push eax
call fcn.004a2ea9
pop ecx
mov ecx, eax
test ecx, ecx
jne 0x4b3f91
call fcn.004a37d5
mov dword [eax], 0xc
jmp 0x4b3ef4
cmp eax, dword [ebp + 0x10]
jle 0x4b3f91
call fcn.004a37d5
mov dword [eax], 0x22
jmp 0x4b3ef4
lea eax, [ebp - 0x108]
push eax
push ecx
call fcn.004a8e10
pop ecx
pop ecx
jmp 0x4b3ef6

Function at 0x4b40a1
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x5948fc], ebx
push esi
push edi
jne 0x4b4121
push 0x563a78
call dword [sym.imp.kernel32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x4b415c
mov esi, dword [sym.imp.kernel32.dll_GetProcAddress]
push 0x56a4a4
push edi
call esi
test eax, eax
mov dword [0x5948fc], eax
je 0x4b415c
push 0x56a494
push edi
call esi
push 0x56a480
push edi
mov dword [0x594900], eax
call esi
cmp dword [0x594450], 2
mov dword [0x594904], eax
jne 0x4b4121
push 0x56a464
push edi
call esi
test eax, eax
mov dword [0x59490c], eax
je 0x4b4121
push 0x56a44c
push edi
call esi
mov dword [0x594908], eax
mov eax, dword [0x594908]
test eax, eax
je 0x4b4166
call eax
test eax, eax
je 0x4b414d
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x59490c]
test eax, eax
je 0x4b414d
test byte [ebp - 8], 1
jne 0x4b4166
cmp dword [0x59445c], 4
jb 0x4b4160
or byte [ebp + 0x12], 0x20
jmp 0x4b4185
xor eax, eax
jmp 0x4b4195
or byte [ebp + 0x12], 4
jmp 0x4b4185
mov eax, dword [0x594900]
test eax, eax
je 0x4b4185
call eax
mov ebx, eax
test ebx, ebx
je 0x4b4185
mov eax, dword [0x594904]
test eax, eax
je 0x4b4185
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x5948fc]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4b4dd4
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
cmp eax, ebx
push edi
mov dword [ebp - 0x10], ebx
jne 0x4b4ded
or eax, 0xffffffff
jmp 0x4b4e4e
push esi
mov esi, dword [eax]
cmp esi, ebx
mov dword [ebp - 4], esi
je 0x4b4e4a
push 0x3d
push esi
call fcn.004a2bdc
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
je 0x4b4e4a
cmp esi, eax
je 0x4b4e4a
xor ecx, ecx
cmp byte [eax + 1], bl
mov eax, dword [0x594470]
sete cl
cmp eax, dword [0x594474]
mov dword [ebp - 8], ecx
jne 0x4b4e30
mov edi, eax
call fcn.004b4d73
mov dword [0x594470], eax
cmp eax, ebx
jne 0x4b4e89
cmp dword [ebp + 0xc], ebx
je 0x4b4e52
cmp dword [0x594478], ebx
je 0x4b4e52
call fcn.004b3df3
test eax, eax
je 0x4b4e89
or eax, 0xffffffff
pop esi
pop edi
pop ebx
leave
ret
cmp dword [ebp - 8], ebx
je 0x4b4e5b
xor eax, eax
jmp 0x4b4e4d
push 4
call fcn.004a2ea9
cmp eax, ebx
pop ecx
mov dword [0x594470], eax
je 0x4b4e4a
mov dword [eax], ebx
cmp dword [0x594478], ebx
jne 0x4b4e89
push 4
call fcn.004a2ea9
cmp eax, ebx
pop ecx
mov dword [0x594478], eax
je 0x4b4e4a
mov dword [eax], ebx
mov edi, dword [ebp - 0xc]
sub edi, dword [ebp - 4]
push dword [ebp - 4]
mov esi, dword [0x594470]
call fcn.004b4d26
mov edi, eax
cmp edi, ebx
pop ecx
jl 0x4b4eea
cmp dword [esi], ebx
je 0x4b4eea
lea esi, [esi + edi*4]
push dword [esi]
call fcn.004a25de
cmp dword [ebp - 8], ebx
pop ecx
jne 0x4b4ecd
mov eax, dword [ebp - 4]
mov dword [esi], eax
mov eax, dword [ebp + 8]
mov dword [eax], ebx
jmp 0x4b4f2b
mov eax, dword [esi + 4]
mov dword [esi], eax
inc edi
add esi, 4
cmp dword [esi], ebx
jne 0x4b4ec4
mov eax, edi
shl eax, 2
push eax
push dword [0x594470]
call fcn.004a5b98
cmp eax, ebx
pop ecx
pop ecx
je 0x4b4f2b
jmp 0x4b4f26
cmp dword [ebp - 8], ebx
jne 0x4b4f96
cmp edi, ebx
jge 0x4b4ef9
neg edi
lea eax, [edi*4 + 8]
push eax
push dword [0x594470]
call fcn.004a5b98
cmp eax, ebx
pop ecx
pop ecx
je 0x4b4e4a
mov edx, dword [ebp - 4]
lea ecx, [eax + edi*4]
mov dword [ecx], edx
mov dword [ecx + 4], ebx
mov ecx, dword [ebp + 8]
mov dword [ecx], ebx
mov dword [0x594470], eax
cmp dword [ebp + 0xc], ebx
je 0x4b4f80
push dword [ebp - 4]
call fcn.004a5890
inc eax
inc eax
push eax
call fcn.004a2ea9
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
je 0x4b4f80
push dword [ebp - 4]
push esi
call fcn.004a8e10
mov eax, esi
sub eax, dword [ebp - 4]
pop ecx
add eax, dword [ebp - 0xc]
pop ecx
mov ecx, dword [ebp - 8]
mov byte [eax], bl
inc eax
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
push ecx
push esi
call dword [sym.imp.kernel32.dll_SetEnvironmentVariableA]
test eax, eax
jne 0x4b4f79
or dword [ebp - 0x10], 0xffffffff
push esi
call fcn.004a25de
pop ecx
cmp dword [ebp - 8], ebx
je 0x4b4f8e
push dword [ebp - 4]
call fcn.004a25de
pop ecx
mov eax, dword [ebp - 0x10]
jmp 0x4b4e4d
push dword [ebp - 4]
call fcn.004a25de
mov eax, dword [ebp + 8]
pop ecx
mov dword [eax], ebx
jmp 0x4b4e57