joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41bd00
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x425e58
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x48
push esi
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x38], 0
je 0x41bd33
mov ecx, dword [ebp - 0x14]
movzx edx, byte [ecx + 0x3d]
test edx, edx
jne 0x41bd3f
mov al, 1
jmp 0x41bee4
mov dword [ebp - 0x2c], 8
call fcn.0041f530
push eax
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x14]
mov eax, dword [edx + 0xc]
call eax
mov dword [ebp - 0x20], eax
call fcn.0041f530
mov dword [ebp - 0x24], eax
lea ecx, [ebp - 0x20]
push ecx
lea edx, [ebp - 0x24]
push edx
call fcn.0041f5a0
add esp, 8
movzx eax, al
test eax, eax
je 0x41bd82
xor al, al
jmp 0x41bee4
push 0
push 8
lea ecx, [ebp - 0x54]
call fcn.00418220
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
push ecx
lea edx, [ebp - 0x30]
push edx
lea ecx, [ebp - 0x54]
call fcn.0041eb20
mov ecx, eax
call fcn.004197f0
mov esi, eax
lea ecx, [ebp - 0x54]
call fcn.00422b10
add esi, eax
push esi
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x54]
call fcn.0041eb20
mov ecx, eax
call fcn.004197f0
push eax
mov ecx, dword [ebp - 0x14]
add ecx, 0x40
push ecx
mov edx, dword [ebp - 0x14]
mov ecx, dword [edx + 0x38]
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet___char___char___char___const]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x41bdfe
cmp dword [ebp - 0x1c], 1
je 0x41be05
cmp dword [ebp - 0x1c], 3
je 0x41bea0
jmp 0x41beb8
mov eax, dword [ebp - 0x14]
mov byte [eax + 0x3d], 0
lea ecx, [ebp - 0x38]
push ecx
lea ecx, [ebp - 0x54]
call fcn.0041eb20
mov ecx, eax
call fcn.004197f0
mov edx, dword [ebp - 0x28]
sub edx, eax
mov dword [ebp - 0x18], edx
je 0x41be69
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x4c]
push ecx
mov edx, dword [ebp - 0x18]
push edx
push 1
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x54]
call fcn.0041eb20
mov ecx, eax
call fcn.004197f0
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp dword [ebp - 0x18], eax
je 0x41be69
mov byte [ebp - 0xd], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x54]
call fcn.00418dc0
mov al, byte [ebp - 0xd]
jmp 0x41bee4
mov ecx, dword [ebp - 0x14]
movzx edx, byte [ecx + 0x3d]
test edx, edx
jne 0x41be8c
mov byte [ebp - 0xe], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x54]
call fcn.00418dc0
mov al, byte [ebp - 0xe]
jmp 0x41bee4
cmp dword [ebp - 0x18], 0
jne 0x41be9e
push 0
push 8
lea ecx, [ebp - 0x54]
call fcn.0041e250
jmp 0x41bed0
mov byte [ebp - 0xf], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x54]
call fcn.00418dc0
mov al, byte [ebp - 0xf]
jmp 0x41bee4
mov byte [ebp - 0x10], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x54]
call fcn.00418dc0
mov al, byte [ebp - 0x10]
jmp 0x41bee4
jmp 0x41bd95
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x41f290
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40c
mov dword [ebp - 4], ecx
mov ecx, dword [ebp - 4]
call fcn.00419ed0
push 0x427aa8
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
add esp, 8
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x41f2c1
jmp 0x41f30f
mov ecx, dword [ebp - 8]
push ecx
push 0x400
push 1
lea edx, [ebp - 0x40c]
push edx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x41f2fa
mov eax, dword [ebp - 0xc]
push eax
lea ecx, [ebp - 0x40c]
push ecx
mov ecx, dword [ebp - 4]
call fcn.0041b060
jmp 0x41f2c1
mov ecx, dword [ebp - 4]
call fcn.00419e20
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
mov eax, dword [ebp - 4]
add eax, 0x68
mov esp, ebp
pop ebp
ret 4
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
pop eax
nop
nop
nop
nop
add eax, 0x403d6f
nop
sub eax, 0x403d15
nop
nop
mov ebx, dword [eax]
nop
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
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp loc.00401219
Function at 0x405a97
Capabilities:
Contain obfuscated stackstrings

Disassembly:
and byte [ebp - 0x12c], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x12b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
and byte [ebp - 0x654], 0
inc dword [eax]
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x653]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
and byte [ebp - 0x504], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x503]
rep stosd dword es:[edi], eax

Function at 0x405ab3
Capabilities:
Contain obfuscated stackstrings

Disassembly:
and byte [ebp - 0x12c], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x12b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
and byte [ebp - 0x654], 0
inc dword [eax]
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x653]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
and byte [ebp - 0x504], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x503]
rep stosd dword es:[edi], eax

Function at 0x405ad9
Capabilities:
Contain obfuscated stackstrings

Disassembly:
stosw word es:[edi], ax
stosb byte es:[edi], al
call fcn.00404ba0
or byte [eax + 0x2ff845c6], ah
mov byte [ebp - 0x24], 0x34
and byte [ebp - 0x36c], 0
and byte [ebp - 0x36b], 0
mov byte [ebp - 0x36a], 0xaa
and byte [ebp - 0x369], 0
inc dword [eax]
mov byte [ebp - 0x368], 0x12
mov byte [ebp - 0x367], 0x30
mov byte [ebp - 0x366], 0x21
mov byte [ebp - 0x365], 6
mov byte [ebp - 0x364], 0x2c
mov byte [ebp - 0x363], 0x26
mov byte [ebp - 0x362], 0x21
mov byte [ebp - 0x361], 0x30
mov byte [ebp - 0x360], 0x38
mov byte [ebp - 0x35f], 0x11
mov byte [ebp - 0x35e], 0x3c
mov byte [ebp - 0x35d], 0x27
daa
mov byte [ebp - 0x35c], 0x30
mov byte [ebp - 0x35b], 0x36
mov byte [ebp - 0x35a], 0x21
mov byte [ebp - 0x359], 0x3a
mov byte [ebp - 0x358], 0x27
mov byte [ebp - 0x357], 0x2c
mov byte [ebp - 0x356], 0x14
mov byte [ebp - 0x355], 0x55
lea eax, [ebp - 0x36c]
push eax
call fcn.00404bd2
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.00404b87
add esp, 0xc
mov dword [ebp - 0x3d4], eax
call fcn.00404bc2
jne 0x405b96
cld
invalid
int3

Function at 0x40604b
Capabilities:
Contain obfuscated stackstrings

Disassembly:
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
mov byte [ebp - 0x71b], 0x49
mov byte [ebp - 0x71a], 0x3d
call fcn.00404bc2
sub edx, edx
adc ecx, dword [ebx - 0x72b7a73]
invalid
Function at 0x433005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
mov eax, section..retplne
nop
nop
nop
push 4
nop
nop
nop
nop
nop
nop
pop edi
cmp eax, 0
nop
nop
nop
nop
nop
je 0x433072
nop
nop
nop
mov ebx, 0x40de38
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0xbe04784
nop
nop
nop
nop
nop
xor dword [eax], esi
nop
add eax, edi
nop
nop
nop
loop 0x433060
nop
nop
nop
nop
nop
mov eax, section..reloc
nop
nop
nop
cmp eax, 0
nop
je 0x4330d2
nop
nop
nop
nop
mov ebx, 0x4304d8
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
div edi
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x45344266
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
loop 0x4330c0
nop
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x1003163
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x878
mov eax, dword [0x1017004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 0x18]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x86c], eax
xor eax, eax
lea ecx, [ebp - 0x878]
push ecx
push eax
push eax
push eax
mov dword [ebp - 0x860], eax
mov dword [ebx], eax
lea eax, [ebp - 0x868]
push eax
lea eax, [ebp - 0x404]
push eax
push dword [ebp + 0x10]
mov dword [ebp - 0x868], 0x200
push esi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x100d912
lea eax, [ebp - 0x860]
push eax
push edi
call dword [sym.imp.ole32.dll_StringFromCLSID]
test eax, eax
mov dword [ebp - 0x85c], eax
jl 0x10031fc
push dword [ebp - 0x860]
lea eax, [ebp - 0x404]
push eax
call dword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
je 0x1003228
cmp dword [ebp - 0x860], 0
pop edi
pop esi
pop ebx
je 0x1003214
push dword [ebp - 0x860]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x85c]
xor ecx, ebp
call fcn.01002b70
leave
ret 0x14
lea eax, [ebp - 0x864]
push eax
push 0x20019
push 0
lea eax, [ebp - 0x404]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100d92c
lea eax, [ebp - 0x858]
push eax
push edi
push dword [ebp - 0x864]
call fcn.0100332d
test eax, eax
mov dword [ebp - 0x85c], eax
jl 0x10032f8
lea eax, [ebp - 0x868]
push eax
lea eax, [ebp - 0x404]
push eax
lea eax, [ebp - 0x870]
push eax
push 0
push 0x100330c
push dword [ebp - 0x864]
mov dword [ebp - 0x428], 1
mov dword [ebp - 0x868], 0x400
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x100d943
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x404]
push eax
call dword [sym.imp.ole32.dll_CLSIDFromString]
test eax, eax
mov dword [ebp - 0x85c], eax
jl 0x10032f8
lea esi, [ebp - 0x414]
lea edi, [ebp - 0x424]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edi, dword [ebp - 0x86c]
mov ecx, 0x111
lea esi, [ebp - 0x858]
rep movsd dword es:[edi], dword [esi]
mov dword [ebx], 1
push dword [ebp - 0x864]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x10031fc
cmp eax, 0xea
je 0x10031cb
mov dword [ebp - 0x85c], 0x887c003a
jmp 0x10031fc
jle 0x100d938
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x85c], eax
jmp 0x10031fc
jle 0x100d94f
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x85c], eax
jmp 0x10032f8
Function at 0x100a04a
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x1017004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
call fcn.0100a11d
mov eax, 0x1000000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x98]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x98]
push eax
mov dword [ebp - 0x98], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x88], 2
jne 0x100a0ec
cmp dword [ebp - 0x94], 5
jb 0x100a0bf
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x100a108
call fcn.01005256
test eax, eax
jl 0x100d8ef
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.01002b70
leave
ret
cmp dword [ebp - 0x88], 1
je 0x100d8d7
jmp 0x100a0bf
cmp dword [ebp - 0x90], 0
jbe 0x100a0bf
jmp 0x100a0bb
cmp dword [ebp - 0x94], 4
ja 0x100a0bb
je 0x100a0fb
jmp 0x100a0bf
mov byte [0x101755c], 1
jmp 0x100a0dd

Function at 0x100a843
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push edi
push dword [ebp + 8]
mov esi, ecx
call fcn.0100a9de
mov edi, eax
xor eax, eax
cmp edi, eax
jl 0x100a86f
push eax
push eax
push esi
push 0x100a87c
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x14], eax
mov eax, edi
pop edi
pop esi
pop ebp
ret 4

Function at 0x100e183
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
cmp word [ecx], 0x5a4d
je 0x100e196
xor eax, eax
pop ebp
ret
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x100e192
xor ecx, ecx
cmp word [eax + 0x18], 0x10b
sete cl
mov eax, ecx
pop ebp
ret

Function at 0x100e1b7
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
push ebx
push esi
movzx esi, word [ecx + 6]
xor edx, edx
test esi, esi
push edi
lea eax, [eax + ecx + 0x18]
jbe 0x100e1f6
mov edi, dword [ebp + 0xc]
mov ecx, dword [eax + 0xc]
cmp edi, ecx
jb 0x100e1ec
mov ebx, dword [eax + 8]
add ebx, ecx
cmp edi, ebx
jb 0x100e1f8
add edx, 1
add eax, 0x28
cmp edx, esi
jb 0x100e1dc
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x1010789
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x10107e3
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x10107d4
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x10107d0
cmp esi, eax
jae 0x10107d4
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x10107c2
cmp esi, eax
jb 0x10107d8
xor eax, eax
jmp 0x10107e2
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop ebp
ret 0xc
Function at 0x4032f5
Capabilities:
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push 1
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x40332c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
push eax
push str.SC_manager_error__d
call sub.gds32.dll_Ordinal_42
add esp, 8
jmp 0x403392
push 0x20
mov ecx, dword [0x4054d8]
push ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x403364
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
push eax
push str.open_services_error__d
call sub.gds32.dll_Ordinal_42
add esp, 8
jmp 0x403392
lea ecx, [ebp - 0x24]
push ecx
push 1
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x403392
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
push eax
push str.Control_services_error__d
call sub.gds32.dll_Ordinal_42
add esp, 8
mov esp, ebp
pop ebp
ret

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

Disassembly:
pushal
nop
mov eax, section..rsrc
mov ebx, 0x40915c
nop
mov ecx, 0x6742950
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x43104e
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x431024
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42f3f8
nop
mov ecx, 0x662a627f
nop
nop
nop
test eax, eax
nop
nop
je 0x431084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x43106c
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x401168
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push ecx
push esi
push edi
mov eax, dword [0x403156]
imul eax, eax, 5
push eax
push 0x40
call sub.KERNEL32.dll_GlobalAlloc
mov dword [ebp - 8], eax
push 0x1ff
push 0x4031b4
push dword [0x4033b8]
call sub.KERNEL32.dll_GetModuleFileNameA
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push 0x4031b4
call sub.KERNEL32.dll_CreateFileA
mov dword [ebp - 4], eax
push 0
push 0
push pe_overlay
push eax
call sub.KERNEL32.dll_SetFilePointer
mov ebx, dword [0x403156]
imul ebx, ebx, 5
push 0
lea eax, [ebp - 0xc]
push eax
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call sub.KERNEL32.dll_ReadFile
push dword [ebp - 4]
call sub.KERNEL32.dll_CloseHandle
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push str.mazecreator.exe
call sub.KERNEL32.dll_CreateFileA
cmp eax, 0xffffffff
jne 0x401228
push 0x10
push str.Error_
push str.Couldnt_open_File_
push dword [ebp + 8]
call sub.USER32.dll_MessageBoxA
pop edi
pop esi
pop ecx
pop ebx
leave
ret 4
mov dword [ebp - 4], eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 4]
call sub.KERNEL32.dll_GetFileSize
cmp eax, 0xffffffff
jne 0x401247
call sub.KERNEL32.dll_GetLastError
or eax, eax
je 0x401247
jmp 0x40124f
cmp eax, dword [0x403152]
je 0x401273
push dword [ebp - 4]
call sub.KERNEL32.dll_CloseHandle
push 0x10
push str.Error_
push str.Filesize_Mismatch_
push dword [ebp + 8]
call sub.USER32.dll_MessageBoxA
pop edi
pop esi
pop ecx
pop ebx
leave
ret 4
mov eax, dword [0x403156]
shl eax, 0x10
push eax
push 0
push 0x401
push 0x68
push dword [ebp + 8]
call sub.USER32.dll_SendDlgItemMessageA
push 0
push 1
push 0x404
push 0x68
push dword [ebp + 8]
call sub.USER32.dll_SendDlgItemMessageA
mov ecx, dword [0x403156]
mov esi, dword [ebp - 8]
push ecx
lodsd eax, dword [esi]
push 0
push 0
push eax
push dword [ebp - 4]
call sub.KERNEL32.dll_SetFilePointer
mov ebx, eax
lodsb al, byte [esi]
mov byte [ebp - 0xd], al
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 0xd]
push eax
push dword [ebp - 4]
call sub.KERNEL32.dll_WriteFile
push 0
push 0
push 0x405
push 0x68
push dword [ebp + 8]
call sub.USER32.dll_SendDlgItemMessageA
pop ecx
loop 0x4012a9
push dword [ebp - 4]
call sub.KERNEL32.dll_CloseHandle
push 0
push str.Done_
push str.Sucesfully_Patched_
push dword [ebp + 8]
call sub.USER32.dll_MessageBoxA
pop edi
pop esi
pop ecx
pop ebx
leave
ret 4
Function at 0x805e0c
Capabilities:
Encode data using xor

Disassembly:
pushal
call 0x805e12
pop ebp
sub ebp, 6
sub ebp, 0x405e0c
jmp 0x805e70
jmp 0x805e79
mov eax, 0x405e0c
add eax, ebp
add eax, 0x93
mov ecx, 0x64b
mov edx, 0xcc55d0c4
xor byte [eax], dl
inc eax
dec ecx
jne 0x805e90
jmp 0x805ea3
scasb al, byte es:[edi]
test byte [esp + eax*8 - 0x533b3b2c], ch
les ecx, [eax]
call 0xe8b4a476
lodsb al, byte [esi]
cmp ch, cl
inc ebp
xor al, 0xe8
lodsb al, byte [esi]
cmp ch, cl
test dword [esp + edx*4], 0x15c4513b
les edx, [edi + ecx*2 - 0x7b2b0f7]
invalid
Function at 0x10002000
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
cmp dword [ecx + 0x38], 0
push ebx
push esi
push edi
mov dword [esp + 0xc], ecx
je 0x100020e6
mov esi, dword [ebp + 0x10]
mov ebx, esi
mov edx, dword [ebp + 0xc]
mov edi, edx
mov eax, dword [ebp + 8]
mov dword [esp + 0x10], eax
test esi, esi
jl 0x100020d5
jg 0x10002040
test edx, edx
je 0x100020d5
nop dword [eax]
call fcn.10003390
mov esi, eax
mov eax, edx
mov dword [esp + 0x14], eax
test eax, eax
jl 0x10002094
jg 0x10002057
test esi, esi
je 0x10002094
cmp ebx, eax
jg 0x10002067
jl 0x10002061
cmp edi, esi
jae 0x10002067
mov esi, edi
mov dword [esp + 0x14], ebx
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
push esi
push eax
mov eax, dword [ecx + 0x20]
push dword [eax]
call fcn.100067b0
mov ecx, dword [esp + 0x18]
add esp, 0xc
sub edi, esi
sbb ebx, dword [esp + 0x14]
mov eax, dword [ecx + 0x30]
sub dword [eax], esi
mov eax, dword [ecx + 0x20]
add dword [eax], esi
jmp 0x100020b9
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
mov edx, dword [ecx]
movzx eax, byte [eax]
push eax
call dword [edx + 0xc]
cmp eax, 0xffffffff
je 0x100020cf
mov ecx, dword [esp + 0xc]
add edi, 0xffffffff
mov esi, 1
adc ebx, 0xffffffff
add dword [esp + 0x10], esi
test ebx, ebx
jg 0x10002040
jl 0x100020cf
test edi, edi
jne 0x10002040
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
sub edx, edi
mov eax, edx
sbb esi, ebx
mov edx, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ecx + 0x20]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x18], esi
mov eax, dword [eax]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x10], eax
test eax, eax
je 0x10002108
mov eax, dword [ecx + 0x30]
mov eax, dword [eax]
jmp 0x1000210a
xor eax, eax
cdq
mov ebx, eax
mov eax, edx
mov dword [esp + 0x14], eax
test edi, edi
jl 0x10002188
jg 0x1000211d
test esi, esi
je 0x10002188
test eax, eax
jl 0x1000216c
jg 0x10002127
test ebx, ebx
je 0x1000216c
cmp edi, eax
jg 0x10002137
jl 0x10002131
cmp esi, ebx
jae 0x10002137
mov ebx, esi
mov dword [esp + 0x14], edi
push ebx
push dword [ebp + 8]
push dword [esp + 0x18]
call fcn.100067b0
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov edx, dword [ebp + 8]
sub esi, ebx
sbb edi, dword [esp + 0x14]
add edx, ebx
mov eax, dword [ecx + 0x30]
sub dword [eax], ebx
mov eax, dword [ecx + 0x20]
add dword [eax], ebx
test edi, edi
jl 0x10002188
jg 0x1000216f
test esi, esi
je 0x10002188
jmp 0x1000216f
mov edx, dword [ebp + 8]
mov eax, dword [ecx + 0x4c]
test eax, eax
je 0x10002188
push eax
push esi
push 1
push edx
call fcn.1000a05e
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x100026e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x10028014]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x10002710
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10005264
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x1000274c
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x1000274c
lea ecx, [edi - 1]
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10005264
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x10002834
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x10002774
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [edi], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x100027a7
push dword [esi + 0x4c]
movsx eax, bl
push eax
call fcn.1000961c
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10005264
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x25], bl
mov edx, dword [ecx]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x25]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x1c]
sub eax, 0
je 0x10002807
sub eax, 1
je 0x10002807
sub eax, 2
jne 0x10002834
push dword [esi + 0x4c]
movsx eax, byte [ebp - 0x25]
push eax
call fcn.1000961c
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10005264
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x10002824
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.1000a05e
add esp, 0x10
cmp edi, eax
jne 0x10002834
lea eax, [ebp - 0x25]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x30], eax
jne 0x10002737
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10005264
mov esp, ebp
pop ebp
ret 4