joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a3e40
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x22c
mov ebx, dword [ebp + 8]
call sub.msvcrt.dll__errno
test ebx, ebx
mov dword [eax], 0
je 0x4a3fd3
cmp word [ebx], 0
je 0x4a3fa0
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
sub esp, 4
cmp eax, 0xffffffff
je 0x4a3fb5
test al, 0x10
je 0x4a3fa0
lea esi, [ebp - 0x220]
mov dword [esp + 4], ebx
mov dword [esp + 8], 0x104
mov dword [esp], esi
call sub.msvcrt.dll__wfullpath
mov dword [esp], esi
call sub.msvcrt.dll_wcslen
mov dword [esp], 0x54d4c0
mov edi, eax
call sub.msvcrt.dll_wcslen
mov dword [esp], 0x54d4c4
mov ebx, eax
call sub.msvcrt.dll_wcslen
lea edx, [edi + ebx + 0x21d]
add eax, edx
add eax, eax
mov dword [esp], eax
call sub.msvcrt.dll_malloc
test eax, eax
mov ebx, eax
je 0x4a3fc4
lea edi, [eax + 0x434]
mov dword [esp + 4], esi
mov dword [esp], edi
call sub.msvcrt.dll_wcscpy
cmp word [ebx + 0x434], 0
jne 0x4a3f60
mov dword [esp], edi
mov dword [esp + 4], 0x54d4c4
call sub.msvcrt.dll_wcscat
xor edx, edx
xor eax, eax
mov word [ebx + 0x222], dx
lea edx, [ebx + 0x224]
mov ecx, 0x41
mov word [ebx + 0x220], ax
mov edi, edx
xor eax, eax
mov dword [ebx + 0x42c], 0xffffffff
mov dword [ebx + 0x430], 0
mov dword [ebx + 0x21c], 0
rep stosd dword es:[edi], eax
mov eax, ebx
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], edi
call sub.msvcrt.dll_wcslen
cmp word [ebx + eax*2 + 0x432], 0x2f
je 0x4a3f00
mov dword [esp], edi
call sub.msvcrt.dll_wcslen
cmp word [ebx + eax*2 + 0x432], 0x5c
je 0x4a3f00
mov dword [esp + 4], 0x54d4c0
mov dword [esp], edi
call sub.msvcrt.dll_wcscat
jmp 0x4a3f00
call sub.msvcrt.dll__errno
mov dword [eax], 0x14
lea esp, [ebp - 0xc]
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
call sub.msvcrt.dll__errno
mov dword [eax], 2
xor eax, eax
jmp 0x4a3f53
call sub.msvcrt.dll__errno
mov dword [eax], 0xc
xor eax, eax
jmp 0x4a3f53
call sub.msvcrt.dll__errno
mov dword [eax], 0xe
xor eax, eax
jmp 0x4a3f53
Function at 0x4e7d10
Capabilities:
Read file on windows

Disassembly:
push ebp
push edi
mov edi, ecx
push esi
push ebx
sub esp, 0x1c
mov esi, dword [esp + 0x30]
mov ebx, dword [esp + 0x34]
mov ecx, edi
call fcn.004e7b90
mov dword [esp + 8], ebx
mov dword [esp + 4], esi
mov dword [esp], eax
call sub.msvcrt.dll__read
cmp eax, 0xffffffff
mov ebp, eax
je 0x4e7d50
add esp, 0x1c
mov eax, ebp
pop ebx
pop esi
pop edi
pop ebp
ret 8
call dword [sym.imp.msvcrt.dll__errno]
cmp dword [eax], 4
je 0x4e7d21
add esp, 0x1c
mov eax, ebp
pop ebx
pop esi
pop edi
pop ebp
ret 8

Function at 0x50c8a0
Capabilities:
Encode data using xor
Hash data using murmur2

Disassembly:
push edi
push esi
push ebx
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
xor eax, edi
cmp edi, 3
jbe 0x50c92f
lea ecx, [edi - 4]
shr ecx, 2
lea esi, [edx + ecx*4 + 4]
imul ebx, dword [edx], 0x5bd1e995
add edx, 4
mov ecx, ebx
shr ecx, 0x18
xor ecx, ebx
imul ebx, eax, 0x5bd1e995
imul eax, ecx, 0x5bd1e995
xor eax, ebx
cmp edx, esi
jne 0x50c8c0
and edi, 3
cmp edi, 2
je 0x50c919
cmp edi, 3
je 0x50c910
cmp edi, 1
je 0x50c922
mov edx, eax
shr edx, 0xd
xor edx, eax
imul edx, edx, 0x5bd1e995
pop ebx
pop esi
pop edi
mov eax, edx
shr eax, 0xf
xor eax, edx
ret
movzx edx, byte [esi + 2]
shl edx, 0x10
xor eax, edx
movzx edx, byte [esi + 1]
shl edx, 8
xor eax, edx
movzx edx, byte [esi]
xor edx, eax
imul eax, edx, 0x5bd1e995
jmp 0x50c8f4
mov esi, edx
jmp 0x50c8e5
Function at 0x408fa7
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x48b51c
cmp edx, dword [eax]
je 0x408fc9
add eax, 8
inc ecx
cmp eax, 0x48b5ac
jl 0x408fba
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x48b51c]
jne 0x4090f7
mov eax, dword [0x4931c8]
cmp eax, 1
je 0x4090d1
test eax, eax
jne 0x408ffa
cmp dword [0x48b388], 1
je 0x4090d1
cmp edx, 0xfc
je 0x4090f7
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.kernel32.dll_GetModuleFileNameA]
test eax, eax
jne 0x409031
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004042a0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004014c0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x409074
lea eax, [ebp - 0x1a4]
push eax
call fcn.004014c0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x47d7c0
push edi
call fcn.00408350
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004042a0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004042b0
lea eax, [ebp - 0xa0]
push 0x47d7a0
push eax
call fcn.004042b0
push dword [esi + 0x48b520]
lea eax, [ebp - 0xa0]
push eax
call fcn.004042b0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0040153b
add esp, 0x2c
pop edi
jmp 0x4090f7
lea eax, [ebp + 8]
lea esi, [esi + 0x48b520]
push 0
push eax
push dword [esi]
call fcn.004014c0
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 0x40c357
Capabilities:
Resolve function by parsing pe exports

Disassembly:
cmp eax, dword [ebp + 0x24]
jle 0x40f2fd
mov dword [0x48938c], ebx
mov eax, dword [ebp + 4]
mov dword [ebp + 0x1c], eax
mov eax, dword [esp + 0x4ec]
mov dword [0x489b14], eax
mov eax, dword [esp + 0x46c]
mov dword [0x489b24], eax
mov ecx, dword [0x489b40]
mov ebx, edi
mov edi, dword [0x489b34]
mov eax, dword [0x489b44]
add ebp, 0x3c
add esp, 0x38
jmp fcn.0040c853
mov dword [0x489a88], ebx
mov dword [ebp - 0x1c], edx
mov edx, dword [0x489b38]
mov edx, dword [edx + eax*4]
add edx, dword [0x48957c]
mov dword [ebp - 0x20], 0
push 4
push edx
push dword [0x48939c]
call fcn.0040f299
pop ebx
pop esi
pop edi
xor eax, eax
dec eax
add esp, 8
ret 8

Function at 0x40c5f0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov dword [0x489b40], eax
xor eax, eax
push 4
push 8
call fcn.0040c357
pop ebx
pop edi
pop ebp
ret 4
mov dword [ebp - 0xc], esi
mov esi, dword [eax]
xor esi, dword [ebx]
mov dword [0x489b44], ebx
mov ebx, dword [0x48938c]
test esi, ebx
je 0x40c4e4
mov dword [ebp - 8], ecx
lea ecx, [0x4007aa]
movzx esi, si
sub esi, dword [ebp + 0x18]
cmp esi, dword [ebp + 0x10]
jl fcn.0040c765
mov ecx, dword [ebp + 4]
mov dword [ebp + 0x1c], ecx
mov ecx, dword [esp + 0x4e0]
mov dword [0x489b14], ecx
mov ecx, dword [esp + 0x460]
mov dword [0x489b24], ecx
mov ecx, eax
mov eax, dword [0x489b44]
mov ebx, edi
mov edi, dword [0x489b34]
add ebp, 0x3c
add esp, 0x2c
jmp fcn.0040c853
Function at 0x40d075
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov edx, dword [esi + 0x47da44]
lea esi, [esi + 4]
lea ebx, [ebx + 4]
mov dword [ebp - 0x88], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebx + eax], edx
add ebx, 4
mov eax, dword [ebp - 0x88]
mov dword [ebp - 0x4c], eax
mov eax, ebx
mov ebx, dword [ebp - 0x78]
mov ecx, dword [0x489814]
mov edx, dword [ebp - 0x70]
add esp, 0x1c
jmp fcn.0040d1cf
Function at 0x40f22b
Capabilities:
Resolve function by parsing pe exports

Disassembly:
and dword [ebp - 0x20], 0x7fffffff
cmp dword [ebp - 0x20], esi
je 0x40c7c9
inc dword [0x489b48]
mov eax, dword [0x489b48]
mov edx, dword [ebp - 0x1c]
add esp, 0x20
jmp fcn.0040c357
mov esi, dword [ebp - 0xc]
mov dword [0x489b54], edi
mov edi, dword [0x489b48]
mov eax, dword [esi + edi*2]
movzx eax, ax
mov dword [ebp - 8], ecx
mov edi, dword [0x489b54]
mov esi, eax
mov eax, dword [0x489b40]
mov edx, dword [ebp - 0x1c]
add esp, 0x2c
jmp fcn.0040c765
test eax, eax
je 0x40c3a7
mov dword [0x489b2c], eax
mov dword [0x489b3c], ecx
mov eax, dword [ebp - 0x20]
mov ecx, dword [esp + 0x644]
mov dword [ebp - 0x38], eax
rol eax, cl
mov dword [0x489b30], edx
mov edx, dword [0x489b2c]
sub edx, dword [0x489534]
add eax, edx
ret 0xc
Function at 0x41c500
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
cmp dword [0x427850], 0
jne 0x41c581
cmp dword [0x427870], 0
jne 0x41c530
call sub.KERNEL32.DLL_GetEnvironmentStrings
mov dword [0x427870], eax
test eax, eax
jne 0x41c530
push str.GetEnvironmentStrings_failed
call fcn.0041bd1c
pop ecx
xor ebp, ebp
xor esi, esi
mov ebx, dword [0x427870]
jmp 0x41c544
lea eax, [edi + 1]
inc esi
add ebp, eax
add ebx, eax
push ebx
call fcn.004168a4
pop ecx
mov edi, eax
test eax, eax
jne 0x41c53c
lea edi, [ebp + 1]
push edi
call fcn.004161a8
pop ecx
mov ebx, eax
mov dword [0x427854], ebx
test ebx, ebx
jne 0x41c56e
xor eax, eax
jmp 0x41c644
push edi
mov edx, dword [0x427870]
push edx
push ebx
call fcn.00416754
add esp, 0xc
jmp 0x41c5a1
xor esi, esi
mov ebx, dword [0x427850]
jmp 0x41c59b
push eax
call fcn.004168a4
pop ecx
test eax, eax
jne 0x41c597
dec esi
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x41c58b
lea ebx, [esi + 4]
push 4
mov dword [0x427858], ebx
inc ebx
push ebx
call fcn.00415c80
add esp, 8
test eax, eax
mov dword [esp], eax
jne 0x41c5c4
xor eax, eax
jmp 0x41c644
cmp dword [0x427850], 0
jne 0x41c5f5
xor esi, esi
mov ebx, dword [0x427854]
mov eax, dword [esp]
mov ebp, eax
jmp 0x41c5e6
mov dword [ebp], ebx
add ebp, 4
inc esi
inc edi
add ebx, edi
push ebx
call fcn.004168a4
pop ecx
mov edi, eax
test eax, eax
jne 0x41c5dc
jmp 0x41c626
xor esi, esi
mov ebx, dword [0x427850]
mov eax, dword [esp]
mov edi, eax
jmp 0x41c620
push eax
call fcn.004168a4
pop ecx
test eax, eax
je 0x41c615
mov eax, dword [ebx]
mov dword [edi], eax
jmp 0x41c619
dec esi
add edi, 0xfffffffc
add edi, 4
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x41c604
mov eax, dword [0x427850]
test eax, eax
je 0x41c636
push eax
call fcn.004161b8
pop ecx
mov edx, dword [esp]
mov eax, 1
mov dword [0x427850], edx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x4026e0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
stc
or eax, 0x8b7b2238
push edx
adc byte [ebx - 0x146fc3be], cl
or eax, dword [esi]
mov byte [0x3c6e49f4], al
clc
push ss
jo 0x4026d1
test byte [ecx], 0xd0

Function at 0x408db0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
leave
test dword [ebx], eax
invalid
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
nop
nop
push 4
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
cmp eax, 0
nop
nop
je 0x430072
nop
nop
nop
nop
mov ebx, 0x408ecc
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x515d56e5
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x430060
nop
nop
nop
nop
mov eax, section..data
nop
nop
cmp eax, 0
nop
nop
nop
je 0x4300d2
nop
nop
nop
nop
mov ebx, 0x42e1d0
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
push eax
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x42194b42
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
loop 0x4300c0
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x403d60
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 8]
test ecx, ecx
jne 0x403d82
push edx
push str._s__none__s
push dword [0x4ebe14]
call fcn.00401240
add esp, 0x10
pop esi
pop ebp
ret
test ecx, 0x80000
mov esi, 0x4df484
mov eax, str._utf
cmove eax, esi
test ecx, 0x800000
push eax
mov eax, str._use_offset_limit
cmove eax, esi
test ecx, 0x40000
push eax
mov eax, str._ungreedy
cmove eax, esi
test ecx, 0x20000
push eax
mov eax, str._ucp
cmove eax, esi
test ecx, 0x10000
push eax
mov eax, str._no_start_optimize
cmove eax, esi
test ecx, 0x40000000
push eax
mov eax, str._no_utf_check
cmove eax, esi
test ecx, 0x8000
push eax
mov eax, str._no_dotstar_anchor
cmove eax, esi
test ecx, 0x4000
push eax
mov eax, str._no_auto_possess
cmove eax, esi
test ecx, 0x2000
push eax
mov eax, str._no_auto_capture
cmove eax, esi
test ecx, 0x1000
push eax
mov eax, str._never_utf
cmove eax, esi
test ecx, 0x800
push eax
mov eax, str._never_ucp
cmove eax, esi
test ecx, 0x100000
push eax
mov eax, str._never_backslash_c
cmove eax, esi
test ecx, 0x400
push eax
mov eax, str._multiline
cmove eax, esi
test ecx, 0x200
push eax
mov eax, str._match_unset_backref
cmove eax, esi
test ecx, 0x4000000
push eax
mov eax, str._match_invalid_utf
cmove eax, esi
test ecx, 0x2000000
push eax
mov eax, str._literal
cmove eax, esi
test ecx, 0x100
push eax
mov eax, str._firstline
cmove eax, esi
test ecx, 0x1000000
push eax
mov eax, str._extended_more
cmove eax, esi
test cl, 0x80
push eax
mov eax, str._extended
cmove eax, esi
test ecx, 0x20000000
push eax
mov eax, str._endanchored
cmove eax, esi
push eax
test cl, 0x40
mov eax, str._dupnames
cmove eax, esi
test cl, 0x20
push eax
mov eax, str._dotall
cmove eax, esi
test cl, 0x10
push eax
mov eax, str._dollar_endonly
cmove eax, esi
test cl, 8
push eax
mov eax, str._caseless
cmove eax, esi
test cl, 4
push eax
mov eax, str._auto_callout
cmove eax, esi
test ecx, ecx
push eax
mov eax, str._anchored
cmovns eax, esi
test cl, 1
push eax
mov eax, str._allow_empty_class
cmove eax, esi
test ecx, 0x400000
push eax
mov eax, str._alt_verbnames
cmove eax, esi
test ecx, 0x200000
push eax
mov eax, str._alt_circumflex
cmove eax, esi
test cl, 2
push eax
mov eax, str._alt_bsux
cmove eax, esi
push eax
push edx
push str._s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s
push dword [0x4ebe14]
call fcn.00401240
add esp, 0x88
pop esi
pop ebp
ret
Function at 0x40d500
Capabilities:
Check os version
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2d4
mov eax, dword [0x4e7544]
xor eax, ebp
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp ax, 6
je 0x40d549
push str.SetDefaultDllDirectories
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40d549
push 0xc00
call eax
test eax, eax
jne 0x40d5de
push 0x106
lea eax, [ebp - 0x2d4]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov ecx, eax
test ecx, ecx
je 0x40d5de
cmp ecx, 0x104
ja 0x40d5de
cmp word [ebp + ecx*2 - 0x2d6], 0x5c
je 0x40d582
mov eax, 0x5c
mov word [ebp + ecx*2 - 0x2d4], ax
inc ecx
mov al, byte [str.userenv]
push esi
mov esi, str.userenv
test al, al
je 0x40d5dd
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push edi
lea edi, [ebp - 0x2d4]
lea edi, [edi + ecx*2]
mov ecx, edi
inc esi
movzx eax, al
lea ecx, [ecx + 2]
mov word [ecx - 2], ax
mov al, byte [esi]
inc esi
test al, al
jne 0x40d5a5
xor eax, eax
mov dword [ecx], 0x64002e
push 8
push eax
mov word [ecx + 8], ax
lea eax, [ebp - 0x2d4]
push eax
mov dword [ecx + 4], 0x6c006c
call ebx
mov al, byte [esi]
test al, al
jne 0x40d5a2
pop edi
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047be9b
mov esp, ebp
pop ebp
ret
Function at 0x412bb0
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edx, dword [esi + 8]
and edx, 0x3f
mov byte [edx + esi + 0x40], 0x80
inc edx
cmp edx, 0x38
jbe 0x412bfb
cmp edx, 0x40
je 0x412be7
mov eax, 0x40
lea ecx, [esi + 0x40]
sub eax, edx
add ecx, edx
push eax
push 0
push ecx
call fcn.0047d540
add esp, 0xc
mov eax, dword [esi]
lea edi, [esi + 0x40]
lea ebx, [esi + 0x20]
mov edx, edi
push 1
mov ecx, ebx
call eax
xor edx, edx
jmp 0x412c01
lea edi, [esi + 0x40]
lea ebx, [esi + 0x20]
mov eax, 0x38
sub eax, edx
push eax
lea eax, [esi + 0x40]
add eax, edx
push 0
push eax
call fcn.0047d540
mov ecx, dword [esi + 8]
add esp, 0xc
mov eax, dword [esi + 0xc]
mov edx, edi
shld eax, ecx, 3
shl ecx, 3
bswap eax
bswap ecx
mov dword [esi + 0x78], eax
mov eax, dword [esi]
mov dword [esi + 0x7c], ecx
mov ecx, ebx
push 1
call eax
mov edi, dword [ebp + 0xc]
mov edx, ebx
mov ebx, 4
mov ecx, dword [edx + 4]
lea edi, [edi + 8]
mov eax, dword [edx]
lea edx, [edx + 8]
bswap eax
mov dword [edi - 8], eax
bswap ecx
mov dword [edi - 4], ecx
sub ebx, 1
jne 0x412c44
pop edi
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x20], 0x6a09e667
mov dword [esi + 0x24], 0xbb67ae85
mov dword [esi + 0x28], 0x3c6ef372
mov dword [esi + 0x2c], 0xa54ff53a
mov dword [esi + 0x30], 0x510e527f
mov dword [esi + 0x34], 0x9b05688c
mov dword [esi + 0x38], 0x1f83d9ab
mov dword [esi + 0x3c], 0x5be0cd19
pop esi
pop ebx
pop ebp
ret 8

Function at 0x412cb0
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, dword [0x4e7020]
mov dword [ecx], eax
mov dword [ecx + 8], 0
mov dword [ecx + 0xc], 0
mov dword [ecx + 0x20], 0x6a09e667
mov dword [ecx + 0x24], 0xbb67ae85
mov dword [ecx + 0x28], 0x3c6ef372
mov dword [ecx + 0x2c], 0xa54ff53a
mov dword [ecx + 0x30], 0x510e527f
mov dword [ecx + 0x34], 0x9b05688c
mov dword [ecx + 0x38], 0x1f83d9ab
mov dword [ecx + 0x3c], 0x5be0cd19
pop ebp
ret 4

Function at 0x4130f0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push 0
push 0
call fcn.004821b2
mov ecx, dword [ebp + 8]
add esp, 0x18
mov dword [ecx], eax
test eax, eax
je 0x41311d
xor eax, eax
mov esp, ebp
pop ebp
ret 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
mov ecx, 1
cmovne ecx, eax
mov eax, ecx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x416290
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x4ead90], 0
jne 0x4162c8
push esi
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.00414950
push 0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.0047c0dc
add esp, 4
test esi, esi
pop esi
jmp 0x4162d5
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x4162df
mov al, 1
mov esp, ebp
pop ebp
ret 4
xor al, al
mov esp, ebp
pop ebp
ret 4
Function at 0x416560
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, dword [ebp + 8]
push esi
call fcn.00417850
cmp eax, 0xffffffff
je 0x41658d
mov ecx, eax
and cl, 0x11
cmp cl, 1
jne 0x41658d
and eax, 0xfffffffe
push eax
push esi
call fcn.00416cb0
test al, al
je 0x4165cc
cmp byte [0x4ead90], 0
push esi
jne 0x4165b9
lea eax, [ebp - 0xc]
push eax
call fcn.00414950
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.0047c0dc
add esp, 4
test esi, esi
jmp 0x4165c1
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x4165cc
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret 4
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x4165e0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4994db
mov eax, dword fs:[0]
push eax
sub esp, 0x360
mov eax, dword [0x4e7544]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
xor ecx, ecx
mov eax, dword [edi]
mov dword [edi + 4], 0
mov word [eax], cx
cmp byte [0x4ead90], cl
jne 0x41668c
lea eax, [ebp - 0x128]
mov byte [ebp - 0x128], cl
push eax
push 0x114
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x416768
cmp eax, 0x114
jae 0x416768
lea eax, [ebp - 0x128]
mov byte [ebp - 0x14], 0
push eax
lea eax, [ebp - 0x36c]
push eax
call fcn.00414920
push eax
mov ecx, edi
mov dword [ebp - 4], 0
call fcn.004138f0
push dword [ebp - 0x36c]
call fcn.0047c0dc
add esp, 4
mov al, 1
jmp 0x41676a
xor eax, eax
mov word [ebp - 0x354], ax
lea eax, [ebp - 0x354]
push eax
push 0x114
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov esi, eax
test esi, esi
je 0x416768
cmp esi, 0x114
jae 0x4166d7
xor eax, eax
mov ecx, edi
mov word [ebp - 0x12c], ax
lea eax, [ebp - 0x354]
push eax
call fcn.00413a70
mov al, 1
jmp 0x41676a
lea ecx, [ebp - 0x360]
call fcn.00413860
mov dword [ebp - 4], 1
cmp esi, dword [ebp - 0x358]
jbe 0x4166fd
push esi
lea ecx, [ebp - 0x360]
call fcn.004141c0
push dword [ebp - 0x360]
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov edx, eax
test edx, edx
je 0x41675a
mov ecx, dword [ebp - 0x360]
xor eax, eax
mov word [ecx + esi*2], ax
cmp word [ecx], ax
je 0x416729
inc eax
cmp word [ecx + eax*2], 0
jne 0x416721
mov dword [ebp - 0x35c], eax
cmp eax, edx
jne 0x41675a
lea eax, [esi - 1]
cmp eax, edx
jne 0x41675a
lea eax, [ebp - 0x360]
mov ecx, edi
push eax
call fcn.004138f0
push dword [ebp - 0x360]
call fcn.0047c0dc
add esp, 4
mov al, 1
jmp 0x41676a
push dword [ebp - 0x360]
call fcn.0047c0dc
add esp, 4
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0047be9b
mov esp, ebp
pop ebp
ret 4
Function at 0x4167f0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x499520
mov eax, dword fs:[0]
push eax
sub esp, 0x354
mov eax, dword [0x4e7544]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp byte [0x4ead90], 0
mov esi, dword [ebp + 8]
jne 0x41687d
lea eax, [ebp - 0x128]
mov byte [ebp - 0x128], 0
push eax
push 0x114
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov edi, eax
lea eax, [ebp - 0x128]
push eax
lea eax, [ebp - 0x360]
push eax
call fcn.00414920
push eax
mov ecx, esi
mov dword [ebp - 4], 0
call fcn.004138f0
push dword [ebp - 0x360]
mov dword [ebp - 4], 0xffffffff
call fcn.0047c0dc
add esp, 4
jmp 0x4168a8
xor eax, eax
mov word [ebp - 0x354], ax
lea eax, [ebp - 0x354]
push eax
push 0x114
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov edi, eax
mov ecx, esi
lea eax, [ebp - 0x354]
push eax
call fcn.00413a70
push esi
call fcn.004186b0
test edi, edi
je 0x4168be
cmp edi, 0x114
jae 0x4168be
mov al, 1
jmp 0x4168c0
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0047be9b
mov esp, ebp
pop ebp
ret 4

Function at 0x416910
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x4ead90], 0
jne 0x416946
push esi
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.00414950
push dword [eax]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.0047c0dc
add esp, 4
test esi, esi
pop esi
jmp 0x416951
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x41695b
mov al, 1
mov esp, ebp
pop ebp
ret 4
xor al, al
mov esp, ebp
pop ebp
ret 4