joyce8/EMBER2024-capa huggingface dataset:
Function at 0x587330
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5ddb58
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
push edi
mov eax, dword [0x6396a8]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov esi, ecx
mov ecx, dword [esi + 0x290]
call fcn.005ae6d0
mov eax, dword [esi + 0x290]
mov ecx, dword [eax + 0x30]
mov eax, dword [ecx]
mov eax, dword [eax + 0x14c]
lea edx, [esp + 0xc]
push edx
call eax
xor edi, edi
push eax
lea ecx, [esi + 0x204]
mov dword [esp + 0x28], edi
call fcn.00587090
mov eax, dword [esp + 0x10]
cmp eax, edi
mov dword [esp + 0x24], 0xffffffff
je 0x5873a5
push eax
call fcn.005b28f2
add esp, 4
mov ecx, dword [0x63e5a0]
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], edi
call fcn.00521510
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x1c
ret
Function at 0x5a5610
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x5e1208
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
push ebx
push esi
mov eax, dword [0x6396a8]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
push 0x12
xor ebx, ebx
push str.measuringcup_clear
lea ecx, [esp + 0x18]
mov dword [esp + 0x30], 0xf
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x1c], bl
call fcn.0043df40
lea eax, [esp + 0x10]
push eax
mov ecx, 0x63e65c
mov dword [esp + 0x54], ebx
call fcn.00520690
mov eax, dword [eax]
mov ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0x58]
push eax
push ecx
push edx
mov ecx, esi
call fcn.005a4910
cmp dword [esp + 0x28], 0x10
mov byte [esp + 0x50], 2
jb 0x5a569d
mov eax, dword [esp + 0x14]
push eax
call fcn.005b28f2
add esp, 4
mov ecx, dword [esp + 0x60]
fldz
push ecx
fstp qword [esi + 0x1b0]
lea edx, [esp + 0x30]
push str.measuringcup_
push edx
mov dword [esp + 0x34], 0xf
mov dword [esp + 0x30], ebx
mov byte [esp + 0x20], bl
mov dword [esi], vtable.Beaker.0
call fcn.00441e70
add esp, 0xc
push eax
mov ecx, 0x63e65c
mov byte [esp + 0x54], 3
call fcn.00520690
cmp dword [esp + 0x44], 0x10
mov eax, dword [eax]
mov dword [esi + 0x1b8], eax
jb 0x5a56fe
mov ecx, dword [esp + 0x30]
push ecx
call fcn.005b28f2
add esp, 4
mov eax, esi
mov byte [esi + 0x150], 1
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x48
ret 0xc

Function at 0x5a6370
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x5e1320
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
mov eax, dword [0x6396a8]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
push 9
xor ebx, ebx
push 0x5f4a98
lea ecx, [esp + 0x18]
mov dword [esp + 0x30], 0xf
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x1c], bl
call fcn.0043df40
lea eax, [esp + 0x10]
push eax
mov ecx, 0x63e65c
mov dword [esp + 0x38], ebx
call fcn.00520690
mov eax, dword [eax]
push eax
push ebx
push ebx
mov ecx, esi
call fcn.005a4910
cmp dword [esp + 0x28], 0x10
mov byte [esp + 0x34], 2
jb 0x5a63f5
mov ecx, dword [esp + 0x14]
push ecx
call fcn.005b28f2
add esp, 4
fldz
mov edx, dword [esp + 0x3c]
push ebx
fstp qword [esi + 0x1b0]
mov ecx, esi
mov dword [esp + 0x2c], 0xf
mov dword [esp + 0x28], ebx
mov byte [esp + 0x18], bl
mov dword [esi], vtable.ChoppingKnife.0
mov dword [esi + 0x1b8], edx
call fcn.0045f2c0
mov eax, esi
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x2c
ret 4
Function at 0x5a8d20
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x5e16d6
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
mov eax, dword [0x6396a8]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
push eax
mov eax, dword [eax + 0x24]
cdq
sub eax, edx
mov edx, dword [esp + 0x24]
sar eax, 1
push ecx
sub edx, eax
push edx
mov ecx, esi
call fcn.005a4910
mov eax, dword [esp + 0x2c]
xor ebx, ebx
push 0xffffffffffffffff
lea ecx, [esi + 0x1b0]
mov dword [esi], vtable.Icon.0
push ebx
mov dword [ecx + 0x18], 0xf
mov dword [ecx + 0x14], ebx
push eax
mov dword [esp + 0x24], ebx
mov byte [ecx + 4], bl
call fcn.0043b440
mov edx, dword [esp + 0x30]
push 0xffffffffffffffff
lea ecx, [esi + 0x1cc]
push ebx
mov dword [ecx + 0x18], 0xf
mov dword [ecx + 0x14], ebx
push edx
mov byte [esp + 0x24], 1
mov byte [ecx + 4], bl
call fcn.0043b440
fldz
mov dword [esi + 0x1e8], ebx
mov dword [esi + 0x1ec], ebx
fst qword [esi + 0x1f0]
fstp qword [esi + 0x1f8]
mov byte [esi + 0x200], bl
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x10
ret 0x14

Function at 0x5aa820
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x5e18ec
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
mov eax, dword [0x6396a8]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
push 0xa
xor ebx, ebx
push str.knife_side
lea ecx, [esp + 0x18]
mov dword [esp + 0x30], 0xf
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x1c], bl
call fcn.0043df40
lea eax, [esp + 0x10]
push eax
mov ecx, 0x63e65c
mov dword [esp + 0x38], ebx
call fcn.00520690
mov eax, dword [eax]
push eax
push ebx
push ebx
mov ecx, esi
call fcn.005a4910
cmp dword [esp + 0x28], 0x10
jb 0x5aa8a0
mov ecx, dword [esp + 0x14]
push ecx
call fcn.005b28f2
add esp, 4
fld qword [esp + 0x3c]
mov edx, dword [esp + 0x44]
fstp qword [esi + 0x1c0]
mov dword [esi], vtable.SlicingKnife.0
mov dword [esi + 0x1c8], edx
mov dword [esi + 0x1e4], 0xf
mov dword [esi + 0x1e0], ebx
mov byte [esi + 0x1d0], bl
lea ecx, [esi + 0x1e8]
mov byte [esp + 0x34], 3
call fcn.0040b740
lea ecx, [esi + 0x2d4]
mov byte [esp + 0x34], 4
call fcn.00468d20
push ebx
mov ecx, esi
call fcn.0045f2c0
mov byte [esi + 0x150], 1
mov eax, esi
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x2c
ret 0xc
Function at 0x5aa9d0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x5e1958
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x6396a8]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
mov edi, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
push edi
push eax
push ecx
mov ecx, esi
call fcn.005a4910
mov edx, dword [esp + 0x2c]
xor eax, eax
mov dword [esi + 0x1b0], eax
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x30]
mov dword [esi], vtable.SqueezeBag.0
mov dword [esi + 0x1b4], edx
mov dword [esi + 0x1b8], eax
mov ecx, edi
mov dword [edi + 0x30], 3
call fcn.00427d20
push eax
mov ecx, edi
call fcn.00427d30
mov ecx, dword [esi + 0x34]
mov edx, dword [esi + 0x30]
push eax
push ecx
push edx
mov ecx, esi
call fcn.0045f610
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret 0x14
Function at 0x5ab980
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x5e1ab0
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6396a8]
xor eax, esp
push eax
lea eax, [esp + 0x34]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x14], esi
mov eax, dword [esp + 0x54]
xor edi, edi
push edi
push eax
call fcn.005ad250
mov cl, byte [esp + 0x4c]
mov dl, byte [esp + 0x50]
mov dword [esi], vtable.CirclePath.0
mov dword [esi + 0x110], edi
mov dword [esi + 0x114], edi
mov dword [esi + 0x118], edi
mov dword [esi + 0x11c], edi
mov byte [esi + 0x120], cl
lea ecx, [esi + 0x124]
mov dword [esp + 0x3c], edi
mov byte [esi + 0x121], dl
call fcn.00468d20
mov eax, 0x46
push 0xc
push 0x5fa5e0
lea ecx, [esp + 0x20]
mov dword [esi + 0xf0], eax
mov dword [esi + 0xec], eax
mov dword [esp + 0x38], 0xf
mov dword [esp + 0x34], edi
mov byte [esp + 0x24], 0
call fcn.0043df40
lea eax, [esp + 0x18]
push eax
mov ecx, 0x63e65c
mov byte [esp + 0x40], 1
call fcn.00520690
cmp dword [esp + 0x30], 0x10
mov eax, dword [eax]
mov dword [esi + 0x98], eax
mov byte [esp + 0x3c], 0
jb 0x5aba62
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.005b28f2
add esp, 4
mov eax, dword [esi + 0xf0]
mov edi, dword [esp + 0x48]
mov ebp, dword [esp + 0x44]
add eax, 0x64
lea ecx, [eax + eax]
push ecx
push ecx
mov edx, edi
sub edx, eax
mov ecx, ebp
sub ecx, eax
push edx
push ecx
mov ecx, esi
call fcn.0045f610
lea edx, [esp + 0x44]
push edx
mov ecx, esi
call fcn.004657a0
fld qword [0x5f9ce8]
sub ebp, dword [eax]
sub edi, dword [eax + 4]
mov bl, byte [esi + 0x121]
xor eax, eax
test bl, bl
sete al
mov ecx, edi
mov edx, ebp
mov dword [esi + 0x110], ebp
mov dword [esi + 0x114], edi
mov dword [esi + 0x118], edx
lea eax, [eax + eax - 1]
imul eax, eax, 0x64
add ecx, eax
mov dword [esp + 0x50], eax
mov dword [esi + 0x11c], ecx
call fcn.005b4800
mov al, byte [esi + 0x120]
xor al, bl
neg al
sbb eax, eax
and eax, 2
add eax, 0xffffffff
imul eax, eax, 0x64
mov dword [esp + 0x4c], eax
fild dword [esp + 0x4c]
fmulp st(1)
call fcn.005b3030
fld qword [0x5f9ce8]
mov edi, eax
call fcn.005b46d0
fimul dword [esp + 0x50]
call fcn.005b3030
mov edx, dword [esi + 0x114]
add edx, eax
mov ecx, ebp
add ecx, edi
mov dword [esi + 0xf4], ecx
mov dword [esi + 0xf8], edx
mov edx, dword [esi + 0x114]
neg edi
mov ecx, ebp
add ecx, edi
add edx, eax
cmp byte [esi + 0x120], 0
mov dword [esi + 0xfc], ecx
mov dword [esi + 0x100], edx
jne 0x5abb6d
fld1
sub esp, 8
fstp dword [esp + 4]
lea ecx, [esi + 0x124]
fld dword [0x613f30]
fstp dword [esp]
call fcn.00468e40
cmp byte [esi + 0x121], 0
jne 0x5abb8b
fld dword [0x5fa5dc]
push ecx
lea ecx, [esi + 0x124]
fstp dword [esp]
call fcn.00468e10
fild dword [esi + 0x114]
sub esp, 8
lea ecx, [esi + 0x124]
fstp dword [esp + 4]
fild dword [esi + 0x110]
fstp dword [esp]
call fcn.00468d60
mov eax, esi
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret 0x14
Function at 0x5acfe0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5e1ce6
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x6396a8]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x34]
push eax
push ecx
mov ecx, esi
call fcn.005ad250
mov dl, byte [esp + 0x30]
lea ecx, [esi + 0x118]
mov dword [esp + 0x14], 0
mov dword [esi], vtable.LinePath.0
mov dword [esi + 0x110], 0xffffffff
mov byte [esi + 0x114], 0
mov byte [esi + 0x115], dl
call fcn.0040b740
lea ecx, [esi + 0x204]
mov byte [esp + 0x14], 1
call fcn.00468d20
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
sub esp, 8
mov eax, esp
mov dword [esi + 0x248], 0
mov dword [eax], ecx
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x38], esp
mov dword [eax + 4], edx
mov edx, dword [esp + 0x28]
sub esp, 8
mov eax, esp
mov dword [eax], ecx
mov ecx, esi
mov dword [esp + 0x40], esp
mov dword [eax + 4], edx
call fcn.005accd0
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret 0x1c
Function at 0x5b2f9b
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x6396a8]
jne 0x5b2fa5
repz ret
jmp fcn.005bc2dc
Function at 0x5b722d
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ebx
je 0x5b726a
cmp dword [ebp + 0x14], edi
je 0x5b726a
cmp ecx, edi
jne 0x5b7271
call fcn.005b886e
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.005b2ad3
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x5b7285
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x5b72a6
cmp ebx, 0xffffffff
je 0x5b7295
push ebx
push edi
push ecx
call fcn.005b30e0
add esp, 0xc
cmp esi, edi
je 0x5b7252
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x5b7252
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x5b72c2
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x5b72c9
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x5b73ba
test word [esi + 0xc], 0x10c
je 0x5b731d
mov eax, dword [esi + 4]
test eax, eax
je 0x5b731d
jl 0x5b741b
cmp ebx, eax
mov edi, ebx
jb 0x5b72ee
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x5b73c2
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.005b28f7
sub dword [esi + 4], edi
add dword [esi], edi
add dword [ebp - 8], edi
sub ebx, edi
add esp, 0x10
sub dword [ebp - 4], edi
mov edi, dword [ebp - 0x10]
jmp 0x5b73b2
cmp ebx, dword [ebp - 0xc]
jb 0x5b738a
cmp dword [ebp - 0xc], 0
je 0x5b7347
mov ecx, closesocket
xor edx, edx
cmp ebx, ecx
jbe 0x5b733c
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x5b7343
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x5b7352
mov eax, closesocket
cmp ebx, eax
ja 0x5b7352
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x5b73ee
push eax
push dword [ebp - 8]
push esi
call fcn.005bf0e4
pop ecx
push eax
call fcn.005c567b
add esp, 0xc
test eax, eax
je 0x5b742d
cmp eax, 0xffffffff
je 0x5b741b
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x5b73b2
push esi
call fcn.005bed84
cmp eax, 0xffffffff
pop ecx
je 0x5b741f
cmp dword [ebp - 4], 0
je 0x5b73ee
mov ecx, dword [ebp - 8]
inc dword [ebp - 8]
mov byte [ecx], al
mov eax, dword [esi + 0x18]
dec ebx
dec dword [ebp - 4]
mov dword [ebp - 0xc], eax
test ebx, ebx
jne 0x5b72d1
mov eax, dword [ebp + 0x14]
jmp 0x5b726c
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x5b73d9
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.005b30e0
add esp, 0xc
call fcn.005b886e
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x5b7262
cmp dword [ebp + 0xc], 0xffffffff
je 0x5b7404
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.005b30e0
add esp, 0xc
call fcn.005b886e
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x5b7262
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x5b726c
or dword [esi + 0xc], 0x10
jmp 0x5b741f
Function at 0x5bd579
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x639c50]
je 0x5bd594
inc edi
cmp edi, 0x17
jb 0x5bd585
cmp edi, 0x17
jae 0x5bd714
push ebp
push 3
call fcn.005c988c
cmp eax, 1
pop ecx
je 0x5bd6e0
push 3
call fcn.005c988c
test eax, eax
pop ecx
jne 0x5bd5c8
cmp dword [0x639700], 1
je 0x5bd6e0
cmp ebx, 0xfc
je 0x5bd713
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x63ed48
push ebp
call fcn.005bba07
add esp, 0xc
test eax, eax
je 0x5bd5fe
push esi
push esi
push esi
push esi
push esi
call fcn.005b29d7
add esp, 0x14
push 0x104
mov esi, 0x63ed61
push esi
push 0
mov byte [0x63ee65], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x5bd642
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.005bba07
add esp, 0xc
test eax, eax
je 0x5bd642
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.005b29d7
add esp, 0x14
push esi
call fcn.005b89c0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x5bd687
push esi
call fcn.005b89c0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x63f05c
push 0x5fbf24
sub ecx, eax
push ecx
push eax
call fcn.005c6fc6
add esp, 0x14
test eax, eax
je 0x5bd687
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.005b29d7
add esp, 0x14
jmp 0x5bd689
xor esi, esi
push 0x5fbf20
push ebx
push ebp
call fcn.005c6f55
add esp, 0xc
test eax, eax
je 0x5bd6a9
push esi
push esi
push esi
push esi
push esi
call fcn.005b29d7
add esp, 0x14
push dword [edi*8 + 0x639c54]
push ebx
push ebp
call fcn.005c6f55
add esp, 0xc
test eax, eax
je 0x5bd6cb
push esi
push esi
push esi
push esi
push esi
call fcn.005b29d7
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.005c96cf
add esp, 0xc
jmp 0x5bd713
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x5bd713
cmp ebp, 0xffffffff
je 0x5bd713
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x639c54]
push dword [esi]
call fcn.005b89c0
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x5c96cf
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.005bbc4a
xor ebx, ebx
cmp dword [0x63f438], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x5c97a5
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x5c9885
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x5fecc8
push edi
call esi
cmp eax, ebx
je 0x5c9885
push eax
call fcn.005bbbdc
mov dword [esp], 0x5fecb8
push edi
mov dword [0x63f438], eax
call esi
push eax
call fcn.005bbbdc
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x63f43c], eax
call esi
push eax
call fcn.005bbbdc
mov dword [0x63f440], eax
lea eax, [ebp - 0xc]
push eax
call fcn.005b6997
test eax, eax
pop ecx
pop ecx
je 0x5c9773
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.005b29d7
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x5c97a5
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.005bbbdc
cmp eax, ebx
pop ecx
mov dword [0x63f448], eax
je 0x5c97a5
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.005bbbdc
pop ecx
mov dword [0x63f444], eax
mov eax, dword [0x63f444]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x5c982a
cmp dword [0x63f448], ecx
je 0x5c982a
push eax
call fcn.005bbc53
push dword [0x63f448]
mov esi, eax
call fcn.005bbc53
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x5c982a
cmp edi, ebx
je 0x5c982a
call esi
cmp eax, ebx
je 0x5c97f7
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x5c97f7
test byte [ebp - 0x18], 1
jne 0x5c982a
lea eax, [ebp - 0x10]
push eax
call fcn.005b69ce
test eax, eax
pop ecx
je 0x5c9812
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.005b29d7
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x5c9821
or dword [ebp + 0x10], 0x200000
jmp 0x5c9865
or dword [ebp + 0x10], 0x40000
jmp 0x5c9865
mov eax, dword [0x63f43c]
cmp eax, dword [ebp - 8]
je 0x5c9865
push eax
call fcn.005bbc53
cmp eax, ebx
pop ecx
je 0x5c9865
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x5c9865
mov eax, dword [0x63f440]
cmp eax, dword [ebp - 8]
je 0x5c9865
push eax
call fcn.005bbc53
cmp eax, ebx
pop ecx
je 0x5c9865
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x63f438]
call fcn.005bbc53
cmp eax, ebx
pop ecx
je 0x5c9885
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x5c9887
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4020a8
Capabilities:
Encode data using xor
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x201c
call fcn.004161a4
push edi
push esi
push ebx
mov ebx, dword [ebp + 0x10]
mov esi, dword [ebp + 0x14]
mov dword [ebp - 0x2010], 0
mov dword [ebp - 0x200c], 0
test esi, esi
jg 0x4020e4
jne 0x402213
test ebx, ebx
jbe 0x402213
add esp, 0xfffffff4
push 0
lea eax, [ebp - 0x2004]
push eax
mov eax, ebx
mov edx, esi
sub eax, dword [ebp - 0x2010]
sbb edx, dword [ebp - 0x200c]
js 0x402110
jne 0x40210b
cmp eax, 0x2000
jb 0x402110
mov eax, 0x2000
push eax
lea edi, [ebp - 0x2000]
push edi
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.dll_ReadFile
add esp, 0xc
test eax, eax
je 0x402132
mov edx, dword [ebp - 0x2004]
test edx, edx
jne 0x402164
add esp, 0xfffffff4
mov eax, dword [ebp - 0x2010]
mov edx, dword [ebp - 0x200c]
push edx
push eax
call sub.KERNEL32.dll_GetLastError
push eax
push dword [ebp - 0x2004]
push 0x402072
call fcn.004071a4
mov eax, 1
jmp 0x402215
cmp byte [ebp + 0x18], 0
je 0x40217d
xor eax, eax
cmp eax, edx
jae 0x40217d
xor byte [eax + edi], 0x88
inc eax
cmp eax, dword [ebp - 0x2004]
jb 0x402170
xor edi, edi
cmp edi, dword [ebp - 0x2004]
jae 0x4021e6
nop
add esp, 0xfffffff4
push 0
lea eax, [ebp - 0x2008]
push eax
mov eax, dword [ebp - 0x2004]
sub eax, edi
push eax
lea eax, [edi + ebp - 0x2000]
push eax
mov edx, dword [ebp + 0xc]
push edx
call sub.KERNEL32.dll_WriteFile
add esp, 0xc
test eax, eax
jne 0x4021d8
add esp, 0xfffffffc
call sub.KERNEL32.dll_GetLastError
push eax
mov eax, dword [ebp - 0x2004]
sub eax, edi
push eax
push 0x40208e
call fcn.004071a4
mov eax, 2
jmp 0x402215
add edi, dword [ebp - 0x2008]
cmp edi, dword [ebp - 0x2004]
jb 0x402188
mov eax, dword [ebp - 0x2004]
add dword [ebp - 0x2010], eax
adc dword [ebp - 0x200c], 0
cmp esi, dword [ebp - 0x200c]
jg 0x4020e4
jne 0x402213
cmp ebx, dword [ebp - 0x2010]
ja 0x4020e4
xor eax, eax
lea esp, [ebp - 0x2028]
pop ebx
pop esi
pop edi
leave
ret
Function at 0x4022ac
Capabilities:
Create directory
Delete directory

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x401c
call fcn.004161a4
push edi
push esi
push ebx
mov bl, byte [ebp + 8]
add esp, 0xfffffff4
push 0x402220
call fcn.00407210
add esp, 0xfffffff4
push 0x7d2
call fcn.004019cc
mov dword [ebp - 0x4004], eax
add esp, 0x20
add esp, 0xfffffff8
push eax
push 0x402231
call fcn.00407210
add esp, 0x10
cmp dword [ebp - 0x4004], 0
jne 0x402344
test bl, bl
je 0x4024c5
mov byte [0x42d190], 0
jmp 0x4024c5
add esp, 0xfffffff8
push ebx
push 0x402280
call fcn.004071a4
add esp, 0xfffffff4
push 0x42d190
call fcn.00402d48
add esp, 0x20
add esp, 0xfffffff4
push 0x42d190
call sub.KERNEL32.dll_RemoveDirectoryA
mov eax, esi
jmp 0x4024c7
test bl, bl
je 0x40234d
call fcn.00409460
call fcn.00401ba8
mov dword [ebp - 0x4008], eax
push 0
push 0
push dword [0x423028]
push eax
call sub.KERNEL32.dll_SetFilePointer
add esp, 0xfffffffc
push 0x2000
lea ebx, [ebp - 0x2000]
push ebx
push 0x7d3
call fcn.00401aa8
mov dword [ebp - 0x400c], 0
add esp, 0xfffffff8
push 0x402244
push ebx
call sub.msvcrt.dll_strtok
mov esi, eax
add esp, 0x20
jmp 0x40246e
push esi
push 0x42d190
push 0x402246
lea ebx, [ebp - 0x4000]
push ebx
call sub.msvcrt.dll_sprintf
add esp, 0xfffffff8
push 0x5c
push esi
call sub.msvcrt.dll_strchr
mov edx, eax
add esp, 0x20
test edx, edx
je 0x402426
mov edi, 0x42d190
mov al, 0
cld
mov ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edx, esi
lea eax, [ecx + edx]
mov byte [eax + ebx], 0
add esp, 0xfffffff8
push ebx
push 0x40224c
call fcn.00407210
add esp, 0xfffffff8
push 0
push ebx
call sub.KERNEL32.dll_CreateDirectoryA
add esp, 0x18
test eax, eax
jne 0x402426
call sub.KERNEL32.dll_GetLastError
cmp eax, 0xb7
je 0x402426
add esp, 0xfffffff8
push ebx
push 0x402262
call fcn.004071a4
add esp, 0x10
push esi
push 0x42d190
push 0x402246
push ebx
call sub.msvcrt.dll_sprintf
add esp, 0xfffffff8
push ebx
mov eax, dword [ebp - 0x4008]
push eax
call fcn.00401fd4
mov esi, eax
add esp, 0x20
test esi, esi
jne 0x402310
inc dword [ebp - 0x400c]
add esp, 0xfffffff8
push 0x402244
push 0
call sub.msvcrt.dll_strtok
mov esi, eax
add esp, 0x10
mov eax, dword [ebp - 0x4004]
cmp dword [ebp - 0x400c], eax
jge 0x402495
test esi, esi
je 0x402495
mov edi, esi
mov al, 0
cld
mov ecx, 0xffffffff
repne scasb al, byte es:[edi]
cmp ecx, 0xfffffffe
jne 0x4023a4
push 1
push 0
push 0
mov eax, dword [ebp - 0x4008]
push eax
call sub.KERNEL32.dll_SetFilePointer
mov dword [0x42302c], eax
add esp, 0xfffffff4
mov eax, dword [ebp - 0x4008]
push eax
call sub.KERNEL32.dll_CloseHandle
push 0x402295
call fcn.00407210
xor eax, eax
lea esp, [ebp - 0x4028]
pop ebx
pop esi
pop edi
leave
ret