joyce8/EMBER2024-capa huggingface dataset:
Function at 0x599d94
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x604e50]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x599dda
cmp word [ebx], dx
jne 0x599dda
or byte [eax + edi + 0x28], 4
jmp 0x599ddf
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x599f42
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x599f22
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x599e20
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x599e56
cmp eax, edx
jae 0x599e64
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
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 - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x599dfb
jmp 0x599f42
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x599f1d
cmp dword [ebp - 0x18], 0
je 0x599f1d
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x604e50]
test byte [eax + edi + 0x28], 0x48
je 0x599ef3
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x599eb7
mov word [esi], cx
jmp 0x599eee
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x604e50]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x604e50]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x604e50]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x599f42
pop eax
cmp word [ebp - 4], ax
jne 0x599f03
cmp esi, ebx
jne 0x599f03
mov word [esi], ax
jmp 0x599f3f
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0059a9cf
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x599f42
push 0xd
pop eax
jmp 0x599efe
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x604e50]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x599f3c
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x599f42
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x59de3c
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x5f6eb4]
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 0x59de87
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0059dfd7
test al, al
jne 0x59de81
sub edx, 2
cmp edx, edi
jne 0x59de67
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x59dea9
lea eax, [edi + 2]
cmp edx, eax
je 0x59dea9
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0059dd88
add esp, 0x10
jmp 0x59dfa3
push esi
lea ecx, [ebp - 0x255]
call fcn.0059dfd7
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 0x59deec
push dword [ebp - 0x25c]
jmp 0x59de99
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 0x59df29
cmp word [ebp - 0x226], 0
je 0x59df4a
cmp word [ebp - 0x226], ax
jne 0x59df29
cmp word [ebp - 0x224], 0
je 0x59df4a
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0059dd88
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x59df96
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x59df03
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x59df7e
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x59dfa3
push 0x59dbb8
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.005a4920
add esp, 0x10
jmp 0x59df73
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.0057be84
leave
ret
Function at 0x59e8b9
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x59e956
push ebx
push esi
call fcn.0059e882
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0059b273
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x59e903
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x59e955
push edi
push eax
call fcn.00595f17
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x59e923
call fcn.00595edd
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x59e954
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0059b273
add esp, 0x20
test eax, eax
jne 0x59e942
push edi
call fcn.00595edd
jmp 0x59e94a
push ebx
call fcn.00595edd
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x59e959
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x59e96a
pop esi
ret
push ebx
push edi
push esi
call fcn.0059e882
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00595f17
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x59e992
push ebx
push esi
push edi
call fcn.0057c750
add esp, 0xc
push 0
call fcn.00595edd
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x59f0ec
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0059ec07

Function at 0x5a1058
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.00595bf2
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x5a10c7
cmp esi, dword [ebp - 4]
je 0x5a10c2
cmp dword [ebp + 0xc], 0
je 0x5a10c2
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x5a109f
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.005a0baa
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x5a10c9
xor eax, eax
inc eax
jmp 0x5a10c9
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x5a112e
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x5f6eb4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.00595bf2
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.00595bf2
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x5a11a5
cmp word [ecx], dx
je 0x5a11a5
mov eax, dword [0x5cae0c]
push edi
dec eax
push eax
push 0x5cacf8
call fcn.005a10cd
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x5a1218
cmp word [eax], dx
je 0x5a1218
mov eax, dword [edi]
test eax, eax
je 0x5a11c9
cmp word [eax], dx
je 0x5a11c9
lea eax, [ebp - 0x10]
push eax
call fcn.005a0ab0
jmp 0x5a11d2
lea eax, [ebp - 0x10]
push eax
call fcn.005a0b4b
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x5a1242
mov eax, dword [0x5cacf4]
push dword [ebp - 0x14]
dec eax
push eax
push 0x5ca9e8
call fcn.005a10cd
add esp, 0xc
test al, al
je 0x5a1242
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x5a120d
cmp word [eax], di
je 0x5a120d
lea eax, [ebp - 0x10]
push eax
call fcn.005a0ab0
pop ecx
jmp 0x5a1244
lea eax, [ebp - 0x10]
push eax
call fcn.005a0b4b
jmp 0x5a120a
mov eax, dword [edi]
test eax, eax
je 0x5a122f
cmp word [eax], dx
je 0x5a122f
lea eax, [ebp - 0x10]
push eax
call fcn.005a0a65
pop ecx
jmp 0x5a1242
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x5a130d
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.005a0f52
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x5a130d
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x5a130d
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x5a130d
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x5a129a
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.005985ab
test ebx, ebx
je 0x5a1308
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.005985ab
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x5a130d
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x5a130d
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.005a4f8d
add esp, 0x10
xor eax, eax
inc eax
jmp 0x5a130f
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0057be84
leave
ret
Function at 0x5a45e0
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x5f6eb4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp eax, 0x1a
jbe 0x5a4623
call fcn.00581132
mov dword [eax], 0xf
call fcn.00581145
mov dword [eax], 0xd
call fcn.00581047
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0057be84
leave
ret
test eax, eax
jne 0x5a462a
inc eax
jmp 0x5a4617
add eax, 0x40
push 0x3a
mov word [ebp - 0xc], ax
pop eax
mov word [ebp - 0xa], ax
push 0x5c
pop eax
mov word [ebp - 8], ax
xor eax, eax
mov word [ebp - 6], ax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov ecx, eax
test ecx, ecx
je 0x5a4615
xor eax, eax
cmp ecx, 1
setne al
jmp 0x5a4617
Function at 0x5a5625
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]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.005a55a1
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x5a5794
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x5a5794
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x5a5749
jg 0x5a5681
test eax, eax
je 0x5a573f
push 1
push 0x1000
call fcn.0059605f
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x5a56a4
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x5a5736
push 0x8000
push ebx
call fcn.0058fe7c
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x5a56cd
jg 0x5a56c8
cmp ecx, 0x1000
jb 0x5a56cd
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.00599639
add esp, 0x10
cmp eax, 0xffffffff
je 0x5a5712
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 0x5a56c8
jl 0x5a56f9
test ecx, ecx
jne 0x5a56ba
push dword [ebp - 0xc]
push ebx
call fcn.0058fe7c
push esi
call fcn.00595edd
add esp, 0xc
xor ebx, ebx
jmp 0x5a57a2
cmp byte [edi + 0x24], 0
je 0x5a5729
cmp dword [edi + 0x20], 5
jne 0x5a5729
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x5a5734
mov ebx, dword [edi + 0x18]
jmp 0x5a5736
xor ebx, ebx
push esi
call fcn.00595edd
pop ecx
jmp 0x5a57a2
test ecx, ecx
jg 0x5a570b
jl 0x5a5749
test eax, eax
jae 0x5a570b
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0059a9cf
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x5a5769
cmp byte [edi + 0x1c], 0
je 0x5a570b
jmp 0x5a579a
push ebx
call fcn.0059cdfa
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x5a570b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x5a57a2
cmp byte [edi + 0x1c], 0
je 0x5a579f
mov ebx, dword [edi + 0x18]
jmp 0x5a57a2
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.0059a9cf
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x5a68a0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x5a68cd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x5a68cd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x401c57
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
pushal
call 0x401c66
pop dword [ebp - 0x44]
mov eax, 0xb63b386
sub eax, 0xb239720
sub dword [ebp - 0x44], eax
mov dword [ebp - 0x54], 0x7a45a17
sub dword [ebp - 0x54], 0xb95214cc
mov dword [ebp - 0x50], 0x53c7e569
add dword [ebp - 0x50], 0xde6b66dc
mov dword [ebp - 0x4c], 0x430b7a20
add dword [ebp - 0x4c], 0x940ca0e
mov dword [ebp - 0x48], 0xbb16fc90
add dword [ebp - 0x48], 0x44e90370
lea eax, [ebp - 0x54]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x44]
call dword [eax]
mov dword [ebp - 0x54], 0x4e50829a
add dword [ebp - 0x54], 0x2621e6bc
mov dword [ebp - 0x50], 0xdbfd35c
sub dword [ebp - 0x50], 0xcc5371e7
mov dword [ebp - 0x4c], 0x656c868c
sub dword [ebp - 0x4c], 0x1fd1a20
mov dword [ebp - 0x48], 0x168dfef7
add dword [ebp - 0x48], 0xe9720109
lea ebx, [ebp - 0x54]
push ebx
push eax
mov eax, 0x82b29104
sub eax, 0x827260d8
add eax, dword [ebp - 0x44]
call dword [eax]
push 0x40
push 0x1000
push 0x3732e
push 0
call eax
mov ecx, 0x51d6b3e0
sub ecx, 0x51d66901
xor edi, edi
add edi, eax
mov ebx, 0x407000
add ebx, dword [ebp - 0x44]
mov esi, 0xf195b1f9
add esi, 0x197a99c8
sub dword [ebp - 0x3c], 0xeb61012a
mov edx, dword [ebx]
add dword [ebp - 0x10], edi
add edx, esi
xor dword [ebp - 0x18], 0xbf849ed6
mov dword [edi], edx
add dword [ebp - 0x34], 0x4df7a0ba
add edi, 0x7dbbe13c
add edi, 0x82441ec8
add ebx, 0x33456887
add ebx, 0xccba977d
loop 0x401d7f
add eax, 0xaef97290
sub eax, 0xaef85441
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0xffaea3b4
add ecx, 0x915c4c
add ecx, dword [ebp - 0x44]
call ebx
leave
ret

Function at 0x401fb2
Capabilities:
Delete file
Move file

Disassembly:
mov ecx, 0x404f28
jmp fcn.0040170c

Function at 0x401ff6
Capabilities:
Check if file exists
Delete directory
Get file attributes

Disassembly:
push esi
mov esi, 0x404f28
push esi
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x402013
push esi
call dword [sym.imp.kernel32.dll_RemoveDirectoryW]
test eax, eax
je 0x402018
push 1
pop eax
pop esi
ret
call fcn.00401fb2
pop esi
ret
Function at 0x10025940
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
pushal
call 0x1002594f
pop dword [ebp - 0x30]
mov eax, 0x1010de79
sub eax, 0xe852a
sub dword [ebp - 0x30], eax
mov dword [ebp - 0x40], 0xffc3a10
sub dword [ebp - 0x40], 0xc1a9f4c5
mov dword [ebp - 0x3c], 0xb0943243
add dword [ebp - 0x3c], 0x819f1a02
mov dword [ebp - 0x38], 0xec4b4b59
sub dword [ebp - 0x38], 0x9fff072b
mov dword [ebp - 0x34], 0x8d57e034
sub dword [ebp - 0x34], 0x8d57e034
lea eax, [ebp - 0x40]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x30]
call dword [eax]
mov dword [ebp - 0x40], 0x5061da91
add dword [ebp - 0x40], 0x24108ec5
mov dword [ebp - 0x3c], 0x1ebe77fb
sub dword [ebp - 0x3c], 0xdd521686
mov dword [ebp - 0x38], 0xc56a2332
sub dword [ebp - 0x38], 0x61fab6c6
mov dword [ebp - 0x34], 0x42179ae6
sub dword [ebp - 0x34], 0x42179ae6
lea ebx, [ebp - 0x40]
push ebx
push eax
mov eax, 0x75ed1b58
sub eax, 0x65e91b28
add eax, dword [ebp - 0x30]
call dword [eax]
push 0x40
push 0x1000
push 0x490a7
push 0
call eax
mov ecx, 0x996be2b4
add ecx, 0x66947030
mov edx, eax
mov esi, 0x10056e00
add esi, dword [ebp - 0x30]
mov ebx, 0xd23c4b59
sub ebx, 0x12eb27cc
mov edi, dword [esi]
xor edi, ebx
xor dword [ebp - 0x20], 0xa0460ccf
mov dword [edx], edi
add dword [ebp - 0x20], 0x183019be
add edx, 0x4a732a1d
add edx, 0xb58cd5e7
add esi, 0x80361234
sub esi, 0x80361230
loop 0x10025a66
add eax, 0xc6081090
sub eax, 0xc606d22d
mov ebx, eax
add eax, 0xca52c328
sub eax, 0xca52c323
mov ecx, 0xb01e3b39
add ecx, 0x5fe1c4c7
add ecx, dword [ebp - 0x30]
call ebx
leave
ret
Function at 0x10031820
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x1004f37c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x10031850
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10038620
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
mov eax, dword [eax]
test eax, eax
je 0x10031880
mov edx, dword [esi + 0x30]
mov edx, dword [edx]
add edx, eax
cmp eax, edx
jae 0x10031880
call dword [sym.imp.MSVCP140.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Pninc_void_]
pop esi
mov byte [eax], bl
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10038620
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
push edi
je 0x1003197a
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x100318a9
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [edi], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x100318dd
push dword [esi + 0x4c]
movsx eax, bl
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10038620
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x28], bl
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x27]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet___char_const___char_const___char_const____char___char___char___const]
test eax, eax
js 0x1003197a
cmp eax, 1
jle 0x1003193b
cmp eax, 3
jne 0x1003197a
push dword [esi + 0x4c]
push dword [ebp - 0x28]
call fcn.10025940
add esp, 8
or ecx, 0xffffffff
test al, al
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10038620
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x10031959
push dword [esi + 0x4c]
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x1003197a
lea eax, [ebp - 0x28]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x30], eax
je 0x1003197a
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10038620
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10038620
mov esp, ebp
pop ebp
ret 4
Function at 0x10036f80
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1003ecf8
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x1004f37c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x1004f338]
cmp eax, 0xffffffff
jne 0x10036fb6
xor ebx, ebx
jmp 0x10036fbf
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov ebx, eax
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], 0
test ebx, ebx
je 0x10036fff
mov eax, dword [ebx + 0x18]
mov esi, dword [ebx + 0xc]
test eax, eax
jne 0x1003703e
test esi, esi
jne 0x10037042
push 0x10035760
push 0x10050e58
call fcn.10025940
mov eax, dword [0x1004f338]
add esp, 8
cmp eax, 0xffffffff
je 0x10036fff
push esi
push eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
mov dword [ebp - 4], 1
test ebx, ebx
je 0x1003702c
or eax, 0xffffffff
lock xadd dword [ebx + 4], eax
jne 0x1003702c
mov eax, dword [ebx]
mov ecx, ebx
push 0
call dword [eax]
push ebx
push 0
call dword [sym.imp.kernel32.dll_GetProcessHeap]
push eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x10037084
mov eax, dword [esi + 4]
mov dword [ebx + 0xc], eax
mov ecx, dword [esi]
test ecx, ecx
je 0x1003706d
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [esi]
mov ecx, edi
push 0
mov eax, dword [edi]
call dword [eax]
push edi
push 0
call dword [sym.imp.kernel32.dll_GetProcessHeap]
push eax
call dword [sym.imp.kernel32.dll_HeapFree]
push esi
push 0
call dword [sym.imp.kernel32.dll_GetProcessHeap]
push eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov esi, dword [ebx + 0xc]
test esi, esi
jne 0x10037042
mov eax, dword [ebx + 0x18]
test eax, eax
je 0x10036fd0
nop
mov esi, dword [ebx + 0x14]
mov esi, dword [esi]
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x100370a9
mov edx, dword [esi + 0x1c]
test edx, edx
je 0x100370a9
mov eax, dword [ecx]
push edx
call dword [eax + 4]
push esi
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebx + 0x14]
call fcn.10025940
mov eax, dword [ebx + 0x18]
test eax, eax
jne 0x10037090
jmp 0x10036fd0

Function at 0x100370d0
Capabilities:
Create thread
Resume thread

Disassembly:
push ebx
push esi
mov esi, ecx
mov edx, dword [esi]
lea eax, [edx + 0x10]
push eax
push 4
push edx
push 0x10037130
push 0
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov ebx, eax
add esp, 0x18
test ebx, ebx
jne 0x100370fa
pop esi
xor al, al
pop ebx
ret
mov eax, dword [esi]
push edi
add eax, 4
lock inc dword [eax]
mov edi, dword [esi]
mov eax, dword [edi + 8]
test eax, eax
je 0x10037118
cmp eax, 0xffffffff
je 0x10037118
push eax
call dword [sym.imp.kernel32.dll_CloseHandle]
mov dword [edi + 8], ebx
mov eax, dword [esi]
push dword [eax + 8]
call dword [sym.imp.kernel32.dll_ResumeThread]
pop edi
pop esi
mov al, 1
pop ebx
ret