joyce8/EMBER2024-capa huggingface dataset:
Function at 0x454600
Capabilities:
Get file size

Disassembly:
mov eax, dword [esp + 8]
push esi
push edi
push 0
push 0x20
push 3
push 0
push 3
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x454628
pop edi
or eax, eax
pop esi
ret
lea ecx, [esp + 0x10]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x10], 0xffffffff
jne 0x45464a
pop edi
or eax, 0xffffffff
pop esi
ret
mov eax, edi
pop edi
pop esi
ret

Function at 0x454650
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x144
push ebx
mov ebx, dword [esp + 0x14c]
push ebp
mov ebp, dword [esp + 0x15c]
push esi
push edi
mov esi, dword [ebp]
mov dword [esp + 0x10], 0
test ebx, ebx
je 0x4546db
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x4546db
test esi, esi
je 0x454695
cmp esi, 0xffffffff
je 0x454695
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
lea eax, [esp + 0x14]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
mov dword [ebp], esi
je 0x454721
mov eax, dword [esp + 0x160]
test eax, eax
je 0x4546c4
mov ecx, dword [esp + 0x14]
and ecx, 0x10
cmp cl, 0x10
je 0x4546db
jmp 0x4546d3
mov edx, dword [esp + 0x15c]
mov eax, dword [esp + 0x14]
test edx, eax
je 0x4546db
mov dword [esp + 0x10], 1
test esi, esi
je 0x454721
cmp esi, 0xffffffff
je 0x454721
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x454758
mov eax, dword [esp + 0x160]
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
lea eax, [esp + 0x14]
push eax
push esi
je 0x45472e
call edi
test eax, eax
je 0x454721
mov ecx, dword [esp + 0x14]
and ecx, 0x10
cmp cl, 0x10
jne 0x454758
lea edx, [esp + 0x14]
push edx
push esi
call edi
test eax, eax
jne 0x454709
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x144
ret
call edi
test eax, eax
je 0x454721
mov ebx, dword [esp + 0x15c]
test dword [esp + 0x14], ebx
jne 0x454758
lea ecx, [esp + 0x14]
push ecx
push esi
call edi
test eax, eax
jne 0x45473b
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x144
ret
lea edi, [esp + 0x40]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
call fcn.00453670
mov edx, eax
lea edi, [esp + 0x44]
or ecx, 0xffffffff
xor eax, eax
add esp, 4
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x144
ret

Function at 0x4547c0
Capabilities:
Set file attributes

Disassembly:
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 8]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
ret
Function at 0x454a80
Capabilities:
Get file size
Read file on windows

Disassembly:
mov eax, dword [esp + 8]
push edi
push 0
push 0x20
push 3
push 0
push 3
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
je 0x454ae9
push ebx
lea ecx, [esp + 0x10]
push esi
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
lea edx, [ebx + 8]
push edx
call fcn.00453670
add esp, 4
mov esi, eax
lea eax, [esp + 0x14]
push 0
push eax
lea ecx, [esi + 8]
push ebx
push ecx
push edi
mov dword [esi], 1
mov dword [esi + 4], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
pop ebx
pop edi
ret

Function at 0x454b50
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
test ebx, ebx
push edi
jne 0x454b63
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
push ebx
call fcn.00457a50
add esp, 4
test eax, eax
jne 0x454b75
pop edi
pop esi
pop ebp
pop ebx
ret
mov edi, dword [esp + 0x24]
test edi, edi
jg 0x454b84
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
mov eax, dword [ebx]
xor esi, esi
cmp eax, 1
jne 0x454bdb
mov ebx, dword [ebx + 4]
push edi
call fcn.00464b1e
add esp, 4
mov ebp, eax
lea eax, [esp + 0x18]
push esi
push eax
push edi
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x454bbe
push ebp
call fcn.00464b47
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov ecx, dword [esp + 0x18]
push ecx
push ebp
call fcn.004575c0
push ebp
mov esi, eax
call fcn.00464b47
add esp, 0xc
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret
cmp eax, 2
jne 0x454c1d
mov ebx, dword [ebx + 4]
lea edx, [edi + 8]
push edx
call fcn.00453670
mov esi, eax
add esp, 4
lea ecx, [esi + 8]
mov dword [esi], 1
mov dword [esi + 4], edi
mov eax, dword [ebx]
push edi
push ecx
mov ecx, ebx
call dword [eax + 0x20]
test eax, eax
jne 0x454c1a
push esi
call fcn.00453700
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov dword [esi + 4], eax
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x454c90
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
push esi
mov esi, dword [esp + 0x14]
test esi, esi
jne 0x454ca3
xor eax, eax
pop esi
add esp, 8
ret
push esi
call fcn.00457a50
add esp, 4
test eax, eax
jne 0x454cb5
pop esi
add esp, 8
ret
mov eax, dword [esi]
push ebx
mov ebx, 1
push ebp
cmp eax, ebx
push edi
mov dword [esp + 0x10], 0
jne 0x454d2c
mov eax, dword [esp + 0x1c]
mov edi, dword [esi + 4]
cmp eax, ebx
mov dword [esp + 0x10], ebx
jle 0x454d5e
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
lea esi, [esp + 0x2c]
mov eax, dword [esi]
lea edx, [esp + 0x14]
push 0
push edx
lea ecx, [eax + 8]
mov eax, dword [eax + 4]
push eax
push ecx
push edi
call ebp
test eax, eax
je 0x454d18
mov eax, dword [esp + 0x1c]
inc ebx
add esi, 0xc
cmp ebx, eax
jl 0x454ce8
mov eax, dword [esp + 0x10]
pop edi
pop ebp
pop ebx
pop esi
add esp, 8
ret
pop edi
mov dword [esp + 0xc], 0
mov eax, dword [esp + 0xc]
pop ebp
pop ebx
pop esi
add esp, 8
ret
cmp eax, 2
jne 0x454d5e
mov eax, dword [esp + 0x1c]
mov esi, dword [esi + 4]
cmp eax, ebx
mov dword [esp + 0x10], ebx
jle 0x454d5e
lea edi, [esp + 0x2c]
lea ebx, [eax - 1]
mov eax, dword [edi]
mov edx, dword [esi]
mov ecx, dword [eax + 4]
add eax, 8
push ecx
push eax
mov ecx, esi
call dword [edx + 0x24]
add edi, 0xc
dec ebx
jne 0x454d47
mov eax, dword [esp + 0x10]
pop edi
pop ebp
pop ebx
pop esi
add esp, 8
ret

Function at 0x454d70
Capabilities:
Copy file
Delete file
Move file

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0x1c]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
jne 0x454d9a
push eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x454d9a
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop edi
pop esi
ret

Function at 0x455490
Capabilities:
Read .ini file

Disassembly:
push ebx
push ebp
push esi
push edi
push 0x400
call fcn.00464b1e
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x40]
mov ecx, dword [esp + 0x28]
add esp, 4
mov esi, eax
mov eax, dword [esp + 0x30]
push ebx
push 0x400
push esi
push ebp
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp eax, 0x3ff
jl 0x4554fa
push esi
lea edi, [eax + 0x400]
call fcn.00464b47
push edi
call fcn.00464b1e
mov edx, dword [esp + 0x38]
add esp, 8
mov esi, eax
mov eax, dword [esp + 0x24]
push ebx
push edi
push esi
push ebp
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
dec edi
cmp eax, edi
jge 0x4554ca
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
xor ebx, ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x455516
push ecx
push esi
call fcn.004573c0
add esp, 8
mov ebx, eax
push esi
call fcn.00464b47
add esp, 4
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x456490
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
mov eax, dword [esp + 0x10]
push edi
push 0
push 0x20
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
je 0x456522
mov eax, dword [esp + 0x10]
push ebx
mov ebx, 1
push ebp
cmp eax, ebx
push esi
mov dword [esp + 0x10], ebx
jle 0x456514
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
lea esi, [esp + 0x2c]
mov eax, dword [esi]
lea edx, [esp + 0x14]
push 0
push edx
lea ecx, [eax + 8]
mov eax, dword [eax + 4]
push eax
push ecx
push edi
call ebp
test eax, eax
je 0x45650c
mov eax, dword [esp + 0x1c]
inc ebx
add esi, 0xc
cmp ebx, eax
jl 0x4564d5
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret
mov dword [esp + 0x10], 0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret
Function at 0x4674e9
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x46752b
call fcn.0046a836
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x46752b
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x467522
xor eax, eax
jmp 0x467533
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00467539
pop edi
pop esi
pop ebx
ret 4

Function at 0x4684c7
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x46c0e8
call fcn.0045a460
sub esp, 0x18
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], esi
mov eax, dword [esi + 0x48]
mov edi, dword [esi + 0x44]
mov dword [ebp - 0x18], eax
call fcn.0046a836
cmp dword [esi + 0x40], 0
mov ebx, dword [eax + 0xc]
je 0x468506
call fcn.0046a836
mov ebx, dword [eax + 0xc]
push 5
push dword [esi + 0x40]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x468514
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x468522
or eax, 0xffffffff
jmp 0x46860a
mov ecx, esi
call fcn.0046843d
mov dword [ebp - 0x14], eax
call fcn.00465b34
xor edi, edi
cmp dword [ebp - 0x14], edi
mov dword [ebp - 0x20], edi
je 0x468559
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x468559
push edi
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x20], 1
push esi
mov dword [ebp - 4], edi
call fcn.00465ae8
push dword [ebp - 0x14]
call fcn.00465619
push ebx
push eax
push dword [ebp - 0x18]
mov ecx, esi
call fcn.004681d5
cmp eax, edi
je 0x4685cc
test byte [esi + 0x24], 0x10
je 0x46859a
push 4
mov ecx, esi
pop ebx
call fcn.00465019
test ah, 1
je 0x468592
push 5
pop ebx
push ebx
mov ecx, esi
call fcn.0046763b
cmp dword [esi + 0x1c], edi
je 0x4685cc
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.0046504d
jmp 0x4685cc
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x20], edi
je 0x4685e0
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x4685f9
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x1c]
jne 0x4685f9
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x58]
mov ecx, esi
call fcn.00468477
mov eax, dword [esi + 0x2c]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x46a3ad
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x46a3db
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x46a3f9
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0046a313
jmp 0x46a3f9
mov eax, dword [esi + 0x14]
test eax, eax
je 0x46a3f9
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0046a313
test edi, edi
mov eax, edi
jne 0x46a3e3
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401925
Capabilities:
Terminate process

Disassembly:
push 0x58
push 0x401e38
call fcn.00401c8c
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov dword [ebp - 4], DefWindowProcW
mov dword [ebp - 4], 1
mov eax, dword fs:[0x18]
mov edi, dword [eax + 4]
mov esi, ebx
push ebx
push edi
push 0x402394
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
test eax, eax
je 0x40179a
cmp eax, edi
jne 0x40178d
xor edi, edi
inc edi
mov esi, edi
jmp 0x40179d
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x401771
xor edi, edi
inc edi
cmp dword [0x402398], edi
jne 0x4017af
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x4017dd
cmp dword [0x402398], ebx
jne 0x4017d7
mov dword [0x402398], edi
push 0x401018
push 0x40100c
call fcn.00401711
pop ecx
pop ecx
test eax, eax
je 0x4017dd
jmp 0x40190e
mov dword [0x402044], edi
cmp dword [0x402398], edi
jne 0x401800
push 0x401008
push section..text
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x402398], 2
test esi, esi
jne 0x401810
push ebx
push 0x402394
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x40239c], 0
je 0x401832
push 0x40239c
call fcn.00401b00
pop ecx
test eax, eax
je 0x401832
push ebx
push 2
push ebx
call dword [0x40239c]
mov ecx, dword [sym.imp.msvcrt.dll__wcmdln]
cmp dword [ecx], ebx
je 0x40190e
mov ecx, dword [ecx]
mov dword [ebp - 0x20], ecx
push 0x20
pop esi
mov edx, dword [ebp - 0x1c]
movzx eax, word [ecx]
cmp ax, si
ja 0x4018a2
test ax, ax
je 0x40185c
test edx, edx
jne 0x4018a2
movzx eax, word [ecx]
test ax, ax
je 0x401871
cmp ax, si
ja 0x401871
add ecx, 2
mov dword [ebp - 0x20], ecx
jmp 0x40185c
test byte [ebp - 0x3c], 1
je 0x40187d
movzx eax, word [ebp - 0x38]
jmp 0x401880
push 0xa
pop eax
push eax
push ecx
push ebx
push 0x400000
call main
mov dword [0x402040], eax
cmp dword [0x402058], 0
jne 0x4018ea
push eax
call dword [sym.imp.msvcrt.dll_exit]
cmp eax, 0x22
jne 0x4018b3
xor eax, eax
test edx, edx
sete al
mov edx, eax
mov dword [ebp - 0x1c], edx
add ecx, 2
mov dword [ebp - 0x20], ecx
jmp 0x40184b
cmp dword [0x402044], 0
jne 0x4018fe
call dword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x402040]
mov dword [ebp - 4], DefWindowProcW
jmp 0x40191a
mov dword [ebp - 4], DefWindowProcW
mov eax, 0xff
call fcn.00401cd1
ret
call fcn.00401bc1
jmp 0x40173a

Function at 0x401a70
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
je 0x401a86
xor eax, eax
pop ebp
ret
mov ecx, dword [eax + 0x3c]
add ecx, eax
xor eax, eax
cmp dword [ecx], reloc.USER32.dll_DefWindowProcW
jne 0x401aa1
mov edx, 0x10b
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
Function at 0x401ab0
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
push ebx
movzx ebx, word [ecx + 6]
add eax, 0x18
push esi
xor edx, edx
add eax, ecx
push edi
test ebx, ebx
je 0x401aee
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x401ae6
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x401af0
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x401ad6
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x10001240
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push 0x1001623c
mov eax, dword [ebp + 8]
push eax
call fcn.100052a0
add esp, 8
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x10001265
jmp 0x10001421
push 2
push 0
mov ecx, dword [ebp - 8]
push ecx
call fcn.10005894
add esp, 0xc
mov edx, dword [ebp - 8]
push edx
call fcn.10005ea7
add esp, 4
mov dword [ebp - 0x1c], eax
push 0
push 0
mov eax, dword [ebp - 8]
push eax
call fcn.10005894
add esp, 0xc
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.10004f96
add esp, 4
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x100012ba
mov edx, dword [ebp - 8]
push edx
call fcn.10005165
add esp, 4
jmp 0x10001421
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
push 1
mov edx, dword [ebp - 0x10]
push edx
call fcn.1000549d
add esp, 0x10
mov eax, dword [ebp - 8]
push eax
call fcn.10005165
add esp, 4
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x1c]
lea eax, [edx + ecx - 0x11]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.10004f96
add esp, 4
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x1000130f
mov edx, dword [ebp - 0x10]
push edx
call fcn.10004f7b
add esp, 4
jmp 0x10001421
mov dword [ebp - 0x18], 0
jmp 0x10001321
mov eax, dword [ebp - 0x18]
add eax, 1
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
cmp ecx, dword [ebp - 0x20]
jge 0x10001334
mov edx, dword [ebp - 0xc]
add edx, dword [ebp - 0x18]
mov byte [edx], 0
jmp 0x10001318
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x10]
add eax, dword [ebp - 4]
movsx ecx, byte [eax]
cmp ecx, 0x23
je 0x10001364
mov edx, dword [ebp - 0xc]
add edx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
add eax, dword [ebp - 4]
mov cl, byte [eax]
mov byte [edx], cl
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
jmp 0x1000133b
mov dword [ebp - 0x14], 0
jmp 0x10001376
mov eax, dword [ebp - 0x14]
add eax, 1
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
cmp ecx, dword [ebp + 0xc]
jge 0x10001394
mov edx, dword [ebp - 4]
add edx, dword [ebp - 0x14]
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov al, byte [eax]
mov byte [ecx + edx], al
jmp 0x1000136d
mov ecx, dword [ebp - 4]
add ecx, 0x11
cmp ecx, dword [ebp - 0x1c]
jge 0x100013bf
mov edx, dword [ebp - 4]
add edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
add eax, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
mov al, byte [eax + 0x11]
mov byte [ecx + edx], al
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
jmp 0x10001394
mov edx, dword [ebp - 0x10]
push edx
call fcn.10004f7b
add esp, 4
push 0x10016240
mov eax, dword [ebp + 8]
push eax
call fcn.100052a0
add esp, 8
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x100013f3
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.10004f7b
add esp, 4
jmp 0x10001421
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 0x20]
push eax
push 1
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.100060d1
add esp, 0x10
mov edx, dword [ebp - 8]
push edx
call fcn.10005165
add esp, 4
mov eax, dword [ebp - 0xc]
push eax
call fcn.10004f7b
add esp, 4
mov esp, ebp
pop ebp
ret
Function at 0x10002990
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using aes via winapi
Encrypt or decrypt via wincrypt
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push 0xf0000000
push 0x18
push 0
push 0
lea eax, [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x100029b7
or eax, 0xffffffff
jmp 0x10002a5c
lea ecx, [ebp - 8]
push ecx
push 0
push 0
push 0x800c
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x100029da
or eax, 0xffffffff
jmp 0x10002a5c
push 0
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x100029f7
or eax, 0xffffffff
jmp 0x10002a5c
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [ebp - 8]
push ecx
push 0x6610
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptDeriveKey]
test eax, eax
jne 0x10002a19
or eax, 0xffffffff
jmp 0x10002a5c
lea eax, [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
push 0
push 0
push 0
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
jne 0x10002a3a
or eax, 0xffffffff
jmp 0x10002a5c
push 0
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x10002af0
Capabilities:
Create thread
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [0x1001eb6c]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x4c], 0
push 0
push 0
push 0
push 0x100023c0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 0x54], eax
call fcn.10002ae0
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov dword [ebp - 0x50], ecx
cmp dword [ebp - 0x50], 1
jne 0x10002b76
push 0x10
push 0x1001e780
mov edx, dword [0x1001f4c8]
push edx
mov eax, dword [0x1001f4c4]
push eax
call fcn.10002990
add esp, 0x10
lea ecx, [ebp - 0x4c]
push ecx
push 0x20
mov edx, dword [0x1001f4c8]
push edx
mov eax, dword [0x1001f4c4]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov dword [ebp - 0x48], eax
mov dword [0x1001f4cc], 2
jmp 0x10002bb7
push 0x10
push 0x1001e790
mov ecx, dword [0x1001f4c8]
push ecx
mov edx, dword [0x1001f4c4]
push edx
call fcn.10002990
add esp, 0x10
lea eax, [ebp - 0x4c]
push eax
push 0x20
mov ecx, dword [0x1001f4c8]
push ecx
mov edx, dword [0x1001f4c4]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0x40
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
cmp dword [ebp - 0x48], 0
je 0x10002bf1
cmp dword [ebp - 0x38], 0
ja 0x10002bda
cmp dword [ebp - 0x3c], 0
jb 0x10002bf1
push 0
push 0
push 0
mov ecx, dword [0x1001f4c4]
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp dword [ebp - 0x50], 2
jne 0x10002c01
mov dword [0x1001f4cc], 0
push 0xffffffffffffffff
mov edx, dword [ebp - 0x54]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [0x1001f4cc]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100031b5
mov esp, ebp
pop ebp
ret 4

Function at 0x1000a7f8
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1000a66e