joyce8/EMBER2024-capa huggingface dataset:
Function at 0x429a80
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x429aad
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x429aad
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x430004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
call 0x43000c
nop
nop
nop
nop
pop eax
nop
add eax, 0x403d6f
nop
nop
sub eax, 0x403d15
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
cmp ebx, ecx
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x43001e
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp fcn.00401219
Function at 0x40a15c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [ebp + 0xc]
mov word [ebp + 0xc], ax
mov ebx, 0x19826993
mov eax, ebx
mul ebx
mov dword [ebp - 0x10], eax
mov ebx, eax
xor esi, esi
mov eax, ebx
mul ebx
mov dword [ebp - 0x14], eax
mov ebx, eax
mov word [ebp - 0xc], 0
jmp 0x40a272
mov eax, ebx
xor eax, ebx
mov ebx, eax
mov eax, dword [ebp + 8]
add eax, esi
push eax
call fcn.00405066
pop ecx
mov edx, eax
mov byte [ebp - 1], dl
cmp byte [ebp - 1], 0
jne 0x40a1b3
mov byte [ebp - 2], 0
jmp 0x40a1dd
call fcn.0040ddd8
mov dword [ebp - 0x18], eax
mov eax, 0x7fff
mov edi, 7
movzx edx, byte [ebp - 1]
mov ecx, edi
sub ecx, edx
cdq
idiv ecx
mov ecx, eax
mov eax, dword [ebp - 0x18]
cdq
idiv ecx
mov edx, eax
mov byte [ebp - 2], dl
mov eax, dword [ebp + 8]
mov al, byte [esi + eax]
cmp al, 0x70
jb 0x40a1fc
cmp al, 0x7f
ja 0x40a1fc
mov eax, dword [ebp + 8]
add eax, esi
inc eax
movzx edx, byte [eax]
movzx ecx, byte [ebp - 2]
sub edx, ecx
mov byte [eax], dl
mov eax, dword [ebp + 8]
movzx eax, byte [esi + eax]
cmp eax, 0xe2
jne 0x40a21b
mov eax, dword [ebp + 8]
add eax, esi
inc eax
movzx edx, byte [eax]
movzx ecx, byte [ebp - 2]
sub edx, ecx
mov byte [eax], dl
mov eax, ebx
sub eax, ebx
mov ebx, eax
push 8
push 0x90
lea eax, [ebp - 0xa]
push eax
call fcn.0040ddc0
movzx eax, byte [ebp - 1]
push eax
mov eax, dword [ebp + 8]
add eax, esi
push eax
lea eax, [ebp - 0xa]
movzx edx, byte [ebp - 2]
add eax, edx
push eax
call fcn.0040ddb4
mov eax, ebx
sub eax, ebx
mov ebx, eax
push 6
lea eax, [ebp - 0xa]
push eax
mov eax, dword [ebp + 8]
add eax, esi
push eax
call fcn.0040ddb4
add esp, 0x24
mov eax, ebx
add eax, ebx
mov ebx, eax
add esi, 6
inc word [ebp - 0xc]
movzx eax, word [ebp + 0xc]
dec eax
cmp esi, eax
jb 0x40a190
pop edi
pop esi
pop ebx
leave
ret

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

Disassembly:
pushal
nop
mov eax, section..pdata
mov ebx, 0x408f6c
nop
nop
mov ecx, 0x226c0ab7
nop
test eax, eax
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x430024
nop
nop
mov eax, section..pdata_1
nop
mov ebx, 0x42e3d0
nop
mov ecx, 0x71b71ae1
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x430084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43006c
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x430003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
mov eax, section..00cfg
nop
nop
push 4
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
cmp eax, 0
nop
nop
nop
je 0x430072
nop
nop
nop
nop
mov ebx, 0x408ecc
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
div edi
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
mov esi, 0x1cb23815
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x430060
nop
nop
nop
mov eax, section..data
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x4300d2
nop
nop
mov ebx, 0x42e1d0
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
div edi
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
nop
mov esi, 0x28977332
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
add eax, edi
loop 0x4300c0
nop
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x405690
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4481db
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x45d320]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.0
call fcn.0042b048
push 4
mov dword [ebp - 4], 0
call fcn.0042b861
mov edi, eax
add esp, 4
test edi, edi
je 0x405710
call fcn.0042ae18
mov dword [edi], eax
call fcn.0042abd7
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.0042ab0c
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x405706
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.0042ab34
jmp 0x405712
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x408c70
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov esi, ecx
push str.advapi32.dll
mov dword [esi], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edi, eax
test edi, edi
jne 0x408c9b
push str.advapi32.dll
call fcn.00409360
mov edi, eax
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.RegOpenKeyExW
push edi
call ebx
push str.RegCreateKeyExW
push edi
mov dword [esi + 4], eax
call ebx
push str.RegQueryValueExW
push edi
mov dword [esi + 8], eax
call ebx
push str.RegSetValueExW
push edi
mov dword [esi + 0x10], eax
call ebx
push str.RegEnumKeyExW
push edi
mov dword [esi + 0x14], eax
call ebx
push str.RegEnumValueW
push edi
mov dword [esi + 0x18], eax
call ebx
push str.RegDeleteValueW
push edi
mov dword [esi + 0x1c], eax
call ebx
push str.RegCloseKey
push edi
mov dword [esi + 0x20], eax
call ebx
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
mov dword [esi + 0xc], eax
mov eax, dword [ebp + 0x10]
push eax
push ecx
push edx
mov ecx, esi
call fcn.00408bf0
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 0xc

Function at 0x409260
Capabilities:
Get file attributes

Disassembly:
push esi
xor esi, esi
push edi
cmp dword [0x460a88], esi
jne 0x40929b
call dword [sym.imp.KERNEL32.dll_GetVersion]
test eax, eax
jns 0x409291
push str.___.___
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push str.Unicows.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [0x460a84], eax
mov dword [0x460a88], 1
mov eax, dword [0x460a84]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4092b4
push ebx
push eax
call edi
mov esi, eax
test esi, esi
jne 0x4092f2
mov eax, dword [0x460a8c]
test eax, eax
jne 0x4092eb
call dword [sym.imp.KERNEL32.dll_GetVersion]
test eax, eax
jns 0x4092d5
mov eax, dword [0x453ab4]
push eax
call dword [0x453ab0]
jmp 0x4092e2
mov ecx, dword [str.Kernel32.dll]
push ecx
call dword [0x453aa8]
test eax, eax
je 0x4092f2
mov dword [0x460a8c], eax
push ebx
push eax
call edi
pop edi
pop esi
ret
pop edi
mov eax, esi
pop esi
ret
Function at 0x40a960
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44984b
mov eax, dword fs:[0]
push eax
sub esp, 0x234
mov eax, dword [0x45d320]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x21c]
push ecx
push 0x104
mov dword [ebp - 0x23c], eax
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
je 0x40aa5e
lea edx, [ebp - 0x21c]
push edx
call fcn.004304a5
add esp, 4
cmp word [ebp - 0x21c], 0
lea edi, [ebp - 0x21c]
je 0x40aa5e
movzx eax, word [edi]
mov dword [ebp - 0x240], eax
cmp eax, 0x43
jb 0x40aa3b
push eax
lea esi, [ebp - 0x238]
call fcn.0040b070
mov dword [ebp - 4], 0
cmp dword [ebp - 0x228], 0
je 0x40aa1c
mov ecx, dword [ebp - 0x23c]
lea edx, [ebp - 0x240]
call fcn.0040b9a0
push 0xffffffffffffffff
push 0
mov ecx, esi
push ecx
mov ecx, eax
call fcn.00409cf0
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x224], 8
jb 0x40aa3b
mov edx, dword [ebp - 0x238]
push edx
call fcn.0042b4ee
add esp, 4
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40aa40
sub eax, edx
sar eax, 1
cmp word [edi + eax*2 + 2], cx
lea edi, [edi + eax*2 + 2]
jne 0x40a9d3
mov ecx, dword [ebp - 0x23c]
xor eax, eax
cmp dword [ecx + 8], eax
setne al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0042bed8
mov esp, ebp
pop ebp
ret 4
Function at 0x40b3f0
Capabilities:
Get disk information via ioctl

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x470
mov eax, dword [0x45d320]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push edi
push str.Floppy
xor edi, edi
push eax
mov dword [ebp - 0x46c], edi
call fcn.0042fb68
add esp, 8
test eax, eax
setne al
test al, al
jne 0x40b62b
push esi
push 0x12
push 0
push 0
push 0x44fe88
call dword [0x461008]
mov esi, eax
cmp esi, 0xffffffff
je 0x40b619
xor eax, eax
push ebx
mov dword [ebp - 0x438], eax
mov dword [ebp - 0x434], eax
mov dword [ebp - 0x430], eax
mov dword [ebp - 0x42c], eax
mov dword [ebp - 0x428], eax
mov dword [ebp - 0x424], eax
lea eax, [ebp - 0x43c]
push eax
xor ebx, ebx
push ebx
push 0x44fe88
push ebx
mov edi, 0x1c
push esi
mov dword [ebp - 0x43c], edi
mov dword [ebp - 0x464], edi
call dword [0x46100c]
test eax, eax
je 0x40b5fb
jmp 0x40b4a5
mov edi, 0x1c
lea ecx, [ebp - 0x464]
push ecx
push ebx
push 0x44fe88
push 0
push esi
call dword [0x46100c]
push 0
lea edx, [ebp - 0x468]
push edx
push 0
push 0
lea eax, [ebp - 0x464]
push eax
push esi
mov dword [ebp - 0x468], 0
call dword [0x461010]
mov ecx, dword [ebp - 0x468]
test ecx, ecx
je 0x40b5c0
cmp ecx, 0x400
ja 0x40b5c0
xor eax, eax
mov dword [ebp - 0x420], eax
lea edx, [ebp - 0x420]
push edx
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x418], eax
mov dword [ebp - 0x414], eax
mov dword [ebp - 0x410], eax
mov dword [ebp - 0x40c], eax
mov dword [ebp - 0x408], eax
lea eax, [ebp - 0x468]
push eax
push ecx
lea ecx, [ebp - 0x404]
push ecx
lea edx, [ebp - 0x464]
push edx
push esi
mov dword [ebp - 0x404], 6
mov dword [ebp - 0x420], edi
call dword [0x461010]
test eax, eax
je 0x40b5c0
push 0
push 0
push 3
push 0
push 3
push 0
lea eax, [ebp - 0x400]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x40b5c0
push 0
lea ecx, [ebp - 0x470]
push ecx
push 0xc
lea edx, [ebp - 0x448]
push edx
push 0
push 0
push 0x2d1080
push edi
mov dword [ebp - 0x470], 0
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x40b5b9
mov eax, dword [ebp + 8]
cmp eax, dword [ebp - 0x444]
je 0x40b5e1
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x43c]
push ecx
inc ebx
push ebx
push 0x44fe88
push 0
push esi
call dword [0x46100c]
test eax, eax
jne 0x40b4a0
jmp 0x40b5fb
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call dword [0x461014]
mov edx, dword [ebp - 0x40c]
mov dword [ebp - 0x46c], edx
push esi
call dword [0x461014]
mov eax, dword [ebp - 0x46c]
pop ebx
pop esi
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042bed8
mov esp, ebp
pop ebp
ret
pop esi
mov eax, edi
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042bed8
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, edi
xor ecx, ebp
pop edi
call fcn.0042bed8
mov esp, ebp
pop ebp
ret
Function at 0x40f900
Capabilities:
Create thread

Disassembly:
push ecx
push ebx
push edi
mov ebx, ecx
mov edi, edx
test esi, esi
je 0x40f944
mov dword [0x461028], 0
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push 0xffffffffffffffff
push 0
push edi
mov ecx, 0x45edb4
mov dword [0x461030], eax
call fcn.00409cf0
push 0
push 0
push 0
push 0x414fb0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
call fcn.004235b3
test eax, eax
je 0x40f95b
mov edi, str.time.windows.com
call fcn.0040f9b0
test eax, eax
jne 0x40f976
call fcn.004235b3
test eax, eax
je 0x40f972
mov edi, str.time.nist.gov
call fcn.0040f9b0
test eax, eax
jne 0x40f976
xor edi, edi
jmp 0x40f97b
mov edi, 1
test esi, esi
je 0x40f99f
mov eax, dword [0x46102c]
mov dword [0x461028], 1
test eax, eax
je 0x40f99f
push 0
push 0
push 0
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
mov eax, edi
pop edi
pop ebx
pop ecx
ret
Function at 0x410130
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x448cd8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x45d320]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
mov esi, ecx
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], ax
push 0x1c
push str.url.dll_FileProtocolHandler
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], eax
call fcn.00408e30
push 0xffffffffffffffff
push 0
push esi
lea ecx, [ebp - 0x2c]
call fcn.00405780
mov eax, dword [ebp - 0x2c]
mov esi, 8
cmp dword [ebp - 0x18], esi
jae 0x41019e
lea eax, [ebp - 0x2c]
push 1
push 0
push eax
push str.rundll32.exe
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp dword [ebp - 0x18], esi
jb 0x4101c6
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.0042b4ee
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042bed8
mov esp, ebp
pop ebp
ret

Function at 0x411710
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov ebx, eax
xor esi, esi
xor eax, eax
cmp ebx, esi
je 0x4117ff
cmp dword [ebx + 8], 0x70b
jne 0x4117ff
mov ecx, dword [ebx + 0xc]
cmp ecx, 0x201
je 0x41174a
cmp ecx, 0x203
jne 0x4117ff
mov eax, dword [ebp + 8]
push edi
push 0x27da
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
lea ecx, [ebp - 4]
push ecx
lea edx, [ebp - 8]
push edx
mov edi, eax
push 0xb0
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push edi
call esi
mov eax, dword [ebx + 0x1c]
mov ecx, dword [ebx + 0x18]
push eax
push ecx
push 0xb1
push edi
call esi
mov esi, dword [ebx + 0x1c]
sub esi, dword [ebx + 0x18]
xor ecx, ecx
lea eax, [esi + 1]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0042b441
mov ebx, eax
lea eax, [esi + esi + 2]
push eax
push 0
push ebx
call fcn.0042c3d0
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
add esp, 0x10
push ebx
push 0
push 0x43e
push edi
call esi
mov ecx, dword [ebp + 8]
push 1
push 0
push 0
push ebx
push str.open
push ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push ebx
call fcn.0042c6dd
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
add esp, 4
push edx
push eax
push 0xb1
push edi
call esi
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x412060
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x449378
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x45d320]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
call section..text
mov esi, eax
mov eax, dword [ebp + 0xc]
sub eax, 0x110
je 0x4121cd
dec eax
jne 0x412267
movzx ebx, word [ebp + 0x10]
push ebx
call fcn.0040ffb0
add esp, 4
test eax, eax
jne 0x4121c3
cmp ebx, 0x27e4
jg 0x412193
je 0x41213a
dec ebx
je 0x4120d8
dec ebx
je 0x412125
jmp 0x412267
push 0x104
push 0x460df0
push 0x27e6
xor eax, eax
push edi
mov word [0x460df0], ax
call dword [sym.imp.USER32.dll_GetDlgItemTextW]
push 0x460df0
lea ecx, [ebp - 0x2c]
call fcn.00408d60
push 0xffffffffffffffff
push 0
lea ecx, [ebp - 0x2c]
push ecx
lea ecx, [esi + 0x508]
mov dword [ebp - 4], 0
call fcn.00409cf0
lea ecx, [ebp - 0x2c]
call fcn.00409e20
mov edx, dword [ebp + 0x10]
push edx
push edi
call dword [sym.imp.USER32.dll_EndDialog]
mov eax, 1
jmp 0x41227b
push 0x27e0
push edi
call dword [sym.imp.USER32.dll_GetDlgItem]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
mov esi, eax
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x30]
push ecx
push 0xb0
xor ebx, ebx
push esi
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x34], ebx
call edi
push 0xffffffffffffffff
push ebx
push 0xb1
push esi
call edi
push ebx
push ebx
push 0x301
push esi
call edi
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x30]
push edx
push eax
push 0xb1
push esi
call edi
lea eax, [ebx + 1]
jmp 0x41227b
cmp ebx, 0x2806
jne 0x412267
cmp dword [esi + 0x500], 8
lea eax, [esi + 0x4ec]
jb 0x4121b0
mov eax, dword [eax]
push 1
push 0
push 0
push eax
push str.open
push edi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov eax, 1
jmp 0x41227b
call fcn.0040ff30
cmp dword [0x45ed58], 8
mov eax, dword [0x45ed44]
jae 0x4121e5
mov eax, 0x45ed44
push eax
push 0x27e0
push edi
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
mov ebx, dword [sym.imp.USER32.dll_GetDlgItem]
push 0
push 0x30
push 0xc5
push 0x27e6
push edi
call ebx
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
push 0x2776
push edi
call fcn.0040fd20
add esi, 0x4ec
add esp, 8
cmp dword [esi + 0x10], 0
je 0x412260
push 0x2806
push edi
call ebx
cmp dword [esi + 0x14], 8
mov ebx, eax
jb 0x41223c
mov esi, dword [esi]
push esi
push ebx
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
push 5
push ebx
call esi
push 5
push 0x2807
push edi
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call esi
push edi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
push ecx
mov ecx, dword [ebp + 0x14]
mov eax, 1
call fcn.00415810
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042bed8
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4132c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push ebx
push esi
push 0x454e68
push eax
xor bl, bl
call fcn.0042ce6d
mov esi, eax
add esp, 8
test esi, esi
je 0x413308
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
cmp ecx, eax
je 0x4132f9
push esi
sub eax, ecx
push eax
push 1
push ecx
call fcn.0042cd35
add esp, 0x10
push esi
call fcn.0042cb6a
add esp, 4
pop esi
mov al, 1
pop ebx
pop ebp
ret
pop esi
mov al, bl
pop ebx
pop ebp
ret
Function at 0x414fd0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x45d320]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 0x38]
push eax
push esi
xor bl, bl
call fcn.0042f4e2
add esp, 8
test eax, eax
jne 0x415083
push 0x454e90
push esi
call fcn.0042ce6d
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x415070
mov esi, dword [ebp + 0x14]
test esi, esi
jne 0x41501e
mov esi, dword [ebp - 0x24]
push esi
mov ecx, edi
call fcn.0040d960
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x415039
push 0
push eax
push ebx
call fcn.0042f9ca
add esp, 0xc
test esi, esi
je 0x415054
mov eax, dword [edi]
push ebx
push esi
push 1
push eax
call fcn.0042f3c8
add esp, 0x10
push eax
mov ecx, edi
call fcn.0040d960
push ebx
call fcn.0042cb6a
add esp, 4
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042bed8
mov esp, ebp
pop ebp
ret
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042bed8
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.0042bed8
mov esp, ebp
pop ebp
ret

Function at 0x4150a0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x448798
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x45d320]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
mov esi, ecx
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x54], ebx
lea ecx, [ebp - 0x44]
push ecx
push esi
mov dword [ebp - 4], ebx
call fcn.0042f4e2
add esp, 8
test eax, eax
jne 0x415179
push 0x454e90
push esi
call fcn.0042ce6d
mov esi, eax
add esp, 8
cmp esi, ebx
je 0x415179
mov edi, dword [ebp - 0x30]
push edi
lea ecx, [ebp - 0x5c]
call fcn.0040d960
cmp edi, ebx
jbe 0x415133
mov edx, dword [ebp - 0x5c]
push esi
push edi
push 1
push edx
call fcn.0042f3c8
add esp, 0x10
push eax
lea ecx, [ebp - 0x5c]
call fcn.0040d960
push esi
call fcn.0042cb6a
add esp, 4
lea eax, [ebp - 0x45]
push eax
lea ecx, [ebp - 0x5c]
mov byte [ebp - 0x45], bl
call fcn.00413ad0
mov esi, dword [ebp - 0x5c]
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x415153
mov ecx, dword [ebp - 0x4c]
sub eax, edx
push eax
push esi
call fcn.00409840
mov al, 1
cmp esi, ebx
je 0x41517b
push esi
call fcn.0042b4ee
add esp, 4
mov al, 1
jmp 0x41517b
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0042bed8
mov esp, ebp
pop ebp
ret
Function at 0x4164a0
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
movzx ecx, word [edx + 0x14]
lea ecx, [ecx + edx + 0x18]
movzx edx, word [edx + 6]
push esi
xor eax, eax
xor esi, esi
test edx, edx
je 0x4164e9
push edi
lea esp, [esp]
mov edi, dword [ecx + 0xc]
cmp ebx, edi
jb 0x4164d0
mov eax, dword [ecx + 8]
add eax, edi
cmp ebx, eax
jb 0x4164de
inc esi
add ecx, 0x28
cmp esi, edx
jb 0x4164c0
pop edi
xor eax, eax
pop esi
pop ebp
ret
mov eax, dword [ecx + 0x14]
sub eax, edi
add eax, ebx
add eax, dword [ebp + 8]
pop edi
pop esi
pop ebp
ret

Function at 0x4164f0
Capabilities:
Parse pe header
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 8]
push ebx
push esi
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
xor bl, bl
push eax
mov byte [ebp - 1], bl
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0xc], esi
cmp esi, 0xffffffff
je 0x4165e2
push 0
push 0
push 0
push 2
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov ebx, eax
mov dword [ebp - 8], ebx
test ebx, ebx
je 0x4165d2
push edi
push 0
push 0
push 0
push 4
push ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
test edi, edi
je 0x4165ca
mov ecx, 0x5a4d
cmp cx, word [edi]
jne 0x4165c0
mov esi, dword [edi + 0x3c]
add esi, edi
cmp dword [esi], 0x4550
jne 0x4165c0
mov edx, dword [ebp + 0xc]
push edx
push edi
mov eax, esi
call fcn.00416950
add esp, 8
test al, al
jne 0x4165bc
mov eax, dword [esi + 0x88]
test eax, eax
je 0x4165c0
push edi
mov edx, esi
mov ebx, eax
call fcn.004164a0
mov ecx, dword [ebp + 0xc]
add ecx, 0x20
push ecx
push 0x69
push 0x4550a0
push 0
push eax
push eax
push edi
push esi
call fcn.004165f0
mov ebx, dword [ebp - 8]
add esp, 0x24
test al, al
je 0x4165c0
mov byte [ebp - 1], 1
push edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov esi, dword [ebp - 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [ebp - 1]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret