joyce8/EMBER2024-capa huggingface dataset:
Function at 0x418370
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x74
push 0x41f1f0
call fcn.00418118
xor edi, edi
mov dword [ebp - 0x20], edi
push edi
mov ebx, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call ebx
cmp word [eax], 0x5a4d
jne 0x4183b0
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4183b0
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x4183c8
cmp eax, 0x20b
je 0x4183b5
mov dword [ebp - 0x1c], edi
jmp 0x4183dc
cmp dword [ecx + 0x84], 0xe
jbe 0x4183b0
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x4183d6
cmp dword [ecx + 0x74], 0xe
jbe 0x4183b0
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], edi
push 2
call dword [sym.imp.MSVCR71.dll___set_app_type]
pop ecx
or dword [0x4279b4], 0xffffffff
or dword [0x4279b8], 0xffffffff
call dword [sym.imp.MSVCR71.dll___p__fmode]
mov ecx, dword [0x427930]
mov dword [eax], ecx
call dword [sym.imp.MSVCR71.dll___p__commode]
mov ecx, dword [0x42792c]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCR71.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x4279b0], eax
call fcn.004186fa
call fcn.0041879a
cmp dword [0x4274a0], edi
jne 0x41843c
push fcn.0041879a
call dword [sym.imp.MSVCR71.dll___setusermatherr]
pop ecx
call fcn.00418788
push 0x42705c
push 0x427058
call sub.MSVCR71.dll__initterm
push 0x41873e
call fcn.004181d5
mov eax, dword [0x427928]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push dword [0x427924]
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.MSVCR71.dll___wgetmainargs]
add esp, 0x20
mov dword [ebp - 0x3c], eax
cmp eax, edi
jge 0x418490
push 8
call sub.MSVCR71.dll__amsg_exit
pop ecx
push 0x427054
push section..data
call sub.MSVCR71.dll__initterm
pop ecx
pop ecx
mov eax, dword [sym.imp.MSVCR71.dll__wcmdln]
mov esi, dword [eax]
cmp esi, edi
jne 0x4184ba
or dword [ebp - 4], 0xffffffff
mov eax, 0xff
jmp 0x418574
mov dword [ebp - 0x24], esi
mov ax, word [esi]
cmp ax, 0x20
ja 0x418529
cmp ax, di
je 0x4184d0
cmp dword [ebp - 0x20], edi
jne 0x418529
mov ax, word [esi]
cmp ax, di
je 0x4184e5
cmp ax, 0x20
ja 0x4184e5
inc esi
inc esi
mov dword [ebp - 0x24], esi
jmp 0x4184d0
mov dword [ebp - 0x58], edi
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
test byte [ebp - 0x58], 1
je 0x418501
movzx eax, word [ebp - 0x54]
jmp 0x418504
push 0xa
pop eax
push eax
push esi
push edi
push edi
call ebx
push eax
call fcn.004090a6
mov esi, eax
mov dword [ebp - 0x40], esi
cmp dword [ebp - 0x1c], edi
jne 0x418521
push esi
call dword [sym.imp.MSVCR71.dll_exit]
call dword [sym.imp.MSVCR71.dll__cexit]
jmp 0x41856e
cmp ax, 0x22
jne 0x41853a
xor eax, eax
cmp dword [ebp - 0x20], edi
sete al
mov dword [ebp - 0x20], eax
inc esi
inc esi
jmp 0x4184ba
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.00418153
ret
Function at 0x419294
Capabilities:
Parse pe header

Disassembly:
push 0x2c
push 0x41f770
call fcn.00418118
push 0x1c
lea eax, [ebp - 0x3c]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
and dword [ebp - 4], 0
mov ecx, dword [ebp - 0x38]
mov dword [ebp - 0x1c], ecx
cmp word [ecx], 0x5a4d
jne 0x419300
mov eax, dword [ecx + 0x3c]
add eax, ecx
mov dword [ebp - 0x20], eax
cmp dword [eax], 0x4550
je 0x4192d8
xor al, al
or dword [ebp - 4], 0xffffffff
jmp 0x419306
mov edx, dword [eax + 0xd8]
lea esi, [edx + ecx]
cmp dword [ebp + 0xc], esi
jb 0x4192d0
mov eax, dword [eax + 0xdc]
add eax, edx
add eax, ecx
cmp dword [ebp + 0xc], eax
jae 0x4192d0
mov al, 1
jmp 0x4192d2
or dword [ebp - 4], 0xffffffff
xor al, al
call fcn.00418153
ret
Function at 0x419408
Capabilities:
Allocate or change rwx memory
Hook routines via microsoft detours

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
push esi
mov esi, eax
cmp esi, 0x7ff80000
push edi
mov ebx, 0x10000
jbe 0x41942b
lea eax, [esi - 0x7ff80000]
mov dword [ebp - 4], eax
jmp 0x41942e
mov dword [ebp - 4], ebx
cmp esi, 0x80000000
jae 0x419441
lea eax, [esi + 0x7ff80000]
mov dword [ebp - 8], eax
jmp 0x419448
mov dword [ebp - 8], 0xfff80000
mov eax, dword [0x427994]
test eax, eax
mov ecx, dword [0x427990]
jne 0x419462
test ecx, ecx
je 0x419477
mov eax, ecx
mov dword [0x427994], eax
mov edx, dword [eax + 8]
test edx, edx
je 0x419477
cmp edx, dword [ebp - 4]
jb 0x419477
cmp edx, dword [ebp - 8]
jbe 0x41954b
mov eax, ecx
test ecx, ecx
jmp 0x41949b
test eax, eax
je 0x419496
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x419496
cmp ecx, dword [ebp - 4]
jb 0x419496
cmp ecx, dword [ebp - 8]
jbe 0x41954b
mov eax, dword [eax + 4]
test eax, eax
mov dword [0x427994], eax
jne 0x41947d
mov eax, esi
and eax, 0xffff
sub esi, eax
cmp esi, dword [ebp - 4]
mov edi, esi
jbe 0x4195e6
cmp edi, 0x70000000
jb 0x4194cb
cmp edi, 0x80000000
ja 0x4194cb
mov edi, 0x6fff0000
push 0x1c
lea eax, [ebp - 0x40]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4195e6
cmp dword [ebp - 0x30], ebx
jne 0x4194ea
cmp dword [ebp - 0x34], ebx
jae 0x4194fd
mov edi, dword [ebp - 0x3c]
add edi, 0xffff0000
cmp edi, dword [ebp - 4]
ja 0x4194b6
jmp 0x4195e6
push 0x40
push 0x3000
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
mov dword [0x427994], eax
je 0x4195e6
mov ecx, dword [0x427990]
xor edx, edx
mov dword [eax + 4], ecx
mov dword [eax], 0x52727464
mov dword [eax + 8], edx
mov dword [0x427990], eax
lea ecx, [eax + 0xffe0]
mov esi, 0x7fd
mov dword [ecx + 0x18], edx
mov edx, ecx
sub ecx, 0x20
dec esi
jne 0x41953d
mov dword [eax + 8], edx
mov esi, dword [eax + 8]
cmp esi, dword [ebp - 4]
jb 0x4195eb
cmp esi, dword [ebp - 8]
ja 0x4195eb
mov ecx, dword [esi + 0x18]
push 0x20
push 0xcc
push esi
mov dword [eax + 8], ecx
call sub.MSVCR71.dll_memset
add esp, 0xc
mov eax, esi
jmp 0x4195ed
cmp esi, 0x70000000
jb 0x41958f
cmp esi, 0x80000000
ja 0x41958f
mov esi, 0x80010000
push 0x1c
lea eax, [ebp - 0x24]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4195eb
cmp dword [ebp - 0x14], ebx
jne 0x4195dd
cmp dword [ebp - 0x18], ebx
jb 0x4195dd
mov ecx, esi
and ecx, 0xffff
je 0x4195c1
mov eax, ebx
sub eax, ecx
sub dword [ebp - 0x18], eax
add dword [ebp - 0x24], eax
mov esi, dword [ebp - 0x24]
push 0x40
push 0x3000
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
mov dword [0x427994], eax
jne 0x419519
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x18]
lea esi, [eax + ecx]
cmp esi, dword [ebp - 8]
jb 0x41957a
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x419613
Capabilities:
Parse pe header

Disassembly:
push 0x28
push 0x41f780
call fcn.00418118
push 0x1c
lea eax, [ebp - 0x38]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x41966e
and dword [ebp - 4], 0
mov ecx, dword [ebp - 0x34]
cmp word [ecx], 0x5a4d
jne 0x41966a
mov eax, dword [ecx + 0x3c]
add eax, ecx
mov dword [ebp - 0x1c], eax
cmp dword [eax], 0x4550
jne 0x41966a
cmp word [eax + 0x14], 0
jne 0x41965f
xor eax, eax
or dword [ebp - 4], 0xffffffff
jmp 0x419670
mov eax, ecx
jmp 0x419659
or dword [ebp - 4], 0xffffffff
xor eax, eax
call fcn.00418153
ret

Function at 0x419688
Capabilities:
Allocate or change rwx memory

Disassembly:
push ecx
push edi
xor edi, edi
cmp dword [0x42799c], edi
jne 0x4196ab
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push 0x42799c
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
test eax, eax
je 0x4196b2
mov eax, 0x10dd
jmp 0x4196f6
push esi
mov esi, dword [0x427990]
mov dword [0x427998], edi
mov dword [0x4279ac], edi
mov dword [0x4279a8], edi
mov dword [0x4279a0], edi
mov dword [0x4279a4], edi
jmp 0x4196ef
lea eax, [esp + 8]
push eax
push 0x40
push 0x10000
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov esi, dword [esi + 4]
cmp esi, edi
jne 0x4196d9
xor eax, eax
pop esi
pop edi
pop ecx
ret

Function at 0x4196f9
Capabilities:
Resume thread

Disassembly:
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x42799c], eax
je 0x41970f
mov eax, 0x10dd
pop ecx
ret
push ebx
push esi
mov esi, dword [0x4279ac]
xor ebx, ebx
cmp esi, ebx
push edi
je 0x41975a
lea eax, [esp + 0xc]
push eax
mov eax, dword [esi + 0x10]
push dword [esi + 0x14]
movzx eax, byte [eax + 0x17]
push eax
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
cmp dword [esi + 4], ebx
jne 0x41974b
mov edi, dword [esi + 0x10]
cmp edi, ebx
je 0x41974b
call fcn.004195f2
mov dword [esi + 0x10], ebx
mov edi, dword [esi]
push esi
call sub.MSVCR71.dll_void___cdecl_operator_delete_void__
cmp edi, ebx
pop ecx
mov esi, edi
jne 0x41971e
mov dword [0x4279ac], ebx
call fcn.004193e1
mov esi, dword [0x4279a8]
cmp esi, ebx
je 0x419787
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov edi, dword [esi]
push esi
call sub.MSVCR71.dll_void___cdecl_operator_delete_void__
cmp edi, ebx
pop ecx
mov esi, edi
jne 0x41976f
pop edi
pop esi
mov dword [0x4279a8], ebx
mov dword [0x42799c], ebx
xor eax, eax
pop ebx
pop ecx
ret
Function at 0x4199da
Capabilities:
Suspend thread

Disassembly:
mov eax, dword [0x4279a0]
test eax, eax
jne 0x419a4a
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov edi, dword [esp + 8]
cmp edi, eax
jne 0x4199f6
xor eax, eax
jmp 0x419a49
push esi
push 8
call fcn.004180be
mov esi, eax
test esi, esi
pop ecx
jne 0x419a0a
push 8
pop edi
jmp 0x419a25
push edi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x419a36
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov edi, eax
call sub.MSVCR71.dll_void___cdecl_operator_delete_void__
pop ecx
and dword [0x4279a4], 0
mov dword [0x4279a0], edi
mov eax, edi
jmp 0x419a48
mov eax, dword [0x4279a8]
mov dword [esi], eax
mov dword [esi + 4], edi
mov dword [0x4279a8], esi
xor eax, eax
pop esi
pop edi
ret 4
Function at 0x419c8a
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x42799c], eax
je 0x419ca6
mov eax, 0x10dd
jmp 0x419d82
mov eax, dword [0x4279a0]
test eax, eax
jne 0x419d82
push edi
mov edi, dword [ebp + 8]
test edi, edi
jne 0x419cc3
push 6
pop eax
jmp 0x419d81
cmp dword [edi], 0
push ebx
push esi
jne 0x419cd7
push 6
pop eax
mov dword [0x4279a0], eax
jmp 0x419d79
push 0x18
call fcn.004180be
mov esi, eax
test esi, esi
pop ecx
jne 0x419cea
push 8
pop edi
jmp 0x419d63
mov edi, dword [edi]
push 0
push dword [ebp + 0xc]
call fcn.00419676
movzx ecx, byte [edi + 0x17]
mov ebx, dword [edi + 0x18]
xor edx, edx
sub ebx, ecx
cmp ecx, edx
je 0x419d58
cmp ecx, 0x17
ja 0x419d58
cmp dword [edi + 0x1c], eax
jne 0x419d58
lea eax, [ebp - 4]
push eax
push 0x40
push ecx
push ebx
mov dword [ebp - 4], edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x419d2e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x419d63
mov eax, dword [ebp + 8]
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov dword [esi + 0x10], edi
mov dword [esi + 0xc], ebx
mov eax, dword [ebp - 4]
mov dword [esi + 0x14], eax
mov eax, dword [0x4279ac]
mov dword [esi], eax
mov dword [0x4279ac], esi
xor eax, eax
jmp 0x419d7f
cmp dword [0x427998], edx
push 9
pop edi
jne 0x419d69
mov dword [0x4279a0], edi
test esi, esi
je 0x419d74
push esi
call sub.MSVCR71.dll_void___cdecl_operator_delete_void__
pop ecx
mov eax, edi
mov edi, dword [ebp + 8]
mov dword [0x4279a4], edi
pop esi
pop ebx
pop edi
leave
ret 8

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x401ae8
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov al, byte [ebp + 8]
cmp al, 7
jb 0x401b3d
sub al, 7
je 0x401bb1
dec al
je 0x401b0b
sub al, 2
je 0x401b35
sub al, 3
je 0x401b27
jmp 0x401b3d
mov eax, dword [0x406220]
cmp eax, dword [0x4060e0]
jle 0x401bb1
dec dword [0x406220]
jmp 0x401bb1
mov edi, dword [0x4060e0]
mov dword [0x406220], edi
jmp 0x401bb1
inc dword [0x406210]
jmp 0x401bb1
mov word [ebp - 8], 1
mov word [ebp - 6], 1
mov word [ebp - 0xc], 0
mov word [ebp - 0xa], 0
movzx ax, byte [ebp + 8]
mov word [ebp - 4], ax
movzx ax, byte [0x4060d0]
mov word [ebp - 2], ax
mov eax, dword [0x406220]
dec eax
mov word [ebp - 0x14], ax
mov eax, dword [0x406210]
dec eax
mov word [ebp - 0x12], ax
mov eax, dword [0x406220]
dec eax
mov word [ebp - 0x10], ax
mov eax, dword [0x406210]
dec eax
mov word [ebp - 0xe], ax
lea edi, [ebp - 0x14]
push edi
push dword [ebp - 0xc]
push dword [ebp - 8]
lea eax, [ebp - 4]
push eax
push dword [0x406130]
call sub.kernel32.dll_WriteConsoleOutputA
inc dword [0x406220]
mov eax, dword [0x406220]
cmp eax, dword [0x406100]
jle 0x401bdf
mov edi, dword [0x4060e0]
mov dword [0x406220], edi
inc dword [0x406210]
jmp 0x401bdf
push 1
call fcn.00401c88
dec dword [0x406210]
mov eax, dword [0x406210]
cmp eax, dword [0x406110]
jg 0x401bd2
leave
ret 4
Function at 0x408420
Capabilities:
Extract resource via kernel32 functions
Print debug messages
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
push 0
push 0x43f690
mov dword [ebp - 4], edi
call fcn.0043fd10
mov esi, eax
add esp, 8
test esi, esi
je 0x4085e1
mov eax, dword [esi + 0x10]
mov ebx, 0x5172bc
mov dword [eax + 0xa0], 0x43f6c0
mov eax, dword [esi + 0x10]
mov dword [eax + 0x2e0], esi
mov eax, dword [esi + 0x10]
mov dword [eax + 0x2dc], 0x43f7d0
mov dword [edi], esi
mov eax, dword [0x5172bc]
mov edx, dword [ebx - 4]
push ecx
push eax
mov ecx, esi
call fcn.0043f440
mov edi, dword [esi + 0xc]
add esp, 8
sub edi, 0x10
cmp dword [esi + 0x24], edi
jb 0x40849e
push 0
push 0xffffffffffffffff
mov edx, edi
mov ecx, esi
call fcn.0044d3e0
add esp, 8
add ebx, 8
mov dword [esi + 0xc], edi
mov eax, dword [ebx]
test eax, eax
jne 0x408474
mov ebx, dword [ebp - 4]
mov ecx, dword [ebx]
call fcn.0046f220
mov ecx, dword [ebx]
push str.lua_StartDecompress
mov eax, dword [ecx + 0xc]
mov dword [eax], 0x407f70
mov byte [eax + 8], 0x16
add dword [ecx + 0xc], 0x10
mov ecx, dword [ebx]
mov eax, dword [ecx + 0x10]
mov eax, dword [eax + 0x28]
mov edx, dword [eax + 0xc]
add edx, 0x10
call fcn.0043c780
mov ecx, dword [ebx]
add esp, 4
mov eax, dword [ecx + 0xc]
push str.lua_MsgBox
mov dword [eax], 0x4080f0
mov byte [eax + 8], 0x16
add dword [ecx + 0xc], 0x10
mov ecx, dword [ebx]
mov eax, dword [ecx + 0x10]
mov eax, dword [eax + 0x28]
mov edx, dword [eax + 0xc]
add edx, 0x10
call fcn.0043c780
add esp, 4
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0x5187ec
mov esi, eax
push 0x81
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x4085d9
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4085d9
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push edi
push esi
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, eax
mov eax, dword [ebp - 4]
test eax, eax
je 0x4085d9
push 0
push 0
push ecx
mov ecx, dword [ebx]
mov edx, eax
call fcn.0043ebf0
mov ecx, dword [ebx]
add esp, 0xc
xor edx, edx
push 0
push 0
push 0
push 0
call fcn.0043cc70
mov ecx, dword [ebx]
push str.OnRunSetup
mov eax, dword [ecx + 0x10]
mov eax, dword [eax + 0x28]
mov edx, dword [eax + 0xc]
add edx, 0x10
call fcn.0043c610
mov ecx, dword [ebx]
add esp, 0x14
xor edx, edx
push 0
push 0
push 0
push 0
call fcn.0043cc70
mov eax, dword [ebx]
add esp, 0x10
mov ecx, dword [eax + 0x10]
mov ecx, dword [ecx + 0xa4]
call fcn.0043fc10
push str.OnRunSetup_Quit
mov dword [ebx], 0
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov dword [edi], esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40c840
Capabilities:
Extract resource via kernel32 functions
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f8a8d
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push esi
push edi
mov eax, dword [0x530010]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push str.OnThreadDecompress
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [edi + 0x14], 8
mov edx, edi
jb 0x40c87f
mov edx, dword [edi]
mov ecx, edx
mov dword [ebp - 0x28], 0
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
lea esi, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40c8a0
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.004014e0
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0
call fcn.0046cb40
test al, al
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x14]
sete bl
cmp edx, 8
jb 0x40c90e
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40c904
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ca00
push edx
push ecx
call fcn.00476a87
add esp, 8
test bl, bl
je 0x40c919
push 0xffffffffffffffff
jmp 0x40c9e9
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0x518ab4
mov ebx, eax
push 0x83
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x40c9e7
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x40c9e7
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push dword [ebp - 0x10]
mov esi, eax
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x40c9e7
mov ebx, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov byte [edi + 0x18], 1
mov cl, byte [esi]
cmp cl, 0x37
je 0x40c9a4
cmp byte [esi + 1], 0x7a
je 0x40c9a4
push str.7557_r_n
call ebx
mov cl, byte [esi]
xor byte [esi + 1], 0x45
xor cl, 0x45
mov byte [esi], cl
cmp cl, 0x37
je 0x40c9a4
cmp byte [esi + 1], 0x7a
je 0x40c9a4
push str.error_7z__r_n
jmp 0x40c9a9
push str.begin_decompress_7z__r_n
call ebx
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 0x3c]
push edi
mov dword [ebp - 0x3c], 0x438bb0
mov dword [ebp - 0x38], 0x438c00
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x30], eax
call fcn.00435e30
add esp, 4
mov esi, eax
call fcn.0040c430
test esi, esi
jne 0x40c9e3
push esi
jmp 0x40c9e9
push 0xfffffffffffffffd
jmp 0x40c9e9
push 0xfffffffffffffffe
call fcn.0040ca10
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.004ca66d
int3
Function at 0x40d080
Capabilities:
Check os version
Extract resource via kernel32 functions
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2f4
mov eax, dword [0x530010]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x8001
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
push 0
call dword [sym.imp.ole32.dll_OleInitialize]
push 0x110
lea eax, [ebp - 0x12c]
push 0
push eax
call fcn.004c6550
add esp, 0xc
mov dword [ebp - 0x130], 0x114
lea eax, [ebp - 0x130]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x12c], 5
ja 0x40d112
push 0
push 0x518af0
push 0x518af8
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00476a44
mov esp, ebp
pop ebp
ret
push 3
call fcn.00477950
add esp, 4
mov dword [ebp - 0x14], 1
lea eax, [ebp - 0x14]
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
push 0
push eax
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.gdiplus.dll_GdiplusStartup]
cmp dword [0x5323e0], 0
jne 0x40d206
push 0x7f00
xorps xmm0, xmm0
mov dword [ebp - 0x2f0], 0x30
push 0
mov dword [ebp - 0x2ec], 3
mov dword [ebp - 0x2e8], 0x46d0c0
movups xmmword [ebp - 0x2e4], xmm0
call dword [sym.imp.USER32.dll_LoadCursorW]
mov dword [ebp - 0x2d4], eax
lea eax, [ebp - 0x2f0]
push eax
mov dword [ebp - 0x2d0], 0
mov dword [ebp - 0x2cc], 0
mov dword [ebp - 0x2c8], str.ThreadSynWnd
mov dword [ebp - 0x2c4], 0
call dword [sym.imp.USER32.dll_RegisterClassExW]
push 0
push 0
push 0
push 0
push 0xa
push 0xa
push 0
push 0
push closesocket
push 0x517e54
push str.ThreadSynWnd
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov dword [0x5323e0], eax
test eax, eax
je 0x40d206
push 0x5323e0
push 0x521ec4
push eax
call dword [sym.imp.USER32.dll_SetPropW]
push 0
mov dword [0x53238c], 0x530b84
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0x518ab4
mov edi, eax
push 0x82
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x40d25a
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x40d25a
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push ebx
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push ecx
push esi
mov ecx, 0x530b88
call fcn.00412b00
call fcn.00419db0
mov eax, dword [0x532384]
test eax, eax
jne 0x40d2b0
push 0x24
call fcn.00476a57
xorps xmm0, xmm0
mov dword [ebp - 0x2f4], eax
add esp, 4
mov dword [0x532384], eax
xor ecx, ecx
movups xmmword [eax], xmm0
movups xmmword [eax + 0x10], xmm0
mov dword [eax + 0x20], 0
mov dword [eax], 0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov dword [eax + 0x18], ecx
mov dword [eax + 0x1c], ecx
mov dword [eax + 0x20], ecx
mov ecx, eax
call fcn.00411500
lea eax, [ebp - 0x2c0]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov ecx, 0x5323b8
call fcn.00408420
call fcn.0040d2f0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00476a44
mov esp, ebp
pop ebp
ret