joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4566a2
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x462ec6
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x48b990]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 4]
xor edi, edi
cmp eax, edi
mov dword [esp + 0x14], edi
je 0x4566e2
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
pop ecx
mov dword [esi + 4], edi
cmp dword [esi + 0x10], edi
mov ebp, dword [sym.imp.MSVCR80.dll_wcslen]
mov ebx, dword [sym.imp.MSVCR80.dll_wcscpy]
jne 0x4567af
mov dword [esp + 0x18], edi
push 0x2001f
push dword [0x48b6e8]
lea ecx, [esp + 0x20]
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x34], edi
call fcn.00402e79
test eax, eax
jne 0x456796
mov edi, 0x208
xor ecx, ecx
push 2
pop edx
mov eax, edi
mul edx
seto cl
mov dword [esp + 0x1c], edi
neg ecx
or ecx, eax
push ecx
call fcn.0045ca6f
pop ecx
mov edi, eax
lea eax, [esp + 0x1c]
push eax
push edi
push dword [0x48b6ec]
lea ecx, [esp + 0x24]
call fcn.00421374
test eax, eax
jne 0x45678d
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x45678d
push edi
call ebp
xor ecx, ecx
push 2
inc eax
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0045ca6f
push edi
push eax
mov dword [esi + 4], eax
call ebx
add esp, 0x10
mov dword [esp + 0x14], 1
push edi
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
pop ecx
xor edi, edi
or dword [esp + 0x28], 0xffffffff
lea ecx, [esp + 0x18]
call fcn.00402e14
cmp dword [esp + 0x14], edi
je 0x4567af
cmp dword [esi + 4], edi
jne 0x456804
mov edi, dword [esp + 0x30]
test edi, edi
je 0x456804
push edi
call ebp
xor ecx, ecx
push 2
inc eax
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0045ca6f
push edi
push eax
mov dword [esi + 4], eax
call ebx
add esp, 0x10
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4567fc
cmp dword [esi + 0x10], 0
jne 0x4567fc
push dword [esi + 4]
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
and dword [esi + 4], 0
pop ecx
jmp 0x456804
mov dword [esp + 0x14], 1
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 4
Function at 0x4570b2
Capabilities:
Get file version info
Get geographical location

Disassembly:
push ebp
lea ebp, [esp - 0x338]
sub esp, 0x3b8
mov eax, dword [0x48b990]
xor eax, ebp
mov dword [ebp + 0x334], eax
mov eax, dword [ebp + 0x340]
push ebx
push edi
xor edi, edi
push 0x206
mov dword [ebp - 0x74], eax
lea eax, [ebp + 0x12e]
push edi
push eax
mov ebx, ecx
mov word [ebp + 0x12c], di
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0x104
lea eax, [ebp + 0x12c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
push edi
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov ecx, dword [ebp - 0x74]
push 0x466820
mov ebx, eax
mov dword [esi], edi
mov dword [esi + 4], edi
call fcn.00404494
cmp ebx, edi
jbe 0x45724f
xor ecx, ecx
push 2
pop edx
mov eax, ebx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0045ca6f
pop ecx
push eax
push ebx
mov dword [ebp - 0x70], eax
push edi
lea eax, [ebp + 0x12c]
push eax
call sub.VERSION.dll_GetFileVersionInfoW
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x78]
push eax
push 0x46beb4
push dword [ebp - 0x70]
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x7c], edi
call sub.VERSION.dll_VerQueryValueW
mov eax, dword [ebp - 0x78]
mov ebx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x6c], eax
push edi
mov eax, ebx
shr eax, 0x10
cdq
mov edi, 0x10000
push edi
push edx
push eax
call fcn.0045d1c0
mov ecx, eax
mov eax, edx
mov dword [ebp - 0x68], eax
movzx eax, bx
cdq
add ecx, eax
mov eax, dword [ebp - 0x68]
adc eax, edx
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x6c]
push 0
shr eax, 0x10
cdq
push edi
push dword [esi + 4]
mov ebx, eax
mov eax, edx
push ecx
mov dword [ebp - 0x68], eax
call fcn.0045d1c0
add ebx, eax
mov eax, dword [ebp - 0x68]
adc eax, edx
xor edi, edi
push edi
push 0x10000
push eax
push ebx
call fcn.0045d1c0
mov ecx, eax
movzx eax, word [ebp - 0x6c]
mov ebx, edx
cdq
add ecx, eax
lea eax, [ebp - 0x68]
adc ebx, edx
push eax
mov dword [esi], ecx
mov dword [esi + 4], ebx
mov dword [ebp - 0x68], edi
lea eax, [ebp - 0x80]
push eax
push 0x4752a0
push dword [ebp - 0x70]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x457242
push 4
push dword [ebp - 0x80]
lea eax, [ebp - 0x6c]
push eax
mov dword [ebp - 0x6c], edi
call sub.MSVCR80.dll_memcpy
add esp, 0xc
push 0xc8
lea eax, [ebp - 0x64]
push eax
movzx eax, word [ebp - 0x6c]
push 0x1001
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x457242
mov ecx, dword [ebp - 0x74]
lea eax, [ebp - 0x64]
push eax
call fcn.00404494
push dword [ebp - 0x70]
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
pop ecx
mov al, 1
jmp 0x457251
xor al, al
mov ecx, dword [ebp + 0x334]
pop edi
xor ecx, ebp
pop ebx
call fcn.0045ce96
add ebp, 0x338
leave
ret
Function at 0x459f84
Capabilities:
Check internet connectivity via wininet

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push 0
lea eax, [ebp - 4]
push eax
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
test eax, eax
je 0x459fbd
mov eax, dword [0x488018]
cmp eax, 0x488018
je 0x45a027
test byte [eax + 0x1c], 1
je 0x45a027
cmp byte [eax + 0x19], 4
jb 0x45a027
push 0x4754f8
push 0xf
jmp 0x45a019
test byte [ebp - 4], 0x40
jne 0x459ff4
mov eax, dword [0x488018]
cmp eax, 0x488018
je 0x459ff0
test byte [eax + 0x1c], 1
je 0x459ff0
cmp byte [eax + 0x19], 4
jb 0x459ff0
push 0x4754f8
push 0x10
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.00406feb
add esp, 0x10
xor al, al
leave
ret
test byte [ebp - 4], 1
jne 0x45a027
mov eax, dword [0x488018]
cmp eax, 0x488018
je 0x45a027
test byte [eax + 0x1c], 1
je 0x45a027
cmp byte [eax + 0x19], 4
jb 0x45a027
push 0x4754f8
push 0x11
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.00406feb
add esp, 0x10
mov eax, dword [ebp - 4]
and eax, 1
leave
ret

Function at 0x45b255
Capabilities:
Connect to wmi namespace via wbemlocator

Disassembly:
push 4
mov eax, 0x46355e
call fcn.0045cea5
mov ebx, ecx
lea edi, [ebx + 0x24]
mov eax, dword [edi]
xor esi, esi
cmp eax, esi
je 0x45b27a
cmp dword [ebx + 0x28], esi
je 0x45b27a
xor eax, eax
jmp 0x45b2fe
call fcn.0045af1e
test al, al
je 0x45b28a
mov eax, 0x80004005
jmp 0x45b2fe
cmp dword [edi], esi
jne 0x45b2a6
push edi
push 0x475808
push 1
push esi
push 0x4759d8
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, esi
jl 0x45b2fe
mov edi, dword [edi]
push str.._rootSecurityCenter
lea ecx, [ebp - 0x10]
call fcn.0045b039
mov eax, dword [eax]
cmp eax, esi
mov dword [ebp - 4], esi
je 0x45b2c2
mov eax, dword [eax]
jmp 0x45b2c4
xor eax, eax
mov ecx, dword [edi]
add ebx, 0x28
push ebx
push esi
push esi
push esi
push esi
push esi
push esi
push eax
push edi
call dword [ecx + 0xc]
mov ecx, dword [ebp - 0x10]
cmp ecx, esi
mov edi, eax
je 0x45b2e3
call fcn.0045b192
cmp edi, esi
jl 0x45b2fc
mov ebx, dword [ebx]
push esi
push esi
push 3
push 3
push esi
push esi
push 0xa
push ebx
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
mov edi, eax
mov eax, edi
call fcn.0045cf7d
ret

Function at 0x45bf1b
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0xa0]
sub esp, 0x120
mov eax, dword [0x48b990]
xor eax, ebp
mov dword [ebp + 0x9c], eax
push ebx
push 0x118
xor ebx, ebx
lea eax, [ebp - 0x7c]
push ebx
push eax
call sub.MSVCR80.dll_memset
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
mov dword [ebp - 0x80], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x45bf7a
cmp dword [ebp - 0x7c], 5
jb 0x45bf78
jne 0x45bf7a
cmp dword [ebp - 0x78], 1
jne 0x45bf78
cmp word [ebp + 0x94], 2
jae 0x45bf7a
mov bl, 1
mov ecx, dword [ebp + 0x9c]
mov al, bl
xor ecx, ebp
pop ebx
call fcn.0045ce96
add ebp, 0xa0
leave
ret
Function at 0x45c5e3
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x48b990]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.0045c522
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call sub.MSVCR80.dll_memset
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x45c632
cmp dword [ebp - 0x1c], 5
jb 0x45c64a
jmp 0x45c646
cmp dword [ebp - 0x10], 1
jne 0x45c64a
cmp dword [ebp - 0x1c], 4
ja 0x45c646
jne 0x45c64a
cmp dword [ebp - 0x18], 0
jbe 0x45c64a
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x475b0c
call fcn.0040251c
test eax, eax
jge 0x45c66b
mov byte [0x48bb14], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0045ce96
add ebp, 0x78
leave
ret

Function at 0x45ca6a
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x48c1c8], 0
push esi
jne 0x45c9dd
call fcn.0045c908
test eax, eax
je 0x45ca20
mov eax, dword [0x48c1c8]
cmp eax, 1
jne 0x45c9fe
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x45ca20
pop esi
ret
push eax
call dword [0x48c1d0]
test eax, eax
jne 0x45ca68
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x45ca24
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x48c1c8]
call dword [0x48c1d0]
mov edi, eax
test edi, edi
je 0x45ca4b
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x45ca67
lea edi, [esi + 0xff0]
push esi
push dword [0x48c1c8]
call dword [0x48c1cc]
add esi, 0x10
cmp esi, edi
jb 0x45ca51
mov eax, esi
pop edi
pop esi
ret
jmp 0x45c9ca

Function at 0x45ce96
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x48b990]
jne 0x45cea0
repz ret
jmp fcn.0045d6d0
Function at 0x4013f0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x40c
push ebx
push ebp
push esi
xor esi, esi
push edi
mov dword [esp + 0x10], esi
mov word [0x4987c4], si
xor eax, eax
lea ecx, [esp + 0x1c]
mov byte [ecx], al
inc eax
inc ecx
cmp ax, 0x3f2
jl 0x40140d
push 0x20
call fcn.00401550
mov edi, eax
add esp, 4
cmp edi, esi
mov dword [esp + 0x14], edi
jle 0x401506
cmp esi, 0x18c95
jle 0x40145c
mov ecx, dword [esp + 0x420]
lea eax, [esp + 0x18]
push 0
push eax
push esi
push 0x405020
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x401529
xor esi, esi
push 1
call fcn.00401550
add esp, 4
cmp eax, 1
jne 0x4014c0
push 0xa
call fcn.00401550
add esp, 4
mov ebx, eax
push 4
call fcn.00401550
add esp, 4
test ax, ax
jle 0x4014ea
movsx edi, word [0x4987c4]
movsx ecx, bx
add ecx, edi
movsx ebx, ax
mov edx, ecx
lea ebp, [edi - 0xe]
and edx, 0x3ff
and ebp, 0x3ff
inc esi
inc ecx
mov dl, byte [esp + edx + 0x1c]
inc edi
mov byte [esi + 0x40501f], dl
dec ebx
mov byte [esp + ebp + 0x1c], dl
jne 0x401495
mov edi, dword [esp + 0x14]
jmp 0x4014ea
push 8
call fcn.00401550
mov cx, word [0x4987c4]
add esp, 4
sub ecx, 0xe
mov byte [esi + 0x405020], al
and ecx, 0x3ff
inc esi
mov byte [esp + ecx + 0x1c], al
mov eax, 1
add word [0x4987c4], ax
movsx edx, ax
mov eax, dword [esp + 0x10]
add eax, edx
cmp eax, edi
mov dword [esp + 0x10], eax
jl 0x40142f
test esi, esi
je 0x401536
mov ecx, dword [esp + 0x420]
lea eax, [esp + 0x18]
push 0
push eax
push esi
push 0x405020
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x401536
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40c
ret
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x40c
ret

Function at 0x401df0
Capabilities:
Create shortcut via ishelllink

Disassembly:
sub esp, 0x210
lea eax, [esp]
push esi
push eax
push 0x4041f0
push 1
push 0
push 0x404010
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, eax
test esi, esi
jl 0x401e9c
mov eax, dword [esp + 4]
mov edx, dword [esp + 0x218]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x50]
mov eax, dword [esp + 4]
mov edx, dword [esp + 0x220]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
mov eax, dword [esp + 4]
lea edx, [esp + 8]
push edx
push 0x404340
mov ecx, dword [eax]
push eax
call dword [ecx]
mov esi, eax
test esi, esi
jl 0x401e92
mov ecx, dword [esp + 0x21c]
lea eax, [esp + 0xc]
push 0x104
push eax
push 0xffffffffffffffff
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [esp + 8]
lea ecx, [esp + 0xc]
push 1
push ecx
mov edx, dword [eax]
push eax
call dword [edx + 0x18]
mov esi, eax
mov eax, dword [esp + 8]
push eax
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [esp + 4]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, esi
pop esi
add esp, 0x210
ret
Function at 0x401eb0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x404430
push 0x402ec8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffffa8
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
call dword [sym.imp.KERNEL32.dll_GetVersion]
xor edx, edx
mov dl, ah
mov dword [0x498140], edx
mov ecx, eax
and ecx, 0xff
mov dword [0x49813c], ecx
shl ecx, 8
add ecx, edx
mov dword [0x498138], ecx
shr eax, 0x10
mov dword [0x498134], eax
call fcn.00402d90
test eax, eax
jne 0x401f1a
push 0x1c
call fcn.00402050
add esp, 4
mov dword [ebp - 4], 0
call fcn.00402b90
call fcn.00402b80
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x498a10], eax
call fcn.00402750
mov dword [0x49811c], eax
test eax, eax
je 0x401f4d
mov eax, dword [0x498a10]
test eax, eax
jne 0x401f57
push 0xffffffffffffffff
call fcn.004020b0
add esp, 4
call fcn.004024a0
call fcn.004023b0
call fcn.00402080
mov esi, dword [0x498a10]
mov dword [ebp - 0x64], esi
cmp byte [esi], 0x22
jne 0x402036
inc esi
mov dword [ebp - 0x64], esi
mov al, byte [esi]
cmp al, 0x22
je 0x401f9e
test al, al
je 0x401f9e
and eax, 0xff
push eax
call fcn.00402350
add esp, 4
test eax, eax
je 0x401f78
inc esi
mov dword [ebp - 0x64], esi
jmp 0x401f78
cmp byte [esi], 0x22
jne 0x401fa7
inc esi
mov dword [ebp - 0x64], esi
mov al, byte [esi]
test al, al
je 0x401fb7
cmp al, 0x20
ja 0x401fb7
inc esi
mov dword [ebp - 0x64], esi
jmp 0x401fa7
mov dword [ebp - 0x30], 0
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x30], 1
je 0x401fd8
mov eax, dword [ebp - 0x2c]
and eax, 0xffff
jmp 0x401fdd
mov eax, 0xa
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov dword [ebp - 0x60], eax
push eax
call fcn.004020b0
jmp 0x40201b
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [esi], 0x20
jbe 0x401fa7
inc esi
mov dword [ebp - 0x64], esi
jmp 0x402036

Function at 0x4020f0
Capabilities:
Terminate process

Disassembly:
mov eax, dword [0x498170]
push ebx
push ebp
mov ebp, dword [esp + 0xc]
cmp eax, 1
push esi
jne 0x40210f
push ebp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
test eax, eax
mov dword [0x49816c], 1
mov byte [0x498168], bl
jne 0x402169
mov ecx, dword [0x498a08]
test ecx, ecx
je 0x402157
mov esi, dword [0x498a04]
sub esi, 4
cmp esi, ecx
jb 0x402157
mov eax, dword [esi]
test eax, eax
je 0x402150
call eax
mov ecx, dword [0x498a08]
sub esi, 4
cmp esi, ecx
jae 0x402142
push 0x405014
push 0x405010
call fcn.004021a0
add esp, 8
push 0x40501c
push 0x405018
call fcn.004021a0
add esp, 8
test ebx, ebx
jne 0x402190
push ebp
mov dword [0x498170], 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop esi
pop ebp
pop ebx
ret
Function at 0x402750
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [0x498280]
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
push esi
xor esi, esi
xor ebx, ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test eax, eax
jne 0x402792
call edi
mov esi, eax
test esi, esi
je 0x40277c
mov eax, 1
jmp 0x40278d
call ebp
mov ebx, eax
test ebx, ebx
je 0x40289f
mov eax, 2
mov dword [0x498280], eax
cmp eax, 1
jne 0x402832
test esi, esi
jne 0x4027ab
call edi
mov esi, eax
test esi, esi
je 0x40289f
cmp word [esi], 0
mov eax, esi
je 0x4027c5
add eax, 2
cmp word [eax], 0
jne 0x4027b3
add eax, 2
cmp word [eax], 0
jne 0x4027b3
sub eax, esi
push 0
sar eax, 1
inc eax
push 0
mov ebp, eax
push 0
push 0
push ebp
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
je 0x402824
push edi
call fcn.00403210
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x402824
push 0
push 0
push edi
push ebx
push ebp
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x402816
push ebx
call fcn.004031c0
add esp, 4
xor ebx, ebx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
cmp eax, 2
jne 0x40289f
test ebx, ebx
jne 0x402843
call ebp
mov ebx, eax
test ebx, ebx
je 0x40289f
mov cl, byte [ebx]
mov eax, ebx
test cl, cl
je 0x40285b
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x40284b
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x40284b
sub eax, ebx
inc eax
mov esi, eax
push esi
call fcn.00403210
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x40287d
push ebx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov ecx, esi
mov esi, ebx
mov eax, ecx
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
Function at 0x402fe0
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x1a8
mov eax, 0x495e48
push ebx
push ebp
push esi
push edi
xor ebp, ebp
cmp ecx, dword [eax]
je 0x403004
add eax, 8
inc ebp
cmp eax, 0x495ed8
jb 0x402ff5
cmp ecx, dword [ebp*8 + 0x495e48]
jne 0x4031ab
mov eax, dword [0x498124]
cmp eax, 1
je 0x40316d
test eax, eax
jne 0x403030
cmp dword [0x495ca4], 1
je 0x40316d
cmp ecx, 0xfc
je 0x4031ab
lea eax, [esp + 0xb4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40306b
mov ecx, 5
mov esi, str._program_name_unknown_
lea edi, [esp + 0xb4]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
xor eax, eax
lea ebx, [esp + 0xb4]
repne scasb al, byte es:[edi]
not ecx
cmp ecx, 0x3c
jbe 0x4030b4
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 3
mov ebx, ecx
lea ecx, [esp + 0xb8]
sub ecx, 0x3b
push 0x404710
add ebx, ecx
push ebx
call fcn.00403a70
add esp, 0xc
mov ecx, 6
mov esi, str.Runtime_Error__n_nProgram:
lea edi, [esp + 0x14]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
or ecx, 0xffffffff
mov edi, ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x14]
mov ebx, ecx
mov esi, edi
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x14]
and ecx, 3
push 0x12010
rep movsb byte es:[edi], byte [esi]
mov edi, 0x4046f0
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push str.Microsoft_Visual_C_Runtime_Library
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x1c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp*8 + 0x495e4c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x1c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.004039e0
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
mov eax, dword [0x498900]
test eax, eax
je 0x40317e
mov esi, dword [eax + 0x10]
cmp esi, 0xffffffff
jne 0x403188
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
mov edx, dword [ebp*8 + 0x495e4c]
lea ecx, [esp + 0x10]
push 0
push ecx
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
Function at 0x40676d
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x43f77c], 0
jne 0x4067ab
xor ecx, ecx
push esi
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
movzx edx, dl
neg edx
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406781
mov dword [ecx*4 + 0x43f778], eax
inc ecx
cmp ecx, 0x100
jl 0x40677c
pop esi
cmp dword [ebp + 0x10], 0
mov eax, dword [ebp + 8]
not eax
jbe 0x4067d8
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
dec dword [ebp + 0x10]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x43f778]
inc ecx
cmp dword [ebp + 0x10], 0
ja 0x4067b9
not eax
pop ebp
ret 0xc

Function at 0x80b4a0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x6000]
push edi
or ebp, 0xffffffff
jmp 0x80b4c2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x80b4c9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x80b4b8
mov eax, 1
add ebx, ebx
jne 0x80b4db
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x80b4d0
jne 0x80b4ec
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x80b4d0
xor ecx, ecx
sub eax, 3
jb 0x80b500
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x80b572
mov ebp, eax
add ebx, ebx
jne 0x80b50b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x80b518
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x80b53c
inc ecx
add ebx, ebx
jne 0x80b528
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x80b51d
jne 0x80b539
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x80b51d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x80b55c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x80b54d
jmp 0x80b4be
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x80b55c
add edi, ecx
jmp 0x80b4be
pop esi
mov edi, esi
mov ecx, 0x147
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x80b57a
cmp byte [edi], 1
jne 0x80b57a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov eax, ebx
loop 0x80b57f
lea edi, [esi + 0x9000]
mov eax, dword [edi]
or eax, eax
je 0x80b5f7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xb514]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xb58c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x80b5ac
mov ecx, edi
jns 0x80b5db
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xb590]
or eax, eax
je 0x80b5f1
mov dword [ebx], eax
add ebx, 4
jmp 0x80b5c9
call dword [esi + 0xb594]
popal
jmp 0x802d68