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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x468690
cmp edx, dword [eax]
je 0x41778a
add eax, 8
inc ecx
cmp eax, 0x468720
jl 0x41777b
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x468690]
jne 0x4178b8
mov eax, dword [0x469ab4]
cmp eax, 1
je 0x417892
test eax, eax
jne 0x4177bb
cmp dword [0x465e00], 1
je 0x417892
cmp edx, 0xfc
je 0x4178b8
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4177f2
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004163c0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00417180
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x417835
lea eax, [ebp - 0x1a4]
push eax
call fcn.00417180
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x43fa34
push edi
call fcn.00419630
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004163c0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004163d0
lea eax, [ebp - 0xa0]
push 0x43fa14
push eax
call fcn.004163d0
push dword [esi + 0x468694]
lea eax, [ebp - 0xa0]
push eax
call fcn.004163d0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0041abfe
add esp, 0x2c
pop edi
jmp 0x4178b8
lea eax, [ebp + 8]
lea esi, [esi + 0x468694]
push 0
push eax
push dword [esi]
call fcn.00417180
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 0x41c060
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x14], 0xca
jne 0x41c090
push esi
call fcn.0041e750
mov al, byte [esi + 0x40]
add esp, 4
test al, al
je 0x41c089
mov dword [esi + 0x14], 0xcf
mov al, 1
pop esi
ret
mov dword [esi + 0x14], 0xcb
mov eax, dword [esi + 0x14]
cmp eax, 0xcb
jne 0x41c113
mov eax, dword [esi + 0x190]
mov cl, byte [eax + 0x10]
test cl, cl
je 0x41c0ff
mov eax, dword [esi + 8]
test eax, eax
je 0x41c0b4
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x190]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x41c0fb
cmp eax, 2
je 0x41c0ff
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x41c0a7
cmp eax, 3
je 0x41c0da
cmp eax, 1
jne 0x41c0a7
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x41c0a7
mov edx, dword [esi + 0x11c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x41c0a7
xor al, al
pop esi
ret
mov eax, dword [esi + 0x7c]
push esi
mov dword [esi + 0x84], eax
call fcn.0041c140
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x41c133
mov ecx, dword [esi]
push esi
mov dword [ecx + 0x14], 0x13
mov edx, dword [esi]
mov eax, dword [esi + 0x14]
mov dword [edx + 0x18], eax
mov ecx, dword [esi]
call dword [ecx]
add esp, 4
push esi
call fcn.0041c140
add esp, 4
pop esi
ret
Function at 0x41c380
Capabilities:
Check http status code

Disassembly:
push esi
mov esi, dword [esp + 8]
mov eax, dword [esi + 0x14]
cmp eax, 0xc8
je 0x41c3af
cmp eax, 0xc9
je 0x41c3af
mov eax, dword [esi]
push esi
mov dword [eax + 0x14], 0x13
mov ecx, dword [esi]
mov edx, dword [esi + 0x14]
mov dword [ecx + 0x18], edx
mov eax, dword [esi]
call dword [eax]
add esp, 4
push esi
call fcn.0041c3f0
mov ecx, eax
add esp, 4
dec ecx
je 0x41c3e9
dec ecx
jne 0x41c3ee
mov al, byte [esp + 0xc]
test al, al
je 0x41c3d9
mov ecx, dword [esi]
push esi
mov dword [ecx + 0x14], 0x2c
mov edx, dword [esi]
call dword [edx]
add esp, 4
push esi
call fcn.0041c680
add esp, 4
mov eax, 2
pop esi
ret
mov eax, 1
pop esi
ret

Function at 0x429820
Capabilities:
Get common file path

Disassembly:
sub esp, 0x25c
lea eax, [esp + 0x14]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea ecx, [esp + 0x14]
push ecx
call fcn.00410232
add esp, 4
cmp word [esp + eax*2 + 0x12], 0x5c
je 0x42985d
lea edx, [esp + 0x14]
push 0x465634
push edx
call fcn.0040fc23
add esp, 8
push esi
push edi
push 0x14
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov ecx, dword [esp + 0x16]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x12]
and ecx, 0xffff
mov edi, dword [esp + 0x26c]
push ecx
mov ecx, dword [esp + 0x14]
and edx, 0xffff
and eax, 0xffff
push edx
mov edx, dword [esp + 0x16]
and ecx, 0xffff
push eax
mov eax, dword [esp + 0x16]
push ecx
mov ecx, dword [esp + 0x18]
and edx, 0xffff
and eax, 0xffff
push edx
and ecx, 0xffff
push eax
lea edx, [esp + 0x34]
push ecx
lea esi, [edi + 0x10]
push edx
push str._siv__04d_02d_02d_02d_02d_02d_03d.tmp
push esi
call fcn.0040fcb6
push 0x469788
push esi
call fcn.0040fca3
add esp, 0x30
mov dword [edi + 0xc], eax
test eax, eax
jne 0x429916
mov esi, dword [esp + 0x268]
push 0x50
push str.temp_filename
mov eax, dword [esi]
mov dword [eax + 0x14], 0x37
mov ecx, dword [esi]
add ecx, 0x18
push ecx
call fcn.00419630
mov edx, dword [esi]
push esi
call dword [edx]
add esp, 0x10
mov dword [edi], 0x429940
mov dword [edi + 4], 0x4299b0
mov dword [edi + 8], 0x429a20
pop edi
pop esi
add esp, 0x25c
ret
Function at 0x572180
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xa7000]
push edi
jmp 0x57219a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x5721a1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x572190
mov eax, 1
add ebx, ebx
jne 0x5721b3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x5721c4
jne 0x5721e3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5721e3
dec eax
add ebx, ebx
jne 0x5721d0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x5721a8
add ebx, ebx
jne 0x5721df
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x572235
xor ecx, ecx
sub eax, 3
jb 0x5721fb
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x57226a
sar eax, 1
mov ebp, eax
jmp 0x572206
add ebx, ebx
jne 0x572206
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5721d4
inc ecx
add ebx, ebx
jne 0x572214
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5721d4
add ebx, ebx
jne 0x572221
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x572216
jne 0x572232
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x572216
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x572254
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x572246
jmp 0x572196
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x572254
add edi, ecx
jmp 0x572196
pop esi
mov edi, esi
mov ecx, 0x1f35
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x572272
cmp byte [edi], 0xe
jne 0x572272
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 0x572277
lea edi, [esi + 0x170000]
mov eax, dword [edi]
or eax, eax
je 0x5722e6
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x17cd60]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x17ce00]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x5722a4
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x17ce04]
or eax, eax
je 0x5722e0
mov dword [ebx], eax
add ebx, 4
jmp 0x5722c1
call dword [esi + 0x17ce14]
mov ebp, dword [esi + 0x17ce08]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1ff]
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 0x57231a
sub esp, 0xffffff80
jmp 0x432990
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
push 4
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x430072
nop
mov ebx, 0x408ecc
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x52c76272
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x430060
nop
nop
nop
mov eax, section..data
nop
nop
cmp eax, 0
nop
nop
nop
je 0x4300d2
nop
nop
mov ebx, 0x42e1d0
nop
nop
nop
nop
nop
mov ecx, ebx
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x40b74f2d
nop
nop
nop
nop
xor dword [eax], esi
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x4300c0
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219
Function at 0x5fda11e0
Capabilities:
Set current directory

Disassembly:
cmp byte [0x5fdb4826], 0
je 0x5fda11fc
push 0x5fdb4826
call fcn.5fda4f40
add esp, 4
mov eax, 1
ret
cmp word [0x5fdb4824], 0
jne 0x5fda121b
call fcn.5fda3440
test eax, eax
je 0x5fda1218
call fcn.5fda1bb0
test eax, eax
jne 0x5fda121b
xor eax, eax
ret
call fcn.5fda33b0
test eax, eax
jne 0x5fda1227
xor eax, eax
ret
call fcn.5fda3780
test eax, eax
jne 0x5fda1233
xor eax, eax
ret
call fcn.5fda44f0
test eax, eax
jne 0x5fda123f
xor eax, eax
ret
push 0x5fdb3fa4
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
jne 0x5fda126f
push 0
push 0x10
push 0
push 0
push 0x4bc
push 0
call fcn.5fda25f0
call fcn.5fda45a0
mov dword [0x5fdb47fc], eax
xor eax, eax
ret
cmp dword [0x5fdb481c], 0
jne 0x5fda1284
call fcn.5fda1cb0
test eax, eax
jne 0x5fda1284
xor eax, eax
ret
mov ax, word [0x5fdb4f34]
push eax
call fcn.5fda5230
add esp, 4
mov dword [0x5fdb4804], eax
cmp dword [0x5fdb4814], 0
jne 0x5fda12b6
cmp dword [0x5fdb47f0], 0
jne 0x5fda12b6
call fcn.5fda1d70
test eax, eax
jne 0x5fda12b6
xor eax, eax
ret
cmp word [0x5fdb4824], 0
jne 0x5fda12c5
call fcn.5fda22c0
mov eax, 1
ret

Function at 0x5fda12d0
Capabilities:
Delete file
Set current directory
Set file attributes

Disassembly:
jmp 0x5fda3530
push ebx
push esi
push edi
mov esi, dword [0x5fdb3fa0]
push ebp
mov edi, esi
test esi, esi
je 0x5fda3580
mov ebx, dword [sym.imp.KERNEL32.dll_LocalFree]
xor ebp, ebp
cmp dword [0x5fdb4814], ebp
jne 0x5fda356f
cmp dword [0x5fdb47f0], ebp
jne 0x5fda356f
push pe_nt_image_headers32
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov esi, dword [esi + 4]
mov eax, dword [edi]
push eax
call ebx
push edi
call ebx
mov edi, esi
test esi, esi
jne 0x5fda3548
cmp dword [0x5fdb4810], 0
je 0x5fda35cb
call fcn.5fda4d80
cmp dword [0x5fdb4810], 0
je 0x5fda35cb
cmp dword [0x5fdb4814], 0
jne 0x5fda35cb
cmp dword [0x5fdb47f0], 0
jne 0x5fda35cb
mov dword [0x5fdb4810], 0
push 0x5fdaf224
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push 0x5fdb3fa4
call fcn.5fda4f40
add esp, 4
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x5fda21f0
Capabilities:
Create process on windows

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x14
test ecx, ecx
push esi
jne 0x5fda2203
xor eax, eax
pop esi
add esp, 0x14
ret
lea eax, [esp + 8]
xor esi, esi
mov edx, dword [esp + 0x20]
push eax
push edx
mov dword [eax], esi
push esi
mov dword [eax + 4], esi
push esi
mov dword [eax + 8], esi
push 0x20
mov dword [eax + 0xc], esi
push esi
push esi
push esi
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x5fda22aa
mov eax, dword [esp + 8]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea ecx, [esp + 4]
mov edx, dword [esp + 8]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
cmp dword [0x5fdb4818], esi
jne 0x5fda227d
test byte [0x5fdb47ec], 1
je 0x5fda227d
test byte [0x5fdb47ec], 2
jne 0x5fda227d
mov eax, dword [esp + 4]
and eax, 0xff000000
cmp eax, 0xaa000000
jne 0x5fda227d
mov eax, dword [esp + 4]
mov dword [0x5fdb47ec], eax
mov eax, dword [esp + 4]
push 0
push eax
call fcn.5fda4550
mov eax, dword [esp + 0x14]
add esp, 8
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
mov ecx, dword [esp + 8]
push ecx
call esi
mov eax, 1
pop esi
add esp, 0x14
ret
call fcn.5fda45a0
pop esi
mov dword [0x5fdb47fc], eax
xor eax, eax
add esp, 0x14
ret

Function at 0x5fda2790
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
mov esi, dword [sym.imp.KERNEL32.dll_FindResourceA]
push ebp
push 0xa
mov ebp, dword [esp + 0x18]
push ebp
push 0
call esi
push eax
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
cmp eax, dword [esp + 0x1c]
mov ebx, eax
ja 0x5fda2809
mov edi, dword [esp + 0x18]
test edi, edi
je 0x5fda2809
test ebx, ebx
jne 0x5fda27c9
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
ret
push 0xa
push ebp
push 0
call esi
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
jne 0x5fda27eb
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
ret
mov esi, eax
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
push eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
ret
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x5fda31f0
Capabilities:
Hide graphical window

Disassembly:
push esi
push edi
call fcn.5fda3330
test eax, eax
jne 0x5fda3200
xor eax, eax
pop edi
pop esi
ret
mov eax, dword [0x5fdaf218]
test eax, eax
je 0x5fda3234
push 0
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0x842
push eax
call esi
push eax
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
call edi
push 5
mov eax, dword [0x5fdaf218]
push 0x841
push eax
call esi
push eax
call edi
mov eax, dword [0x5fdb3f00]
push eax
call fcn.5fda3100
add esp, 4
test eax, eax
jne 0x5fda325e
push 0
mov eax, dword [0x5fdaf218]
push 0x10
push 0
push 0
push 0x4ba
push eax
jmp 0x5fda32f1
push 0x5fdb3f08
push 1
push 0x5fda2d00
push fcn.5fda2ca0
push 0x5fda2c10
push 0x5fda2b70
push fcn.5fda2a80
push 0x5fda2e80
push 0x5fda2e70
call fcn.5fda53c0
add esp, 0x24
mov esi, eax
test esi, esi
je 0x5fda32d7
push 0x5fdb3f00
push 0
push 0x5fda2ea0
push 0
push 0x5fdaf220
push 0x5fdaf0f0
push esi
call fcn.5fda55a0
add esp, 0x1c
mov edi, eax
test edi, edi
jne 0x5fda32ca
cmp dword [0x5fdb3f98], 0
jne 0x5fda32f6
test edi, edi
je 0x5fda32f6
push esi
call fcn.5fda5460
add esp, 4
test eax, eax
jne 0x5fda32f8
push 0
mov eax, dword [0x5fdb3f08]
push 0x10
add eax, 0x514
push 0
mov ecx, dword [0x5fdaf218]
push 0
push eax
push ecx
call fcn.5fda25f0
xor edi, edi
test byte [0x5fdb4824], 1
jne 0x5fda331e
test byte [0x5fdb47f4], 1
jne 0x5fda331e
push 0
mov eax, dword [0x5fdaf218]
push edi
push 0xfa1
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, edi
pop edi
pop esi
ret

Function at 0x5fda35d0
Capabilities:
Create directory
Delete directory
Delete file
Get common file path

Disassembly:
sub esp, 0x104
cmp dword [esp + 0x10c], 0
je 0x5fda362d
lea eax, [esp]
mov ecx, dword [esp + 0x108]
push eax
push 0
push 0x5fdaf228
push ecx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
je 0x5fda3640
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp]
push ecx
push 0x5fdb3fa4
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x5fdaf220
push 0x5fdb3fa4
call fcn.5fda5070
add esp, 8
jmp 0x5fda3640
mov eax, dword [esp + 0x108]
push eax
push 0x5fdb3fa4
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x5fdb3fa4
call fcn.5fda3b70
add esp, 4
test eax, eax
jne 0x5fda366c
push 0
push 0x5fdb3fa4
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x5fda369d
mov dword [0x5fdb4810], 1
mov eax, dword [esp + 0x110]
push 0
push eax
push 0x5fdb3fa4
call fcn.5fda3c90
add esp, 0xc
test eax, eax
je 0x5fda36b0
mov eax, 1
add esp, 0x104
mov dword [0x5fdb47fc], 0
ret
call fcn.5fda45a0
add esp, 0x104
mov dword [0x5fdb47fc], eax
xor eax, eax
ret
cmp dword [0x5fdb4810], 0
je 0x5fda36ce
mov dword [0x5fdb4810], 0
push 0x5fdb3fa4
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
xor eax, eax
add esp, 0x104
ret
Function at 0x5fda3b70
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ecx, 0xffffffff
mov ebx, dword [esp + 8]
push esi
push edi
sub eax, eax
push ebp
mov edi, ebx
repne scasb al, byte es:[edi]
not ecx
add ecx, 0x13
push ecx
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x5fda3bbc
push 0
push 0x10
push 0
push 0
push 0x4b5
push 0
call fcn.5fda25f0
call fcn.5fda45a0
pop ebp
mov dword [0x5fdb47fc], eax
xor eax, eax
pop edi
pop esi
pop ebx
ret
mov edi, ebx
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
shr ecx, 2
mov esi, edi
mov edi, ebp
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.TMP4352.TMP
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov ecx, 0xffffffff
mov edi, ebp
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push 0
and ecx, 3
push 0x4000080
rep movsb byte es:[edi], byte [esi]
push 1
push 0
push 0
push 0x40000000
push ebp
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_LocalFree]
call ebp
cmp esi, 0xffffffff
jne 0x5fda3c47
call fcn.5fda45a0
pop ebp
mov dword [0x5fdb47fc], eax
xor eax, eax
pop edi
pop esi
pop ebx
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x5fda3c72
test al, 0x10
je 0x5fda3c72
mov eax, 1
pop ebp
mov dword [0x5fdb47fc], 0
pop edi
pop esi
pop ebx
ret
call fcn.5fda45a0
pop ebp
mov dword [0x5fdb47fc], eax
xor eax, eax
pop edi
pop esi
pop ebx
ret
Function at 0x5fda3c90
Capabilities:
Get common file path
Get disk size
Set current directory

Disassembly:
sub esp, 0x31c
xor eax, eax
mov dword [esp + 4], eax
push ebx
mov dword [esp + 4], eax
push esi
mov esi, dword [esp + 0x32c]
push edi
mov dword [esp + 0x14], eax
push ebp
mov dword [esp + 0x24], eax
cmp esi, eax
jne 0x5fda3cc7
mov eax, 1
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x31c
ret
lea eax, [esp + 0x28]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov ebp, dword [esp + 0x330]
mov ebx, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push ebp
call ebx
test eax, eax
jne 0x5fda3d16
push 0
push 0x10
push 0
push 0
push 0x4bc
push 0
call fcn.5fda25f0
call fcn.5fda45a0
pop ebp
mov dword [0x5fdb47fc], eax
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x31c
ret
lea eax, [esp + 0x24]
lea ecx, [esp + 0x18]
lea edx, [esp + 0x10]
push eax
lea eax, [esp + 0x18]
push ecx
push edx
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
jne 0x5fda3dad
lea edi, [esp + 0x12d]
xor eax, eax
mov byte [esp + 0x12c], 0
mov ecx, 0x7f
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
call fcn.5fda45a0
push 0
mov dword [0x5fdb47fc], eax
lea eax, [esp + 0x130]
push 0x200
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0
push 0x1000
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
lea eax, [esp + 0x12c]
push 0
push 0x10
push eax
push ebp
push 0x4b0
push 0
call fcn.5fda25f0
lea eax, [esp + 0x28]
push eax
call ebx
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x31c
ret
lea eax, [esp + 0x28]
push eax
call ebx
lea eax, [esp + 0x1c]
push 3
push ebp
push eax
mov edi, 0x200
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
xor cx, cx
mov eax, dword [esp + 0x10]
imul eax, dword [esp + 0x14]
mov edx, eax
imul edx, dword [esp + 0x18]
cmp edi, eax
je 0x5fda3de8
inc cx
add edi, edi
cmp cx, 8
jb 0x5fda3dda
cmp cx, 8
jne 0x5fda3e0f
push 0
push 0x10
push 0
push 0
push 0x4c5
push 0
call fcn.5fda25f0
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x31c
ret
movzx eax, cx
mov ecx, dword [eax*4 + 0x5fdb4b40]
mov eax, esi
and eax, 1
je 0x5fda3e5f
test esi, 2
je 0x5fda3e5f
mov eax, dword [0x5fdb47f8]
add eax, ecx
cmp eax, edx
jbe 0x5fda3ebf
lea eax, [esp + 0x1c]
mov edx, dword [0x5fdb47f8]
push eax
push edx
push ecx
mov ecx, dword [esp + 0x344]
push ecx
call fcn.5fda5310
add esp, 0x10
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x31c
ret
test eax, eax
je 0x5fda3e8f
cmp ecx, edx
jbe 0x5fda3ebf
lea eax, [esp + 0x1c]
mov edx, dword [0x5fdb47f8]
push eax
push edx
push ecx
mov ecx, dword [esp + 0x344]
push ecx
call fcn.5fda5310
add esp, 0x10
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x31c
ret
cmp dword [0x5fdb47f8], edx
jbe 0x5fda3ebf
lea eax, [esp + 0x1c]
mov edx, dword [0x5fdb47f8]
push eax
push edx
push ecx
mov ecx, dword [esp + 0x344]
push ecx
call fcn.5fda5310
add esp, 0x10
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x31c
ret
mov eax, 1
pop ebp
mov dword [0x5fdb47fc], 0
pop edi
pop esi
pop ebx
add esp, 0x31c
ret
Function at 0x5fda44f0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x104
lea eax, [esp]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
jne 0x5fda4531
push 0
push 0x10
push 0
push 0
push 0x4f0
push 0
call fcn.5fda25f0
call fcn.5fda45a0
add esp, 0x104
mov dword [0x5fdb47fc], eax
xor eax, eax
ret
lea eax, [esp]
push 2
push 2
push eax
call fcn.5fda3c90
add esp, 0x110
ret

Function at 0x5fda45c0
Capabilities:
Compare security identifiers

Disassembly:
sub esp, 0x14
push ebx
push esi
push edi
xor ebx, ebx
mov byte [esp + 0xc], bl
push ebp
mov byte [esp + 0x11], bl
mov byte [esp + 0x12], bl
xor esi, esi
mov byte [esp + 0x13], bl
mov byte [esp + 0x15], 5
cmp dword [0x5fdaf590], 2
mov byte [esp + 0x14], bl
je 0x5fda45fa
mov eax, dword [0x5fdaf590]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x14
ret
lea eax, [esp + 0x1c]
mov ebp, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
push 8
call ebp
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x5fda461e
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x14
ret
lea eax, [esp + 0x18]
mov ecx, dword [esp + 0x1c]
push eax
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
push 0
push 0
push 2
push ecx
call edi
test eax, eax
jne 0x5fda4656
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x5fda4656
mov eax, dword [esp + 0x18]
mov ebp, dword [sym.imp.KERNEL32.dll_LocalAlloc]
push eax
push 0
call ebp
mov esi, eax
test esi, esi
je 0x5fda46df
lea eax, [esp + 0x18]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
push eax
push ecx
push esi
push 2
push edx
call edi
test eax, eax
je 0x5fda46df
lea eax, [esp + 0x20]
push eax
push 0
push 0
push 0
lea ecx, [esp + 0x20]
push 0
push 0
mov ebp, dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
push 0
push 0x220
push 0x20
push 2
push ecx
call ebp
test eax, eax
je 0x5fda46df
xor edi, edi
cmp dword [esi], edi
jbe 0x5fda46d2
lea ebp, [esi + 4]
mov eax, dword [esp + 0x20]
mov ecx, dword [ebp]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x5fda46c7
add ebp, 8
inc edi
cmp dword [esi], edi
ja 0x5fda46aa
jmp 0x5fda46d2
mov ebx, 1
mov dword [0x5fdaf590], ebx
mov eax, dword [esp + 0x20]
mov ebp, dword [sym.imp.ADVAPI32.dll_FreeSid]
push eax
call ebp
mov eax, dword [esp + 0x1c]
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call ebp
test esi, esi
je 0x5fda46f7
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x14
ret