joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4046b3
Capabilities:
Enumerate pe sections

Disassembly:
add edi, eax
movzx eax, word [edi + 0x14]
lea esi, [eax + edi + 0x18]
mov dword [ebp - 0x44], esi
call fcn.004044b4
push ss
les ecx, [eax + 0x26]
movzx eax, word [edi + 6]
lea eax, [eax + eax*4]
shl eax, 3
sub eax, dword [ebp + 0x10]
add eax, esi
mov dword [ebp - 0xb4], eax
mov dword [ebp - 8], eax
call fcn.004044b4
sal dword [esi - 0x7499ea38], cl
inc edi
push es
cmp ax, bx
jbe 0x40470e
lea ecx, [esi + 0xc]
movzx edx, ax
mov eax, dword [ecx + 4]
mov esi, dword [ecx]
add eax, esi
cmp dword [ebp - 8], eax
jae 0x404708
mov dword [ebp - 8], eax
add ecx, 0x28
dec edx
jne 0x4046f9
mov byte [ebp - 0x58], bl
mov byte [ebp - 0x57], bl
mov byte [ebp - 0x56], 0x58
mov byte [ebp - 0x55], bl
mov byte [ebp - 0x54], 0xe0
mov byte [ebp - 0x53], 0xc2
mov byte [ebp - 0x52], 0xd3
mov byte [ebp - 0x51], 0xf4
mov byte [ebp - 0x50], 0xde
mov byte [ebp - 0x4f], 0xd4
mov byte [ebp - 0x4e], 0xd3
mov byte [ebp - 0x4d], 0xc2
mov byte [ebp - 0x4c], 0xca
mov byte [ebp - 0x4b], 0xee
mov byte [ebp - 0x4a], 0xc9
mov byte [ebp - 0x49], 0xc1
mov byte [ebp - 0x48], 0xc8
mov byte [ebp - 0x47], 0xa7
call fcn.004044b4
iretd

Function at 0x40488b
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0x65], 0x35
mov byte [ebp - 0x64], 0x34
mov byte [ebp - 0x63], 0x20
mov byte [ebp - 0x62], 0x2d
mov byte [ebp - 0x61], 0x11
mov byte [ebp - 0x60], 0x33
mov byte [ebp - 0x5f], 0x2e
mov byte [ebp - 0x5e], 0x35
mov byte [ebp - 0x5d], 0x24
mov byte [ebp - 0x5c], 0x22
mov byte [ebp - 0x5b], 0x35
mov byte [ebp - 0x5a], 0x41
call fcn.004044c4
push eax
push esi
push dword [ebp + 8]
invalid
Function at 0x40591a
Capabilities:
Contain obfuscated stackstrings

Disassembly:
and byte [ebp - 0x72b], 0
mov byte [ebp - 0x72a], 0xc2
and byte [ebp - 0x729], 0
mov byte [ebp - 0x728], 0x6b
mov byte [ebp - 0x727], 0x54
mov byte [ebp - 0x726], 0x4f
mov byte [ebp - 0x725], 0x49
mov byte [ebp - 0x724], 0x48
mov byte [ebp - 0x723], 0x5c
mov byte [ebp - 0x722], 0x51
mov byte [ebp - 0x721], 0x6d
mov byte [ebp - 0x720], 0x4f
mov byte [ebp - 0x71f], 0x52
mov byte [ebp - 0x71e], 0x49
mov byte [ebp - 0x71d], 0x58
mov byte [ebp - 0x71c], 0x5e
invalid
test ebp, esp
clc
invalid
Function at 0x408cd0
Capabilities:
Set console window title

Disassembly:
sub esp, 0x40c
mov eax, dword [0x82507c]
xor eax, esp
mov dword [esp + 0x408], eax
mov eax, dword [0x83204c]
push ebx
mov ebx, dword [0x831ea8]
push edi
mov edi, eax
cmp eax, 0x5dd
jne 0x408d1c
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0xc]
push ecx
push 0
lea edx, [esp + 0x1c]
push edx
push 0
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_ReadEventLogW]
mov eax, dword [0x83204c]
push esi
mov esi, dword [0x825e60]
cmp eax, 0x930
jne 0x408d37
push 0
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleW]
mov eax, dword [0x83204c]
mov dword [0x827e34], esi
pop esi
cmp eax, 0x114e
jne 0x408d60
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
push 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov eax, dword [0x83204c]
cmp eax, 0x2f
jne 0x408d7d
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumTimeFormatsW]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_FindNextVolumeMountPointA]
push edi
push ebx
call fcn.00408b90
mov ecx, dword [esp + 0x418]
add esp, 8
pop edi
pop ebx
xor ecx, esp
call fcn.004015ad
add esp, 0x40c
ret
Function at 0x471ce0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x62000]
push edi
jmp 0x471cfa
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x471d01
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x471cf0
mov eax, 1
add ebx, ebx
jne 0x471d13
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x471d24
jne 0x471d43
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x471d43
dec eax
add ebx, ebx
jne 0x471d30
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x471d08
add ebx, ebx
jne 0x471d3f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x471d95
xor ecx, ecx
sub eax, 3
jb 0x471d5b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x471dca
sar eax, 1
mov ebp, eax
jmp 0x471d66
add ebx, ebx
jne 0x471d66
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x471d34
inc ecx
add ebx, ebx
jne 0x471d74
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x471d34
add ebx, ebx
jne 0x471d81
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x471d76
jne 0x471d92
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x471d76
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x471db4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x471da6
jmp 0x471cf6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x471db4
add edi, ecx
jmp 0x471cf6
pop esi
mov edi, esi
mov ecx, 0xd97
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x471dd2
cmp byte [edi], 9
jne 0x471dd2
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x471dd7
lea edi, [esi + 0x6f000]
mov eax, dword [edi]
or eax, eax
je 0x471e4f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xb92f8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xb935c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x471e04
mov ecx, edi
jns 0x471e33
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xb9364]
or eax, eax
je 0x471e49
mov dword [ebx], eax
add ebx, 4
jmp 0x471e21
call dword [esi + 0xb9360]
mov ebp, dword [esi + 0xb9368]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x20f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x471e83
sub esp, 0xffffff80
jmp 0x4148d4
Function at 0x406480
Capabilities:
Create thread
Inject thread

Disassembly:
push dword [0x42e140]
pop dword [0x42e1c0]
mov edx, dword [0x42e130]
push dword [0x42e8c4]
call fcn.004151c0
lea ecx, [0x42e128]
pop edx
call fcn.0040802c
push dword [0x42e128]
call fcn.00408110
mov ebx, eax
inc ebx
mov dword [0x42e1f0], ebx
push dword [0x42e1c0]
push 0
push 0x1f0fff
call sub.KERNEL32.dll_OpenProcess
mov dword [0x42e1bc], eax
cmp dword [0x42e1bc], 0
je 0x40661c
push 4
push 0x1000
push dword [0x42e1f0]
push 0
push dword [0x42e1bc]
call sub.KERNEL32.dll_VirtualAllocEx
mov dword [0x42e1d4], eax
cmp dword [0x42e1d4], 0
je 0x406611
push 0x42e0f4
push dword [0x42e1f0]
push dword [0x42e128]
push dword [0x42e1d4]
push dword [0x42e1bc]
call sub.KERNEL32.dll_WriteProcessMemory
mov ebx, dword [0x42e0f4]
cmp ebx, dword [0x42e1f0]
jl 0x4065f5
push str.Kernel32.dll
push 0
call fcn.004098c0
and eax, eax
je 0x4065f5
push 0x416238
push 0
call fcn.00409910
mov dword [0x42e198], eax
push 0
call fcn.00409840
cmp dword [0x42e198], 0
je 0x4065f5
push 0
push 0
push dword [0x42e1d4]
push dword [0x42e198]
push 0
push 0
push dword [0x42e1bc]
call sub.KERNEL32.dll_CreateRemoteThread
mov dword [0x42e13c], eax
cmp dword [0x42e13c], 0
je 0x4065f5
push 0xffffffff
push dword [0x42e13c]
call sub.KERNEL32.dll_WaitForSingleObject
push 0x42e1e0
push dword [0x42e13c]
call sub.KERNEL32.dll_GetExitCodeThread
push str.Successful_Injection.
push 0
push 0
call fcn.00408713
push 0x4000
push dword [0x42e1f0]
push dword [0x42e1d4]
push dword [0x42e1bc]
call sub.KERNEL32.dll_VirtualFreeEx
push dword [0x42e1bc]
call sub.KERNEL32.dll_CloseHandle
push dword [0x42e130]
call fcn.00414870
mov dword [0x42e1e0], eax
ret

Function at 0x40911e
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
cmp dword [ebp + 8], 0
je 0x409138
push dword [ebp + 8]
push 0x4090b0
call sub.USER32.dll_EnumWindows
jmp 0x40916f
mov edi, dword [0x42b770]
jmp 0x40916b
mov esi, dword [edi]
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [edi + 8], eax
jne 0x409169
push 1
push dword [edi + 0xc]
call sub.USER32.dll_EnableWindow
mov eax, edi
add eax, 8
push eax
push 0x42b770
call fcn.00415120
add esp, 8
mov edi, esi
or edi, edi
jne 0x409140
pop edi
pop esi
pop ebp
ret 4
Function at 0x40aa70
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
cmp dword [edi + 0x14], 0xca
jne 0x40aaa6
push edi
call fcn.0040a4a4
pop ecx
cmp byte [edi + 0x40], 0
je 0x40aa9f
mov dword [edi + 0x14], 0xcf
xor eax, eax
inc eax
jmp 0x40ab5b
mov dword [edi + 0x14], 0xcb
cmp dword [edi + 0x14], 0xcb
jne 0x40ab2a
mov eax, dword [edi + 0x190]
cmp byte [eax + 0x10], 0
je 0x40ab1f
cmp dword [edi + 8], 0
je 0x40aacd
push edi
mov ebx, dword [edi + 8]
call dword [ebx]
pop ecx
push edi
mov esi, dword [edi + 0x190]
call dword [esi]
pop ecx
mov dword [ebp - 4], eax
or eax, eax
je 0x40ab5b
cmp dword [ebp - 4], 2
je 0x40ab1f
cmp dword [edi + 8], 0
je 0x40aabb
mov eax, dword [ebp - 4]
cmp eax, 3
je 0x40aafc
cmp eax, 1
jne 0x40aabb
mov eax, dword [edi + 8]
add eax, 4
mov edx, dword [eax]
inc edx
mov dword [eax], edx
mov eax, dword [edi + 8]
cmp edx, dword [eax + 8]
jl 0x40aabb
mov eax, dword [edi + 8]
add eax, 8
mov edx, dword [edi + 0x11c]
add dword [eax], edx
jmp 0x40aabb
mov eax, dword [edi + 0x7c]
mov dword [edi + 0x84], eax
jmp 0x40ab4f
cmp dword [edi + 0x14], 0xcc
je 0x40ab4f
mov eax, dword [edi]
mov dword [eax + 0x14], 0x14
mov eax, dword [edi]
mov edx, dword [edi + 0x14]
mov dword [eax + 0x18], edx
push edi
mov ebx, dword [edi]
call dword [ebx]
pop ecx
push edi
call fcn.0040ab60
pop ecx
and eax, 0xff
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40ab60
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
cmp dword [edi + 0x14], 0xcc
je 0x40aba2
push edi
mov ebx, dword [edi + 0x180]
call dword [ebx]
pop ecx
and dword [edi + 0x78], 0
mov dword [edi + 0x14], 0xcc
jmp 0x40aba2
mov eax, dword [edi]
mov dword [eax + 0x14], 0x30
push edi
mov ebx, dword [edi]
call dword [ebx]
pop ecx
mov eax, dword [edi + 0x180]
cmp byte [eax + 8], 0
jne 0x40ab8e
xor eax, eax
cmp byte [edi + 0x41], 0
sete al
dec eax
and eax, 1
add eax, 0xcd
mov dword [edi + 0x14], eax
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x40f68a
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
and dword [ebx + 4], 0
mov edi, 0x3b9aca00
cmp edi, 0x3b9aca00
je 0x40f6bb
mov eax, dword [ebx]
mov dword [eax + 0x14], 3
push ebx
mov eax, dword [ebx]
call dword [eax]
pop ecx
push ebx
call fcn.0041210d
mov dword [ebp - 4], eax
push 0x54
push ebx
call fcn.004120b0
add esp, 0xc
mov esi, eax
or esi, esi
jne 0x40f6f7
push ebx
call fcn.00412110
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x36
mov eax, dword [ebx]
and dword [eax + 0x18], 0
push ebx
mov eax, dword [ebx]
call dword [eax]
add esp, 8
lea eax, [fcn.0040ea68]
mov dword [esi], eax
lea eax, [fcn.0040eba7]
mov dword [esi + 4], eax
lea eax, [fcn.0040ec56]
mov dword [esi + 8], eax
lea eax, [fcn.0040ed2a]
mov dword [esi + 0xc], eax
lea eax, [0x40ee0b]
mov dword [esi + 0x10], eax
lea eax, [0x40ee78]
mov dword [esi + 0x14], eax
lea eax, [0x40eee5]
mov dword [esi + 0x18], eax
lea eax, [0x40f283]
mov dword [esi + 0x1c], eax
lea eax, [0x40f3d3]
mov dword [esi + 0x20], eax
lea eax, [fcn.0040f52a]
mov dword [esi + 0x24], eax
lea eax, [0x40f656]
mov dword [esi + 0x28], eax
mov dword [esi + 0x30], 0x3b9aca00
mov eax, dword [ebp - 4]
mov dword [esi + 0x2c], eax
xor edi, edi
inc edi
and dword [esi + edi*4 + 0x34], 0
and dword [esi + edi*4 + 0x3c], 0
dec edi
jge 0x40f769
and dword [esi + 0x44], 0
and dword [esi + 0x48], 0
mov dword [esi + 0x4c], 0x54
mov dword [ebx + 4], esi
push str.JPEGMEM
call sub.MSVCRT.dll_getenv
pop ecx
mov dword [ebp - 8], eax
or eax, eax
je 0x40f7d9
mov byte [ebp - 9], 0x78
lea eax, [ebp - 9]
push eax
lea eax, [ebp - 4]
push eax
push str._ld_c
push dword [ebp - 8]
call sub.MSVCRT.dll_sscanf
add esp, 0x10
or eax, eax
jle 0x40f7d9
mov al, byte [ebp - 9]
cmp al, 0x6d
je 0x40f7c5
cmp al, 0x4d
jne 0x40f7cf
imul eax, dword [ebp - 4], 0x3e8
mov dword [ebp - 4], eax
imul eax, dword [ebp - 4], 0x3e8
mov dword [esi + 0x2c], eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41471a
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push edi
push 9
call sub.USER32.dll_GetKeyState
mov edi, eax
movsx edi, di
test di, 0x80
je 0x4147b3
push 0x11
call sub.USER32.dll_GetKeyState
mov edi, eax
movsx edi, di
test di, 0x80
jne 0x4147b3
push 0x10
call sub.USER32.dll_GetKeyState
mov edi, eax
movsx edi, di
test di, 0x80
jne 0x4147b3
push 0x12
call sub.USER32.dll_GetKeyState
mov edi, eax
movsx edi, di
test di, 0x80
jne 0x4147b3
call sub.USER32.dll_GetFocus
push 5
lea edi, [ebp - 0xd]
push edi
push eax
call sub.USER32.dll_GetClassNameA
push 4
push str.Rich
lea eax, [ebp - 0xd]
push eax
call sub.MSVCRT.dll_strncmp
add esp, 0xc
or eax, eax
jne 0x4147b3
call sub.USER32.dll_GetFocus
push 0
push 0
push 0x44e
push eax
call sub.USER32.dll_SendMessageA
test ax, 0x800
jne 0x4147b3
xor eax, eax
jmp 0x4147de
push str.PB_WindowID
push dword [ebp + 8]
call sub.USER32.dll_GetPropA
mov dword [ebp - 4], eax
or eax, eax
je 0x4147dc
dec eax
push eax
push dword [0x42eac0]
call fcn.00414ef2
mov dword [ebp - 8], eax
mov eax, dword [eax + 0xc]
jmp 0x4147de
xor eax, eax
pop edi
leave
ret 4

Function at 0x414880
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, dword [ebp + 8]
and dword [ebp - 4], 0
cmp dword [edi + 0x14], 0
jne 0x4148af
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [edi + 8]
sub eax, dword [edi + 0xc]
push eax
push dword [edi + 4]
push dword [edi]
call sub.KERNEL32.dll_WriteFile
mov eax, dword [edi + 8]
mov dword [edi + 0xc], eax
mov eax, dword [ebp - 4]
pop edi
leave
ret 4
Function at 0x414b70
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov ebx, 0x1000
push dword [ebp + 0xc]
push 0x1000
call fcn.004153a0
mov esi, eax
mov edi, esi
push dword [ebp + 8]
push dword [0x42ead0]
call fcn.00414ef2
mov dword [ebp - 8], eax
or eax, eax
je 0x414c8f
mov byte [ebp - 1], 0
mov eax, dword [ebp - 8]
cmp dword [eax + 4], 0
je 0x414bc8
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 8]
call fcn.00414d80
mov dword [ebp - 0xc], eax
jmp 0x414bde
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [ebp - 8]
push dword [eax]
call sub.KERNEL32.dll_ReadFile
cmp byte [ebp - 1], 0
je 0x414bea
mov al, byte [ebp - 1]
mov byte [edi], al
inc edi
mov eax, edi
sub eax, esi
cmp eax, ebx
jl 0x414c11
add ebx, 0x1000
mov eax, edi
sub eax, esi
mov dword [ebp - 0x10], eax
push dword [ebp + 0xc]
push ebx
call fcn.004153a0
mov esi, eax
mov eax, dword [ebp - 0x10]
mov edi, eax
add edi, esi
movsx eax, byte [ebp - 1]
or eax, eax
je 0x414c2d
cmp dword [ebp - 0xc], 0
je 0x414c2d
cmp eax, 0xd
je 0x414c2d
cmp eax, 0xa
jne 0x414ba8
cmp byte [ebp - 1], 0
je 0x414c8f
dec edi
cmp byte [ebp - 1], 0xd
jne 0x414c8f
mov eax, dword [ebp - 8]
cmp dword [eax + 4], 0
je 0x414c53
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 8]
call fcn.00414d80
jmp 0x414c69
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [ebp - 8]
push dword [eax]
call sub.KERNEL32.dll_ReadFile
cmp byte [ebp - 1], 0xa
je 0x414c8f
mov eax, dword [ebp - 8]
cmp dword [eax + 4], 0
je 0x414c7f
add eax, 0xc
inc dword [eax]
jmp 0x414c8f
push 1
push 0
push 0xffffffffffffffff
mov eax, dword [ebp - 8]
push dword [eax]
call sub.KERNEL32.dll_SetFilePointer
mov byte [edi], 0
mov eax, edi
sub eax, esi
mov edx, ebx
sub edx, eax
push edx
call fcn.00415480
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x414cb0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0x10]
and dword [ebp - 4], 0
cmp dword [edi + 0x14], 1
jne 0x414cd3
and dword [edi + 0x14], 0
mov eax, dword [edi + 8]
mov dword [edi + 0xc], eax
cmp dword [edi + 0xc], esi
jle 0x414d34
mov eax, dword [edi + 8]
sub eax, dword [edi + 0xc]
add eax, dword [edi + 4]
mov dword [ebp - 8], eax
mov eax, esi
cmp eax, 1
je 0x414cf7
cmp eax, 2
je 0x414d03
cmp eax, 4
je 0x414d11
jmp 0x414d1d
mov eax, dword [ebp - 8]
mov edx, dword [ebp + 0xc]
mov dl, byte [edx]
mov byte [eax], dl
jmp 0x414d2c
mov eax, dword [ebp - 8]
mov edx, dword [ebp + 0xc]
mov dx, word [edx]
mov word [eax], dx
jmp 0x414d2c
mov eax, dword [ebp - 8]
mov edx, dword [ebp + 0xc]
mov edx, dword [edx]
mov dword [eax], edx
jmp 0x414d2c
push esi
push dword [ebp + 0xc]
push dword [ebp - 8]
call sub.MSVCRT.dll_memcpy
add esp, 0xc
sub dword [edi + 0xc], esi
mov dword [ebp - 4], esi
jmp 0x414d6e
push edi
call fcn.00414880
cmp esi, dword [edi + 8]
jl 0x414d52
push 0
lea eax, [ebp - 4]
push eax
push esi
push dword [ebp + 0xc]
push dword [edi]
call sub.KERNEL32.dll_WriteFile
jmp 0x414d6e
push esi
push dword [ebp + 0xc]
mov eax, dword [edi + 8]
sub eax, dword [edi + 0xc]
add eax, dword [edi + 4]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
sub dword [edi + 0xc], esi
mov dword [ebp - 4], esi
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x414d80
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0x10]
cmp dword [edi + 0x14], 0
jne 0x414da5
push edi
call fcn.00414880
mov dword [edi + 0x14], 1
and dword [edi + 0xc], 0
cmp dword [edi + 0xc], esi
jl 0x414dfa
mov eax, dword [edi + 0x10]
sub eax, dword [edi + 0xc]
mov ebx, eax
add ebx, dword [edi + 4]
mov eax, esi
cmp eax, 1
je 0x414dc8
cmp eax, 2
je 0x414dd1
cmp eax, 4
je 0x414ddc
jmp 0x414de5
mov eax, dword [ebp + 0xc]
mov dl, byte [ebx]
mov byte [eax], dl
jmp 0x414df2
mov eax, dword [ebp + 0xc]
mov dx, word [ebx]
mov word [eax], dx
jmp 0x414df2
mov eax, dword [ebp + 0xc]
mov edx, dword [ebx]
mov dword [eax], edx
jmp 0x414df2
push esi
push ebx
push dword [ebp + 0xc]
call sub.MSVCRT.dll_memcpy
add esp, 0xc
sub dword [edi + 0xc], esi
mov dword [ebp - 4], esi
jmp 0x414e79
mov ebx, dword [edi + 0xc]
push ebx
mov eax, dword [edi + 0x10]
sub eax, dword [edi + 0xc]
add eax, dword [edi + 4]
push eax
push dword [ebp + 0xc]
call sub.MSVCRT.dll_memcpy
add esp, 0xc
mov eax, ebx
add eax, dword [ebp + 0xc]
mov dword [ebp + 0xc], eax
sub esi, ebx
cmp esi, dword [edi + 8]
jl 0x414e39
push 0
lea eax, [ebp - 4]
push eax
push esi
push dword [ebp + 0xc]
push dword [edi]
call sub.KERNEL32.dll_ReadFile
and dword [edi + 0xc], 0
jmp 0x414e79
push 0
lea eax, [ebp - 4]
push eax
push dword [edi + 8]
push dword [edi + 4]
push dword [edi]
call sub.KERNEL32.dll_ReadFile
mov eax, dword [ebp - 4]
mov dword [edi + 0xc], eax
mov eax, dword [ebp - 4]
mov dword [edi + 0x10], eax
cmp esi, dword [edi + 0xc]
jle 0x414e60
mov esi, dword [edi + 0xc]
push esi
push dword [edi + 4]
push dword [ebp + 0xc]
call sub.MSVCRT.dll_memcpy
add esp, 0xc
sub dword [edi + 0xc], esi
mov eax, ebx
add eax, esi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x60004aa0
Capabilities:
Enumerate pe sections

Disassembly:
push edi
push esi
push ebp
push ebx
sub esp, 0xc
mov edi, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov ebp, dword [esp + 0x2c]
cmp ecx, dword [edi + 0x30]
jl 0x60004acc
mov eax, dword [edi + 0x34]
cmp eax, 3
je 0x60004acc
add esp, 0xc
pop ebx
pop ebp
pop esi
pop edi
ret
mov eax, dword [edi + 0x58]
cmp eax, 4
je 0x60004d00
cmp eax, 3
je 0x60004c21
cmp eax, 1
je 0x60004c21
cmp eax, 4
je 0x60004c10
cmp eax, 4
je 0x60004b62
mov esi, dword [edx + 4]
mov ebx, dword [edx + 0xc]
cmp esi, ebx
jge 0x60004b5a
mov ecx, dword [edx + 8]
mov eax, esi
shl eax, 5
mov edi, dword [esp + 0x30]
mov ebp, dword [edx]
cmp ebp, ecx
jge 0x60004b52
lea ebx, [edi + eax]
mov dword [esp + 8], eax
mov dword [esp + 4], esi
mov esi, dword [esp + 0x20]
mov al, byte [ebx + ebp]
mov ecx, dword [esp + 4]
imul ecx, dword [esi + 0x3c]
mov edi, dword [esi + 0x30]
imul edi, ebp
add ecx, dword [esp + 0x2c]
inc ebp
mov byte [edi + ecx], al
mov ecx, dword [edx + 8]
cmp ebp, ecx
jl 0x60004b23
mov eax, dword [esp + 8]
mov esi, dword [esp + 4]
mov edi, dword [esp + 0x30]
mov ebx, dword [edx + 0xc]
add eax, 0x20
dec ebp
adc byte [ebx + 0x3e183d9], cl
mov bl, byte [edx + 2]
test bl, bl
je 0x60004c11
xor byte [ecx], bl
sbb dword [edx - 0x7b2c09e7], ecx
fisttp dword [eax + 0x41037419]
mov bl, byte [ecx]
not bl
test bl, bl
mov byte [ecx], bl
je 0x60004c1e
inc ecx
jmp 0x60004c08
mov byte [edx + 3], 1
pop ebx
ret
add dword [ebx - 0x3d], ebx
jge 0x60004d0a
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0xc]
shr eax, 0x10
test ax, ax
je 0x60004d86
adc byte [esi - 0x7b], ah
sal byte [esi + esi*2 - 0x7d], 0x65
cld
add byte [ebx - 0xfba76f9], cl
and dword [ebp - 4], 0
mov eax, dword [edi]
mov dword [ebp - 0x10], eax
call fcn.60004be4
int1
stc
pop edx
outsb dx, byte [esi]
cmp dword [ebp - 0x10], 0
je 0x60004d6b
mov eax, dword [ebp - 0x14]
and dword [ebp - 0x10], 0
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
movzx eax, word [eax]
cmp eax, dword [ebp - 4]
jne 0x60004d57
mov eax, dword [ebp - 0xc]
push dword [ebp + 0xc]
mov eax, dword [eax]
add eax, dword [ebp + 8]
push eax
call fcn.60004b7a
pop ecx
test eax, eax
pop ecx
je 0x60004d7e
mov eax, dword [esi + 0x18]
inc dword [ebp - 0x10]
add dword [ebp - 8], 2
add dword [ebp - 0xc], 4
dec eax
cmp dword [ebp - 0x10], eax
jbe 0x60004d35
mov eax, dword [esi + 0x14]
inc dword [ebp - 4]
dec eax
cmp dword [ebp - 4], eax
jbe 0x60004d14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov eax, dword [ebp - 4]
mov eax, dword [edi + eax*4]
jmp 0x60004dbb
xor ebx, ebx
mov dword [ebp - 0x10], edi
mov eax, dword [esi + 0x10]
add eax, ebx
cmp dword [ebp + 0xc], eax
jne 0x60004da6
call fcn.60004be4
push 0x8b96181d
inc ebp
invalid
mov eax, dword [esi + 0x14]
add dword [ebp - 0x10], 4
inc ebx
dec eax
cmp ebx, eax
jbe 0x60004d8b
jmp 0x60004d77
add eax, dword [ebp + 8]
jmp 0x60004d79