joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401950
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
sub esp, 0x30
mov esi, dword [0x4053a0]
test esi, esi
jle 0x401a60
mov edi, dword [0x4053a4]
xor ebx, ebx
lea edx, [edi + 0xc]
nop
mov ecx, dword [edx]
cmp ecx, eax
ja 0x401984
mov edi, dword [edx + 4]
add ecx, dword [edi + 8]
cmp eax, ecx
jb 0x401a05
add ebx, 1
add edx, 0x14
cmp ebx, esi
jne 0x401970
mov dword [esp], eax
mov ebx, eax
call sym.___mingw_GetSectionForAddress
test eax, eax
mov edi, eax
je 0x401a87
mov eax, dword [0x4053a4]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call sym.__GetPEImageBase
add eax, dword [edi + 0xc]
mov edx, dword [0x4053a4]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp], eax
mov dword [esp + 4], edx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x401a67
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x4019fe
sub eax, 4
and eax, 0xfffffffb
jne 0x401a10
add dword [0x4053a0], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
add ebx, dword [0x4053a4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x20]
mov dword [ebx + 4], eax
mov dword [ebx + 8], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0x40
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x4019fe
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call sym.___report_error
lea esi, [esi]
xor esi, esi
jmp 0x40198e
mov eax, dword [0x4053a4]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call sym.___report_error
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call sym.___report_error
mov esi, esi
lea edi, [edi]

Function at 0x401ec0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x4053b8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x4053b0]
sub esp, 4
test ebx, ebx
je 0x401f15
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x401f0e
test esi, esi
je 0x401f0e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x401ef0
mov dword [esp], 0x4053b8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x4025b0
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call sym.___acrt_iob_func
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sym._fwrite
mov dword [esp], 2
call sym.___acrt_iob_func
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sym._vfprintf
call sym._abort
nop
nop
nop
nop
nop

Function at 0x404dd8
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
pushal
call 0x404de7
pop dword [ebp - 0x40]
mov eax, 0x404de7
sub dword [ebp - 0x40], eax
mov dword [ebp - 0x50], 0x6905e5bf
sub dword [ebp - 0x50], 0x1ab3a074
mov dword [ebp - 0x4c], 0x96dcb24
add dword [ebp - 0x4c], 0x28c58121
mov dword [ebp - 0x48], 0xe34f9cec
add dword [ebp - 0x48], 0x68fca742
mov dword [ebp - 0x44], 0x5717035b
add dword [ebp - 0x44], 0xa8e8fca5
lea eax, [ebp - 0x50]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x40]
call dword [eax]
mov dword [ebp - 0x50], 0x3564813c
add dword [ebp - 0x50], 0x3f0de81a
mov dword [ebp - 0x4c], 0x7d056aca
add dword [ebp - 0x4c], 0xc466f6ab
mov dword [ebp - 0x48], 0xcf818806
sub dword [ebp - 0x48], 0x6c121b9a
mov dword [ebp - 0x44], 0x7ca987ec
add dword [ebp - 0x44], 0x83567814
lea ebx, [ebp - 0x50]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x40]
call dword [eax]
push 0x40
push 0x1000
push 0x41fd5
push 0
call eax
mov ecx, 0x9a6f7c32
sub ecx, 0x9a6f2334
mov ebx, eax
mov edi, 0x2cfff425
sub edi, 0x2cbcb025
add edi, dword [ebp - 0x40]
mov edx, 0x1c7acc30
mov esi, dword [edi]
sub dword [ebp - 0x18], edi
sub esi, edx
xor dword [ebp - 0xc], edx
mov dword [ebx], esi
sub dword [ebp - 0x3c], edx
add ebx, 4
add edi, 0x5e15e265
add edi, 0xa1ea1d9f
loop 0x404ef4
add eax, 0x2ad4b4da
add eax, 0xd52ca1f1
mov ebx, eax
add eax, 0xa21f7d25
sub eax, 0xa21f7d20
mov ecx, 0x400000
add ecx, dword [ebp - 0x40]
call ebx
leave
ret

Function at 0x407e15
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42e180]
jne 0x407e1f
repz ret
jmp fcn.0040bc0c
Function at 0x4059bd
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x40fba0
cmp edx, dword [eax]
je 0x4059df
add eax, 8
inc ecx
cmp eax, 0x40fc30
jl 0x4059d0
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x40fba0]
jne 0x405b0d
mov eax, dword [0x41f1f0]
cmp eax, 1
je 0x405ae7
test eax, eax
jne 0x405a10
cmp dword [0x40faec], 1
je 0x405ae7
cmp edx, 0xfc
je 0x405b0d
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x405a47
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004067c0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00405e80
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x405a8a
lea eax, [ebp - 0x1a4]
push eax
call fcn.00405e80
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x40841c
push edi
call fcn.00406940
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004067c0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004067d0
lea eax, [ebp - 0xa0]
push 0x4083fc
push eax
call fcn.004067d0
push dword [esi + 0x40fba4]
lea eax, [ebp - 0xa0]
push eax
call fcn.004067d0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.004068b0
add esp, 0x2c
pop edi
jmp 0x405b0d
lea eax, [ebp + 8]
lea esi, [esi + 0x40fba4]
push 0
push eax
push dword [esi]
call fcn.00405e80
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43100c
nop
nop
pop eax
nop
nop
nop
add eax, 0x403e6a
nop
sub eax, 0x403e10
nop
nop
nop
nop
nop
mov ebx, dword [eax]
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x431030
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
jne 0x43101e
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp fcn.00401219
Function at 0x407010
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40704e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x407046
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x407050
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x407036
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407120
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x407151
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407151
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x407151
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43100c
nop
nop
nop
nop
nop
pop eax
add eax, 0x403e6a
nop
nop
sub eax, 0x403e10
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x431030
nop
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43101e
nop
nop
nop
nop
nop
nop
popal
jmp fcn.00401219
Function at 0x40333c
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
push 0x14
push 0x410aa0
call fcn.00406024
mov eax, 0x5a4d
cmp word [0x400000], ax
jne 0x40323d
mov eax, dword [0x40003c]
cmp dword [eax + 0x400000], 0x4550
jne 0x40323d
mov ecx, 0x10b
cmp word [eax + 0x400018], cx
jne 0x40323d
cmp dword [eax + 0x400074], 0xe
jbe 0x40323d
xor ecx, ecx
cmp dword [eax + 0x4000e8], ecx
setne cl
mov dword [ebp - 0x1c], ecx
jmp 0x403241
and dword [ebp - 0x1c], 0
push 1
call main
pop ecx
test eax, eax
jne 0x403255
push 0x1c
call main
pop ecx
call fcn.00407199
test eax, eax
jne 0x403266
push 0x10
call main
pop ecx
call fcn.00406d3d
and dword [ebp - 4], 0
call fcn.00403bed
test eax, eax
jge 0x403280
push 0x1b
call main
pop ecx
call sub.kernel32.dll_GetCommandLineW
mov dword [0x413d00], eax
call fcn.00406ce0
mov dword [0x412ff8], eax
call main
test eax, eax
jge 0x4032a5
push 8
call main
pop ecx
call fcn.00406a03
test eax, eax
jge 0x4032b6
push 9
call main
pop ecx
push 1
call main
pop ecx
test eax, eax
je 0x4032c9
push eax
call main
pop ecx
mov eax, dword [0x413340]
mov dword [0x413344], eax
push eax
push dword [0x413334]
push dword [0x41332c]
call main
add esp, 0xc
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x1c], 0
jne 0x4032f7
push eax
call main
call fcn.0040428b
jmp 0x40332c
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x20]
call fcn.00406069
ret
call main
jmp 0x4031eb

Function at 0x40cd3c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
pushal
call 0x40cd4b
pop dword [ebp - 8]
mov eax, 0xa901fe2c
sub eax, 0xa8c130e1
sub dword [ebp - 8], eax
push 0x40
push 0x1000
push 0x38fb0
push 0
mov eax, 0xc2a98f0c
sub eax, 0xc268adec
add eax, dword [ebp - 8]
call dword [eax]
mov ecx, 0xe15e31c9
add ecx, 0x1ea214e2
mov ebx, eax
mov esi, 0x8215cde0
sub esi, 0x81d455e0
add esi, dword [ebp - 8]
mov edi, 0x584d4565
sub edi, 0x536e9ee1
add dword [ebp - 4], 0x29aa37e9
mov edx, dword [esi]
xor dword [ebp - 4], esi
xor edx, edi
add dword [ebp - 4], 0x11a8ed49
mov dword [ebx], edx
add dword [ebp - 4], 0xb89df3e2
add ebx, 4
add esi, 0x3a53ba9
add esi, 0xfc5ac45b
loop 0x40cdaa
add eax, 0x10d7f
mov ebx, eax
add eax, 0xea512e90
sub eax, 0xea512e8b
mov ecx, 0x32a969ad
sub ecx, 0x326969ad
add ecx, dword [ebp - 8]
call ebx
leave
ret
Function at 0x409e7e
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 0xc], 0
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.0043a8a0
sub esp, 4
call fcn.0043a920
mov dword [ebp - 0x18], 0
call fcn.0043a9d0
call fcn.0043a9d0
call sub.KERNEL32.DLL_GetUserDefaultLangID
mov dword [ebp - 0x10], eax
call fcn.0043aa20
mov ecx, eax
mov eax, dword [ebp - 0x10]
cdq
mov dword [esp + 8], ecx
mov dword [esp], eax
mov dword [esp + 4], edx
call fcn.004392c0
sub esp, 0xc
call fcn.0043aa20
mov dword [esp + 4], eax
lea eax, [ebp - 0x18]
mov dword [esp], eax
call fcn.0043aba0
sub esp, 8
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call fcn.00438ae0
sub esp, 4
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 3
jne 0x409f3e
call fcn.0043a9d0
mov dword [esp], 0x8d6474
call fcn.0043ac30
sub esp, 4
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call fcn.0043ac30
sub esp, 4
call fcn.0043aa20
mov dword [esp + 4], eax
lea eax, [ebp - 0x18]
mov dword [esp], eax
call fcn.0043aba0
sub esp, 8
jmp 0x409f3f
nop
call fcn.0043a9d0
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call fcn.0043ac30
sub esp, 4
call fcn.0043ab20
mov dword [ebp - 0xc], eax
nop
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call fcn.0043ac90
sub esp, 4
mov eax, dword [ebp - 0xc]
leave
ret 4
Function at 0x41a2eb
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov dword [ebp - 0xc], 0
call fcn.0043a920
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov eax, str.Kernel32
mov dword [esp], eax
call sub.KERNEL32.DLL_GetModuleHandleW
sub esp, 4
mov dword [ebp - 0x18], eax
mov eax, 0x8db8e0
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call sub.KERNEL32.DLL_GetProcAddress
sub esp, 8
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x14], eax
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov eax, dword [ebp - 0x14]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sub.KERNEL32.DLL_CreateRemoteThread
sub esp, 0x1c
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x41a39a
mov dword [ebp - 0xc], 0
jmp 0x41a3ea
nop
mov dword [esp + 4], 0xffffffff
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sub.KERNEL32.DLL_WaitForSingleObject
sub esp, 8
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x34]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sub.KERNEL32.DLL_GetExitCodeThread
sub esp, 8
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sub.KERNEL32.DLL_CloseHandle
sub esp, 4
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0xc], eax
nop
mov eax, dword [ebp - 0xc]
leave
ret 4
Function at 0x41b021
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov dword [ebp - 0xc], 0
call fcn.0043a920
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
lea eax, [ebp + 0xc]
mov dword [esp], eax
call fcn.0043a980
sub esp, 8
mov eax, dword [ebp + 0x10]
mov dword [esp + 4], eax
lea eax, [ebp + 0x10]
mov dword [esp], eax
call fcn.0043a980
sub esp, 8
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x28], 0
lea eax, [ebp - 0x28]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x24]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0xc]
mov edx, eax
mov eax, dword [ebp - 0x14]
mov dword [esp + 0x20], eax
mov eax, dword [ebp - 0x10]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0xf003f
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], edx
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sub.ADVAPI32.dll_RegCreateKeyExW
sub esp, 0x24
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x41b117
mov eax, dword [ebp + 0x10]
mov ecx, eax
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp + 0x1c]
mov dword [esp + 0x14], edx
mov edx, dword [ebp + 0x18]
mov dword [esp + 0x10], edx
mov edx, dword [ebp + 0x14]
mov dword [esp + 0xc], edx
mov dword [esp + 8], 0
mov dword [esp + 4], ecx
mov dword [esp], eax
call sub.ADVAPI32.dll_RegSetValueExW
sub esp, 0x18
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x28]
mov dword [esp], eax
call sub.ADVAPI32.dll_RegCloseKey
sub esp, 4
mov dword [ebp - 0x20], eax
jmp 0x41b118
nop
mov dword [ebp - 0xc], 0
mov eax, dword [ebp + 0x10]
mov dword [esp], eax
call fcn.0043ac90
sub esp, 4
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call fcn.0043ac90
sub esp, 4
mov eax, dword [ebp - 0xc]
leave
ret 0x18
Function at 0x424135
Capabilities:
Create thread

Disassembly:
push ecx
push ebp
push esi
lea eax, [esp + 8]
xor esi, esi
push eax
push esi
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push 0x1000
push esi
call dword [sym.imp.KERNEL32.DLL_CreateThread]
mov ebp, eax
test ebp, ebp
je 0x4241cd
push edi
push 0x8e11d0
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
mov edi, dword [0x8e04a0]
test edi, edi
je 0x4241a1
push ebx
push esi
lea ebx, [edi + 8]
push dword [ebx]
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
test eax, eax
jne 0x42419a
push dword [ebx]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov edi, dword [edi]
push ebx
push 0x8e04a0
call fcn.0043a316
pop ecx
pop ecx
jmp 0x42419c
mov edi, dword [edi]
test edi, edi
jne 0x424171
pop ebx
mov eax, dword [0x8dd164]
mov esi, eax
inc eax
push 0x10
push 0x8e04a0
mov dword [0x8dd164], eax
call fcn.0043a356
pop ecx
pop ecx
push 0x8e11d0
mov dword [eax], ebp
mov dword [eax + 4], esi
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
pop edi
mov eax, esi
pop esi
pop ebp
pop ecx
ret 8
Function at 0x4247b3
Capabilities:
Create thread

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
push edi
push ebx
push dword [0x8e04a4]
xor ebp, ebp
mov edi, ebp
mov dword [esp + 0x18], ebp
call fcn.00439be7
mov esi, eax
test esi, esi
je 0x424948
mov ecx, dword [esi]
mov dword [esp + 0x18], ecx
cmp dword [esi + 0x14], ebp
je 0x42485d
push ebx
call fcn.00424b23
jmp 0x4247f5
push 0xa
call dword [sym.imp.KERNEL32.DLL_Sleep]
cmp byte [esi + 0x1d], 0
jne 0x4247ed
push dword [esi + 0x14]
call fcn.00424f2d
mov eax, dword [esp + 0x1c]
push ebp
push esi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x20], eax
call fcn.0042473e
pop ecx
pop ecx
lea eax, [esp + 0x1c]
push eax
push ebp
push esi
push 0x424962
push 0x2000
push ebp
call dword [sym.imp.KERNEL32.DLL_CreateThread]
test eax, eax
je 0x42483a
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
cmp dword [esp + 0x20], 0xffffffff
je 0x42484b
push dword [esp + 0x20]
push ebx
call fcn.00424bf7
mov eax, dword [esi]
push ebp
push eax
mov ecx, dword [eax]
call dword [ecx + 0x34]
mov eax, dword [esi]
push 1
jmp 0x4248fd
test byte [esp + 0x1c], 1
je 0x42486c
mov dword [esp + 0x10], 1
test byte [esp + 0x1c], 2
je 0x424907
push esi
call fcn.004246d5
lea eax, [esi + 4]
push 0x10
push eax
call fcn.0043a356
pop ecx
pop ecx
mov ecx, dword [0x8e04c0]
mov edi, eax
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x1c]
mov edx, dword [ecx]
push ecx
call dword [edx + 0x14]
test eax, eax
jne 0x424948
mov eax, dword [esp + 0x18]
mov dword [edi], eax
mov eax, dword [esp + 0x10]
mov byte [edi + 5], al
mov byte [edi + 4], 1
mov eax, dword [esp + 0x18]
push dword [esi + 0xc]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [esp + 0x18]
push dword [esi + 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x40]
cmp dword [esp + 0x20], 0xffffffff
je 0x4248e8
push edi
push dword [esp + 0x24]
push ebx
call fcn.00424b57
jmp 0x4248f5
mov eax, dword [esp + 0x18]
push dword [esi + 0x10]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov eax, dword [esp + 0x18]
push dword [esp + 0x10]
mov ecx, dword [eax]
push ebp
push ebp
push eax
call dword [ecx + 0x30]
jmp 0x424948
mov eax, dword [ecx]
push ecx
call dword [eax + 0x48]
mov eax, dword [esp + 0x18]
push ebp
push eax
mov ecx, dword [eax]
call dword [ecx + 0x34]
cmp dword [esp + 0x20], 0xffffffff
je 0x424929
push dword [esp + 0x20]
push ebx
call fcn.00424bf7
mov eax, dword [esp + 0x18]
mov ebx, dword [esp + 0x10]
push ebx
push ebp
mov ecx, dword [eax]
push ebp
push eax
call dword [ecx + 0x30]
test eax, eax
jne 0x424948
xor edi, edi
mov byte [esi + 0x1c], 1
inc edi
mov byte [esi + 0x1e], bl
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0xc
Function at 0x42506d
Capabilities:
Enumerate gui resources

Disassembly:
cmp dword [esp + 4], 0
push ebx
push esi
push edi
je 0x4250c2
push dword [esp + 0x10]
push 0x424fec
call dword [sym.imp.USER32.dll_EnumWindows]
mov esi, dword [0x8e04ec]
test esi, esi
je 0x42511b
xor edi, edi
mov ebx, dword [esi]
call dword [sym.imp.KERNEL32.DLL_GetCurrentThreadId]
cmp dword [esi + 8], eax
jne 0x4250ba
cmp byte [esi + 0x10], 0
je 0x4250ba
push 3
push edi
push edi
push edi
push edi
push 0xfffffffffffffffe
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_SetWindowPos]
mov esi, ebx
test ebx, ebx
jne 0x425096
jmp 0x42511b
mov esi, dword [0x8e04ec]
test esi, esi
je 0x42511b
xor edi, edi
push ebp
mov ebx, dword [esi]
lea ebp, [esi + 8]
call dword [sym.imp.KERNEL32.DLL_GetCurrentThreadId]
cmp dword [ebp], eax
jne 0x425114
cmp byte [esi + 0x11], 0
je 0x4250f0
push 1
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp byte [esi + 0x10], 0
je 0x425107
push 3
push edi
push edi
push edi
push edi
push 0xffffffffffffffff
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_SetWindowPos]
push ebp
push 0x8e04ec
call fcn.0043a316
pop ecx
pop ecx
mov esi, ebx
test ebx, ebx
jne 0x4250cf
pop ebp
pop edi
pop esi
pop ebx
ret 4
Function at 0x42572a
Capabilities:
Read file on windows

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 0x10], esi
jle 0x42577e
push ebx
mov ebx, dword [esp + 0xc]
push ebp
mov ebp, dword [esp + 0x14]
and dword [esp + 0x10], 0
lea eax, [esp + 0x10]
push 0
push eax
mov eax, dword [esp + 0x20]
sub eax, esi
push eax
lea eax, [esi + ebp]
push eax
push dword [ebx + 0xc]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
jne 0x42576c
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x6d
je 0x425778
add esi, dword [esp + 0x10]
cmp esi, dword [esp + 0x18]
jl 0x42573d
jmp 0x42577c
add esi, dword [esp + 0x10]
pop ebp
pop ebx
mov eax, esi
pop esi
ret 0xc

Function at 0x42592f
Capabilities:
Accept command line arguments

Disassembly:
push ecx
push ecx
push ebx
push ebp
push esi
push edi
push dword [0x8e153c]
call fcn.00439a76
mov ebp, eax
or ebx, 0xffffffff
xor eax, eax
mov esi, eax
call dword [sym.imp.KERNEL32.DLL_GetCommandLineW]
mov edi, dword [esp + 0x1c]
movzx edx, word [eax]
test dx, dx
je 0x425a2f
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x10], 0x20
mov dword [esp + 0x14], 0x22
cmp dx, word [esp + 0x10]
jne 0x425985
push 0x20
pop edx
add eax, 2
cmp word [eax], dx
je 0x42597d
movzx edx, word [eax]
mov dword [esp + 0x1c], 1
cmp dx, word [esp + 0x14]
jne 0x4259c5
add eax, 2
mov esi, eax
movzx ecx, word [eax]
test cx, cx
je 0x425a07
push 0x22
pop edx
cmp cx, dx
je 0x4259b7
add eax, 2
movzx ecx, word [eax]
test cx, cx
jne 0x4259a7
xor ecx, ecx
cmp word [eax], cx
je 0x425a07
mov ecx, eax
add eax, 2
jmp 0x425a09
test dx, dx
je 0x425a0f
push 0x20
mov esi, eax
pop ecx
cmp dx, cx
je 0x4259b7
add eax, 2
push 0x22
pop edx
cmp word [eax], dx
jne 0x4259fd
add eax, 2
movzx ecx, word [eax]
test cx, cx
je 0x425a07
cmp cx, dx
je 0x4259fa
add eax, 2
movzx ecx, word [eax]
test cx, cx
jne 0x4259ea
push 0x20
pop ecx
movzx edx, word [eax]
test dx, dx
jne 0x4259cf
jmp 0x4259b7
mov ecx, eax
mov edx, dword [esp + 0x1c]
jmp 0x425a11
xor edx, edx
cmp dword [ebp], ebx
jne 0x425a1a
test edi, edi
jne 0x425a37
test edx, edx
je 0x425a1f
inc ebx
xor edx, edx
mov esi, edx
movzx edx, word [eax]
test dx, dx
jne 0x425973
test edi, edi
jne 0x425a48
mov eax, ebx
jmp 0x425a4c
test esi, esi
je 0x425a48
sub ecx, esi
mov eax, esi
sar ecx, 1
mov dword [edi], ecx
inc dword [ebp]
jmp 0x425a4c
xor ecx, ecx
mov dword [edi], ecx
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret