joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10010550
Capabilities:
Get memory capacity
Get system information on windows

Disassembly:
sub esp, 0x39c
push ebx
push ebp
push esi
lea eax, [esp + 0x5c]
push edi
push eax
mov byte [esp + 0x60], 0x66
mov byte [esp + 0x13e], 0
mov dword [esp + 0x64], 0x9c
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ebp, dword [esp + 0x3b0]
lea ecx, [esp + 0x2ac]
push 0x100
push ecx
push ebp
call fcn.10010530
mov ebx, dword [esp + 0x3c8]
xor edx, edx
mov dword [esp + 0x20], edx
add esp, 0xc
mov dword [esp + 0x18], edx
lea eax, [esp + 0x10]
mov dword [esp + 0x1c], edx
lea ecx, [esp + 0x14]
mov dword [esp + 0x20], edx
mov edx, dword [ebx + 0xa8]
push eax
push ecx
push edx
mov dword [esp + 0x1c], 0x10
call dword [0x10003b9c]
mov eax, dword [esp + 0x18]
mov ecx, 0xc
lea esi, [esp + 0x2ac]
lea edi, [esp + 0x108]
mov dword [esp + 0x104], eax
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
call fcn.100103f0
lea ecx, [esp + 0x188]
mov dword [esp + 0xfc], eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov edx, dword [esp + 0x19c]
mov dword [esp + 0x100], edx
call fcn.10010450
mov byte [esp + 0x13a], al
mov eax, dword [esp + 0x3c0]
mov dword [esp + 0x13c], eax
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x1ad]
mov byte [esp + 0x1ac], 0
push 0x100
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0x1b0]
push ecx
push ebp
stosb byte es:[edi], al
call fcn.10010490
add esp, 0xc
lea edx, [esp + 0x1ac]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jne 0x10010686
mov edi, dword [esp + 0x3b8]
lea edx, [esp + 0x140]
jmp 0x10010694
lea edi, [esp + 0x1ac]
lea edx, [esp + 0x140]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x3c], 0x20
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x3c]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov edx, dword [esp + 0x44]
lea eax, [esp + 0x24]
shr edx, 0x14
push eax
mov dword [esp + 0x178], edx
call fcn.10010180
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x34]
mul dword [esp + 0x38]
add esp, 4
push 0
push ecx
push edx
push eax
call fcn.10019550
mov ecx, dword [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x28]
push ecx
push edx
push eax
call fcn.10019550
mov ecx, 0x1e
call fcn.10019530
mov edx, dword [esp + 0x3b4]
mov dword [esp + 0x178], eax
push 0x12c
mov eax, dword [edx]
mov dword [esp + 0x180], eax
lea eax, [esp + 0x60]
mov ecx, dword [edx + 4]
push eax
mov dword [esp + 0x188], ecx
mov ecx, ebx
mov dx, word [edx + 8]
mov word [esp + 0x18c], dx
call fcn.100062a0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x39c
ret
Function at 0x10010760
Capabilities:
Acquire debug privileges
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
push ebx
xor ebx, ebx
push 0x100023ac
mov dword [ebp - 8], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, ebx
jne 0x1001078e
xor eax, eax
jmp 0x10010931
push esi
push edi
push 0x1000238c
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
call eax
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x2c], eax
push ecx
push eax
call fcn.10019c79
push 0x30
xor eax, eax
pop esi
lea edi, [ebp - 0x98]
push 0x11
mov byte [ebp - 0x20], 0x57
pop ecx
mov byte [ebp - 0x1f], 0x69
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x20]
mov dword [ebp - 0x98], 0x44
push eax
push 0x100014b8
push dword [ebp - 0x90]
mov byte [ebp - 0x1e], 0x6e
mov byte [ebp - 0x1d], 0x53
mov byte [ebp - 0x1c], 0x74
mov byte [ebp - 0x1b], 0x61
mov byte [ebp - 0x1a], 0x30
mov byte [ebp - 0x19], 0x5c
mov byte [ebp - 0x18], 0x5c
mov byte [ebp - 0x17], 0x44
mov byte [ebp - 0x16], 0x65
mov byte [ebp - 0x15], 0x66
mov byte [ebp - 0x14], 0x61
mov byte [ebp - 0x13], 0x75
mov byte [ebp - 0x12], 0x6c
mov byte [ebp - 0x11], 0x74
mov byte [ebp - 0x10], bl
call dword [fcn.10003b38]
xor eax, eax
lea edi, [ebp - 0x54]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
add esp, 0xc
stosd dword es:[edi], eax
lea eax, [ebp - 0xc]
push eax
push 0x201eb
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [fcn.10003944]
test eax, eax
je 0x100108ff
lea eax, [ebp - 0x34]
push eax
push 0x10002040
push ebx
call dword [fcn.100039a4]
test eax, eax
je 0x100108ff
mov eax, dword [ebp - 0x34]
push 1
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x3c], eax
pop edi
lea eax, [ebp - 4]
mov dword [ebp - 0x44], edi
push eax
push edi
push edi
push ebx
push 0x2000000
mov dword [ebp - 0x38], 2
push dword [ebp - 0xc]
call dword [0x10003964]
test eax, eax
je 0x100108ff
lea eax, [ebp - 0x2c]
push 4
push eax
push 0xc
push dword [ebp - 4]
call dword [0x10003968]
test eax, eax
je 0x100108ff
push ebx
push ebx
lea eax, [ebp - 0x44]
push 0x10
push eax
push ebx
push dword [ebp - 4]
call dword [fcn.100039a8]
test eax, eax
je 0x100108ff
push edi
lea eax, [ebp - 0x28]
push dword [ebp - 4]
mov dword [ebp - 0x28], ebx
push eax
call dword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
test eax, eax
je 0x100108d8
mov esi, 0x430
jmp 0x100108db
mov dword [ebp - 0x28], ebx
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x98]
push eax
push ebx
push dword [ebp - 0x28]
push esi
push ebx
push ebx
push ebx
push dword [ebp + 8]
push ebx
push dword [ebp - 4]
call dword [0x1000396c]
test eax, eax
jne 0x10010908
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
cmp dword [ebp - 0x24], ebx
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x10010918
push dword [ebp - 0x24]
call edi
cmp dword [ebp - 4], ebx
je 0x10010922
push dword [ebp - 4]
call edi
cmp dword [ebp - 0xc], ebx
je 0x1001092c
push dword [ebp - 0xc]
call edi
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x10010936
Capabilities:
Check if file exists
Get file attributes

Disassembly:
cmp dword [esp + 4], 0
je 0x10010954
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x10010954
test al, 0x10
jne 0x10010954
push 1
pop eax
ret
xor eax, eax
ret
Function at 0x10011096
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x298
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, 0x104
mov esi, 0x1001d7c4
push edi
push dword [ebx]
push esi
call dword [sym.imp.MSVCRT.dll_strncpy]
push edi
push dword [ebx]
push esi
call dword [sym.imp.MSVCRT.dll_wcstombs]
add esp, 0x18
push 0x10011218
push esi
call dword [0x10003960]
xor ebx, ebx
mov dword [0x1001d7c0], eax
cmp eax, ebx
je 0x100111cb
call dword [sym.imp.KERNEL32.dll_FreeConsole]
push 1
push ebx
push 2
call fcn.100111d0
push ebx
push ebx
push 4
call fcn.100111d0
push esi
call fcn.100090f0
add esp, 0x1c
mov dword [0x1001d7bc], eax
lea eax, [ebp - 0x94]
mov dword [ebp - 0x94], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x90], 6
jae 0x1001117b
push ebx
push ebx
push ebx
push esi
push fcn.10010c7c
push ebx
push ebx
call fcn.10011e60
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
add esp, 0x1c
mov edi, eax
push 0x64
call esi
mov eax, dword [0x1001d8c8]
cmp eax, 3
je 0x10011156
cmp eax, 1
jne 0x10011143
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [0x1001d7bc], 0x120
jne 0x100111cb
push 0x2710
call esi
jmp 0x10011172
mov ebx, dword [fcn.10003b38]
push esi
push 0x100014b8
push dword [0x1001d778]
call ebx
add esp, 0xc
lea eax, [ebp - 0x298]
push edi
push eax
push dword [0x1001d774]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x298]
push esi
push eax
lea eax, [ebp - 0x194]
push 0x1000244c
push eax
call ebx
add esp, 0x10
lea eax, [ebp - 0x194]
push eax
call fcn.10010760
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10011630
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x1001a118
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x40
push ebx
push ebp
mov dword [esp + 0x14], ecx
push esi
push edi
lea ecx, [esp + 0x30]
call fcn.10006570
mov eax, dword [esp + 0x34]
xor ebp, ebp
xor esi, esi
cmp eax, ebp
mov dword [esp + 0x58], ebp
jle 0x10011694
mov eax, dword [esp + 0x48]
mov ebx, 6
mov eax, dword [eax + ebp*4]
lea edi, [eax + 4]
mov eax, dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add edi, 4
dec ebx
lea esi, [esi + eax + 1]
jne 0x10011678
mov eax, dword [esp + 0x34]
inc ebp
cmp ebp, eax
jl 0x10011669
inc esi
push esi
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
mov eax, dword [esp + 0x34]
test eax, eax
mov dword [esp + 0x14], edi
mov ebx, 1
mov dword [esp + 0x10], 0
jle 0x1001171a
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x10]
mov dword [esp + 0x18], 6
mov ebp, dword [ecx + edx*4]
add ebp, 4
jmp 0x100116d5
mov edi, dword [esp + 0x14]
mov eax, dword [ebp]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, dword [ebp]
inc eax
mov ecx, eax
add edi, ebx
mov edx, ecx
add ebx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x18]
mov ecx, edx
and ecx, 3
add ebp, 4
dec eax
rep movsb byte es:[edi], byte [esi]
mov dword [esp + 0x18], eax
jne 0x100116d1
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x34]
mov edi, dword [esp + 0x14]
inc eax
cmp eax, ecx
mov dword [esp + 0x10], eax
jl 0x100116b9
mov al, 0x65
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov byte [edi], 0x7f
mov byte [esp + 0x21], al
mov byte [esp + 0x24], al
mov al, 0x6c
mov byte [esp + 0x25], al
mov byte [esp + 0x2a], al
mov byte [esp + 0x2b], al
lea eax, [esp + 0x20]
push eax
mov byte [esp + 0x24], 0x6b
mov byte [esp + 0x26], 0x72
mov byte [esp + 0x27], 0x6e
mov byte [esp + 0x2a], 0x33
mov byte [esp + 0x2b], 0x32
mov byte [esp + 0x2c], 0x2e
mov byte [esp + 0x2d], 0x64
mov byte [esp + 0x30], 0
call esi
lea ecx, [esp + 0x20]
push 0x100024a4
push ecx
mov ebx, eax
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push edi
call eax
mov ecx, dword [esp + 0x1c]
push eax
push edi
call fcn.1000daf0
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [esp + 0x30]
mov dword [esp + 0x58], 0xffffffff
call fcn.10006650
mov ecx, dword [esp + 0x50]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x4c
ret
Function at 0x100117c0
Capabilities:
Acquire debug privileges
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
push 1
push 0x10002040
mov dword [ebp - 4], edi
call fcn.10011bf0
mov ebx, dword [ebp + 0xc]
add esp, 8
xor esi, esi
test ebx, ebx
jbe 0x10011814
mov eax, dword [ebp + 8]
mov ecx, dword [esi + eax]
push ecx
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
push 0
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add esi, 4
cmp esi, ebx
jb 0x100117e4
mov edi, dword [ebp - 4]
push 0
push 0x10002040
call fcn.10011bf0
add esp, 8
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, edi
call fcn.100114f0
mov ecx, edi
call fcn.10011590
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x10011e60
Capabilities:
Create thread

Disassembly:
sub esp, 0x10
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov dl, byte [esp + 0x2c]
push esi
push 0
push 0
push 0
push 0
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ecx
mov byte [esp + 0x1c], dl
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x2c]
lea edx, [esp + 4]
push eax
mov eax, dword [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x20]
push edx
push 0x10011de0
push eax
push ecx
call dword [sym.imp.MSVCRT.dll__beginthreadex]
mov edx, dword [esp + 0x28]
add esp, 0x18
mov esi, eax
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
add esp, 0x10
ret
Function at 0x10011ee0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov al, 0x6c
push ebx
mov byte [ebp - 0x13], al
mov byte [ebp - 0xe], al
mov byte [ebp - 0xd], al
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea eax, [ebp - 0x18]
push edi
push eax
mov byte [ebp - 0x18], 0x6b
mov byte [ebp - 0x17], 0x65
mov byte [ebp - 0x16], 0x72
mov byte [ebp - 0x15], 0x6e
mov byte [ebp - 0x14], 0x65
mov byte [ebp - 0x12], 0x33
mov byte [ebp - 0x11], 0x32
mov byte [ebp - 0x10], 0x2e
mov byte [ebp - 0xf], 0x64
mov byte [ebp - 0xc], 0
call esi
lea ecx, [ebp - 0x38]
lea edx, [ebp - 0x18]
mov bl, 0x73
push ecx
push edx
mov dword [ebp - 8], eax
mov byte [ebp - 0x38], 0x50
mov byte [ebp - 0x37], 0x72
mov byte [ebp - 0x36], 0x6f
mov byte [ebp - 0x35], 0x63
mov byte [ebp - 0x34], 0x65
mov byte [ebp - 0x33], bl
mov byte [ebp - 0x32], bl
mov byte [ebp - 0x31], 0x33
mov byte [ebp - 0x30], 0x32
mov byte [ebp - 0x2f], 0x46
mov byte [ebp - 0x2e], 0x69
mov byte [ebp - 0x2d], 0x72
mov byte [ebp - 0x2c], bl
mov byte [ebp - 0x2b], 0x74
mov byte [ebp - 0x2a], 0
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call edi
mov dword [ebp - 4], eax
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0x18]
push eax
push ecx
mov byte [ebp - 0x28], 0x50
mov byte [ebp - 0x27], 0x72
mov byte [ebp - 0x26], 0x6f
mov byte [ebp - 0x25], 0x63
mov byte [ebp - 0x24], 0x65
mov byte [ebp - 0x23], bl
mov byte [ebp - 0x22], bl
mov byte [ebp - 0x21], 0x33
mov byte [ebp - 0x20], 0x32
mov byte [ebp - 0x1f], 0x4e
mov byte [ebp - 0x1e], 0x65
mov byte [ebp - 0x1d], 0x78
mov byte [ebp - 0x1c], 0x74
mov byte [ebp - 0x1b], 0
call esi
push eax
call edi
push 0
push 2
mov edi, eax
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
push 0x128
mov ebx, eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov esi, eax
push esi
push ebx
mov dword [esi], 0x128
call dword [ebp - 4]
test eax, eax
je 0x10012036
mov edx, dword [ebp + 8]
lea eax, [esi + 0x24]
push edx
push eax
call dword [sym.imp.MSVCRT.dll__strcmpi]
add esp, 8
test eax, eax
jne 0x10012014
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esi + 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
push ebx
call edi
test eax, eax
je 0x10012036
mov eax, dword [ebp + 8]
push eax
lea eax, [esi + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x1001200a
push esi
push ebx
call edi
test eax, eax
jne 0x1001201c
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10012240
Capabilities:
Check os version

Disassembly:
sub esp, 0x9c
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
push edi
mov ecx, 0x27
xor eax, eax
lea edi, [esp + 8]
rep stosd dword es:[edi], eax
lea eax, [esp + 8]
mov dword [esp + 8], 0x9c
push eax
call esi
test eax, eax
jne 0x1001228a
lea ecx, [esp + 8]
mov dword [esp + 8], 0x94
push ecx
call esi
test eax, eax
jne 0x1001228a
pop edi
pop esi
add esp, 0x9c
ret
cmp dword [esp + 0xc], 5
jne 0x100122a7
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x100122a7
call fcn.100120b0
pop edi
pop esi
add esp, 0x9c
ret
call fcn.10012050
pop edi
pop esi
add esp, 0x9c
ret

Function at 0x100124d0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x414
push ebx
push ebp
push esi
xor ebp, ebp
push edi
push ebp
push ebp
push ebp
mov esi, 1
push ebp
push 0x1000232c
mov dword [esp + 0x24], ebp
mov dword [esp + 0x30], ebp
mov dword [esp + 0x28], esi
call dword [fcn.10003b50]
mov edi, eax
cmp edi, ebp
mov dword [esp + 0x20], edi
jne 0x10012513
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x414
ret
mov eax, dword [esp + 0x428]
push ebp
push 0x80000000
push ebp
push ebp
push eax
push edi
call dword [fcn.10003b4c]
mov ebx, eax
cmp ebx, ebp
jne 0x1001253d
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x414
ret
mov ecx, dword [esp + 0x42c]
push ebp
push ebp
push 2
push ebp
push ebp
push 0x40000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [esp + 0x18], eax
je 0x100125cf
mov ebp, dword [fcn.10003b48]
mov ecx, 0x100
xor eax, eax
lea edi, [esp + 0x24]
lea edx, [esp + 0x10]
rep stosd dword es:[edi], eax
push edx
lea eax, [esp + 0x28]
push 0x400
push eax
push ebx
call ebp
test esi, esi
je 0x10012591
cmp word [esp + 0x24], 0x5a4d
jne 0x100125b8
mov edx, dword [esp + 0x10]
xor esi, esi
lea ecx, [esp + 0x1c]
push esi
push ecx
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x2c]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 0x10]
test eax, eax
jbe 0x100125c0
jmp 0x10012565
mov dword [esp + 0x14], 0
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [esp + 0x20]
mov esi, dword [0x10003b54]
push ebx
call esi
push edi
call esi
mov ecx, dword [esp + 0x14]
xor eax, eax
pop edi
pop esi
test ecx, ecx
pop ebp
pop ebx
setne al
add esp, 0x414
ret
Function at 0x40570a
Capabilities:
Hash data using sha256

Disassembly:
cmp dword [0x441e68], 2
jl 0x40572f
movaps xmm0, xmmword [0x430480]
movaps xmmword [0x43ab80], xmm0
movaps xmm0, xmmword [0x430470]
movaps xmmword [0x43ab90], xmm0
push esi
mov esi, dword [esp + 8]
mov ecx, esi
call fcn.00405adb
xor edx, edx
mov ecx, dword [esi + 0xf4]
mov eax, dword [edx + 0x430450]
mov dword [edx + ecx], eax
add edx, 4
cmp edx, 0x20
jl 0x40573d
mov eax, dword [esi + 0xf4]
xor dword [eax], 0x2080020
mov ecx, dword [esi + 0xf4]
mov eax, dword [esp + 0xc]
xor dword [ecx + 8], eax
mov ecx, dword [esi + 0xf4]
mov eax, dword [esp + 0x10]
or eax, 0x2000
shl eax, 0x10
xor dword [ecx + 0xc], eax
pop esi
ret 0xc

Function at 0x405e5f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x405e91
test dl, 7
je 0x405e91
movzx ecx, byte [edx]
movzx eax, bl
xor ecx, eax
shr ebx, 8
xor ebx, dword [ecx*4 + 0x43aba0]
inc edx
mov dword [ebp + 0xc], edx
sub esi, 1
jne 0x405e71
cmp esi, 8
jb 0x405f21
push edi
mov edi, esi
shr edi, 3
xor ebx, dword [edx]
sub esi, 8
mov edx, dword [edx + 4]
mov ecx, edx
shr ecx, 0x18
mov eax, edx
shr eax, 0x10
movzx eax, al
mov ecx, dword [ecx*4 + 0x43aba0]
xor ecx, dword [eax*4 + 0x43afa0]
mov eax, edx
shr eax, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x43b3a0]
mov eax, ebx
shr eax, 0x18
xor ecx, dword [eax*4 + 0x43bba0]
mov eax, ebx
shr eax, 0x10
movzx eax, al
xor ecx, dword [eax*4 + 0x43bfa0]
mov eax, ebx
shr eax, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x43c3a0]
movzx eax, dl
mov edx, dword [ebp + 0xc]
add edx, 8
mov dword [ebp + 0xc], edx
xor ecx, dword [eax*4 + 0x43b7a0]
movzx eax, bl
xor ecx, dword [eax*4 + 0x43c7a0]
mov ebx, ecx
sub edi, 1
jne 0x405ea0
pop edi
test esi, esi
je 0x405f3d
movzx ecx, byte [edx]
movzx eax, bl
xor ecx, eax
shr ebx, 8
xor ebx, dword [ecx*4 + 0x43aba0]
inc edx
sub esi, 1
jne 0x405f25
pop esi
mov eax, ebx
pop ebx
pop ebp
ret 0xc

Function at 0x4060aa
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
mov esi, dword [esp + 0x30]
xor ebx, ebx
push 0x20
pop ebp
cmp dword [esi], 2
jne 0x406101
mov eax, dword [esi + 4]
push edi
push ebx
push ebx
push ebx
push ebx
mov dword [esp + 0x44], eax
lea eax, [esp + 0x20]
push eax
push 4
lea eax, [esp + 0x4c]
push eax
push ebp
push dword [esp + 0x58]
call fcn.00406784
mov dword [esi + 4], ebx
mov edx, ebx
mov edi, ebx
movzx eax, byte [esp + edx + 0x10]
mov ecx, edx
and ecx, 3
shl ecx, 3
shl eax, cl
xor edi, eax
inc edx
cmp edx, ebp
jb 0x4060e7
mov dword [esi + 4], edi
pop edi
cmp dword [esi], 3
jne 0x40612d
push ebx
push ebx
push ebx
push ebx
lea eax, [esp + 0x1c]
add esi, 4
push eax
push ebp
push esi
push ebp
push dword [esp + 0x54]
call fcn.00406784
push ebp
lea eax, [esp + 0x10]
push eax
push esi
call fcn.0041e020
add esp, 0xc
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 8
Function at 0x40652d
Capabilities:
Encode data using xor
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x264
push ebx
mov ebx, dword [esp + 0x280]
mov eax, ecx
mov dword [esp + 4], eax
cmp ebx, 0x18
ja 0x406729
push ebp
push esi
xor ebp, ebp
lea esi, [eax + 0x4b4]
push edi
mov edi, ebp
cmp dword [esi + 0x134], ebx
jne 0x406591
push dword [esp + 0x27c]
mov ecx, esi
call fcn.0040dd98
test al, al
je 0x406591
push 0x10
push dword [esp + 0x288]
lea eax, [esi + 0x102]
push eax
call fcn.0041e96a
add esp, 0xc
test eax, eax
je 0x406733
inc edi
add esi, 0x178
cmp edi, 4
jb 0x406557
mov esi, 0x200
lea eax, [esp + 0x74]
push esi
push eax
push dword [esp + 0x288]
call fcn.00410947
xor eax, eax
mov ecx, ebx
inc eax
shl eax, cl
push eax
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x5c]
push eax
lea eax, [esp + 0x20]
push eax
push 0x10
push dword [esp + 0x298]
lea eax, [esp + 0x8c]
push eax
call fcn.00422160
pop ecx
push eax
lea eax, [esp + 0x90]
push eax
call fcn.0040698f
push esi
lea eax, [esp + 0x78]
push eax
call fcn.0040dfc6
mov edx, dword [esp + 0x10]
mov esi, dword [esp + 0x27c]
push 0x40
mov ecx, dword [edx + 0xa94]
lea ebx, [edx + 0x4b4]
mov eax, ecx
and eax, 3
imul eax, eax, 0x178
add ebx, eax
lea eax, [ecx + 1]
mov dword [edx + 0xa94], eax
mov edi, ebx
mov eax, dword [esp + 0x290]
pop ecx
mov dword [ebx + 0x134], eax
lea eax, [ebx + 0x102]
rep movsd dword es:[edi], dword [esi]
push 0x10
push dword [esp + 0x288]
push eax
movsw word es:[edi], word [esi]
call fcn.0041e020
push 0x20
pop edi
push edi
lea eax, [esp + 0x24]
push eax
lea esi, [ebx + 0x112]
push esi
call fcn.0041e020
push edi
lea eax, [esp + 0x50]
push eax
lea eax, [ebx + 0x138]
push eax
call fcn.0041e020
push edi
lea eax, [esp + 0x7c]
push eax
lea eax, [ebx + 0x158]
push eax
call fcn.0041e020
add esp, 0x30
push ebp
push 1
push edi
push esi
call fcn.0040ded1
cmp dword [esp + 0x290], ebp
je 0x4066b7
push edi
lea eax, [esp + 0x58]
push eax
push dword [esp + 0x298]
call fcn.0041e020
add esp, 0xc
mov esi, dword [esp + 0x294]
test esi, esi
je 0x4066ea
push 8
push ebp
push esi
call fcn.0041dec0
add esp, 0xc
mov al, byte [esp + ebp + 0x34]
mov ecx, ebp
and ecx, 7
xor byte [ecx + esi], al
inc ebp
cmp ebp, edi
jb 0x4066ce
push edi
lea eax, [esp + 0x38]
push eax
call fcn.0040dfc6
cmp dword [esp + 0x288], 0
je 0x40671b
push dword [esp + 0x288]
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x18]
push 0x100
push eax
push dword [esp + 0x284]
add ecx, 0xa9c
call fcn.0040d472
push edi
lea eax, [esp + 0x18]
push eax
call fcn.0040dfc6
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x264
ret 0x20
push 0x20
pop edi
push edi
lea eax, [esi + 0x112]
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.0041e020
add esp, 0xc
lea eax, [esp + 0x14]
push ebp
push ebp
push edi
push eax
call fcn.0040ded1
push edi
lea eax, [esi + 0x138]
push eax
lea eax, [esp + 0x3c]
push eax
call fcn.0041e020
push edi
lea eax, [esi + 0x158]
push eax
lea eax, [esp + 0x68]
push eax
call fcn.0041e020
add esp, 0x18
jmp 0x406699