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

Disassembly:
push ebp
mov edx, 9
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x403bc7
lea eax, [esp]
push eax
call sub.KERNEL32.dll_GetNativeSystemInfo
lea ebp, [esp]
cmp word [ebp], 0
je 0x403bee
mov eax, 1
jmp 0x403bf0
xor eax, eax
add esp, 0x24
pop ebp
ret

Function at 0x403bf5
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.00405060
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 0x403c4b
push dword [esp + 4]
push dword [esp + 0x24]
call sub.KERNEL32.dll_LoadResource
mov dword [0x41244c], eax
push dword [esp + 4]
push dword [esp + 0x24]
call sub.KERNEL32.dll_SizeofResource
mov dword [0x41245c], eax
push dword [esp]
mov edx, 0x41107e
pop ecx
call fcn.0040e5a0
jne 0x403c7d
push dword [esp]
mov edx, 0x411084
pop ecx
call fcn.0040e5a0
jne 0x403c7d
push dword [esp]
mov edx, str.NOPSX
pop ecx
call fcn.0040e5a0
jne 0x403c7d
jmp 0x403c84
mov eax, 1
jmp 0x403c86
xor eax, eax
and eax, eax
je 0x403cf1
push dword [0x41245c]
call fcn.0040b820
mov dword [esp + 8], eax
mov dword [esp + 0xc], 0
mov ebx, dword [0x41245c]
dec ebx
cmp ebx, dword [esp + 0xc]
jl 0x403ce7
mov ebx, dword [0x41244c]
add ebx, dword [esp + 0xc]
push ebx
pop eax
call fcn.0040b890
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.0040b8a0
inc dword [esp + 0xc]
jno 0x403ca1
push dword [esp + 8]
pop eax
mov dword [0x41244c], eax
mov eax, dword [esp + 4]
jmp 0x403cf9
push dword [esp]
call fcn.0040e630
add esp, 0x18
pop ebx
ret 8
Function at 0x403fb5
Capabilities:
Delete directory

Disassembly:
push ebp
push ebx
xor eax, eax
push eax
mov ebx, dword [0x4124e4]
cmp ebx, 1
jne 0x404072
push dword [0x41253c]
call fcn.00408deb
mov ebx, eax
and ebx, ebx
jle 0x404019
push dword [0x41253c]
call fcn.00408df5
push dword [0x41253c]
call fcn.00408e0a
or eax, eax
je 0x404019
mov ebp, dword [0x412540]
push dword [ebp + 8]
call fcn.0040d090
mov ebx, eax
cmp ebx, dword [ebp + 0xc]
jne 0x404017
mov ebp, dword [0x412540]
push dword [ebp + 8]
call fcn.0040ba5c
jmp 0x403fe5
push dword [0x412544]
call fcn.00408deb
mov dword [esp], eax
mov ebx, dword [esp]
and ebx, ebx
jle 0x404072
push 5
push 0
push 1
push dword [0x412544]
call fcn.004078e0
push dword [0x412544]
call fcn.00408df5
push dword [0x412544]
call fcn.00408e0a
or eax, eax
je 0x404072
mov ebp, dword [0x412548]
push dword [ebp + 0xc]
call sub.KERNEL32.dll_RemoveDirectoryA
jmp 0x404053
mov eax, 1
jmp 0x40407b
add esp, 4
pop ebx
pop ebp
ret

Function at 0x4081fd
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
xor ebx, ebx
push esi
push edi
cmp dword [esp + 0x10], ebx
je 0x40824c
push dword [esp + 0x10]
push 0x40817b
call dword [sym.imp.USER32.DLL_EnumWindows]
mov esi, dword [0x412554]
cmp esi, ebx
je 0x4082a0
mov edi, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [esi + 8], eax
jne 0x408244
cmp byte [esi + 0x10], bl
je 0x408244
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 0x408221
jmp 0x4082a0
mov esi, dword [0x412554]
cmp esi, ebx
je 0x4082a0
push ebp
mov ebp, dword [esi]
lea edi, [esi + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [edi], eax
jne 0x408299
cmp byte [esi + 0x11], bl
je 0x408276
push 1
push dword [esi + 0xc]
call dword [sym.imp.USER32.DLL_EnableWindow]
cmp byte [esi + 0x10], bl
je 0x40828c
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 0x412554
call fcn.0040e14d
pop ecx
pop ecx
mov esi, ebp
cmp ebp, ebx
jne 0x408257
pop ebp
pop edi
pop esi
pop ebx
ret 4
Function at 0x409824
Capabilities:
Get graphical window text

Disassembly:
push edi
push dword [esp + 8]
push dword [0x412894]
call fcn.0040da7a
mov edi, eax
test edi, edi
je 0x409886
mov eax, dword [edi + 4]
mov eax, dword [eax + 0x18]
test eax, eax
je 0x40984d
push dword [esp + 0xc]
push edi
call eax
jmp 0x409886
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.0040e760
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.0040e890
pop esi
pop ebx
pop edi
ret 8

Function at 0x409baf
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 0x409c98
mov eax, dword [ebp - 0xc]
dec eax
je 0x409c7b
dec eax
jne 0x409c98
lea eax, [ebp - 0xb8]
push eax
xor esi, esi
mov dword [ebp - 0xb8], 0x9c
call edi
test eax, eax
je 0x409c0e
cmp byte [ebp - 0x1e], 1
jne 0x409c0e
inc esi
mov eax, dword [ebp - 0x18]
sub eax, 3
je 0x409c77
dec eax
je 0x409c73
dec eax
je 0x409c51
dec eax
jne 0x409c98
mov eax, dword [ebp - 0x14]
sub eax, 0
je 0x409c45
dec eax
je 0x409c39
dec eax
jne 0x409c98
neg esi
sbb esi, esi
and esi, 0xfffffffb
lea ebx, [esi + 0x5f]
jmp 0x409c98
neg esi
sbb esi, esi
and esi, 0xfffffffb
lea ebx, [esi + 0x55]
jmp 0x409c98
neg esi
sbb esi, esi
and esi, 0xfffffffb
lea ebx, [esi + 0x4b]
jmp 0x409c98
mov eax, dword [ebp - 0x14]
sub eax, 0
je 0x409c6f
dec eax
je 0x409c6b
dec eax
jne 0x409c98
neg esi
sbb esi, esi
and esi, 0xfffffffb
lea ebx, [esi + 0x41]
jmp 0x409c98
push 0x3c
jmp 0x409c97
push 0x32
jmp 0x409c97
push 0x14
jmp 0x409c97
push 5
jmp 0x409c97
cmp dword [ebp - 0x14], 0
je 0x409c95
cmp dword [ebp - 0x14], 0xa
je 0x409c91
cmp dword [ebp - 0x14], 0x5a
jne 0x409c98
push 0x28
jmp 0x409c97
push 0x1e
jmp 0x409c97
push 0xa
pop ebx
pop edi
pop esi
mov eax, ebx
pop ebx
add ebp, 0x78
leave
ret
Function at 0x40ac01
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 0x40ac7d
push 9
call esi
test bl, al
je 0x40ac7d
push 0x11
call esi
test bl, al
jne 0x40ac7d
push 0x10
call esi
test bl, al
jne 0x40ac7d
push 0x12
call esi
test bl, al
jne 0x40ac7d
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 0x40ac7d
push eax
push eax
push 0x44e
push edi
call dword [sym.imp.USER32.DLL_SendMessageA]
test eax, 0x800
jne 0x40ac7d
xor eax, eax
jmp 0x40acff
push ebp
mov ebp, dword [esp + 0x20]
test ebp, ebp
je 0x40aca6
push 0x11
call esi
test bl, al
jne 0x40ac9e
push 0x10
call esi
test bl, al
jne 0x40ac9e
push 0x12
call esi
test bl, al
je 0x40aca6
push 1
push ebp
call fcn.0040abba
mov esi, dword [sym.imp.USER32.DLL_GetPropA]
test edi, edi
je 0x40acbc
push str.PB_Hotkey
push edi
call esi
test eax, eax
jne 0x40acfc
push str.PB_WindowID
push ebp
call esi
mov esi, eax
test esi, esi
je 0x40acfc
lea eax, [esp + 0x10]
push eax
push ebp
call dword [sym.imp.USER32.DLL_GetWindowThreadProcessId]
test eax, eax
je 0x40acfc
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [esp + 0x10], eax
jne 0x40acfc
dec esi
push esi
push dword [0x41289c]
call fcn.0040da7a
test eax, eax
je 0x40acfc
mov eax, dword [eax + 8]
jmp 0x40acfe
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0xc
ret 4

Function at 0x40adc1
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 [0x4127ac], eax
cmp eax, edi
je 0x40adf4
push str.AlphaBlend
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4127b0], eax
lea eax, [ebp - 0x1c]
push eax
mov dword [0x4127a8], 1
mov dword [ebp - 0x1c], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x40ae32
cmp dword [ebp - 0xc], 1
je 0x40ae43
cmp dword [ebp - 0xc], 2
jne 0x40ae32
cmp dword [ebp - 0x18], 5
jb 0x40ae43
jne 0x40ae32
cmp dword [ebp - 0x14], edi
jne 0x40ae32
mov dword [0x4127a8], edi
cmp dword [0x4127a8], edi
je 0x40ae49
call fcn.0040ad08
test eax, eax
jne 0x40ae49
mov dword [0x4127a8], edi
pop edi
add ebp, 0x78
leave
ret

Function at 0x40ba2e
Capabilities:
Delete file
Set file attributes

Disassembly:
cmp dword [esp + 4], 0
je 0x40ba57
test byte [esp + 8], 2
je 0x40ba4b
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 0x40ba59
xor eax, eax
ret 8
Function at 0x40ba6a
Capabilities:
Create directory

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

Function at 0x40bbb0
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 0x40bbe5
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 0x40bf90
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 0x40bfd7
cmp byte [esi], al
je 0x40bfd7
mov eax, dword [esp + 0xc]
mov ecx, dword [0x41293c]
push eax
push ecx
call fcn.0040da7a
test eax, eax
je 0x40c005
cmp dword [eax + 4], 0
mov ecx, esi
push edi
lea edi, [ecx + 1]
je 0x40bfe0
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x40bfc5
sub ecx, edi
push ecx
push esi
push eax
call fcn.0040c150
pop edi
pop esi
pop ecx
ret 8
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x40bfe0
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 0x40c010
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 0x40c069
push esi
mov esi, dword [esp + 0x18]
test esi, esi
je 0x40c068
mov eax, dword [esp + 0x10]
mov ecx, dword [0x41293c]
push eax
push ecx
call fcn.0040da7a
test eax, eax
je 0x40c064
cmp dword [eax + 4], 0
je 0x40c052
push esi
push edi
push eax
call fcn.0040c150
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 0x40c070
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
mov eax, dword [esp + 0xc]
mov ecx, dword [0x41293c]
push esi
push eax
push ecx
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
call fcn.0040da7a
mov esi, eax
test esi, esi
je 0x40c137
mov ecx, dword [esp + 0x14]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
test ecx, ecx
je 0x40c0ef
cmp byte [ecx], 0
je 0x40c0ef
cmp dword [esi + 4], 0
mov eax, ecx
push edi
lea edi, [eax + 1]
je 0x40c0d7
nop
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x40c0c0
sub eax, edi
push eax
push ecx
push esi
call fcn.0040c150
mov dword [esp + 0xc], eax
jmp 0x40c0ee
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x40c0d7
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 0x40c112
push 2
push 0x41050c
push esi
call fcn.0040c150
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 0x41050c
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 0x40c150
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 0x40c185
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 0x40c1fa
mov eax, dword [esi + 8]
add eax, dword [esi + 4]
sub eax, ecx
mov ecx, edi
dec ecx
je 0x40c1e7
dec ecx
je 0x40c1d2
sub ecx, 2
je 0x40c1bf
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.0040bbb0
mov eax, dword [esi + 8]
cmp edi, eax
jl 0x40c227
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 0x40ce70
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 0x40d07e
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 0x40d07d
mov eax, dword [0x412440]
push ebp
push 0x80000
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebp, eax
test ebp, ebp
je 0x40d075
cmp dword [esp + 0x30], ebx
jl 0x40cef1
mov eax, dword [esp + 0x2c]
jg 0x40cee2
test eax, eax
je 0x40cef1
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 0x40cf05
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 0x40cf3d
mov eax, ebx
cdq
cmp edx, ecx
jl 0x40cf3d
jg 0x40cf35
cmp eax, dword [esp + 0x34]
jbe 0x40cf3d
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 0x40d03c
mov edi, ebx
shr edi, 3
jmp 0x40cf70
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 + 0x410558]
movzx esi, byte [eax + 1]
xor esi, ecx
and esi, 0xff
shr ecx, 8
xor ecx, dword [esi*4 + 0x410558]
movzx esi, byte [eax + 2]
xor esi, ecx
and esi, 0xff
shr ecx, 8
xor ecx, dword [esi*4 + 0x410558]
movzx esi, byte [eax + 3]
xor esi, ecx
and esi, 0xff
shr ecx, 8
xor ecx, dword [esi*4 + 0x410558]
movzx esi, byte [eax + 4]
xor esi, ecx
and esi, 0xff
shr ecx, 8
xor ecx, dword [esi*4 + 0x410558]
movzx esi, byte [eax + 5]
xor esi, ecx
and esi, 0xff
shr ecx, 8
xor ecx, dword [esi*4 + 0x410558]
movzx esi, byte [eax + 6]
xor esi, ecx
and esi, 0xff
shr ecx, 8
xor ecx, dword [esi*4 + 0x410558]
movzx esi, byte [eax + 7]
xor esi, ecx
and esi, 0xff
shr ecx, 8
xor ecx, dword [esi*4 + 0x410558]
add eax, 8
sub edx, 8
dec edi
mov esi, ecx
jne 0x40cf70
mov edi, dword [esp + 0x20]
test edx, edx
je 0x40d059
movzx ecx, byte [eax]
xor ecx, esi
and ecx, 0xff
shr esi, 8
xor esi, dword [ecx*4 + 0x410558]
inc eax
dec edx
jne 0x40d040
cmp ebx, 0x80000
je 0x40cf01
mov edx, dword [0x412440]
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 0x40d0b0
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 0x401c54
Capabilities:
Parse pe header

Disassembly:
push 0xc
push 0x402150
call fcn.004020cc
xor ecx, ecx
mov eax, dword [ebp + 8]
test eax, eax
je 0x401cb4
cmp eax, 0xffffffff
je 0x401cb4
mov dword [ebp - 4], ecx
mov edx, 0x5a4d
cmp word [eax], dx
jne 0x401cad
mov edx, dword [eax + 0x3c]
test edx, edx
js 0x401cad
cmp edx, 0x10000000
jae 0x401cad
add eax, edx
mov dword [ebp - 0x1c], eax
mov ecx, dword [eax]
sub ecx, 0x4550
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
jmp 0x401caa
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, ecx
call fcn.00402111
ret 4

Function at 0x401d10
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x401d4e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x401d46
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x401d50
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x401d36
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x401e20
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 0x401e36
xor eax, eax
pop ebp
ret
mov ecx, dword [eax + 0x3c]
add ecx, eax
xor eax, eax
cmp dword [ecx], 0x4550
jne 0x401e51
mov edx, 0x10b
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
Function at 0x4046f0
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffdf4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.004068c4
test esi, esi
jne 0x404726
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00406a2c
jmp 0x404744
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00404634
mov edi, eax
test esi, esi
je 0x404744
cmp dword [ebx], 0
je 0x404744
dec esi
jmp 0x40472d
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x405670
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff4
mov edi, edx
mov esi, eax
mov ebp, dword [esi + 0x10]
mov eax, esi
call fcn.00405a5c
mov byte [esp], al
cmp byte [esp], 0
jne 0x4057f9
test edi, edi
je 0x4057f9
mov byte [esp + 1], 0
test ebp, ebp
jle 0x405730
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
test ebp, ebp
jle 0x40570b
cmp edi, 0xffffffff
je 0x4056cf
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x4056cf
mov byte [esp], 0
jmp 0x4057f9
mov ebx, dword [esi]
cmp ebx, 1
jg 0x40570b
test ebx, ebx
jne 0x405704
mov eax, esi
xor ecx, ecx
mov edx, 1
call fcn.00402580
test eax, eax
jne 0x405704
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x4057f9
pause
dec ebp
test ebp, ebp
jg 0x4056b4
cmp edi, 0xffffffff
je 0x405730
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x40572e
mov byte [esp], 0
jmp 0x4057f9
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x40567e
lea edx, [ebx + 2]
mov eax, esi
mov ecx, ebx
call fcn.00402580
cmp ebx, eax
jne 0x405730
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.0040586c
mov edx, eax
mov ebx, dword [0x4ce8c8]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x405797
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x405795
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x405797
xor edi, edi
cmp byte [esp], 0
je 0x4057c0
mov ebx, dword [esi]
test bl, 1
jne 0x4057d9
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, esi
mov ecx, ebx
call fcn.00402580
cmp ebx, eax
jne 0x40579d
mov byte [esp + 1], 1
jmp 0x4057d9
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, esi
mov ecx, ebx
call fcn.00402580
cmp ebx, eax
jne 0x4057c0
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x40574a
cmp byte [esp], 0
je 0x4057f9
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
movzx eax, byte [esp]
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x406574
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4ce050], 0
je 0x4065d5
cmp word [0x4ce32c], 0xd7b2
jne 0x40659d
cmp dword [0x4ce334], 0
jbe 0x40659d
mov eax, 0x4ce328
call dword [0x4ce344]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x406600
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4cb028], 0
jne 0x4065f1
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x406780
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov edi, dword [ebp + 0x10]
cmp dword [0x4cb02c], 0
je 0x4067ab
mov edx, edi
mov eax, esi
call dword [0x4cb02c]
mov ebx, eax
jmp 0x4067bc
mov eax, 8
call fcn.00404368
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x4ce051], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x406748
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_CreateThread
mov esi, eax
test esi, esi
jne 0x4067f1
mov edx, 8
mov eax, ebx
call fcn.00404384
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc