joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403084
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x417020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x40311c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4030fc
xor eax, eax
push ebp
push 0x4030f5
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x403138
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4030fc
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x417020]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x417020], ax
mov esp, ebp
pop ebp
ret

Function at 0x403bd4
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x45c044], 0
je 0x403c35
cmp word [0x45c218], 0xd7b2
jne 0x403bfd
cmp dword [0x45c220], 0
jbe 0x403bfd
mov eax, 0x45c214
call dword [0x45c230]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x41706c
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle_1
push eax
call sub.KERNEL32.DLL_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x403c5c
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle_1
push eax
call sub.KERNEL32.DLL_WriteFile_1
pop edx
ret
cmp byte [0x417030], 0
jne 0x403c51
push 0
push 0x417064
push 0x41706c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x4057f0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x405856
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA_1
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.00403fc8
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402c78
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x405840
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40585d
lea eax, [ebp - 0x10]
call fcn.00403d58
ret

Function at 0x409b74
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA
test eax, eax
jle 0x409bad
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403e48
jmp 0x409bb6
mov eax, ebx
mov edx, esi
call fcn.00403dac
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x409bc0
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.KERNEL32.DLL_GetLocaleInfoA
test eax, eax
jle 0x409be1
mov al, byte [esp]
jmp 0x409be3
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40a278
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40a0e0
mov eax, dword [0x45b444]
cmp byte [eax], 0
je 0x40a2f4
mov eax, dword [0x45b364]
call fcn.00402bf4
call fcn.00402a98
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.004074a4
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40a33c
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
jmp 0x40a32a
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x45b33c]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x45c660]
call fcn.00404c4c
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret

Function at 0x40b03c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x40b0a0
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.00403fc8
mov eax, dword [ebp - 0xc]
push eax
call sub.KERNEL32.DLL_GetACP
mov edx, eax
pop eax
call fcn.00407058
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40b0a7
lea eax, [ebp - 0xc]
call fcn.00403d58
ret
Function at 0x4139e0
Capabilities:
Check if file exists
Create process on windows
Get file attributes
Query environment variable

Disassembly:
sub esp, 0x20c
mov eax, dword [0x47cda4]
xor eax, esp
mov dword [esp + 0x208], eax
push 0x104
lea eax, [esp + 4]
push eax
push str._SystemRoot_ehomeehshell.exe
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
jne 0x413a24
xor al, al
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.00417060
add esp, 0x20c
ret
lea ecx, [esp]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x413a0d
push 1
push 0
push 0
lea edx, [esp + 0xc]
push edx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
xor ecx, ecx
cmp eax, 0x20
setg cl
mov al, cl
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.00417060
add esp, 0x20c
ret
Function at 0x417060
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x47cda4]
jne 0x41706a
repz ret
jmp fcn.0041bdf3

Function at 0x427a30
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0041b878
xor ebx, ebx
cmp dword [0x480d3c], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x427b05
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x427a70
xor eax, eax
jmp 0x427bc9
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x427a69
push eax
call fcn.0041b815
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x480d3c], eax
call esi
push eax
call fcn.0041b815
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x480d40], eax
call esi
push eax
call fcn.0041b815
mov dword [0x480d44], eax
lea eax, [ebp - 8]
push eax
call fcn.0041db85
test eax, eax
pop ecx
pop ecx
je 0x427ad3
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00418e52
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x427b05
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.0041b815
cmp eax, ebx
pop ecx
mov dword [0x480d4c], eax
je 0x427b05
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0041b815
pop ecx
mov dword [0x480d48], eax
mov eax, dword [0x480d48]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x427b7e
cmp dword [0x480d4c], esi
je 0x427b7e
push eax
call fcn.0041b881
pop ecx
call eax
cmp eax, ebx
je 0x427b4b
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x480d4c]
call fcn.0041b881
pop ecx
call eax
test eax, eax
je 0x427b4b
test byte [ebp - 0x18], 1
jne 0x427b7e
lea eax, [ebp - 0xc]
push eax
call fcn.0041dbbc
test eax, eax
pop ecx
je 0x427b66
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00418e52
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x427b75
or dword [ebp + 0x10], 0x200000
jmp 0x427baf
or dword [ebp + 0x10], 0x40000
jmp 0x427baf
mov eax, dword [0x480d40]
cmp eax, esi
je 0x427baf
push eax
call fcn.0041b881
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x427baf
mov eax, dword [0x480d44]
cmp eax, esi
je 0x427baf
push dword [ebp - 4]
push eax
call fcn.0041b881
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x480d3c]
call fcn.0041b881
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401000
Capabilities:
Terminate process

Disassembly:
jmp 0x41c77a
push 0x14
push 0x436808
call fcn.0041bc00
push 1
call fcn.0041c365
pop ecx
test al, al
jne 0x41c631
push 7
call fcn.0041ca50
xor bl, bl
mov byte [ebp - 0x19], bl
and dword [ebp - 4], 0
call fcn.0041c330
mov byte [ebp - 0x24], al
mov eax, dword [0x43ec14]
xor ecx, ecx
inc ecx
cmp eax, ecx
je 0x41c62a
test eax, eax
jne 0x41c69b
mov dword [0x43ec14], ecx
push 0x42c2f4
push 0x42c2dc
call fcn.00422c54
pop ecx
pop ecx
test eax, eax
je 0x41c67e
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x41c774
push 0x42c2d8
push 0x42c270
call fcn.00422bf8
pop ecx
pop ecx
mov dword [0x43ec14], 2
jmp 0x41c6a0
mov bl, cl
mov byte [ebp - 0x19], bl
push dword [ebp - 0x24]
call fcn.0041c4bf
pop ecx
call fcn.0041cd3e
mov esi, eax
xor edi, edi
cmp dword [esi], edi
je 0x41c6d0
push esi
call fcn.0041c435
pop ecx
test al, al
je 0x41c6d0
push edi
push 2
push edi
mov esi, dword [esi]
mov ecx, esi
call fcn.0041c784
call esi
call fcn.0041cd44
mov esi, eax
cmp dword [esi], edi
je 0x41c6ee
push esi
call fcn.0041c435
pop ecx
test al, al
je 0x41c6ee
push dword [esi]
call fcn.00422067
pop ecx
call fcn.0041cb6b
movzx eax, ax
push eax
call fcn.00422ba5
push eax
push edi
push 0x400000
call main
mov esi, eax
call fcn.0041cb9e
test al, al
jne 0x41c719
push esi
call fcn.0042209f
test bl, bl
jne 0x41c722
call fcn.00422042
push edi
push 1
call fcn.0041c4dc
pop ecx
pop ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
jmp 0x41c774
call fcn.0041bc46
ret
call fcn.0041cc37
jmp 0x41c612
Function at 0x40119a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov ebx, ecx
mov dword [ebp - 4], edx
mov ecx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
test ecx, ecx
je 0x4011cc
test dl, 3
je 0x4011c9
movzx eax, byte [edx]
xor eax, ebx
shr ebx, 8
movzx eax, al
xor ebx, dword [edi + eax*4]
inc edx
sub ecx, 1
jne 0x4011b0
mov dword [ebp - 4], edx
lea eax, [edx + ecx]
mov dword [ebp + 0xc], eax
cmp ecx, 0xc
jb 0x401298
sub eax, 0xc
mov dword [ebp + 8], eax
xor ebx, dword [edx]
mov edx, dword [edx + 4]
mov eax, edx
shr eax, 8
movzx ecx, al
mov eax, edx
shr eax, 0x10
movzx eax, al
mov esi, dword [edi + ecx*4 + 0x1800]
xor esi, dword [edi + eax*4 + 0x1400]
mov eax, edx
shr eax, 0x18
xor esi, dword [edi + eax*4 + 0x1000]
movzx eax, dl
mov edx, dword [ebp - 4]
xor esi, dword [edi + eax*4 + 0x1c00]
mov eax, ebx
mov edx, dword [edx + 8]
shr eax, 8
movzx ecx, al
mov eax, ebx
shr eax, 0x10
movzx eax, al
mov ecx, dword [edi + ecx*4 + 0x2800]
xor ecx, dword [edi + eax*4 + 0x2400]
mov eax, edx
shr eax, 8
movzx eax, al
xor ecx, dword [edi + eax*4 + 0x800]
mov eax, edx
shr eax, 0x10
movzx eax, al
xor ecx, dword [edi + eax*4 + 0x400]
mov eax, ebx
shr eax, 0x18
xor ecx, dword [edi + eax*4 + 0x2000]
movzx eax, bl
xor ecx, dword [edi + eax*4 + 0x2c00]
movzx eax, dl
shr edx, 0x18
xor ecx, dword [edi + eax*4 + 0xc00]
xor ecx, dword [edi + edx*4]
mov edx, dword [ebp - 4]
xor ecx, esi
add edx, 0xc
mov ebx, ecx
mov dword [ebp - 4], edx
cmp edx, dword [ebp + 8]
jbe 0x4011e1
mov ecx, dword [ebp + 0xc]
xor esi, esi
and dword [ebp + 8], esi
sub ecx, edx
cmp edx, dword [ebp + 0xc]
cmova ecx, dword [ebp + 8]
test ecx, ecx
je 0x4012c1
movzx eax, byte [edx]
xor eax, ebx
shr ebx, 8
movzx eax, al
xor ebx, dword [edi + eax*4]
inc edx
inc esi
cmp esi, ecx
jb 0x4012ad
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x401866
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
shr edi, 2
xor ebx, ebx
mov eax, edi
mov dword [ebp - 4], 1
shr eax, 1
mov ecx, ebx
add eax, 3
mov dword [esi], eax
add esi, 0x10
test edi, edi
je 0x40189d
mov eax, dword [edx]
lea edx, [edx + 4]
mov dword [esi + ecx*4], eax
inc ecx
cmp ecx, edi
jb 0x401890
mov edx, dword [esi + edi*4 - 4]
imul eax, edi, 0xc
add eax, 0x70
add eax, esi
mov dword [ebp + 8], eax
test ebx, ebx
jne 0x40190b
movzx eax, dl
mov ebx, dword [ebp - 4]
push 0x1b
movzx ecx, byte [eax + str.cw]
mov eax, edx
shr eax, 0x18
shl ecx, 8
movzx eax, byte [eax + str.cw]
or ecx, eax
mov eax, edx
shr eax, 0x10
movzx eax, al
shr edx, 8
shl ecx, 8
movzx eax, byte [eax + str.cw]
or ecx, eax
movzx eax, dl
shl ecx, 8
movzx edx, byte [eax + str.cw]
xor edx, ebx
add ebx, ebx
or edx, ecx
test ebx, 0x100
pop eax
cmovne ebx, eax
mov dword [ebp - 4], ebx
mov ebx, edi
jmp 0x401958
cmp ebx, 4
jne 0x40195b
cmp edi, 6
jbe 0x40195b
mov eax, edx
shr eax, 0x10
movzx eax, al
movzx ecx, byte [eax + str.cw]
mov eax, edx
shr eax, 0x18
movzx eax, byte [eax + str.cw]
shl eax, 8
or ecx, eax
mov eax, edx
shr eax, 8
movzx eax, al
shl ecx, 8
movzx eax, byte [eax + str.cw]
or ecx, eax
movzx eax, dl
shl ecx, 8
movzx edx, byte [eax + str.cw]
or edx, ecx
mov eax, dword [ebp + 8]
xor edx, dword [esi]
dec ebx
mov dword [esi + edi*4], edx
add esi, 4
cmp esi, eax
jne 0x4018ac
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x402634
Capabilities:
Check os version
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2d4
mov eax, dword [0x438094]
xor eax, ebp
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp ax, 6
je 0x40267d
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 0x40267d
push 0xc00
call eax
test eax, eax
jne 0x402718
push 0x106
lea eax, [ebp - 0x2d4]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x402718
cmp eax, 0x104
ja 0x402718
push 0x5c
pop ecx
cmp word [ebp + eax*2 - 0x2d6], cx
je 0x4026b4
mov word [ebp + eax*2 - 0x2d4], cx
inc eax
cmp byte [str.userenv], 0
push esi
mov esi, str.userenv
je 0x402717
push ebx
push edi
lea edi, [ebp - 0x2d4]
push 0x6c
lea edi, [edi + eax*2]
pop ebx
mov ecx, edi
jmp 0x4026de
movzx eax, al
mov word [ecx], ax
add ecx, 2
mov al, byte [esi]
inc esi
test al, al
jne 0x4026d5
push 0x2e
pop eax
push 0x64
mov word [ecx], ax
pop eax
mov word [ecx + 2], ax
xor eax, eax
push 8
push eax
mov word [ecx + 8], ax
lea eax, [ebp - 0x2d4]
push eax
mov word [ecx + 4], bx
mov word [ecx + 6], bx
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
cmp byte [esi], 0
jne 0x4026d1
pop edi
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041bb86
mov esp, ebp
pop ebp
ret
Function at 0x405c22
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
xor edx, edx
xor eax, eax
push ebx
push esi
mov esi, dword [ebp + 8]
inc eax
push edi
push 0x20
pop ecx
or dword [esi + 0x90], 0xffffffff
or dword [esi + 0x94], 0xffffffff
mov dword [esi + 0x30], eax
mov dword [esi + 0x44], eax
mov eax, dword [esi + 4]
cmp eax, ecx
mov dword [esi + 0x78], edx
cmova eax, ecx
mov dword [esi + 0x7c], edx
mov dword [esi + 0x54], eax
mov eax, dword [esi]
mov dword [esi + 0x34], edx
mov dword [esi + 0x38], edx
mov dword [esi + 0x3c], edx
mov dword [esi + 0x40], edx
mov dword [esi + 0x70], edx
mov dword [esi + 0x88], edx
mov dword [esi + 0x68], edx
mov dword [esi + 0x6c], edx
mov dword [esi + 0x48], edx
mov dword [esi + 0x4c], edx
mov dword [esi + 0x50], edx
mov dword [esi + 0x60], edx
mov dword [esi + 0x64], edx
mov dword [esi + 0x80], edx
mov dword [esi + 0x84], edx
mov dword [esi + 0x58], edx
cmp eax, dword [esi + 0x20]
je 0x405ccc
lea edi, [esi + 0xc8]
mov ebx, ecx
cmp dword [edi + 8], edx
je 0x405cad
push edi
call fcn.00405bf7
xor edx, edx
add edi, 0x28
sub ebx, 1
jne 0x405ca0
cmp dword [esi + 0x5c], ebx
je 0x405cc7
mov eax, dword [esi + 0x14]
push dword [esi + 0x5c]
push eax
call dword [eax + 4]
and dword [esi + 0x5c], ebx
mov eax, dword [esi]
mov dword [esi + 0x20], eax
push dword [esi + 0x10]
lea eax, [esi + 0x98]
push eax
call fcn.00406a28
mov ecx, dword [esi + 0x58]
and dword [esi + 0x24], 0
and dword [esi + 0x28], 0
lea eax, [ecx + 5]
imul ebx, eax, 0x28
lea eax, [ecx + 1]
mov dword [esi + 0x58], eax
add ebx, esi
push ebx
call fcn.00405bd1
mov edi, eax
test edi, edi
jne 0x405d48
lea eax, [ebx + 0x20]
push eax
call fcn.00407146
mov edi, eax
test edi, edi
jne 0x405d48
lea eax, [ebx + 0x1c]
push eax
call fcn.00407146
mov edi, eax
test edi, edi
jne 0x405d48
push ebx
call fcn.00406998
mov edi, eax
test edi, edi
je 0x405d48
and dword [esi + 0x44], 0
lea ebx, [esi + 0xc8]
push 0x20
pop esi
push ebx
call fcn.00405b4f
add ebx, 0x28
sub esi, 1
jne 0x405d37
mov esi, dword [ebp + 8]
movzx eax, di
or eax, 0x80070000
test edi, edi
cmovle eax, edi
test eax, eax
je 0x405d5c
mov dword [esi + 0x40], eax
xor edx, edx
cmp dword [esi + 0x38], edx
jne 0x405d70
cmp dword [esi + 0x40], edx
jne 0x405d70
cmp dword [esi + 0x3c], edx
jne 0x405d70
mov dword [esi + 0x44], edx
xor ecx, ecx
cmp dword [esi + 0x44], edx
pop edi
pop esi
cmovne eax, ecx
pop ebx
pop ebp
ret 4

Function at 0x406f8b
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
and dword [eax + 8], 0
and dword [eax + 0xc], 0
mov dword [eax + 0x20], 0x6a09e667
mov dword [eax + 0x24], 0xbb67ae85
mov dword [eax + 0x28], 0x3c6ef372
mov dword [eax + 0x2c], 0xa54ff53a
mov dword [eax + 0x30], 0x510e527f
mov dword [eax + 0x34], 0x9b05688c
mov dword [eax + 0x38], 0x1f83d9ab
mov dword [eax + 0x3c], 0x5be0cd19
pop ebp
ret 4
Function at 0x407253
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
xor esi, esi
push eax
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
push esi
call fcn.00421b1e
mov ecx, dword [ebp + 8]
add esp, 0x18
mov dword [ecx], eax
test eax, eax
jne 0x40727f
call fcn.00407165
mov esi, eax
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x4093bc
Capabilities:
Create directory

Disassembly:
push 0x44
mov eax, 0x429b2c
call fcn.0041be3f
cmp byte [0x43e8d0], 0
mov edi, dword [ebp + 8]
jne 0x4093fc
push edi
lea eax, [ebp - 0x18]
push eax
call fcn.00408349
xor ebx, ebx
push ebx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push dword [ebp - 0x18]
mov esi, eax
call fcn.0041bdf5
pop ecx
test esi, esi
je 0x40940a
mov al, 1
jmp 0x409450
xor ebx, ebx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jmp 0x4093f6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x40941b
xor al, al
jmp 0x409450
lea ecx, [ebp - 0x50]
call fcn.00409c7c
lea ecx, [ebp - 0x28]
call fcn.004076d5
push ebx
push edi
lea ecx, [ebp - 0x50]
mov dword [ebp - 4], ebx
call fcn.00409e98
test al, al
je 0x409445
mov ebx, dword [ebp - 0x30]
shr ebx, 4
and bl, 1
push dword [ebp - 0x28]
call fcn.0041bdf5
pop ecx
mov al, bl
call fcn.0041be08
ret 4

Function at 0x409458
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x43e8d0], 0
jne 0x409492
push esi
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.00408349
push 0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.0041bdf5
pop ecx
test esi, esi
pop esi
je 0x4094a1
mov al, 1
jmp 0x4094a3
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jmp 0x40948c
xor al, al
mov esp, ebp
pop ebp
ret 4

Function at 0x409633
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, dword [ebp + 8]
push esi
call fcn.0040a4b7
cmp eax, 0xffffffff
je 0x409660
mov ecx, eax
and cl, 0x11
cmp cl, 1
jne 0x409660
and eax, 0xfffffffe
push eax
push esi
call fcn.00409bd4
test al, al
je 0x409698
cmp byte [0x43e8d0], 0
push esi
jne 0x40968e
lea eax, [ebp - 0xc]
push eax
call fcn.00408349
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.0041bdf5
pop ecx
test esi, esi
je 0x409698
mov al, 1
jmp 0x40969a
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jmp 0x409688
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x409915
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x43e8d0], 0
jne 0x40994d
push esi
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.00408349
push dword [eax]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.0041bdf5
pop ecx
test esi, esi
pop esi
je 0x40995a
mov al, 1
jmp 0x40995c
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jmp 0x409947
xor al, al
mov esp, ebp
pop ebp
ret 4
Function at 0x409b28
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x43e8d0], 0
jne 0x409b5f
push esi
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.00408349
push dword [eax]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.0041bdf5
test esi, esi
pop ecx
setne al
pop esi
jmp 0x409b6e
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
neg eax
sbb eax, eax
neg eax
mov esp, ebp
pop ebp
ret 4

Function at 0x409bd4
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x43e8d0], 0
jne 0x409c0f
push esi
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.00408349
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.0041bdf5
pop ecx
test esi, esi
pop esi
je 0x409c1f
mov al, 1
jmp 0x409c21
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jmp 0x409c09
xor al, al
mov esp, ebp
pop ebp
ret 8

Function at 0x40a4b7
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x43e8d0], 0
jne 0x40a4eb
push esi
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.00408349
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.0041bdf5
pop ecx
mov eax, esi
pop esi
jmp 0x40a4fe
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, eax
mov eax, ecx
mov esp, ebp
pop ebp
ret 4

Function at 0x40a6c9
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push esi
push eax
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40a6f3
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x40a6f3
xor al, al
jmp 0x40a707
mov eax, dword [ebp + 8]
xor ecx, ecx
mov edx, dword [ebp - 4]
add ecx, esi
adc edx, 0
mov dword [eax], ecx
mov dword [eax + 4], edx
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x417e39
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42a498
mov eax, dword fs:[0]
push eax
push esi
mov eax, dword [0x438094]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
lea ecx, [esi + 0xa8]
call fcn.00417ee8
lea ecx, [esi + 0x78]
call fcn.00417ee8
push dword [esi + 0x30]
call fcn.0041bdf5
push dword [esi + 0x24]
call fcn.0041bdf5
push dword [esi + 0x18]
call fcn.0041bdf5
add esp, 0xc
and dword [ebp - 4], 0
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x417e9d
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [esi + 8]
mov dword [ebp - 4], 1
test ecx, ecx
je 0x417eb1
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [esi + 4]
mov dword [ebp - 4], 2
test ecx, ecx
je 0x417ec5
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [esi]
mov dword [ebp - 4], 3
test ecx, ecx
je 0x417ed8
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret