joyce8/EMBER2024-capa huggingface dataset:
Function at 0x527f2b
Capabilities:
Get file system object information

Disassembly:
push 0x4cc
mov eax, 0x5e5d7b
call fcn.0059033e
mov ebx, ecx
mov eax, dword [ebx + 0x14]
sub eax, 0x10
push eax
call fcn.00402f10
pop ecx
lea esi, [eax + 0x10]
mov dword [ebp - 0x4d0], esi
and dword [ebp - 4], 0
lea ecx, [ebp - 0x4d0]
push 0
push 0x637260
call fcn.0041c330
cmp eax, 0xffffffff
jne 0x528006
push 0
push 0x62d1d0
lea ecx, [ebp - 0x4d0]
call fcn.0041c330
cmp eax, 0xffffffff
jne 0x528006
push 0
push 0x5f13cc
lea ecx, [ebp - 0x4d0]
call fcn.0041c330
cmp eax, 0xffffffff
jne 0x528006
mov eax, dword [ebx + 0x14]
sub eax, 0x10
push eax
call fcn.00402f10
add eax, 0x10
pop ecx
mov dword [ebp - 0x4d8], eax
xor edx, edx
mov byte [ebp - 4], 1
push edx
lea ecx, [ebp - 0x218]
push ecx
push 0x104
push edx
push eax
lea edi, [eax - 0x10]
push edx
mov dword [ebp - 0x4d4], edi
call dword [sym.imp.KERNEL32.dll_SearchPathW]
test eax, eax
jne 0x527fd5
mov eax, dword [ebx]
mov edi, dword [eax + 0x14]
mov ecx, edi
call dword [0x5edb10]
mov ecx, ebx
call edi
mov ecx, dword [ebp - 0x4d4]
mov edi, eax
call fcn.00403750
jmp 0x52803f
lea eax, [ebp - 0x218]
push eax
call fcn.005b4db8
pop ecx
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x4d0]
call fcn.00403300
mov ecx, edi
mov byte [ebp - 4], 0
call fcn.00403750
mov esi, dword [ebp - 0x4d0]
push 0x105
push 0x2b4
lea eax, [ebp - 0x4cc]
push eax
push 0
push esi
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test eax, eax
je 0x52802c
mov edi, dword [ebp - 0x4cc]
jmp 0x52803f
mov eax, dword [ebx]
mov edi, dword [eax + 0x14]
mov ecx, edi
call dword [0x5edb10]
mov ecx, ebx
call edi
mov edi, eax
lea ecx, [esi - 0x10]
call fcn.00403750
mov eax, edi
call fcn.005902ed
ret
Function at 0x52826b
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
xor eax, eax
push ebx
push esi
mov esi, ecx
push edi
push 1
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], eax
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x528298
or dword [esi + 0x3c], 1
or dword [esi + 0x38], 2
jmp 0x5282ad
push 2
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x5282ad
or dword [esi + 0x3c], 2
or dword [esi + 0x38], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount64]
mov edi, dword [ebp + 8]
mov ebx, eax
mov dword [ebp - 4], edx
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_SetCapture]
push eax
call fcn.0044a9b2
jmp 0x52837e
call dword [sym.imp.USER32.dll_GetCapture]
push eax
call fcn.0044a9b2
cmp eax, edi
jne 0x528388
push 1
push 0x209
push 0x200
push 0
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
jne 0x52831a
push 1
push 0x109
push 0x100
push eax
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x52835e
mov eax, dword [ebp - 0x1c]
cmp eax, 0x202
je 0x528388
cmp eax, 0x205
je 0x528388
cmp eax, 0x201
je 0x528388
cmp eax, 0x204
je 0x528388
cmp eax, 0x100
jne 0x528346
cmp dword [ebp - 0x18], 0x1b
je 0x528388
push dword [ebp - 8]
lea eax, [esi + 0x24]
push dword [ebp - 0xc]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
neg eax
sbb eax, eax
inc eax
mov dword [esi + 0x34], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount64]
sub eax, ebx
sbb edx, dword [ebp - 4]
test edx, edx
jb 0x52837e
ja 0x528377
cmp eax, dword [0x6688d8]
jbe 0x52837e
mov dword [esi + 0x34], 1
cmp dword [esi + 0x34], 0
je 0x5282cf
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov eax, dword [esi + 0x34]
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x53cff4
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
call fcn.005c0796
pop ecx
test eax, eax
jne 0x53d036
push dword [ebp - 4]
push dword [ebp + 0xc]
push dword [ebp + 8]
push str._s_s_X.tmp
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.00444df0
add esp, 0x18
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x53cffc
leave
ret
push dword [ebp + 0x10]
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
leave
ret
Function at 0x5644ab
Capabilities:
Get file attributes
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x65f018]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
push 0x230
xor edi, edi
push edi
push esi
call fcn.005aaec0
push 0xffffffffffffffff
push dword [ebx + 0xc]
lea eax, [esi + 0x24]
push 0x104
push eax
call fcn.005beb18
push eax
call fcn.00403070
mov eax, dword [ebx + 4]
add esp, 0x20
cmp eax, dword [0x604070]
je 0x564609
lea ecx, [ebp - 0x48]
push ecx
lea ecx, [ebp - 0x40]
push ecx
lea ecx, [ebp - 0x38]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x56461d
lea eax, [ebp - 0x30]
push eax
push dword [ebx + 4]
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x56461d
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x2c]
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], ecx
mov eax, dword [ebx + 0xc]
cmp dword [eax - 0xc], edi
je 0x564567
mov ecx, dword [ebx + 0x10]
test ecx, ecx
je 0x56455b
lea edx, [ebp - 0x28]
push edx
push edi
push eax
call fcn.005642b2
neg eax
sbb eax, eax
and eax, dword [ebp - 0x28]
jmp 0x564562
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x564569
mov eax, edi
mov ecx, esi
mov dword [ecx + 0x20], eax
lea eax, [ebp - 0x38]
push eax
call fcn.0056475c
test eax, eax
je 0x564590
push 0xffffffffffffffff
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x50]
call fcn.00564139
mov ecx, dword [eax]
mov eax, dword [eax + 4]
jmp 0x564594
mov ecx, edi
mov eax, edi
mov dword [esi], ecx
mov dword [esi + 4], eax
lea eax, [ebp - 0x40]
push eax
call fcn.0056475c
test eax, eax
je 0x5645bb
push 0xffffffffffffffff
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x50]
call fcn.00564139
mov ecx, dword [eax]
mov eax, dword [eax + 4]
jmp 0x5645bf
mov ecx, edi
mov eax, edi
mov dword [esi + 0x10], ecx
mov dword [esi + 0x14], eax
lea eax, [ebp - 0x48]
push eax
call fcn.0056475c
test eax, eax
je 0x5645e7
push 0xffffffffffffffff
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x50]
call fcn.00564139
mov edi, dword [eax]
mov ecx, dword [eax + 4]
jmp 0x5645e9
mov ecx, edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], ecx
mov eax, dword [esi]
or eax, dword [esi + 4]
jne 0x5645fb
mov dword [esi], edi
mov dword [esi + 4], ecx
mov eax, dword [esi + 0x10]
or eax, dword [esi + 0x14]
jne 0x564609
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], ecx
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0058fc43
leave
ret 4
xor eax, eax
jmp 0x56460c

Function at 0x5a9a4c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
call fcn.005c408a
push 2
lea ecx, [ebp - 4]
push ecx
mov eax, dword [eax + 0x14]
push 0x22
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
movzx eax, word [ebp - 4]
sub eax, 0x30
je 0x5a9a8b
sub eax, 1
je 0x5a9a86
sub eax, 1
je 0x5a9a82
xor eax, eax
leave
ret
push 3
jmp 0x5a9a8d
xor eax, eax
inc eax
leave
ret
push 2
pop eax
leave
ret
Function at 0x5b649a
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.005905d0
mov eax, dword [0x65f018]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.005c033b
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x5b64dc
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x5b6638
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00590710
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x669708]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.005c94d7
mov ecx, dword [esi*4 + 0x669708]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x5b6631
cmp eax, dword [edi + ecx + 0x24]
jne 0x5b6631
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x5b6631
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.005c94d7
add esp, 0x14
test edx, edx
jl 0x5b6631
jg 0x5b65a7
test eax, eax
jb 0x5b6631
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x5b6631
jl 0x5b65c1
cmp dword [ebp - 0x1008], eax
ja 0x5b6631
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x5b65df
test ebx, ebx
je 0x5b6618
cmp ecx, edi
jae 0x5b6618
mov al, byte [ecx]
cmp al, 0xd
jne 0x5b65f9
lea eax, [edi - 1]
cmp ecx, eax
jae 0x5b6605
cmp byte [ecx + 1], 0xa
jne 0x5b6605
inc ecx
jmp 0x5b6605
movzx eax, al
movsx eax, byte [eax + 0x65f4c0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x5b65df
cmp edx, ebx
jne 0x5b65df
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x5b6636
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0058fc43
leave
ret

Function at 0x5c7239
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x620830
push 0x620828
push str.FlsAlloc
push 0x1e
call fcn.005c7066
mov esi, eax
add esp, 0x10
test esi, esi
je 0x5c726d
push dword [ebp + 8]
mov ecx, esi
call dword [0x5edb10]
call esi
jmp 0x5c7273
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x5c72b7
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x620840
push 0x620838
push str.FlsGetValue
push 0x20
call fcn.005c7066
mov esi, eax
add esp, 0x10
test esi, esi
je 0x5c72ee
push dword [ebp + 8]
mov ecx, esi
call dword [0x5edb10]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x5c9553
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x669708]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x5c9593
cmp byte [ebx], 0xa
jne 0x5c9593
or byte [eax + edi + 0x28], 4
jmp 0x5c9598
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x5c9696
mov al, byte [edx]
cmp al, 0x1a
je 0x5c9678
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x5c95c7
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x5c95ec
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x5c95f6
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x5c95a9
jmp 0x5c9696
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x5c9673
cmp dword [ebp - 0xc], 0
je 0x5c9673
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x669708]
test byte [eax + edi + 0x28], 0x48
je 0x5c964d
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x5c9638
mov byte [esi], dl
jmp 0x5c9649
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x669708]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x5c9696
cmp byte [ebp - 1], 0xa
jne 0x5c965c
cmp esi, ebx
jne 0x5c965c
mov byte [esi], 0xa
jmp 0x5c9695
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.005c94f5
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x5c9696
mov byte [esi], 0xd
jmp 0x5c9695
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x669708]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x5c9692
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x5c9696
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x5c969f
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x669708]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x5c96e2
cmp word [esi], dx
jne 0x5c96e2
or byte [edi + eax + 0x28], 4
jmp 0x5c96e7
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x5c983a
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x5c981a
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x5c9729
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x5c975f
cmp eax, edx
jae 0x5c976b
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x5c9701
jmp 0x5c983a
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x5c9816
cmp dword [ebp - 0x14], 0
je 0x5c9816
mov eax, dword [ebx*4 + 0x669708]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x5c97ee
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x5c97b7
mov word [esi], cx
jmp 0x5c97ea
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x669708]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x669708]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x669708]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x5c983a
pop ebx
cmp word [ebp - 4], bx
jne 0x5c97ff
cmp esi, dword [ebp + 0xc]
jne 0x5c97ff
mov word [esi], bx
jmp 0x5c9837
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.005c94f5
add esp, 0x10
cmp word [ebp - 4], bx
je 0x5c983a
push 0xd
jmp 0x5c9833
mov ecx, dword [ebx*4 + 0x669708]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x5c9831
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x5c983a
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x5caaa0
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.005ca742

Function at 0x5caaab
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.005ca8d1
Function at 0x5cd20b
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x65f018]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x5cd256
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.005cd3aa
test al, al
jne 0x5cd250
sub edx, 2
cmp edx, edi
jne 0x5cd236
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x5cd278
lea eax, [edi + 2]
cmp edx, eax
je 0x5cd278
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.005cd157
add esp, 0x10
jmp 0x5cd372
push esi
lea ecx, [ebp - 0x255]
call fcn.005cd3aa
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x5cd2bb
push dword [ebp - 0x25c]
jmp 0x5cd268
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x5cd2f8
cmp word [ebp - 0x226], 0
je 0x5cd319
cmp word [ebp - 0x226], ax
jne 0x5cd2f8
cmp word [ebp - 0x224], 0
je 0x5cd319
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.005cd157
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x5cd365
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x5cd2d2
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x5cd34d
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x5cd372
push 0x5ccf87
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.005d5960
add esp, 0x10
jmp 0x5cd342
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0058fc43
leave
ret

Function at 0x5cdcf9
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x5cdd0a
pop esi
ret
push ebx
push edi
push esi
call fcn.005cdcc2
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.005c7784
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x5cdd32
push ebx
push esi
push edi
call fcn.005aa940
add esp, 0xc
push 0
call fcn.005c6d8b
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x5ce0f6
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.005cdd47
Function at 0x5d62e8
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.005d6264
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x5d6460
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x5d6460
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x5d640f
jg 0x5d6341
test eax, eax
je 0x5d6405
push 1
push 0x1000
call fcn.005c6d2e
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x5d6367
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x5d63fc
push 0x8000
push ebx
call fcn.005c1a07
mov edi, dword [ebp + 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x5d6393
jg 0x5d638e
cmp ecx, 0x1000
jb 0x5d6393
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.005cb805
add esp, 0x10
cmp eax, 0xffffffff
je 0x5d63d8
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x5d638e
jl 0x5d63bf
test ecx, ecx
jne 0x5d6380
push dword [ebp - 0xc]
push ebx
call fcn.005c1a07
push esi
call fcn.005c6d8b
add esp, 0xc
xor edi, edi
jmp 0x5d6471
cmp byte [edi + 0x24], 0
je 0x5d63ef
cmp dword [edi + 0x20], 5
jne 0x5d63ef
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x5d63fa
mov edi, dword [edi + 0x18]
jmp 0x5d63fc
xor edi, edi
push esi
call fcn.005c6d8b
pop ecx
jmp 0x5d6471
test ecx, ecx
jg 0x5d63d1
jl 0x5d640f
test eax, eax
jae 0x5d63d1
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.005c94f5
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x5d6432
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x5d63d1
jmp 0x5d6469
push ebx
call fcn.005c072c
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x5d63d1
mov esi, dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [esi + 0x24], 1
mov dword [esi + 0x20], eax
pop edi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x18], edi
jmp 0x5d6471
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x5d646e
mov edi, dword [edi + 0x18]
jmp 0x5d6471
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.005c94f5
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x5d6a10
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x5d6a3d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x5d6a3d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x401ca5
Capabilities:
Get file version info

Disassembly:
push 0x244
mov eax, 0x4b2179
call fcn.004a6df1
mov ebx, edx
mov edi, ecx
xor ecx, ecx
mov dword [ebp - 0x21c], 7
xor eax, eax
mov dword [ebp - 0x250], ecx
mov dword [ebp - 0x220], ecx
mov word [ebp - 0x230], ax
mov dword [ebp - 4], ecx
test ebx, ebx
je 0x401e59
push 1
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
mov dword [ebp - 0x24c], eax
xor ecx, ecx
lea eax, [ebp - 0x234]
mov dword [ebp - 0x234], ecx
push eax
push ebx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov dword [ebp - 0x248], eax
test eax, eax
je 0x401e3d
push eax
call fcn.004a594a
mov esi, eax
pop ecx
mov dword [ebp - 0x238], esi
mov byte [ebp - 4], 1
test esi, esi
je 0x401e3d
push esi
push dword [ebp - 0x248]
xor eax, eax
push eax
push ebx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x401e35
mov ebx, dword [sym.imp.VERSION.dll_VerQueryValueW]
xor eax, eax
mov dword [ebp - 0x240], eax
mov dword [ebp - 0x23c], eax
lea eax, [ebp - 0x23c]
push eax
lea eax, [ebp - 0x240]
push eax
push str.VarFileInfoTranslation
push esi
call ebx
test eax, eax
je 0x401e35
cmp dword [ebp - 0x23c], 4
jb 0x401e35
mov ecx, dword [ebp - 0x240]
push 0x4c4404
movzx eax, word [ecx + 2]
push eax
movzx eax, word [ecx]
push eax
lea eax, [ebp - 0x218]
push str.StringFileInfo_04x_04x_s
push eax
call fcn.00403d37
add esp, 0x14
xor eax, eax
mov dword [ebp - 0x244], eax
lea eax, [ebp - 0x23c]
push eax
lea eax, [ebp - 0x244]
push eax
lea eax, [ebp - 0x218]
push eax
push esi
call ebx
test eax, eax
je 0x401e35
mov ebx, dword [ebp - 0x244]
test ebx, ebx
je 0x401e35
mov eax, dword [ebp - 0x23c]
test eax, eax
je 0x401e35
xor ecx, ecx
cmp word [ebx + eax*2 - 2], cx
jne 0x401df9
dec eax
mov dword [ebp - 0x23c], eax
cmp dword [ebp - 0x21c], 8
lea edx, [ebx + eax*2]
mov eax, dword [ebp - 0x220]
lea ecx, [ebp - 0x230]
cmovae ecx, dword [ebp - 0x230]
push edx
push ebx
lea eax, [ecx + eax*2]
lea ecx, [ebp - 0x230]
cmovae ecx, dword [ebp - 0x230]
push eax
push ecx
lea ecx, [ebp - 0x230]
call fcn.0040319b
push esi
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete___void__]
pop ecx
push dword [ebp - 0x24c]
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
lea eax, [ebp - 0x230]
mov ecx, edi
push eax
call fcn.00402d89
jmp 0x401e65
push 0x4c431c
mov ecx, edi
call fcn.00402d59
xor eax, eax
lea ecx, [ebp - 0x230]
push eax
push 1
call fcn.004032eb
mov eax, edi
call fcn.004a6da0
ret