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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x248
push esi
or esi, 0xffffffff
test eax, eax
push edi
mov edi, esi
je 0x411cf9
cmp byte [eax], 0
je 0x411cf9
push 0x104
push eax
lea eax, [ebp - 0x108]
push eax
call sub.MSVCRT.dll_strncpy
lea eax, [ebp - 0x108]
push eax
mov byte [ebp - 4], 0
call sub.MSVCRT.dll_strlen
add esp, 0x10
cmp eax, 2
lea ecx, [ebp + eax - 0x109]
je 0x411c42
cmp eax, 3
jne 0x411c7f
cmp byte [ebp - 0x107], 0x3a
jne 0x411c7f
cmp eax, 2
jne 0x411c63
lea eax, [ebp - 0x108]
push 0x41b8d0
push eax
call sub.MSVCRT.dll_strcat
pop ecx
pop ecx
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 1
jbe 0x411cf9
jmp 0x411cf3
mov byte [ecx], 0
dec ecx
cmp byte [ecx], 0x5c
je 0x411c7b
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x411ccb
test byte [ebp - 0x248], 0x10
je 0x411cae
push 0xfffffffffffffffe
pop edi
or esi, 0xffffffff
jmp 0x411cc2
mov ecx, dword [ebp - 0x228]
mov esi, dword [ebp - 0x22c]
xor edi, edi
xor edx, edx
or edi, ecx
or esi, edx
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x411cf9
cmp byte [ebp - 0x108], 0x5c
jne 0x411cf9
cmp byte [ebp - 0x107], 0x5c
jne 0x411cf9
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x411cf9
test al, 0x10
je 0x411cf9
push 0xfffffffffffffffe
or esi, 0xffffffff
pop edi
mov eax, edi
pop edi
mov edx, esi
pop esi
leave
ret 4
Function at 0x4120ba
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
cmp dword [ebp + 8], 0
je 0x41212d
push 0x104
push dword [ebp + 8]
lea eax, [ebp - 0x108]
push eax
call sub.MSVCRT.dll_strncpy
lea eax, [ebp - 0x108]
push eax
mov byte [ebp - 4], 0
call sub.MSVCRT.dll_strlen
add esp, 0x10
lea eax, [ebp + eax - 0x108]
jmp 0x41210f
lea ecx, [eax - 1]
mov dl, byte [ecx]
cmp dl, 0x20
je 0x41210d
cmp dl, 0x5c
je 0x41210d
cmp dl, 0x2f
jne 0x412119
mov eax, ecx
lea ecx, [ebp - 0x108]
cmp eax, ecx
ja 0x4120f9
mov byte [eax], 0
push 0
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
jmp 0x41212f
xor eax, eax
leave
ret 4

Function at 0x412133
Capabilities:
Set file attributes

Disassembly:
xor eax, eax
cmp dword [esp + 4], eax
je 0x412141
jmp dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
ret 8

Function at 0x4121eb
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
cmp dword [0x421324], ebx
jne 0x412219
push fcn.004121b8
push 0x10
push 0x148
call fcn.00412f22
mov dword [0x421324], eax
mov esi, dword [ebp + 0xc]
cmp esi, ebx
jne 0x412225
mov esi, 0x41aae3
push 0x104
lea eax, [ebp - 0x108]
push esi
push eax
call sub.MSVCRT.dll_strncpy
push esi
mov byte [ebp - 4], bl
call sub.MSVCRT.dll_strlen
add esp, 0x10
cmp eax, ebx
je 0x412261
cmp byte [eax + esi - 1], 0x5c
je 0x412261
lea eax, [ebp - 0x108]
push 0x41b8d0
push eax
call sub.MSVCRT.dll_strcat
pop ecx
pop ecx
mov eax, dword [ebp + 0x10]
cmp eax, ebx
je 0x41226c
cmp byte [eax], bl
jne 0x412271
mov eax, 0x41b8dc
push eax
lea eax, [ebp - 0x108]
push eax
call sub.MSVCRT.dll_strcat
pop ecx
pop ecx
push dword [ebp + 8]
push dword [0x421324]
call fcn.00412e5d
mov esi, eax
lea eax, [esi + 8]
push eax
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esi], eax
je 0x4122ad
mov dword [esi + 4], ebx
jmp 0x4122bf
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x4122c3
mov dword [esi + 4], 1
mov edi, esi
jmp 0x4122d7
cmp dword [ebp + 8], 0xffffffff
jne 0x4122d5
push esi
push dword [0x421324]
call fcn.00412eec
mov dword [esi], ebx
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x4125d0
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
xor eax, eax
cmp dword [esi + 0x14], eax
mov dword [esp + 4], eax
jne 0x412605
mov ecx, dword [esi + 8]
sub ecx, dword [esi + 0xc]
mov edx, dword [esi + 4]
push eax
lea eax, [esp + 8]
push eax
mov eax, dword [esi]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [esi + 8]
mov eax, dword [esp + 4]
mov dword [esi + 0xc], ecx
pop esi
pop ecx
ret 4
Function at 0x412800
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
mov eax, dword [esp + 0x14]
push ebx
push ebp
push edi
push eax
push 0x1000
mov dword [esp + 0x1c], 0x1000
call fcn.00416eb0
mov ecx, dword [esp + 0x1c]
mov edx, dword [0x42143c]
push ecx
mov edi, eax
push edx
mov ebp, edi
call fcn.00412ec1
mov ebx, eax
test ebx, ebx
je 0x41291e
push esi
lea ecx, [ecx]
mov byte [esp + 0x13], 0
cmp dword [ebx + 4], 0
je 0x41285e
push 1
lea eax, [esp + 0x17]
push eax
push ebx
call fcn.00412a60
mov dword [esp + 0x14], eax
jmp 0x412875
mov eax, dword [ebx]
push 0
lea ecx, [esp + 0x18]
push ecx
push 1
lea edx, [esp + 0x1f]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov al, byte [esp + 0x13]
test al, al
je 0x412887
mov byte [ebp], al
mov al, byte [esp + 0x13]
add ebp, 1
mov ecx, dword [esp + 0x18]
mov esi, ebp
sub esi, edi
cmp esi, ecx
jl 0x4128b1
mov edx, dword [esp + 0x24]
add ecx, 0x1000
push edx
push ecx
mov dword [esp + 0x20], ecx
call fcn.00416eb0
mov edi, eax
mov al, byte [esp + 0x13]
lea ebp, [esi + edi]
test al, al
je 0x41291d
cmp dword [esp + 0x14], 0
je 0x4128c8
cmp al, 0xd
je 0x4128c8
cmp al, 0xa
jne 0x412840
sub ebp, 1
cmp al, 0xd
jne 0x41291d
cmp dword [ebx + 4], 0
je 0x4128e4
push 1
lea eax, [esp + 0x17]
push eax
push ebx
call fcn.00412a60
jmp 0x4128fb
mov eax, dword [ebx]
push 0
lea ecx, [esp + 0x18]
push ecx
push 1
lea edx, [esp + 0x1f]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp byte [esp + 0x13], 0xa
je 0x41291d
cmp dword [ebx + 4], 0
je 0x41290e
add dword [ebx + 0xc], 1
jmp 0x41291d
mov ecx, dword [ebx]
push 1
push 0
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
pop esi
sub edi, ebp
add edi, dword [esp + 0x14]
mov byte [ebp], 0
push edi
call fcn.00416f50
pop edi
pop ebp
pop ebx
add esp, 0xc
ret 8

Function at 0x412940
Capabilities:
Write file on windows

Disassembly:
push ecx
push edi
mov edi, dword [esp + 0x10]
xor eax, eax
test edi, edi
mov dword [esp + 4], eax
je 0x412999
push esi
mov esi, dword [esp + 0x18]
test esi, esi
je 0x412998
mov eax, dword [esp + 0x10]
mov ecx, dword [0x42143c]
push eax
push ecx
call fcn.00412ec1
test eax, eax
je 0x412994
cmp dword [eax + 4], 0
je 0x412982
push esi
push edi
push eax
call fcn.00412b90
pop esi
pop edi
pop ecx
ret 0xc
mov eax, dword [eax]
push 0
lea edx, [esp + 0xc]
push edx
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 8]
pop esi
pop edi
pop ecx
ret 0xc

Function at 0x412a00
Capabilities:
Read file on windows

Disassembly:
push ecx
mov eax, dword [esp + 8]
mov ecx, dword [0x42143c]
push eax
push ecx
mov dword [esp + 8], 0
call fcn.00412ec1
test eax, eax
je 0x412a52
cmp dword [eax + 4], 0
je 0x412a38
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
push edx
push ecx
push eax
call fcn.00412a60
pop ecx
ret 0xc
mov ecx, dword [esp + 0x10]
mov eax, dword [eax]
push 0
lea edx, [esp + 4]
push edx
mov edx, dword [esp + 0x14]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp]
pop ecx
ret 0xc
Function at 0x412a60
Capabilities:
Read file on windows

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
cmp dword [esi + 0x14], 0
push edi
jne 0x412a81
push esi
call fcn.004125d0
mov dword [esi + 0x14], 1
mov dword [esi + 0xc], 0
mov ebx, dword [esi + 0xc]
mov edi, dword [esp + 0x18]
cmp ebx, edi
jl 0x412afa
mov eax, dword [esi + 0x10]
add eax, dword [esi + 4]
mov ecx, edi
sub eax, ebx
sub ecx, 1
je 0x412ae7
sub ecx, 1
je 0x412ad2
sub ecx, 2
je 0x412abf
push edi
push eax
mov eax, dword [esp + 0x1c]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
sub dword [esi + 0xc], edi
mov eax, edi
pop edi
pop esi
pop ebx
ret 0xc
mov ecx, dword [eax]
mov edx, dword [esp + 0x14]
mov dword [edx], ecx
sub dword [esi + 0xc], edi
mov eax, edi
pop edi
pop esi
pop ebx
ret 0xc
mov ax, word [eax]
mov ecx, dword [esp + 0x14]
mov word [ecx], ax
sub dword [esi + 0xc], edi
mov eax, edi
pop edi
pop esi
pop ebx
ret 0xc
mov dl, byte [eax]
mov eax, dword [esp + 0x14]
mov byte [eax], dl
sub dword [esi + 0xc], edi
mov eax, edi
pop edi
pop esi
pop ebx
ret 0xc
mov ecx, dword [esi + 0x10]
push ebp
mov ebp, dword [esp + 0x18]
sub ecx, ebx
add ecx, dword [esi + 4]
push ebx
push ecx
push ebp
call sub.MSVCRT.dll_memcpy
mov eax, dword [esi + 8]
add esp, 0xc
sub edi, ebx
add ebp, ebx
cmp edi, eax
push 0
jl 0x412b43
mov eax, dword [esi]
lea edx, [esp + 0x18]
push edx
push edi
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x14]
pop ebp
pop edi
mov dword [esi + 0xc], 0
pop esi
add eax, ebx
pop ebx
ret 0xc
mov edx, dword [esi + 4]
lea ecx, [esp + 0x18]
push ecx
push eax
mov eax, dword [esi]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x14]
cmp edi, eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
jle 0x412b66
mov edi, eax
mov ecx, dword [esi + 4]
push edi
push ecx
push ebp
call sub.MSVCRT.dll_memcpy
sub dword [esi + 0xc], edi
add esp, 0xc
pop ebp
lea eax, [ebx + edi]
pop edi
pop esi
pop ebx
ret 0xc
Function at 0x412b90
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
cmp dword [esi + 0x14], 1
push edi
mov dword [esp + 8], 0
jne 0x412bc5
mov eax, dword [esi + 0xc]
mov ecx, dword [esi]
push 1
push 0
neg eax
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edx, dword [esi + 8]
mov dword [esi + 0x14], 0
mov dword [esi + 0xc], edx
mov ecx, dword [esi + 0xc]
mov edi, dword [esp + 0x18]
cmp ecx, edi
jle 0x412c3e
mov eax, dword [esi + 8]
add eax, dword [esi + 4]
sub eax, ecx
mov ecx, edi
sub ecx, 1
je 0x412c2b
sub ecx, 1
je 0x412c16
sub ecx, 2
je 0x412c03
mov ecx, dword [esp + 0x14]
push edi
push ecx
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
sub dword [esi + 0xc], edi
mov eax, edi
pop edi
pop esi
pop ecx
ret 0xc
mov edx, dword [esp + 0x14]
mov ecx, dword [edx]
mov dword [eax], ecx
sub dword [esi + 0xc], edi
mov eax, edi
pop edi
pop esi
pop ecx
ret 0xc
mov edx, dword [esp + 0x14]
mov cx, word [edx]
mov word [eax], cx
sub dword [esi + 0xc], edi
mov eax, edi
pop edi
pop esi
pop ecx
ret 0xc
mov edx, dword [esp + 0x14]
mov cl, byte [edx]
mov byte [eax], cl
sub dword [esi + 0xc], edi
mov eax, edi
pop edi
pop esi
pop ecx
ret 0xc
push esi
call fcn.004125d0
mov eax, dword [esi + 8]
cmp edi, eax
jl 0x412c6b
mov eax, dword [esp + 0x14]
mov ecx, dword [esi]
push 0
lea edx, [esp + 0xc]
push edx
push edi
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 8]
pop edi
pop esi
pop ecx
ret 0xc
mov ecx, dword [esi + 4]
sub ecx, dword [esi + 0xc]
mov edx, dword [esp + 0x14]
push edi
push edx
add ecx, eax
push ecx
call sub.MSVCRT.dll_memcpy
add esp, 0xc
sub dword [esi + 0xc], edi
mov eax, edi
pop edi
pop esi
pop ecx
ret 0xc

Function at 0x413300
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push edi
push esi
push ebx
mov edi, 0x41b928
mov esi, eax
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
not eax
xor ebx, ebx
mov bl, al
xor bl, byte [esi]
shl ebx, 2
shr eax, 8
xor eax, dword [edi + ebx]
inc esi
dec edx
jne 0x413314
not eax
pop ebx
pop esi
pop edi
ret 8
Function at 0x413b20
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
push ecx
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push eax
push ecx
push esi
call fcn.00413660
lea edi, [eax*4]
add esp, 0xc
xor ebx, ebx
test edi, edi
mov dword [esp + 0xc], eax
jle 0x413b95
lea edx, [esi + edi*4 + 8]
lea ecx, [esi + 8]
push ebp
mov eax, dword [edx - 8]
mov ebp, dword [ecx - 8]
mov dword [ecx - 8], eax
mov dword [edx - 8], ebp
mov ebp, dword [edx - 4]
mov eax, dword [ecx - 4]
mov dword [ecx - 4], ebp
mov ebp, dword [edx]
mov dword [edx - 4], eax
mov eax, dword [ecx]
mov dword [ecx], ebp
mov ebp, dword [edx + 4]
mov dword [edx], eax
mov eax, dword [ecx + 4]
mov dword [ecx + 4], ebp
mov dword [edx + 4], eax
add ebx, 4
sub edi, 4
add ecx, 0x10
sub edx, 0x10
cmp ebx, edi
jl 0x413b54
mov eax, dword [esp + 0x10]
pop ebp
cmp eax, 1
jle 0x413d50
lea edx, [eax - 1]
mov ecx, dword [esi + 0x10]
movzx ebx, byte [esi + 0x11]
mov ebx, dword [ebx*4 + str.ccccwwww]
add esi, 0x10
mov edi, ecx
shr edi, 0x18
mov edi, dword [edi*4 + str.ccccwwww]
and edi, 0xff
mov edi, dword [edi*4 + 0x41d128]
and ebx, 0xff
xor edi, dword [ebx*4 + 0x41d928]
movzx ebx, byte [esi + 2]
mov ebx, dword [ebx*4 + str.ccccwwww]
and ebx, 0xff
xor edi, dword [ebx*4 + 0x41d528]
movzx ebx, byte [esi + 5]
and ecx, 0xff
mov ecx, dword [ecx*4 + str.ccccwwww]
and ecx, 0xff
xor edi, dword [ecx*4 + 0x41dd28]
mov ecx, dword [esi + 4]
mov dword [esi], edi
mov ebx, dword [ebx*4 + str.ccccwwww]
mov edi, ecx
shr edi, 0x18
mov edi, dword [edi*4 + str.ccccwwww]
and edi, 0xff
mov edi, dword [edi*4 + 0x41d128]
and ebx, 0xff
xor edi, dword [ebx*4 + 0x41d928]
movzx ebx, byte [esi + 6]
mov ebx, dword [ebx*4 + str.ccccwwww]
and ebx, 0xff
xor edi, dword [ebx*4 + 0x41d528]
movzx ebx, byte [esi + 9]
and ecx, 0xff
mov ecx, dword [ecx*4 + str.ccccwwww]
and ecx, 0xff
xor edi, dword [ecx*4 + 0x41dd28]
mov ecx, dword [esi + 8]
mov dword [esi + 4], edi
mov ebx, dword [ebx*4 + str.ccccwwww]
mov edi, ecx
shr edi, 0x18
mov edi, dword [edi*4 + str.ccccwwww]
and edi, 0xff
mov edi, dword [edi*4 + 0x41d128]
and ebx, 0xff
xor edi, dword [ebx*4 + 0x41d928]
movzx ebx, byte [esi + 0xa]
mov ebx, dword [ebx*4 + str.ccccwwww]
and ebx, 0xff
xor edi, dword [ebx*4 + 0x41d528]
movzx ebx, byte [esi + 0xd]
and ecx, 0xff
mov ecx, dword [ecx*4 + str.ccccwwww]
and ecx, 0xff
xor edi, dword [ecx*4 + 0x41dd28]
mov ecx, dword [esi + 0xc]
mov dword [esi + 8], edi
mov ebx, dword [ebx*4 + str.ccccwwww]
mov edi, ecx
shr edi, 0x18
mov edi, dword [edi*4 + str.ccccwwww]
and edi, 0xff
mov edi, dword [edi*4 + 0x41d128]
and ebx, 0xff
xor edi, dword [ebx*4 + 0x41d928]
movzx ebx, byte [esi + 0xe]
mov ebx, dword [ebx*4 + str.ccccwwww]
and ecx, 0xff
mov ecx, dword [ecx*4 + str.ccccwwww]
and ebx, 0xff
xor edi, dword [ebx*4 + 0x41d528]
and ecx, 0xff
xor edi, dword [ecx*4 + 0x41dd28]
sub edx, 1
mov dword [esi + 0xc], edi
jne 0x413ba1
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x414ae0
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 0x10]
mov eax, ecx
cdq
sub esp, 0x34
and edx, 0xf
add eax, edx
push esi
mov esi, dword [esp + 0x44]
sar eax, 4
and ecx, 0x8000000f
push edi
mov edi, dword [esp + 0x44]
jns 0x414b09
dec ecx
or ecx, 0xfffffff0
inc ecx
mov dword [esp + 0x44], ecx
je 0x414b1c
test eax, eax
jne 0x414b19
pop edi
pop esi
add esp, 0x34
ret
sub eax, 1
test eax, eax
push ebx
mov ebx, dword [esp + 0x54]
mov edx, dword [ebx]
mov dword [esp + 0x10], edx
mov edx, dword [ebx + 4]
mov dword [esp + 0x14], edx
mov edx, dword [ebx + 8]
mov dword [esp + 0x18], edx
mov edx, dword [ebx + 0xc]
push ebp
mov ebp, dword [esp + 0x48]
mov dword [esp + 0x20], edx
jbe 0x414bb1
mov ecx, edi
sub ecx, esi
mov dword [esp + 0x10], ecx
mov dword [esp + 0x50], eax
mov edx, dword [ebp + 4]
push esi
mov ecx, edi
lea eax, [ebp + 0xf8]
call fcn.00414350
mov eax, dword [esp + 0x18]
xor dword [esi], eax
mov ecx, dword [esp + 0x1c]
xor dword [esi + 4], ecx
mov edx, dword [esp + 0x20]
xor dword [esi + 8], edx
mov eax, dword [esp + 0x24]
xor dword [esi + 0xc], eax
mov ecx, dword [edi]
mov edx, dword [edi + 4]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x18], ecx
mov ecx, dword [eax + esi + 8]
mov dword [esp + 0x1c], edx
mov edx, dword [edi + 0xc]
add esp, 4
add edi, 0x10
add esi, 0x10
sub dword [esp + 0x50], 1
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], edx
jne 0x414b51
mov ecx, dword [esp + 0x4c]
test ecx, ecx
jbe 0x414c79
mov edx, dword [edi + 8]
mov eax, dword [edi]
mov ecx, dword [edi + 4]
mov dword [esp + 0x2c], edx
mov edx, dword [edi + 0xc]
mov dword [ebx], eax
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x2c]
mov dword [ebx + 4], ecx
mov dword [esp + 0x28], ecx
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], edx
lea ecx, [esp + 0x34]
lea ebx, [ebp + 0xf8]
mov dword [esp + 0x30], edx
mov edx, dword [ebp + 4]
push ecx
lea ecx, [esp + 0x28]
mov eax, ebx
mov dword [esp + 0x54], ebx
call fcn.00414350
add esp, 4
cmp dword [esp + 0x4c], 0
jbe 0x414c40
mov ebx, esi
lea ecx, [edi + 0x10]
sub ebx, edi
mov edi, dword [esp + 0x4c]
lea ebp, [esp + 0x34]
lea esp, [esp]
mov dl, byte [ecx]
mov al, byte [ebp]
xor al, dl
mov byte [ebp], dl
mov byte [ebx + ecx], al
add ecx, 1
add ebp, 1
sub edi, 1
jne 0x414c20
mov ebp, dword [esp + 0x48]
mov ebx, dword [esp + 0x50]
mov edx, dword [ebp + 4]
push esi
lea ecx, [esp + 0x38]
mov eax, ebx
call fcn.00414350
mov edx, dword [esp + 0x18]
xor dword [esi], edx
mov eax, dword [esp + 0x1c]
xor dword [esi + 4], eax
mov ecx, dword [esp + 0x20]
xor dword [esi + 8], ecx
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x58]
add esp, 4
xor dword [esi + 0xc], edx
pop ebp
pop ebx
pop edi
pop esi
add esp, 0x34
ret
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov dword [ebx], eax
mov eax, dword [esp + 0x20]
pop ebp
mov dword [ebx + 0xc], eax
mov eax, dword [esp + 0x50]
mov dword [ebx + 4], ecx
mov dword [ebx + 8], edx
pop ebx
pop edi
pop esi
add esp, 0x34
ret
Function at 0x414ca0
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x10], ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret

Function at 0x4169d0
Capabilities:
Hash data using sha1

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax + 0x18], ecx
mov dword [eax + 0x14], ecx
mov ecx, dword [esp + 8]
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
mov dword [eax + 0x5c], ecx
ret
Function at 0x100973a
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
mov esi, 0x400
push esi
mov dword [ebp - 4], 1
call fcn.010096ae
test eax, eax
je 0x1009780
push 2
lea eax, [ebp - 4]
push eax
push 0x20001009
push esi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
push dword [ebp - 4]
call fcn.010096f8
test eax, eax
mov eax, dword [ebp + 8]
je 0x100977d
or dword [eax], 0x20
jmp 0x1009780
or dword [eax], 0x10
pop esi
leave
ret 4
Function at 0x404960
Capabilities:
Get common file path
Get disk information
Get hostname
Manipulate console buffer
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1d60
call fcn.0040ff60
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov edx, dword [0x4940e8]
push ebx
push esi
push edi
mov edi, dword [eax + 4]
mov eax, dword [str.j_aDD]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 8]
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], 0
mov dword [ebp - 0x18], 0x9e3779b9
mov dword [ebp - 0x1c], edx
call fcn.00404950
mov ecx, dword [0x4940f0]
mov edx, dword [0x4940f4]
add dword [ebp - 8], 0x23f
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrencyFormatW]
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x14], 0x20
jmp 0x4049d0
mov dword [ebp - 0x10], 2
add dword [ebp - 0x10], 3
mov esi, dword [ebp - 0xc]
mov eax, dword [0x49b874]
shl esi, 4
add esi, dword [ebp - 0x24]
cmp eax, 0xfa9
jne 0x4049fc
mov dword [0x49b870], 0xedeb2e40
jmp 0x404a17
cmp eax, 0x3eb
jne 0x404a17
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov dword [0x49b300], 0
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
add ecx, eax
mov eax, dword [ebp - 0xc]
shr eax, 5
mov dword [ebp - 4], eax
mov edx, dword [ebp - 0x20]
add dword [ebp - 4], edx
xor esi, ecx
cmp dword [0x49b874], 0x9e6
mov dword [0x49b86c], 0xf4ea3dee
jne 0x404a52
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCommConfig]
xor dword [ebp - 4], esi
cmp dword [0x49b874], 0x213
jne 0x404af0
push 0
lea eax, [ebp - 0x960]
push eax
push 0
push 0
push 0
push 0
call ebx
lea ecx, [ebp - 0x1560]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
lea edx, [ebp - 0x38]
push edx
lea eax, [ebp - 0x1160]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
push 0
call dword [sym.imp.KERNEL32.dll_ClearCommBreak]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumTimeFormatsA]
push 0
push 0
lea ecx, [ebp - 0x1d60]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
push 0
call dword [sym.imp.KERNEL32.dll_IsBadCodePtr]
lea edx, [ebp - 0x30]
push edx
push 0
lea eax, [ebp - 0x4c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputA]
lea ecx, [ebp - 0x160]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
lea edx, [ebp - 0x34]
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
sub edi, dword [ebp - 4]
cmp dword [0x49b874], 0xc
jne 0x404b0e
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetVolumeMountPointA]
push 0
call dword [sym.imp.KERNEL32.dll_GlobalUnWire]
mov eax, dword [ebp - 8]
mov edx, edi
shr edx, 5
lea ecx, [eax + edi]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 0x28]
add dword [ebp - 4], eax
mov eax, edi
shl eax, 4
add eax, dword [ebp - 0x1c]
xor eax, dword [ebp - 4]
xor eax, ecx
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
sub dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
sub dword [ebp - 8], eax
sub dword [ebp - 0x14], 1
jne 0x4049d0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword [eax + 4], edi
pop edi
pop esi
mov dword [eax], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x404b60
Capabilities:
Connect pipe
Create process on windows
Create reverse shell
Read pipe
Set environment variable
Set thread local storage value
Write pipe

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1408
call fcn.0040ff60
mov eax, dword [0x49b874]
mov ecx, dword [0x49b304]
shr eax, 3
test eax, eax
jbe 0x404c78
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetNumberFormatA]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetTimeFormatA]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov dword [ebp - 4], ecx
mov dword [ebp - 8], eax
mov edi, edi
cmp dword [0x49b874], 0x959
jne 0x404c5e
push 0
lea eax, [ebp - 0x408]
push eax
push 0
push 0
push 0
push 0
call ebx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateJobObjectW]
push 0
lea ecx, [ebp - 0xc08]
push ecx
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasExesA]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CallNamedPipeW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetFileShortNameW]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
push 0
push 0
push 0
push 0
push 0
push 0
call esi
push 0
push 0
push 0
call edi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
lea edx, [ebp - 0x808]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
push 0
push 0
push 0
push 0
push 0
push 0
call esi
push 0
lea eax, [ebp - 0x1408]
push eax
push 0
call edi
mov ecx, dword [ebp - 4]
push ecx
call fcn.00404960
add dword [ebp - 4], 8
sub dword [ebp - 8], 1
jne 0x404ba0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret