joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401000
Capabilities:
Encode data using xor
Encrypt data using xtea

Disassembly:
mov eax, dword [esp + 4]
push ebx
mov ebx, dword [eax]
push esi
mov esi, dword [esp + 0x14]
imul esi, esi, 0x61c88647
test esi, esi
push edi
mov edi, dword [eax + 4]
je 0x401072
push ebp
mov ebp, dword [esp + 0x18]
nop
mov edx, esi
mov eax, ebx
shr eax, 5
mov ecx, ebx
shl ecx, 4
xor eax, ecx
shr edx, 0xb
and edx, 3
mov ecx, dword [ebp + edx*4]
add eax, ebx
add ecx, esi
xor eax, ecx
sub edi, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
add esi, 0x61c88647
mov edx, edi
shr edx, 5
mov eax, edi
shl eax, 4
xor edx, eax
mov ecx, esi
and ecx, 3
mov eax, dword [ebp + ecx*4]
add edx, edi
add eax, esi
xor edx, eax
sub ebx, edx
test esi, esi
jne 0x401020
mov eax, dword [esp + 0x14]
pop ebp
mov dword [eax + 4], edi
pop edi
pop esi
mov dword [eax], ebx
pop ebx
ret
Function at 0x401080
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x524
mov eax, dword [0x40a010]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call fcn.00401655
mov esi, dword [sym.imp.USER32.dll_GetDesktopWindow]
mov edi, dword [sym.imp.USER32.dll_GetClassNameA]
add esp, 4
mov byte [ebp - 0x4cc], 0
call esi
push 0x400
lea ecx, [ebp - 0x4cc]
push ecx
push eax
mov dword [0x40ace0], eax
call edi
lea eax, [ebp - 0x4cc]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4010d7
sub eax, edx
cmp eax, 2
jbe 0x4010b1
push 0xf6950
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edx, dword [section..data]
push 0x11400
push 0x40d410
push eax
mov dword [ebp - 0x4d8], eax
mov dword [ebp - 0x4dc], edx
call fcn.004012f0
add esp, 0xc
xor ebx, ebx
jmp 0x401120
cmp ebx, 0x15f90
jge 0x4011ca
mov ecx, 0xb
mov esi, str.cjkU_dklu_UUido_c_aopi_quio__mvnciu_cxklnsp
lea edi, [ebp - 0xcc]
lea eax, [ebp - 0x524]
rep movsd dword es:[edi], dword [esi]
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call edi
push eax
call dword [sym.imp.KERNEL32.dll_GetProcessIoCounters]
mov eax, 0x88888889
imul ebx
add edx, ebx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
mov ecx, eax
shl ecx, 4
sub ecx, eax
mov edx, ebx
sub edx, ecx
movsx ecx, byte [ebp + edx - 0xcc]
lea esi, [ebp + edx - 0xcc]
mov eax, 0x88888889
mul ecx
shr edx, 3
mov eax, edx
shl eax, 4
sub eax, edx
sub ecx, eax
mov cl, byte [ebp + ecx - 0xcc]
lea edx, [ebp - 0x4d4]
push edx
lea eax, [ebp - 0x4ec]
mov byte [esi], cl
push eax
lea ecx, [ebp - 0x4e4]
push ecx
lea edx, [ebp - 0x4f4]
push edx
call edi
push eax
call dword [sym.imp.KERNEL32.dll_GetProcessTimes]
add ebx, 1
jmp 0x401120
mov esi, dword [ebp - 0x4d8]
add esi, 6
mov edi, 0x1e849
jmp 0x4011e0
movzx ecx, byte [esi - 6]
movzx eax, byte [esi - 5]
movzx edx, byte [esi - 4]
shl ecx, 8
add eax, ecx
movzx ecx, byte [esi - 3]
shl eax, 8
add eax, edx
movzx edx, byte [esi - 2]
shl eax, 8
add eax, ecx
movzx ecx, byte [esi]
shl edx, 8
mov dword [ebp - 0x4d4], eax
movzx eax, byte [esi - 1]
add edx, eax
movzx eax, byte [esi + 1]
shl edx, 8
add edx, ecx
mov ecx, dword [ebp - 0x4dc]
shl edx, 8
add edx, eax
push 0xffffffffffffffe0
mov dword [ebp - 0x4d0], edx
push ecx
lea edx, [ebp - 0x4d4]
push edx
call fcn.00401000
mov eax, dword [ebp - 0x4d4]
movzx ecx, al
shl ecx, 8
movzx edx, ah
movzx eax, byte [ebp - 0x4d2]
add ecx, edx
movzx edx, byte [ebp - 0x4d1]
shl ecx, 8
add ecx, eax
mov eax, dword [ebp - 0x4d0]
shl ecx, 8
add ecx, edx
mov dword [esi - 6], ecx
movzx ecx, al
shl ecx, 8
movzx edx, ah
movzx eax, byte [ebp - 0x4ce]
add ecx, edx
movzx edx, byte [ebp - 0x4cd]
shl ecx, 8
add ecx, eax
shl ecx, 8
add ecx, edx
mov dword [esi - 2], ecx
add esp, 0xc
add esi, 8
sub edi, 1
jne 0x4011e0
call dword [ebp - 0x4d8]
push edi
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x401662
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40a010]
jne 0x40166c
repz ret
jmp fcn.00401ffa
Function at 0x402465
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x40a028]
je 0x402480
inc edi
cmp edi, 0x17
jb 0x402471
cmp edi, 0x17
jae 0x402600
push ebp
push 3
call fcn.00404c30
cmp eax, 1
pop ecx
je 0x4025cc
push 3
call fcn.00404c30
test eax, eax
pop ecx
jne 0x4024b4
cmp dword [0x40a018], 1
je 0x4025cc
cmp ebx, 0xfc
je 0x4025ff
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x40b078
push ebp
call fcn.00404bcb
add esp, 0xc
test eax, eax
je 0x4024ea
push esi
push esi
push esi
push esi
push esi
call fcn.00404121
add esp, 0x14
push 0x104
mov esi, 0x40b091
push esi
push 0
mov byte [0x40b195], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40252e
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.00404bcb
add esp, 0xc
test eax, eax
je 0x40252e
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00404121
add esp, 0x14
push esi
call fcn.00404b40
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x402573
push esi
call fcn.00404b40
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x40b38c
push 0x4087b4
sub ecx, eax
push ecx
push eax
call fcn.00404a82
add esp, 0x14
test eax, eax
je 0x402573
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.00404121
add esp, 0x14
jmp 0x402575
xor esi, esi
push 0x4087b0
push ebx
push ebp
call fcn.00404a11
add esp, 0xc
test eax, eax
je 0x402595
push esi
push esi
push esi
push esi
push esi
call fcn.00404121
add esp, 0x14
push dword [edi*8 + 0x40a02c]
push ebx
push ebp
call fcn.00404a11
add esp, 0xc
test eax, eax
je 0x4025b7
push esi
push esi
push esi
push esi
push esi
call fcn.00404121
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.00404854
add esp, 0xc
jmp 0x4025ff
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x4025ff
cmp ebp, 0xffffffff
je 0x4025ff
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x40a02c]
push dword [esi]
call fcn.00404b40
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x404854
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00401b18
xor ebx, ebx
cmp dword [0x40b668], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x40492a
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x404a0a
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x404a0a
push eax
call fcn.00401aaa
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x40b668], eax
call esi
push eax
call fcn.00401aaa
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x40b66c], eax
call esi
push eax
call fcn.00401aaa
mov dword [0x40b670], eax
lea eax, [ebp - 0xc]
push eax
call fcn.004021f2
test eax, eax
pop ecx
pop ecx
je 0x4048f8
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00404121
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x40492a
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00401aaa
cmp eax, ebx
pop ecx
mov dword [0x40b678], eax
je 0x40492a
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00401aaa
pop ecx
mov dword [0x40b674], eax
mov eax, dword [0x40b674]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x4049af
cmp dword [0x40b678], ecx
je 0x4049af
push eax
call fcn.00401b21
push dword [0x40b678]
mov esi, eax
call fcn.00401b21
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x4049af
cmp edi, ebx
je 0x4049af
call esi
cmp eax, ebx
je 0x40497c
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40497c
test byte [ebp - 0x18], 1
jne 0x4049af
lea eax, [ebp - 0x10]
push eax
call fcn.00402229
test eax, eax
pop ecx
je 0x404997
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00404121
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x4049a6
or dword [ebp + 0x10], 0x200000
jmp 0x4049ea
or dword [ebp + 0x10], 0x40000
jmp 0x4049ea
mov eax, dword [0x40b66c]
cmp eax, dword [ebp - 8]
je 0x4049ea
push eax
call fcn.00401b21
cmp eax, ebx
pop ecx
je 0x4049ea
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x4049ea
mov eax, dword [0x40b670]
cmp eax, dword [ebp - 8]
je 0x4049ea
push eax
call fcn.00401b21
cmp eax, ebx
pop ecx
je 0x4049ea
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x40b668]
call fcn.00401b21
cmp eax, ebx
pop ecx
je 0x404a0a
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x404a0c
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40de38
mov ecx, 0x3a7f45e2
nop
nop
nop
nop
test eax, eax
nop
je 0x43304e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x433024
nop
nop
nop
nop
mov eax, section..text_1
nop
nop
mov ebx, 0x4304d8
nop
mov ecx, 0x233730fc
test eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
je 0x433084
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x420b5b
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x420b9a
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x420b9a
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x420b9a
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x420b9a
cmp dword [ecx + 0x74], 0xe
jbe 0x420b9a
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x433310
Capabilities:
Parse pe header

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

Function at 0x401219
Capabilities:
Terminate process

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40301c
push 0x40109a
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push eax
fnstcw word [esp]
or word [esp], 0x300
fldcw word [esp]
add esp, 4
push 0
push 0
push 0x403028
push 0x403024
push 0x403020
call sub.CRTDLL.DLL___GetMainArgs
push dword [0x403028]
push dword [0x403024]
push dword [0x403020]
mov dword [0x403014], esp
call fcn.0040129c
add esp, 0x18
xor ecx, ecx
mov dword [ebp - 4], ecx
push eax
call sub.CRTDLL.DLL_exit
leave
ret
Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43200c
nop
nop
nop
nop
pop eax
nop
nop
add eax, 0x40729f
nop
sub eax, 0x407245
nop
nop
nop
mov ebx, dword [eax]
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
add ebx, 4
nop
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
jl 0x432030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
jne 0x43201e
nop
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x402790
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x408044
call sub.KERNEL32.dll_EnterCriticalSection
mov ebx, dword [0x40803c]
sub esp, 4
test ebx, ebx
je 0x4027db
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sub.KERNEL32.dll_TlsGetValue
sub esp, 4
mov esi, eax
call sub.KERNEL32.dll_GetLastError
test eax, eax
jne 0x4027d4
test esi, esi
je 0x4027d4
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x4027b0
mov dword [esp], 0x408044
call sub.KERNEL32.dll_LeaveCriticalSection
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x4029c0
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
lea esi, [esp + 0x24]
mov dword [esp], str.Mingw_runtime_failure:_n
lea ebx, [eax + 0x40]
mov dword [esp + 0xc], ebx
call sub.msvcrt.dll_fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
lea esi, [esi]

Function at 0x402a10
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, ecx
push esi
push ebx
mov ebx, eax
mov esi, edx
sub esp, 0x4c
lea eax, [esp + 0x24]
mov dword [esp + 8], 0x1c
mov dword [esp], ebx
mov dword [esp + 4], eax
call sub.KERNEL32.dll_VirtualQuery
sub esp, 0xc
test eax, eax
je 0x402ae8
mov eax, dword [esp + 0x38]
cmp eax, 0x40
je 0x402a4e
cmp eax, 4
jne 0x402a70
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sub.msvcrt.dll_memcpy
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x30]
lea ebp, [esp + 0x20]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
sub esp, 0x10
mov edx, dword [esp + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 0x1c], edx
call sub.msvcrt.dll_memcpy
mov edx, dword [esp + 0x1c]
cmp edx, 0x40
je 0x402a5e
cmp edx, 4
je 0x402a5e
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
sub esp, 0x10
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.004029c0
Function at 0x431000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40915c
nop
mov ecx, 0x1d1932dd
nop
nop
nop
nop
nop
test eax, eax
nop
je 0x43104e
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x431024
nop
nop
nop
nop
mov eax, section..reloc
nop
mov ebx, 0x42f3f8
nop
nop
mov ecx, 0x322e4ecc
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x431084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x43106c
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x4033e4
Capabilities:
Delete directory
Get common file path
Get file attributes
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc4c
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [eax]
mov eax, dword [eax + 4]
xor ebx, ebx
cmp dword [0x2420918], 0x594
mov dword [ebp - 0x14], esi
mov dword [ebp - 8], eax
jne 0x403430
push 0x402e10
push 0x402e20
call dword [sym.imp.KERNEL32.dll_SetVolumeMountPointA]
push 0x402e3c
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_EndUpdateResourceW]
mov eax, dword [0x4284b8]
mov dword [ebp - 0x28], eax
mov eax, dword [0x4284bc]
mov dword [ebp - 0x30], eax
push edi
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], ebx
call fcn.004033dd
mov eax, dword [0x4284c0]
add dword [ebp - 0x10], 0x23f
mov dword [ebp - 0x2c], eax
mov eax, dword [0x4284c4]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], 0x20
jmp 0x40346f
mov esi, dword [ebp - 0x14]
mov dword [ebp - 0xc], 2
add dword [ebp - 0xc], 3
mov eax, esi
shl eax, 4
cmp dword [0x2420918], 0xc
mov dword [ebp - 4], eax
jne 0x4034d1
push ebx
lea eax, [ebp - 0x44c]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
xor eax, eax
mov word [ebp - 0x1c], ax
lea edi, [ebp - 0x1a]
stosw word es:[edi], ax
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 0x1c]
lea eax, [ebp - 0xc4c]
push ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadConsoleOutputCharacterW]
lea eax, [ebp - 0x38]
push eax
push ebx
lea eax, [ebp - 0x4c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadConsoleInputA]
mov eax, dword [ebp - 0x2c]
add dword [ebp - 4], eax
mov eax, dword [0x2420918]
cmp eax, 0xfa9
jne 0x4034ed
mov dword [0x241feb4], 0xedeb2e40
cmp eax, 0x3eb
jne 0x4034fa
mov dword [0x241f860], ebx
mov ecx, dword [ebp - 0xc]
mov edi, dword [ebp - 0x10]
mov edx, esi
shr edx, cl
lea eax, [edi + esi]
mov dword [ebp - 0x18], eax
mov dword [0x241feb0], 0xf4ea3dee
add edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x18]
xor dword [ebp - 4], eax
xor edx, dword [ebp - 4]
cmp dword [0x2420918], 0x213
mov dword [ebp - 0x18], edx
jne 0x40353a
push 0x402e54
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov eax, dword [ebp - 0x18]
add dword [ebp - 8], 0x64
sub dword [ebp - 8], eax
sub dword [ebp - 8], 0x64
mov eax, dword [ebp - 8]
lea ecx, [ebp - 4]
call fcn.004033d7
mov eax, dword [ebp - 0x28]
add dword [ebp - 4], eax
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
add dword [ebp - 0x10], 0x61c88647
mov eax, edx
shr eax, cl
lea esi, [edi + edx]
add eax, dword [ebp - 0x30]
xor eax, esi
xor dword [ebp - 4], eax
mov eax, dword [ebp - 4]
sub dword [ebp - 0x14], eax
dec dword [ebp - 0x20]
jne 0x40346c
cmp dword [0x2420918], 0xa6d
mov eax, dword [ebp - 0x14]
mov esi, dword [ebp + 8]
mov dword [esi], eax
pop edi
jne 0x4035a4
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_BeginUpdateResourceW]
mov edx, dword [ebp - 8]
mov dword [esi + 4], edx
pop esi
pop ebx
leave
ret 4
Function at 0x4035ad
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x2420918]
mov ecx, dword [0x241f868]
sub esp, 0x544
push ebx
push esi
shr eax, 3
xor esi, esi
push edi
cmp eax, esi
jbe 0x403620
mov edi, ecx
mov ebx, eax
cmp dword [0x2420918], 0x959
jne 0x403614
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
lea eax, [ebp - 0x140]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
push 0x402e68
push esi
push esi
call dword [sym.imp.KERNEL32.dll_OpenWaitableTimerA]
push esi
lea eax, [ebp - 0x540]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push edi
call fcn.004033e4
add edi, 8
dec ebx
jne 0x4035d1
pop edi
pop esi
pop ebx
leave
ret
Function at 0x403960
Capabilities:
Read pipe
Write pipe

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x424
push ebx
push esi
xor esi, esi
cmp dword [0x2420918], 0x400
push edi
jne 0x4039b2
push esi
push esi
call fcn.00403d56
push esi
push esi
call fcn.00403d56
push esi
push esi
push esi
call fcn.004045f0
add esp, 0x14
mov dword [esp + 4], esi
mov dword [esp], esi
call fcn.004033b2
fstp st(0)
push esi
call fcn.00404675
pop ecx
push esi
call fcn.00404407
pop ecx
mov eax, dword [0x428b44]
mov dword [0x2420918], eax
mov eax, dword [0x428b1c]
mov dword [0x242091c], eax
call fcn.0040363f
mov dword [esp + 0x10], esi
mov ebx, 0x2b259d
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor eax, eax
mov dword [esp + 0x1c], esi
lea edi, [esp + 0x20]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x18]
push eax
push esi
lea eax, [esp + 0x3c]
push eax
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_TransactNamedPipe]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
cmp dword [esp + 0x10], ebx
jle 0x403a19
cmp dword [esp + 0x18], 0x785074d5
jne 0x403a27
inc dword [esp + 0x10]
cmp dword [esp + 0x10], 0x1c1b
jl 0x4039d4
xor edi, edi
push esi
lea eax, [esp + 0x34]
push eax
push esi
push 0x40322c
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetNumberFormatA]
push 0x403268
call dword [sym.imp.KERNEL32.dll_GlobalFindAtomA]
cmp edi, ebx
jle 0x403a56
cmp dword [esp + 0x18], 0x785074d5
jne 0x403a5f
inc edi
cmp edi, 0x11915
jl 0x403a29
mov eax, dword [0x241f868]
mov dword [0x241feac], eax
call eax
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x404fe0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4270e8]
jne 0x404fea
repz ret
jmp fcn.004095e2
Function at 0x409305
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004064e5
and dword [ebp - 4], 0
cmp dword [0x4293e4], 0
mov ebx, eax
jne 0x4093b6
push 0x401b38
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x409467
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x401b2c
push edi
call esi
test eax, eax
je 0x409467
push eax
call fcn.00406473
mov dword [esp], 0x401b1c
push edi
mov dword [0x4293e4], eax
call esi
push eax
call fcn.00406473
mov dword [esp], 0x401b08
push edi
mov dword [0x4293e8], eax
call esi
push eax
call fcn.00406473
mov dword [esp], 0x401aec
push edi
mov dword [0x4293ec], eax
call esi
push eax
call fcn.00406473
pop ecx
mov dword [0x4293f4], eax
test eax, eax
je 0x4093b6
push 0x401ad4
push edi
call esi
push eax
call fcn.00406473
pop ecx
mov dword [0x4293f0], eax
mov eax, dword [0x4293f0]
cmp eax, ebx
je 0x40940e
cmp dword [0x4293f4], ebx
je 0x40940e
push eax
call fcn.004064ee
push dword [0x4293f4]
mov esi, eax
call fcn.004064ee
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40940e
test edi, edi
je 0x40940e
call esi
test eax, eax
je 0x409405
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x409405
test byte [ebp - 0xc], 1
jne 0x40940e
or dword [ebp + 0x10], 0x200000
jmp 0x409447
mov eax, dword [0x4293e8]
cmp eax, ebx
je 0x409447
push eax
call fcn.004064ee
pop ecx
test eax, eax
je 0x409447
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x409447
mov eax, dword [0x4293ec]
cmp eax, ebx
je 0x409447
push eax
call fcn.004064ee
pop ecx
test eax, eax
je 0x409447
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4293e4]
call fcn.004064ee
pop ecx
test eax, eax
je 0x409467
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x409469
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401ee2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x411280]
jne 0x401eec
repz ret
jmp fcn.00404369

Function at 0x4025e7
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
push 0x14
push 0x40f530
call fcn.00403770
mov eax, 0x5a4d
cmp word [0x400000], ax
jne 0x4024e7
mov eax, dword [0x40003c]
cmp dword [eax + 0x400000], 0x4550
jne 0x4024e7
mov ecx, 0x10b
cmp word [eax + 0x400018], cx
jne 0x4024e7
cmp dword [eax + 0x400074], 0xe
jbe 0x4024e7
xor ecx, ecx
cmp dword [eax + 0x4000e8], ecx
setne cl
mov dword [ebp - 0x1c], ecx
jmp 0x4024eb
and dword [ebp - 0x1c], 0
push 1
call fcn.00407949
pop ecx
test eax, eax
jne 0x4024ff
push 0x1c
call fcn.00407949
pop ecx
call fcn.00405287
test eax, eax
jne 0x402510
push 0x10
call fcn.00407949
pop ecx
call fcn.00405952
and dword [ebp - 4], 0
call fcn.004032ff
test eax, eax
jge 0x40252a
push 0x1b
call fcn.00407949
pop ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x412ba0], eax
call fcn.00407949
mov dword [0x41203c], eax
call fcn.00407949
test eax, eax
jge 0x402550
push 8
call fcn.00407949
pop ecx
call fcn.00405fde
test eax, eax
jge 0x402561
push 9
call fcn.00407949
pop ecx
push 1
call fcn.00407949
pop ecx
test eax, eax
je 0x402574
push eax
call fcn.00407949
pop ecx
mov eax, dword [0x412018]
mov dword [0x41201c], eax
push eax
push dword [0x412010]
push dword [0x41200c]
call main
add esp, 0xc
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x1c], 0
jne 0x4025a2
push eax
call fcn.00407949
call fcn.00402400
jmp 0x4025d7
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x20]
call fcn.004037b5
ret
call fcn.00407949
jmp 0x402495