joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40de70
Capabilities:
Encode data using xor
Hash data with crc32
Read file on windows

Disassembly:
sub esp, 0x14
mov eax, dword [esp + 0x18]
push ebx
push esi
or esi, 0xffffffff
xor ebx, ebx
mov dword [esp + 8], 0x80000
test eax, eax
je 0x40e07e
push edi
push ebx
push pe_nt_image_headers32
push 3
push ebx
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov edi, eax
mov dword [esp + 0x1c], edi
cmp edi, 0xffffffff
je 0x40e07d
mov eax, dword [0x4134c8]
push ebp
push 0x80000
push ebx
push eax
call dword [sym.imp.KERNEL32.DLL_HeapAlloc]
mov ebp, eax
test ebp, ebp
je 0x40e075
cmp dword [esp + 0x30], ebx
jl 0x40def1
mov eax, dword [esp + 0x2c]
jg 0x40dee2
test eax, eax
je 0x40def1
push 0
lea ecx, [esp + 0x34]
push ecx
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
mov edx, dword [esp + 0x34]
add edx, 0x80000
mov dword [esp + 0x28], edx
jmp 0x40df05
mov ebx, dword [esp + 0x14]
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x38]
sub dword [esp + 0x28], 0x80000
add ebx, 0x80000
and eax, ecx
mov dword [esp + 0x14], ebx
cmp eax, 0xffffffff
je 0x40df3d
mov eax, ebx
cdq
cmp edx, ecx
jl 0x40df3d
jg 0x40df35
cmp eax, dword [esp + 0x34]
jbe 0x40df3d
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x10], ecx
mov eax, dword [esp + 0x10]
push 0
lea edx, [esp + 0x1c]
push edx
push eax
push ebp
push edi
call dword [sym.imp.KERNEL32.DLL_ReadFile]
mov ebx, dword [esp + 0x18]
mov eax, ebp
mov edx, ebx
cmp ebx, 8
jb 0x40e03c
mov edi, ebx
shr edi, 3
jmp 0x40df70
movzx ecx, byte [eax]
xor ecx, esi
and ecx, 0xff
mov dword [esp + 0x1c], ecx
mov ecx, esi
mov esi, dword [esp + 0x1c]
shr ecx, 8
xor ecx, dword [esi*4 + 0x411558]
movzx esi, byte [eax + 1]
xor esi, ecx
and esi, 0xff
shr ecx, 8
xor ecx, dword [esi*4 + 0x411558]
movzx esi, byte [eax + 2]
xor esi, ecx
and esi, 0xff
shr ecx, 8
xor ecx, dword [esi*4 + 0x411558]
movzx esi, byte [eax + 3]
xor esi, ecx
and esi, 0xff
shr ecx, 8
xor ecx, dword [esi*4 + 0x411558]
movzx esi, byte [eax + 4]
xor esi, ecx
and esi, 0xff
shr ecx, 8
xor ecx, dword [esi*4 + 0x411558]
movzx esi, byte [eax + 5]
xor esi, ecx
and esi, 0xff
shr ecx, 8
xor ecx, dword [esi*4 + 0x411558]
movzx esi, byte [eax + 6]
xor esi, ecx
and esi, 0xff
shr ecx, 8
xor ecx, dword [esi*4 + 0x411558]
movzx esi, byte [eax + 7]
xor esi, ecx
and esi, 0xff
shr ecx, 8
xor ecx, dword [esi*4 + 0x411558]
add eax, 8
sub edx, 8
dec edi
mov esi, ecx
jne 0x40df70
mov edi, dword [esp + 0x20]
test edx, edx
je 0x40e059
movzx ecx, byte [eax]
xor ecx, esi
and ecx, 0xff
shr esi, 8
xor esi, dword [ecx*4 + 0x411558]
inc eax
dec edx
jne 0x40e040
cmp ebx, 0x80000
je 0x40df01
mov edx, dword [0x4134c8]
push ebp
push 0
push edx
call dword [sym.imp.KERNEL32.DLL_HeapFree]
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop ebp
pop edi
mov eax, esi
pop esi
not eax
pop ebx
add esp, 0x14
ret 0x14

Function at 0x40e0b0
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 0x40279c
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
imul edx, dword [0x40d02c], 0x8088405
inc edx
mov dword [0x40d02c], edx
jmp loc.00423d00

Function at 0x40310c
Capabilities:
Set thread local storage value

Disassembly:
push ebx
cmp dword [0x40d3d0], 0
jge 0x403120
jmp loc.0041f908
push 8
push 0x40
call sub.kernel32.dll_LocalAlloc
mov ebx, eax
test ebx, ebx
jne 0x40313e
mov eax, 0xe2
call fcn.00403e41
jmp 0x40314a
push ebx
mov eax, dword [0x40d3d0]
push eax
call sub.kernel32.dll_TlsSetValue
mov dword [0x40d48c], ebx
pop ebx
ret

Function at 0x403154
Capabilities:
Get thread local storage value

Disassembly:
mov cl, byte [0x40d030]
jmp loc.00420bc8

Function at 0x4045a0
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffefc
mov ebx, eax
jmp loc.00426ca8

Function at 0x40565c
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 0x405695
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403278
jmp 0x40569e
mov eax, ebx
jmp loc.00422ef0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4056a8
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
jmp loc.00422270

Function at 0x406ea8
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov edi, eax
mov eax, ebx
mov edx, 0xff
call fcn.004034f0
mov eax, dword [ebx]
call fcn.004032f4
push eax
mov eax, dword [ebx]
call fcn.00403414
push eax
mov eax, edi
call fcn.00403414
push eax
call sub.kernel32.dll_GetEnvironmentVariableA
mov esi, eax
test esi, esi
jne 0x406ee7
mov eax, ebx
call fcn.00403198
jmp 0x406ef4
jmp loc.004252e0
pop edi
pop esi
pop ebx
ret

Function at 0x40707c
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40710a
push dword fs:[eax]
mov dword fs:[eax], esp
test ebx, ebx
jne 0x4070c7
push 0x104
lea eax, [ebp - 0x108]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
lea edx, [ebp - 0x108]
mov eax, esi
call fcn.00403278
jmp 0x4070f4
call sub.kernel32.dll_GetCommandLineA_1
cmp byte [eax], 0
jne 0x4070db
lea eax, [ebp - 4]
call fcn.00403198
jmp 0x4070ea
jmp 0x41fdb8
mov eax, esi
mov edx, dword [ebp - 4]
call fcn.0040322c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407111
lea eax, [ebp - 4]
call fcn.00403198
ret

Function at 0x407118
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffefc
mov ebx, eax
push 0x104
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
mov edx, ebx
mov eax, esp
jmp loc.0041c578
Function at 0x407144
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffefc
mov ebx, eax
push 0x104
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetSystemDirectoryA
mov edx, ebx
mov eax, esp
jmp loc.0041eee0

Function at 0x40728c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov edi, eax
xor eax, eax
push ebp
push 0x4073c4
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0
mov eax, dword [ebp - 4]
push eax
push edi
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
jne 0x4073ae
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 0xc]
je 0x4072e9
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 8]
jne 0x4073ae
cmp dword [ebp - 0x10], 0
jne 0x4072fe
mov eax, dword [ebp - 8]
jmp 0x41dc20
cmp dword [ebp - 0x10], 0x70000000
jb 0x40730c
call fcn.00405cd4
mov esi, dword [ebp - 0x10]
test esi, esi
sar esi, 0
lea eax, [ebp - 0x14]
mov ecx, esi
xor edx, edx
call fcn.00403278
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
call fcn.00403420
push eax
lea eax, [ebp - 0xc]
push eax
push 0
mov eax, dword [ebp - 4]
push eax
push edi
call sub.advapi32.dll_RegQueryValueExA
cmp eax, 0xea
je 0x4072b2
test eax, eax
jne 0x4073ae
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 0xc]
je 0x40735c
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 8]
jne 0x4073ae
mov esi, dword [ebp - 0x10]
test esi, esi
sar esi, 0
jmp 0x407367
dec esi
test esi, esi
je 0x407375
mov eax, dword [ebp - 0x14]
cmp byte [eax + esi - 1], 0
je 0x407366
cmp dword [ebp - 0xc], 7
jne 0x407380
test esi, esi
je 0x407380
inc esi
lea eax, [ebp - 0x14]
mov edx, esi
call fcn.004034f0
cmp dword [ebp - 0xc], 7
jne 0x4073a1
test esi, esi
je 0x4073a1
lea eax, [ebp - 0x14]
call fcn.00403420
mov byte [eax + esi - 1], 0
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x14]
call fcn.004031e8
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4073cb
lea eax, [ebp - 0x14]
call fcn.00403198
ret

Function at 0x407d0c
Capabilities:
Hash data with crc32

Disassembly:
push esi
xor esi, esi
mov ecx, 0x40d560
jmp loc.0041cd48

Function at 0x407d40
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
mov edi, edx
mov ebx, eax
cmp dword [0x40d55c], 0
jne 0x407d63
call fcn.00407d0c
push 1
push 0x40d55c
call sub.kernel32.dll_InterlockedExchange
mov eax, edi
test esi, esi
je 0x407d8e
mov edx, ebx
and dx, 0xff
xor ecx, ecx
mov cl, byte [eax]
xor dx, cx
movzx edx, dx
mov edx, dword [edx*4 + 0x40d560]
shr ebx, 8
xor edx, ebx
mov ebx, edx
dec esi
inc eax
test esi, esi
jne 0x407d69
mov eax, ebx
pop edi
pop esi
pop ebx
ret
Function at 0x409438
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
mov esi, edx
mov ebx, eax
lea edx, [ebp - 0xc]
mov eax, ebx
call fcn.004093ec
test al, al
jne 0x409459
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x4094a5
xor eax, eax
push ebp
push 0x409495
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.00403414
push eax
call sub.kernel32.dll_DeleteFileA
mov dword [ebp - 4], eax
call sub.kernel32.dll_GetLastError_1
jmp loc.00427f68
mov eax, dword [ebp - 4]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4097d0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
push edi
mov esi, eax
xor eax, eax
push ebp
push 0x4098bf
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
call fcn.00407170
mov edx, dword [ebp - 8]
mov ecx, 0x4098d8
xor eax, eax
call fcn.004096c4
push 0
mov eax, dword [ebp - 4]
call fcn.00403414
push eax
call sub.kernel32.dll_CreateDirectoryA
test eax, eax
jne 0x40988d
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
jmp loc.00422018
mov eax, esi
mov edx, dword [ebp - 4]
call fcn.0040322c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4098c6
lea eax, [ebp - 0x20]
mov edx, 3
call fcn.004031b8
lea eax, [ebp - 8]
mov edx, 2
call fcn.004031b8
ret

Function at 0x409978
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov ebx, eax
mov esi, ecx
dec esi
test esi, esi
jl 0x4099d2
inc esi
xor edi, edi
cmp edi, 1
jne 0x40999e
mov eax, dword [ebp + 0xc]
push eax
call sub.kernel32.dll_Sleep
jmp 0x4099ac
cmp edi, 1
jle 0x4099ac
mov eax, dword [ebp + 8]
push eax
call sub.kernel32.dll_Sleep
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.00409438
test eax, eax
jne 0x4099d2
call sub.kernel32.dll_GetLastError_1
cmp eax, 2
je 0x4099d2
call sub.kernel32.dll_GetLastError_1
cmp eax, 3
je 0x4099d2
inc edi
dec esi
jne 0x40998e
pop edi
jmp 0x425920

Function at 0x4099dc
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
jmp loc.00426d70

Function at 0x409e8c
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
push esi
push edi
jmp loc.0041c000

Function at 0x40a018
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffbc
mov edi, eax
lea esi, [esp + 0x28]
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetSystemInfo
mov ebx, edi
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x40a0cc
jmp 0x40a0c1
jmp 0x425790
mov eax, dword [esi + 4]
cmp eax, edi
je 0x40a044
add esp, 0x44
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x40a0d4
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push 0xa
push 0x2b67
push 0
call sub.kernel32.dll_FindResourceA
mov ebx, eax
test ebx, ebx
jne 0x40a0ee
call fcn.00409f88
push ebx
push 0
call sub.kernel32.dll_SizeofResource
cmp eax, 0x2c
je 0x40a100
call fcn.00409f88
push ebx
push 0
jmp 0x41ca28
Function at 0x407250
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, ecx
xor ecx, ecx
lea esi, [edi + 0x1c]
shr edi, 2
mov eax, edi
mov dword [ebp - 0xc], esi
shr eax, 1
add eax, 3
mov dword [ebx], eax
add ebx, 0x10
mov dword [ebp - 8], ebx
test edi, edi
je 0x40728d
lea esp, [esp]
mov eax, dword [edx]
lea edx, [edx + 4]
mov dword [ebx + ecx*4], eax
inc ecx
cmp ecx, edi
jb 0x407280
cmp ecx, esi
jae 0x407373
mov eax, ecx
sub eax, edi
lea esi, [ebx + eax*4]
mov dword [ebp + 8], esi
nop
xor edx, edx
mov ebx, dword [ebx + ecx*4 - 4]
mov eax, ecx
div edi
mov dword [ebp - 4], eax
test edx, edx
jne 0x407308
movzx edx, bl
movzx esi, byte [edx + str.cw]
mov edx, ebx
shr edx, 0x18
shl esi, 8
movzx eax, byte [edx + str.cw]
or esi, eax
mov eax, ebx
shr eax, 0x10
and eax, 0xff
shl esi, 8
shr ebx, 8
and ebx, 0xff
movzx eax, byte [eax + str.cw]
or esi, eax
mov eax, dword [ebp - 4]
movzx ebx, byte [ebx + str.cw]
shl esi, 8
movzx eax, byte [eax + 0x58a328]
xor ebx, eax
or ebx, esi
mov esi, dword [ebp + 8]
jmp 0x407359
cmp edi, 6
jbe 0x407359
cmp edx, 4
jne 0x407359
mov eax, ebx
shr eax, 0x10
and eax, 0xff
movzx edx, byte [eax + str.cw]
mov eax, ebx
shr eax, 0x18
movzx eax, byte [eax + str.cw]
shl eax, 8
or edx, eax
mov eax, ebx
shr eax, 8
and eax, 0xff
shl edx, 8
movzx eax, byte [eax + str.cw]
or edx, eax
movzx eax, bl
shl edx, 8
movzx ebx, byte [eax + str.cw]
or ebx, edx
mov eax, dword [esi]
add esi, 4
xor eax, ebx
mov dword [ebp + 8], esi
mov ebx, dword [ebp - 8]
mov dword [ebx + ecx*4], eax
inc ecx
cmp ecx, dword [ebp - 0xc]
jb 0x4072a0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x408560
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x14]
push edi
xor edi, edi
mov esi, dword [esi]
and esi, 7
cmp eax, 5
jae 0x408580
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
add dword [ebp + 0x10], 5
lea edx, [eax - 4]
push ebx
mov ebx, dword [ebp + 8]
add edx, ebx
mov dword [ebp - 4], edx
lea eax, [edi + ebx]
cmp eax, edx
jae 0x4085a6
mov cl, byte [eax]
and cl, 0xfe
cmp cl, 0xe8
je 0x4085a6
inc eax
cmp eax, edx
jb 0x408597
mov ecx, eax
sub ecx, edi
mov edi, eax
sub ecx, ebx
sub edi, ebx
cmp eax, edx
jae 0x408692
cmp ecx, 2
jbe 0x4085ff
xor esi, esi
movzx ebx, byte [eax + 4]
lea ecx, [ebx + 1]
test cl, 0xfe
jne 0x408684
movzx ecx, byte [eax + 3]
shl ebx, 8
or ebx, ecx
movzx ecx, byte [eax + 2]
shl ebx, 8
or ebx, ecx
movzx ecx, byte [eax + 1]
shl ebx, 8
or ebx, ecx
mov ecx, dword [ebp + 0x10]
add ecx, edi
add edi, 5
cmp dword [ebp + 0x18], 0
mov dword [ebp + 0xc], ecx
je 0x408629
add ebx, ecx
jmp 0x40862b
shr esi, cl
test esi, esi
je 0x4085bf
cmp esi, 4
ja 0x40861e
cmp esi, 3
je 0x40861e
mov ecx, esi
shr ecx, 1
movzx ecx, byte [ecx + eax + 1]
inc ecx
test cl, 0xfe
jne 0x4085bf
or esi, 8
shr esi, 1
inc edi
jmp 0x408590
sub ebx, ecx
test esi, esi
je 0x40865e
and esi, 6
mov edx, ebx
shl esi, 2
mov ecx, esi
shr edx, cl
inc edx
test dl, 0xfe
jne 0x408659
mov edx, 0x100
shl edx, cl
dec edx
xor ebx, edx
cmp dword [ebp + 0x18], 0
je 0x408656
add ebx, dword [ebp + 0xc]
jmp 0x408659
sub ebx, dword [ebp + 0xc]
mov edx, dword [ebp - 4]
xor esi, esi
mov ecx, ebx
mov byte [eax + 1], bl
shr ecx, 8
mov byte [eax + 2], cl
mov ecx, ebx
shr ebx, 0x18
and bl, 1
shr ecx, 0x10
neg bl
mov byte [eax + 3], cl
mov byte [eax + 4], bl
mov ebx, dword [ebp + 8]
jmp 0x408590
mov ebx, dword [ebp + 8]
or esi, 8
shr esi, 1
inc edi
jmp 0x408590
pop ebx
cmp ecx, 2
jbe 0x4086a7
mov eax, dword [ebp + 0x14]
xor esi, esi
mov dword [eax], esi
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x14]
shr esi, cl
mov dword [eax], esi
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40c6c0
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, dword [edi + 0x20]
mov ebx, dword [edi + 0x20]
and esi, 0x3f
mov ecx, dword [edi + 0x24]
shld ecx, ebx, 3
mov byte [esi + edi + 0x28], 0x80
inc esi
shl ebx, 3
mov dword [ebp + 8], ecx
cmp esi, 0x38
je 0x40c70c
lea ecx, [ecx]
and esi, 0x3f
jne 0x40c6fe
push edi
call fcn.0040cb40
add esp, 4
mov byte [edi + esi + 0x28], 0
inc esi
cmp esi, 0x38
jne 0x40c6f0
mov ecx, dword [ebp + 8]
mov eax, ecx
shr eax, 0x18
shld ecx, ebx, 8
mov byte [esi + edi + 0x28], al
shl ebx, 8
mov eax, ecx
shr eax, 0x18
shld ecx, ebx, 8
mov byte [esi + edi + 0x29], al
shl ebx, 8
mov eax, ecx
shr eax, 0x18
shld ecx, ebx, 8
mov byte [esi + edi + 0x2a], al
shl ebx, 8
mov eax, ecx
shr eax, 0x18
shld ecx, ebx, 8
mov byte [esi + edi + 0x2b], al
mov eax, ecx
shl ebx, 8
shr eax, 0x18
shld ecx, ebx, 8
mov byte [esi + edi + 0x2c], al
mov eax, ecx
shl ebx, 8
shr eax, 0x18
shld ecx, ebx, 8
mov byte [esi + edi + 0x2d], al
mov eax, ecx
shl ebx, 8
shr eax, 0x18
shr ecx, 0x10
push edi
mov dword [ebp - 8], ebx
mov byte [esi + edi + 0x2e], al
mov byte [esi + edi + 0x2f], cl
call fcn.0040cb40
mov ecx, dword [ebp + 0xc]
movzx eax, byte [edi + 3]
mov byte [ecx], al
movzx eax, byte [edi + 2]
mov byte [ecx + 1], al
mov eax, dword [edi]
shr eax, 8
mov byte [ecx + 2], al
movzx eax, byte [edi]
mov byte [ecx + 3], al
movzx eax, byte [edi + 7]
mov byte [ecx + 4], al
movzx eax, byte [edi + 6]
mov byte [ecx + 5], al
mov eax, dword [edi + 4]
shr eax, 8
mov byte [ecx + 6], al
movzx eax, byte [edi + 4]
mov byte [ecx + 7], al
movzx eax, byte [edi + 0xb]
mov byte [ecx + 8], al
movzx eax, byte [edi + 0xa]
mov byte [ecx + 9], al
mov eax, dword [edi + 8]
shr eax, 8
mov byte [ecx + 0xa], al
movzx eax, byte [edi + 8]
mov byte [ecx + 0xb], al
movzx eax, byte [edi + 0xf]
mov byte [ecx + 0xc], al
movzx eax, byte [edi + 0xe]
mov byte [ecx + 0xd], al
mov eax, dword [edi + 0xc]
shr eax, 8
mov byte [ecx + 0xe], al
movzx eax, byte [edi + 0xc]
mov byte [ecx + 0xf], al
movzx eax, byte [edi + 0x13]
mov byte [ecx + 0x10], al
movzx eax, byte [edi + 0x12]
mov byte [ecx + 0x11], al
mov eax, dword [edi + 0x10]
shr eax, 8
mov byte [ecx + 0x12], al
movzx eax, byte [edi + 0x10]
mov byte [ecx + 0x13], al
movzx eax, byte [edi + 0x17]
mov byte [ecx + 0x14], al
movzx eax, byte [edi + 0x16]
mov byte [ecx + 0x15], al
mov eax, dword [edi + 0x14]
shr eax, 8
mov byte [ecx + 0x16], al
movzx eax, byte [edi + 0x14]
mov byte [ecx + 0x17], al
movzx eax, byte [edi + 0x1b]
mov byte [ecx + 0x18], al
movzx eax, byte [edi + 0x1a]
mov byte [ecx + 0x19], al
mov eax, dword [edi + 0x18]
shr eax, 8
mov byte [ecx + 0x1a], al
movzx eax, byte [edi + 0x18]
mov byte [ecx + 0x1b], al
movzx eax, byte [edi + 0x1f]
mov byte [ecx + 0x1c], al
movzx eax, byte [edi + 0x1e]
mov byte [ecx + 0x1d], al
mov eax, dword [edi + 0x1c]
shr eax, 8
mov byte [ecx + 0x1e], al
movzx eax, byte [edi + 0x1c]
push edi
mov byte [ecx + 0x1f], al
call fcn.0040c890
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40c890
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [eax], 0x6a09e667
mov dword [eax + 4], 0xbb67ae85
mov dword [eax + 8], 0x3c6ef372
mov dword [eax + 0xc], 0xa54ff53a
mov dword [eax + 0x10], 0x510e527f
mov dword [eax + 0x14], 0x9b05688c
mov dword [eax + 0x18], 0x1f83d9ab
mov dword [eax + 0x1c], 0x5be0cd19
mov dword [eax + 0x20], 0
mov dword [eax + 0x24], 0
pop ebp
ret

Function at 0x40cd80
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.004a08a0
mov ecx, dword [ebp + 8]
push eax
mov dword [ecx], eax
call fcn.0040cd30
add esp, 0x1c
mov esp, ebp
pop ebp
ret
Function at 0x415900
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53288e
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x58ab78]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi + 4], vtable.ICryptoGetTextPassword.0
mov dword [esi + 8], vtable.ICompressProgressInfo.0
mov dword [esi + 0xc], 0
mov dword [esi], vtable.CArchiveExtractCallback.0
mov dword [esi + 4], vtable.CArchiveExtractCallback.1.0
mov dword [esi + 8], vtable.CArchiveExtractCallback.2.0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov word [esi + 0x1c], 0
mov byte [esi + 0x16], 1
mov byte [esi + 0x18], 1
mov byte [esi + 0x1a], 1
mov dword [esi + 0x24], 0
mov dword [ebp - 4], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
lea ecx, [esi + 0x30]
mov byte [ebp - 4], 2
call fcn.00404940
lea ecx, [esi + 0x3c]
mov byte [ebp - 4], 3
call fcn.00404940
lea ecx, [esi + 0x50]
mov byte [ebp - 4], 4
call fcn.00404940
lea ecx, [esi + 0x5c]
mov byte [ebp - 4], 5
call fcn.00404940
mov word [esi + 0x73], 0x101
mov byte [esi + 0x75], 1
mov dword [esi + 0xb0], 0
mov dword [esi + 0xb4], 0
mov dword [esi + 0xb8], 0
mov dword [esi + 0xbc], 0
mov byte [esi + 0xca], 0
mov dword [esi + 0xcc], 0
mov dword [esi + 0xe0], 0
mov dword [esi + 0xe4], 0
mov dword [esi + 0xe8], 0
mov dword [esi + 0xec], 0
mov dword [esi + 0xf0], 0
mov dword [esi + 0xf4], 0
push 0x38
mov byte [ebp - 4], 0xb
call fcn.0047d464
add esp, 4
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 0xc
test eax, eax
je 0x415a64
mov ecx, eax
call fcn.00420e40
mov edi, eax
jmp 0x415a66
xor edi, edi
mov byte [ebp - 4], 0xb
mov dword [esi + 0xf8], edi
test edi, edi
je 0x415a7a
mov eax, dword [edi]
push edi
call dword [eax + 4]
mov ecx, dword [esi + 0xcc]
test ecx, ecx
je 0x415a8a
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov eax, esi
mov dword [esi + 0xcc], edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x418480
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x532cb9
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x58ab78]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [ebp - 4], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
lea ecx, [edi + 0x24]
mov byte [ebp - 4], 1
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov byte [edi + 0x20], 0
call fcn.00404940
lea esi, [edi + 0x30]
mov byte [ebp - 4], 2
lea ecx, [esi + 0x18]
mov dword [ebp - 0x14], esi
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0xffffffff
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
call fcn.00404940
lea ecx, [esi + 0x24]
mov byte [ebp - 4], 3
call fcn.00404940
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret