joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40380b
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov esi, eax
mov al, byte [esi]
cmp al, 0x22
jne 0x403834
cmp al, 0x22
je 0x40382c
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x403820
cmp byte [esi], 0x22
jne 0x40383e
inc esi
jmp 0x40383e
cmp al, 0x20
jle 0x40383e
inc esi
cmp byte [esi], 0x20
jg 0x403838
mov al, byte [esi]
test al, al
je 0x403848
cmp al, 0x20
jle 0x403831
and dword [ebp - 0x18], 0
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.004038b6
push 0x405004
push section..data
call fcn.0040389c
test byte [ebp - 0x18], 1
pop ecx
pop ecx
je 0x403878
movzx eax, word [ebp - 0x14]
jmp 0x40387b
push 0xa
pop eax
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov esi, eax
call fcn.004038ce
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x401000
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov esi, eax
mov al, byte [esi]
cmp al, 0x22
jne 0x401029
mov al, byte [esi + 1]
inc esi
test al, al
je 0x401021
cmp al, 0x22
jne 0x401015
cmp byte [esi], 0x22
jne 0x401033
inc esi
jmp 0x401033
cmp al, 0x20
jle 0x401033
inc esi
cmp byte [esi], 0x20
jg 0x40102d
mov al, byte [esi]
test al, al
je 0x40103d
cmp al, 0x20
jle 0x401026
and dword [ebp - 0x18], 0
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.004018d4
push 0x404004
push section..data
call fcn.004018ba
test byte [ebp - 0x18], 1
pop ecx
pop ecx
je 0x40106d
movzx eax, word [ebp - 0x14]
jmp 0x401070
push 0xa
pop eax
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov esi, eax
call fcn.00401123
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]

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

Disassembly:
pushal
nop
nop
nop
mov eax, section..reloc
nop
mov ebx, 0x40c7d0
mov ecx, 0x364810be
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43204e
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x432024
nop
nop
nop
mov eax, section..data
mov ebx, 0x42f314
nop
mov ecx, 0x508d10e6
nop
nop
nop
nop
nop
test eax, eax
nop
je 0x432084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43206c
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x40b4e5
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.004041e5
sub ebx, ebx
cmp dword [0x434898], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x40b5ba
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
pop edi
cmp edi, ebx
jne 0x40b525
sub eax, eax
jmp 0x40b67e
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x40b51e
push eax
call fcn.00404182
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x434898], eax
call esi
push eax
call fcn.00404182
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x43489c], eax
call esi
push eax
call fcn.00404182
mov dword [0x4348a0], eax
lea eax, [ebp - 8]
push eax
call fcn.004067af
test eax, eax
pop ecx
pop ecx
je 0x40b588
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00403c3f
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x40b5ba
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00404182
cmp eax, ebx
pop ecx
mov dword [0x4348a8], eax
je 0x40b5ba
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00404182
pop ecx
mov dword [0x4348a4], eax
mov eax, dword [0x4348a4]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x40b633
cmp dword [0x4348a8], esi
je 0x40b633
push eax
call fcn.004041ee
pop ecx
call eax
cmp eax, ebx
je 0x40b600
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x4348a8]
call fcn.004041ee
pop ecx
call eax
test eax, eax
je 0x40b600
test byte [ebp - 0x18], 1
jne 0x40b633
lea eax, [ebp - 0xc]
push eax
call fcn.004067e6
test eax, eax
pop ecx
je 0x40b61b
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00403c3f
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x40b62a
or dword [ebp + 0x10], 0x200000
jmp 0x40b664
or dword [ebp + 0x10], 0x40000
jmp 0x40b664
mov eax, dword [0x43489c]
cmp eax, esi
je 0x40b664
push eax
call fcn.004041ee
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x40b664
mov eax, dword [0x4348a0]
cmp eax, esi
je 0x40b664
push dword [ebp - 4]
push eax
call fcn.004041ee
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x434898]
call fcn.004041ee
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
nop
nop
nop
pop eax
nop
nop
nop
add eax, 0x403ac5
nop
sub eax, 0x403a6b
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x42e030
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
nop
jne 0x42e01e
nop
nop
nop
popal
nop
nop
jmp loc.00401219
Function at 0x40171d
Capabilities:
Parse pe header

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

Function at 0x406109
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x413040]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x406154
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.00406326
test al, al
jne 0x40614e
sub edx, 2
cmp edx, edi
jne 0x406134
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x406176
lea eax, [edi + 2]
cmp edx, eax
je 0x406176
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.00406055
add esp, 0x10
jmp 0x406270
push esi
lea ecx, [ebp - 0x255]
call fcn.00406326
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4061b9
push dword [ebp - 0x25c]
jmp 0x406166
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x4061f6
cmp word [ebp - 0x226], 0
je 0x406217
cmp word [ebp - 0x226], ax
jne 0x4061f6
cmp word [ebp - 0x224], 0
je 0x406217
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.00406055
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x406263
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x4061d0
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x40624b
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x406270
push 0x405e85
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00408ed0
add esp, 0x10
jmp 0x406240
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401a55
leave
ret

Function at 0x407da3
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x40efbc
push 0x40efb4
push str.FlsAlloc
push 0x1f
call fcn.00407cde
mov esi, eax
add esp, 0x10
test esi, esi
je 0x407dd7
push dword [ebp + 8]
mov ecx, esi
call dword [0x40d10c]
call esi
jmp 0x407ddd
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4
Function at 0x407e21
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x40efcc
push 0x40efc4
push str.FlsGetValue
push 0x21
call fcn.00407cde
mov esi, eax
add esp, 0x10
test esi, esi
je 0x407e58
push dword [ebp + 8]
mov ecx, esi
call dword [0x40d10c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x407e60
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x40efd4
push 0x40efcc
push str.FlsSetValue
push 0x22
call fcn.00407cde
mov esi, eax
add esp, 0x10
test esi, esi
je 0x407e9a
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x40d10c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x40cbf0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40cc1d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40cc1d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x4017a0
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 0x4017b9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4017f4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x4017f0
lea ebx, [ebx]
cmp esi, eax
jae 0x4017f4
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x4017e0
cmp esi, eax
jb 0x4017fa
pop esi
pop edi
xor eax, eax
pop ebx
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x401b08
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push esi
push edi
xor edi, edi
movzx eax, word [ecx + 0x14]
movzx esi, word [ecx + 6]
test esi, esi
lea eax, [eax + ecx + 0x18]
jbe 0x401b43
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x401b2a
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp dword [esp + 0xc], edx
jb 0x401b3b
add edx, ecx
cmp dword [esp + 0xc], edx
jb 0x401b45
inc edi
add eax, 0x28
cmp edi, esi
jb 0x401b20
xor eax, eax
pop edi
pop esi
ret

Function at 0x401edf
Capabilities:
Contain obfuscated stackstrings

Disassembly:
test dword [edi + edi*8 - 1], eax
dec dword [ebp + 0x5d88d445]
aam 0x50
mov byte [ebp - 0x2b], bl
mov byte [ebp - 0x2a], 0xd4
mov byte [ebp - 0x29], bl
mov byte [ebp - 0x28], 0x67
mov byte [ebp - 0x27], 0x44
fld dword [esi + eax*8 + 0x45]
fimul dword [edx - 0x3a]
inc ebp
fisttp dword [edi - 0x3a]
inc ebp
fsub qword [edi - 0x3a]
inc ebp
fld qword [edx - 0x3a]
inc ebp
fimul word [ecx - 0x3a]
inc ebp
fistp word [ecx - 0x3a]
inc ebp
loopne 0x401f63
mov byte [ebp - 0x1f], 0x59
mov byte [ebp - 0x1e], 0x52
mov byte [ebp - 0x1d], 0x6a
mov byte [ebp - 0x1c], 0x2b
call fcn.00401ad8
push eax
push esi
push dword [ebp + 8]
call fcn.00401a8d
add esp, 0x30
mov dword [ebp - 0xb8], eax
call fcn.00401ac8
dec esi
dec edx
pushal
cmp eax, 0xff7c9d88
invalid
Function at 0x402207
Capabilities:
Inspect section memory permissions

Disassembly:
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x40219f
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x4021bd
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x40221b
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je method.CUninstApp.virtual_180
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x40220b
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x402215
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x4021f7
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x402181
mov dword [ebp + 8], esi
xor edi, edi
mov eax, dword [ebp + 0x18]
push 2
pop ecx
movzx eax, byte [edi + eax]
add al, 7
sub eax, ecx
je 0x402268
dec eax
je 0x40225f
sub eax, 3
je 0x402256
mov dword [ebp - 4], 0x40
jmp 0x402285
mov dword [ebp - 4], 4
jmp 0x40226b
mov dword [ebp - 4], 0x20
jmp 0x40226b
mov dword [ebp - 4], ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 0xac]
push dword [ebp + 8]
call dword [ebp - 0xbc]
test eax, eax
je 0x4022b7
mov eax, dword [ebp - 0xac]
add dword [ebp + 8], eax
inc edi
cmp edi, dword [ebp - 0x8c]
jbe 0x402237
mov eax, dword [ebp - 0x88]
mov edi, dword [eax + 0x28]
add edi, esi
call fcn.00401ac8
mov edx, eax
mov eax, dword [0x1475ff5a]
push 1
push esi
call edi
mov eax, esi
jmp 0x4022c3
push 0x8000
push ebx
push esi
call dword [ebp - 8]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4037c5
Capabilities:
Contain obfuscated stackstrings

Disassembly:
and byte [ebp - 0x7ab], 0
mov byte [ebp - 0x7aa], 0xed
and byte [ebp - 0x7a9], 0
mov byte [ebp - 0x7a8], 0x4e
mov byte [ebp - 0x7a7], 0x55
mov byte [ebp - 0x7a6], 0x56
mov byte [ebp - 0x7a5], 0x7e
mov byte [ebp - 0x7a4], 0x21
mov byte [ebp - 0x7a3], 0x20
mov byte [ebp - 0x7a2], 0x3c
mov byte [ebp - 0x7a1], 0x76
mov byte [ebp - 0x7a0], 0x7e
mov byte [ebp - 0x79f], 0x7e
mov byte [ebp - 0x79e], 0x12
push 0xb
lea eax, [ebp - 0x7ac]
push eax
call fcn.00401ad8
pop ecx
push eax
mov eax, dword [ebp - 0x338]
lea eax, [ebp + eax - 0x230]
push eax
call fcn.00401a39
add esp, 0xc
jmp 0x403a40
Function at 0x40ad03
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x40ad31
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x40ad4f
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0040ac6d
jmp 0x40ad4f
mov eax, dword [esi + 0x14]
test eax, eax
je 0x40ad4f
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.0040ac6d
test edi, edi
mov eax, edi
jne 0x40ad39
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x42cc80]
test ecx, ecx
je 0x40ae12
jmp 0x40ad02
ret 8

Function at 0x40dc43
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x429d68]
jne 0x40dc4d
repz ret
jmp fcn.00412215

Function at 0x41103a
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x429d80]
je 0x411055
inc edi
cmp edi, 0x17
jb 0x411046
cmp edi, 0x17
jae 0x4111d5
push ebp
push 3
call fcn.004181e0
cmp eax, 1
pop ecx
je 0x4111a1
push 3
call fcn.004181e0
test eax, eax
pop ecx
jne 0x411089
cmp dword [0x429bd4], 1
je 0x4111a1
cmp ebx, 0xfc
je 0x4111d4
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x42cf90
push ebp
call fcn.0041817b
add esp, 0xc
test eax, eax
je 0x4110bf
push esi
push esi
push esi
push esi
push esi
call fcn.004125c9
add esp, 0x14
push 0x104
mov esi, 0x42cfa9
push esi
push 0
mov byte [0x42d0ad], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x411103
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.0041817b
add esp, 0xc
test eax, eax
je 0x411103
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.004125c9
add esp, 0x14
push esi
call fcn.004180f0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x411148
push esi
call fcn.004180f0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x42d2a4
push 0x42328c
sub ecx, eax
push ecx
push eax
call fcn.00418030
add esp, 0x14
test eax, eax
je 0x411148
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.004125c9
add esp, 0x14
jmp 0x41114a
xor esi, esi
push 0x423288
push ebx
push ebp
call fcn.00417fbf
add esp, 0xc
test eax, eax
je 0x41116a
push esi
push esi
push esi
push esi
push esi
call fcn.004125c9
add esp, 0x14
push dword [edi*8 + 0x429d84]
push ebx
push ebp
call fcn.00417fbf
add esp, 0xc
test eax, eax
je 0x41118c
push esi
push esi
push esi
push esi
push esi
call fcn.004125c9
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.00417e02
add esp, 0xc
jmp 0x4111d4
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x4111d4
cmp ebp, 0xffffffff
je 0x4111d4
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x429d84]
push dword [esi]
call fcn.004180f0
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x417e02
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00411bea
xor ebx, ebx
cmp dword [0x42da48], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x417ed8
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x417fb8
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x417fb8
push eax
call fcn.00411b7c
mov dword [esp], 0x423450
push edi
mov dword [0x42da48], eax
call esi
push eax
call fcn.00411b7c
mov dword [esp], 0x42343c
push edi
mov dword [0x42da4c], eax
call esi
push eax
call fcn.00411b7c
mov dword [0x42da50], eax
lea eax, [ebp - 0xc]
push eax
call fcn.0040dd40
test eax, eax
pop ecx
pop ecx
je 0x417ea6
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004125c9
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x417ed8
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00411b7c
cmp eax, ebx
pop ecx
mov dword [0x42da58], eax
je 0x417ed8
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00411b7c
pop ecx
mov dword [0x42da54], eax
mov eax, dword [0x42da54]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x417f5d
cmp dword [0x42da58], ecx
je 0x417f5d
push eax
call fcn.00411bf3
push dword [0x42da58]
mov esi, eax
call fcn.00411bf3
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x417f5d
cmp edi, ebx
je 0x417f5d
call esi
cmp eax, ebx
je 0x417f2a
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x417f2a
test byte [ebp - 0x18], 1
jne 0x417f5d
lea eax, [ebp - 0x10]
push eax
call fcn.0040dd77
test eax, eax
pop ecx
je 0x417f45
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004125c9
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x417f54
or dword [ebp + 0x10], 0x200000
jmp 0x417f98
or dword [ebp + 0x10], 0x40000
jmp 0x417f98
mov eax, dword [0x42da4c]
cmp eax, dword [ebp - 8]
je 0x417f98
push eax
call fcn.00411bf3
cmp eax, ebx
pop ecx
je 0x417f98
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x417f98
mov eax, dword [0x42da50]
cmp eax, dword [ebp - 8]
je 0x417f98
push eax
call fcn.00411bf3
cmp eax, ebx
pop ecx
je 0x417f98
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x42da48]
call fcn.00411bf3
cmp eax, ebx
pop ecx
je 0x417fb8
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x417fba
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41f80e
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x429d68]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.0041f7a3
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 fcn.0040ebf0
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 0x41f85d
cmp dword [ebp - 0x1c], 5
jb 0x41f875
jmp 0x41f871
cmp dword [ebp - 0x10], 1
jne 0x41f875
cmp dword [ebp - 0x1c], 4
ja 0x41f871
jne 0x41f875
cmp dword [ebp - 0x18], 0
jbe 0x41f875
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x4246a0
call fcn.0041f677
test eax, eax
jge 0x41f896
mov byte [0x42dc24], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0040dc43
add ebp, 0x78
leave
ret
Function at 0x493330
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x5c000]
push edi
jmp 0x49334a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x493351
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x493340
mov eax, 1
add ebx, ebx
jne 0x493363
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x493374
jne 0x493393
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x493393
dec eax
add ebx, ebx
jne 0x493380
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x493358
add ebx, ebx
jne 0x49338f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4933e5
xor ecx, ecx
sub eax, 3
jb 0x4933ab
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x49341a
sar eax, 1
mov ebp, eax
jmp 0x4933b6
add ebx, ebx
jne 0x4933b6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x493384
inc ecx
add ebx, ebx
jne 0x4933c4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x493384
add ebx, ebx
jne 0x4933d1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4933c6
jne 0x4933e2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4933c6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x493404
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4933f6
jmp 0x493346
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x493404
add edi, ecx
jmp 0x493346
pop esi
mov edi, esi
mov ecx, 0x3021
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x493422
cmp byte [edi], 0x19
jne 0x493422
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 al, bl
loop 0x493427
lea edi, [esi + 0x90000]
mov eax, dword [edi]
or eax, eax
je 0x49349f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x941c4]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x942dc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x493454
mov ecx, edi
jns 0x493483
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 + 0x942e0]
or eax, eax
je 0x493499
mov dword [ebx], eax
add ebx, 4
jmp 0x493471
call dword [esi + 0x942f0]
mov ebp, dword [esi + 0x942e4]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x4934d3
sub esp, 0xffffff80
jmp 0x45282d