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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x110
mov eax, dword [0x41458c]
xor eax, esp
mov dword [esp + 0x10c], eax
push ebx
push esi
push 0x40284c
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
xor ebx, ebx
test eax, eax
je 0x4062f0
push 0x402868
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x4062f0
push ebx
push ebx
push 1
push ebx
mov ecx, esi
call dword [0x427170]
call esi
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
lea ecx, [eax + 1]
neg ecx
sbb ecx, ecx
and ecx, eax
mov dword [0x415a5c], ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov ecx, eax
call fcn.00406198
mov esi, dword [ebp + 8]
mov bl, al
neg bl
sbb bl, bl
inc bl
cmp esi, 2
jl 0x4063c1
test bl, bl
je 0x406335
cmp esi, 2
je 0x4063c1
push 0x104
lea eax, [esp + 0xc]
push 0
push eax
call fcn.0040de10
mov eax, dword [ebp + 0xc]
lea ecx, [esp + 0x14]
add esp, 0xc
push dword [eax + 4]
call fcn.00403ac0
test eax, eax
jns 0x40636b
mov edx, 0x402880
mov ecx, 0x65b
call fcn.00403bb7
mov al, byte [esp + 8]
cmp al, 0x2d
je 0x406377
cmp al, 0x2f
jne 0x406397
cmp byte [esp + 9], 0x3f
je 0x40638b
xor ecx, ecx
mov edx, 0x40364c
inc ecx
call fcn.00403bb7
mov edx, 0x402880
xor ecx, ecx
call fcn.00403bb7
cmp esi, 2
je 0x4063b4
test bl, bl
je 0x4063a5
cmp esi, 3
je 0x4063b4
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov ecx, eax
call fcn.00405ba0
jmp 0x4063bd
lea ecx, [esp + 8]
call fcn.00403d0d
xor eax, eax
jmp 0x4063d1
xor ecx, ecx
mov edx, 0x402880
inc ecx
call fcn.00403bb7
xor eax, eax
inc eax
mov ecx, dword [esp + 0x114]
pop esi
pop ebx
xor ecx, esp
call fcn.0040660a
mov esp, ebp
pop ebp
ret
Function at 0x407352
Capabilities:
Allocate thread local storage
Set thread local storage value

Disassembly:
mov edi, edi
push esi
push edi
call fcn.0040719d
mov esi, eax
test esi, esi
je 0x4074cf
push 0x4013f4
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x401400
push esi
mov dword [0x415168], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x40140c
push esi
mov dword [0x41516c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x401418
push esi
mov dword [0x415170], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp dword [0x415168], 0
mov dword [0x415174], eax
je 0x4073c8
cmp dword [0x41516c], 0
je 0x4073c8
cmp dword [0x415170], 0
je 0x4073c8
test eax, eax
jne 0x4073f0
mov eax, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [0x41516c], eax
mov eax, dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [0x415170], eax
mov eax, dword [sym.imp.KERNEL32.dll_TlsFree]
mov dword [0x415168], 0x406f10
mov dword [0x415174], eax
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x414564], eax
cmp eax, 0xffffffff
je 0x4074d4
push dword [0x41516c]
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x4074d4
call fcn.00407702
push dword [0x415168]
call fcn.00406fc2
push dword [0x41516c]
mov dword [0x415168], eax
call fcn.00406fc2
push dword [0x415170]
mov dword [0x41516c], eax
call fcn.00406fc2
push dword [0x415174]
mov dword [0x415170], eax
call fcn.00406fc2
add esp, 0x10
mov dword [0x415174], eax
call fcn.0040b755
test eax, eax
je 0x4074cf
push 0x407040
push dword [0x415168]
call fcn.00406f4d
pop ecx
mov esi, eax
mov ecx, eax
call dword [0x427170]
call esi
mov dword [0x414560], eax
cmp eax, 0xffffffff
je 0x4074cf
push 0x214
push 1
call fcn.0040b7bc
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4074cf
push edi
push dword [0x414560]
push dword [0x415170]
call fcn.00406f4d
pop ecx
mov esi, eax
mov ecx, eax
call dword [0x427170]
call esi
test eax, eax
jne 0x4074d9
push edi
call fcn.00409551
pop ecx
call fcn.004074ec
xor eax, eax
pop edi
pop esi
ret
push 0
push edi
call fcn.00407279
pop ecx
pop ecx
or dword [edi + 4], 0xffffffff
xor eax, eax
inc eax
jmp 0x4074d6
Function at 0x407951
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
xor ebx, ebx
push edi
mov edi, dword [ebp + 8]
mov esi, ebx
cmp edi, dword [esi*8 + 0x401008]
je 0x407970
inc esi
cmp esi, 0x17
jb 0x407961
cmp esi, 0x17
jae 0x407ab0
push 3
call fcn.0040bcaf
pop ecx
cmp eax, 1
je 0x407a7a
push 3
call fcn.0040bcaf
pop ecx
test eax, eax
jne 0x4079a3
cmp dword [0x414550], 1
je 0x407a7a
cmp edi, 0xfc
je 0x407ab0
push 0x4019f0
push 0x314
mov edi, 0x4151b0
push edi
call fcn.00406af3
add esp, 0xc
test eax, eax
je 0x4079d8
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004094ab
add esp, 0x14
push 0x104
push 0x4151c9
push ebx
mov byte [0x4152cd], bl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x407a1b
push 0x401a0c
push 0x2fb
push 0x4151c9
call fcn.00406af3
add esp, 0xc
test eax, eax
je 0x407a1b
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004094ab
add esp, 0x14
push 0x401a24
push 0x314
push edi
call fcn.00406c2b
add esp, 0xc
test eax, eax
je 0x407a3f
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004094ab
add esp, 0x14
push dword [esi*8 + 0x40100c]
push 0x314
push edi
call fcn.00406c2b
add esp, 0xc
test eax, eax
je 0x407a65
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004094ab
add esp, 0x14
push 0x12010
push 0x401a28
push edi
call fcn.0040bcfb
add esp, 0xc
jmp 0x407ab0
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov edx, eax
test edx, edx
je 0x407ab0
cmp edx, 0xffffffff
je 0x407ab0
mov esi, dword [esi*8 + 0x40100c]
mov ecx, esi
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x407a99
push ebx
lea eax, [ebp - 4]
sub ecx, edi
push eax
push ecx
push esi
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x408205
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov edi, eax
test edi, edi
je 0x408297
xor edx, edx
push esi
mov esi, edi
cmp word [edi], dx
je 0x40823a
add esi, 2
movzx eax, word [esi]
mov ecx, eax
test ax, ax
jne 0x408235
add esi, 2
movzx ecx, word [esi]
test cx, cx
jne 0x408222
push ebx
push edx
push edx
push edx
sub esi, edi
push edx
sar esi, 1
inc esi
push esi
push edi
push edx
push edx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 4], eax
test eax, eax
je 0x40828c
push eax
call fcn.004084ed
mov ebx, eax
pop ecx
test ebx, ebx
je 0x40828c
xor eax, eax
push eax
push eax
push dword [ebp - 4]
push ebx
push esi
push edi
push eax
push eax
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x408281
push ebx
call fcn.00409551
pop ecx
xor ebx, ebx
push edi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
jmp 0x408295
push edi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
pop ebx
pop esi
pop edi
leave
ret
Function at 0x40b810
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 0x40b84e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x40b846
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x40b850
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x40b836
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x40b920
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 0x40b951
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x40b951
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x40b951
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x40bcfb
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x41458c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
push edi
mov dword [ebp - 0x18], eax
call fcn.00407037
xor esi, esi
mov ebx, eax
cmp dword [0x415770], esi
jne 0x40bddb
push esi
push esi
push 0x401e20
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40bebd
push 0x401e38
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40bebd
push eax
call fcn.00406fc2
mov dword [esp], 0x401e44
push edi
mov dword [0x415770], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call fcn.00406fc2
mov dword [esp], 0x401e54
push edi
mov dword [0x415774], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call fcn.00406fc2
mov dword [esp], 0x401e68
push edi
mov dword [0x415778], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call fcn.00406fc2
pop ecx
mov ecx, eax
mov dword [0x415780], ecx
test ecx, ecx
je 0x40bdd4
push 0x401e84
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call fcn.00406fc2
pop ecx
mov dword [0x41577c], eax
jmp 0x40bde0
mov eax, dword [0x41577c]
jmp 0x40bde6
mov eax, dword [0x41577c]
mov ecx, dword [0x415780]
cmp eax, ebx
je 0x40be4c
cmp ecx, ebx
je 0x40be4c
push eax
call fcn.00406f4d
push dword [0x415780]
mov dword [ebp - 0x14], eax
call fcn.00406f4d
mov edi, eax
mov eax, dword [ebp - 0x14]
pop ecx
pop ecx
test eax, eax
je 0x40be4c
test edi, edi
je 0x40be4c
mov ecx, eax
call dword [0x427170]
mov eax, dword [ebp - 0x14]
call eax
test eax, eax
je 0x40be43
lea ecx, [ebp - 0x20]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
mov ecx, edi
call dword [0x427170]
call edi
test eax, eax
je 0x40be43
test byte [ebp - 8], 1
jne 0x40be4c
or dword [ebp + 0x10], 0x200000
jmp 0x40be95
mov eax, dword [0x415774]
cmp eax, ebx
je 0x40be95
push eax
call fcn.00406f4d
mov edi, eax
pop ecx
test edi, edi
je 0x40be95
mov ecx, edi
call dword [0x427170]
call edi
mov esi, eax
test esi, esi
je 0x40be95
mov eax, dword [0x415778]
cmp eax, ebx
je 0x40be95
push eax
call fcn.00406f4d
mov edi, eax
pop ecx
test edi, edi
je 0x40be95
push esi
mov ecx, edi
call dword [0x427170]
call edi
mov esi, eax
push dword [0x415770]
call fcn.00406f4d
mov edi, eax
pop ecx
test edi, edi
je 0x40bebd
push dword [ebp + 0x10]
mov ecx, edi
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
push esi
call dword [0x427170]
call edi
jmp 0x40bebf
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040660a
leave
ret
Function at 0x40f80e
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [0x41458c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 4
xor esi, esi
pop eax
mov dword [ebp - 0xc], esi
call fcn.0040f5a0
mov eax, esp
lea ecx, [ebp - 0x34]
push 0x1c
push ecx
push eax
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40f91d
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ebx, dword [ebp - 0x54]
push 0x401440
mov dword [ebp - 8], esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40f89f
push 0x4027fc
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x40f89f
lea eax, [ebp - 0xc]
mov ecx, edi
push eax
call dword [0x427170]
call edi
cmp eax, 1
jne 0x40f89f
cmp dword [ebp - 0xc], esi
jbe 0x40f89f
mov esi, dword [ebp - 0xc]
mov dword [ebp - 8], esi
lea eax, [ebp - 8]
push eax
lea edi, [ebx - 1]
push edi
push esi
call fcn.00407d16
add esp, 0xc
test eax, eax
js 0x40f91d
mov esi, dword [ebp - 8]
not edi
and esi, edi
mov dword [ebp - 8], esi
je 0x40f8d5
lea eax, [ebp - 8]
push eax
push ebx
push esi
call fcn.00407d16
add esp, 0xc
test eax, eax
js 0x40f91d
mov esi, dword [ebp - 8]
lea eax, [ebx + ebx]
cmp esi, eax
jae 0x40f8de
mov esi, eax
mov eax, dword [ebp - 0x14]
mov edi, ebx
neg edi
add eax, ebx
and edi, dword [ebp - 0x10]
sub edi, esi
cmp edi, eax
jb 0x40f91d
push 4
push 0x1000
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
je 0x40f91d
lea ecx, [ebp - 0x18]
push ecx
push 0x104
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x40f91d
xor eax, eax
inc eax
jmp 0x40f91f
xor eax, eax
lea esp, [ebp - 0x64]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040660a
leave
ret
Function at 0x401ab0
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
push ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x19c
push 0
call dword [sym.imp.USER32.dll_LoadIconW]
push 0x19c
push 0
call dword [sym.imp.USER32.dll_LoadIconW]
push 0x19c
push 0
call dword [sym.imp.USER32.dll_LoadIconW]
push 0x19c
push 0
call dword [sym.imp.USER32.dll_LoadIconW]
push 0x19c
push 0
call dword [sym.imp.USER32.dll_LoadIconW]
push 0x19c
push 0
call dword [sym.imp.USER32.dll_LoadIconW]
push 0x19c
push 0
call dword [sym.imp.USER32.dll_LoadIconW]
test eax, eax
je 0x401b20
xor eax, eax
jmp 0x401c01
push 0x7f00
push 0
call dword [sym.imp.USER32.dll_LoadIconW]
test eax, eax
jne 0x401b38
xor eax, eax
jmp 0x401c01
push ebp
add eax, 0x1474
add eax, 0x1474
add eax, 0x1474
add eax, 0x1474
add eax, 0x1474
add eax, 0x1474
add eax, 0x1474
add eax, 0x1474
add eax, 0x1474
add eax, 0x1474
add eax, 0x1474
add eax, 0x1474
add eax, 0x1474
add eax, 0x1474
add eax, 0x1474
add eax, 0x1474
add eax, 0x1474
add eax, 0x1474
add eax, 0x1474
add eax, 0x1474
add eax, 0x1474
add eax, 0x1474
add eax, 0x1474
add eax, 0x1474
add eax, 0x1474
add eax, 0x1474
add eax, 0x1474
add eax, 0x1474
add eax, 0x1474
add eax, 0x1474
add eax, 0x1474
add eax, 0x1474
add eax, 0x1474
add eax, 0x1474
add eax, 0x1474
add eax, 0x1474
add eax, 0x1474
add eax, 0x1474
add eax, 0x1474
call fcn.00401510
mov esp, ebp
pop ebp
ret

Function at 0x401215
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push esi
mov esi, dword [sym.imp.USER32.dll_LoadIconA]
push edi
push 0x7f00
xor edi, edi
push edi
mov dword [ebp - 0x24], str.construct
mov dword [ebp - 0x44], 0x401000
mov dword [ebp - 0x48], 3
mov dword [ebp - 0x4c], 0x30
call esi
push 0x7f00
push edi
mov dword [ebp - 0x34], eax
call esi
push 0x7f00
push edi
mov dword [ebp - 0x20], eax
call dword [sym.imp.USER32.dll_LoadCursorW]
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push edi
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x3c], edi
call esi
push edi
mov dword [0x4030f0], eax
mov dword [ebp - 0x38], eax
call dword [sym.imp.GDI32.dll_GetStockObject]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.USER32.dll_RegisterClassExA]
test ax, ax
je 0x401327
push 1
push dword [0x4030f0]
call dword [sym.imp.USER32.dll_LoadBitmapA]
push edi
push edi
call esi
push eax
push edi
push edi
push 0x80000000
push 0x80000000
push 0x80000000
push 0x80000000
push 0xcf0000
push str.displayed
push str.construct
push edi
call dword [sym.imp.USER32.dll_CreateWindowExA]
push 0
push eax
mov dword [0x4030f8], eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov esi, dword [sym.imp.USER32.dll_GetMessageA]
push edi
push edi
push edi
lea edx, [ebp - 0x1c]
push edx
call esi
test eax, eax
je 0x401327
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
push ebx
mov ebx, dword [sym.imp.USER32.dll_DispatchMessageA]
lea eax, [ebp - 0x1c]
push eax
call edi
lea ecx, [ebp - 0x1c]
push ecx
call ebx
push 0
push 0
push 0
lea edx, [ebp - 0x1c]
push edx
call esi
test eax, eax
jne 0x40130a
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x409250
Capabilities:
Parse pe header

Disassembly:
mov ecx, dword [ecx + 4]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x409283
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x409283
mov ecx, 0xe0
cmp word [eax + 0x14], cx
jne 0x409283
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x409283
mov al, 1
ret
xor al, al
ret

Function at 0x40a1d0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 4]
mov edx, dword [eax + 0x3c]
add edx, eax
cmp dword [edx + 0x74], 0
jbe 0x40a313
cmp word [edx + 0x14], 0x68
jb 0x40a313
add edx, 0x78
je 0x40a313
mov eax, dword [edi]
push dword [edx]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x5c689c]
mov ecx, edi
call esi
mov dword [ebp - 0xc], eax
test eax, eax
je 0x40a313
mov ecx, dword [edi + 4]
mov edx, dword [ecx + 0x3c]
add edx, ecx
cmp dword [edx + 0x74], 0
jbe 0x40a313
cmp word [edx + 0x14], 0x68
jb 0x40a313
add edx, 0x78
je 0x40a313
mov eax, dword [edi]
push dword [edx]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x5c689c]
mov ecx, edi
call esi
mov ebx, eax
mov dword [ebp - 0x10], ebx
test ebx, ebx
je 0x40a313
mov ecx, dword [ebp + 8]
cmp ecx, 0xffff
ja 0x40a278
movzx ebx, cx
jmp 0x40a349
mov eax, dword [edi]
push dword [ebx + 0x20]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x5c689c]
mov ecx, edi
call esi
mov ecx, dword [ebx + 0x18]
mov edx, eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], edx
lea ebx, [eax + ecx*4]
cmp eax, ebx
je 0x40a313
nop
mov eax, ebx
sub eax, edx
sar eax, 2
mov eax, eax
test eax, eax
jns 0x40a2b0
add eax, 1
sar eax, 1
push dword [edx + eax*4]
lea ecx, [edx + eax*4]
mov eax, dword [edi]
mov dword [ebp - 8], ecx
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x5c689c]
mov ecx, edi
call esi
mov esi, dword [ebp + 8]
mov dl, byte [esi]
test dl, dl
je 0x40a2f1
mov cl, dl
sub esi, eax
nop dword [eax]
mov dl, cl
cmp cl, byte [eax]
jne 0x40a2f1
mov cl, byte [esi + eax + 1]
inc eax
mov dl, cl
test cl, cl
jne 0x40a2e0
movzx eax, byte [eax]
movzx ecx, dl
sub ecx, eax
je 0x40a31e
mov edx, dword [ebp - 8]
test ecx, ecx
cmovle ebx, edx
add edx, 4
test ecx, ecx
cmovle edx, dword [ebp - 4]
mov dword [ebp - 4], edx
cmp edx, ebx
jne 0x40a2a0
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [edi]
mov ebx, dword [ebp - 0x10]
mov esi, dword [eax + 4]
mov ecx, esi
push dword [ebx + 0x24]
call dword [0x5c689c]
mov ecx, edi
call esi
mov edx, dword [ebp - 8]
sub edx, dword [ebp - 0x14]
sar edx, 2
mov ax, word [eax + edx*2]
add ax, word [ebx + 0x10]
movzx ebx, ax
mov eax, dword [edi]
mov ecx, dword [ebp - 0xc]
mov esi, dword [eax + 4]
push dword [ecx + 0x1c]
mov ecx, esi
call dword [0x5c689c]
mov ecx, edi
call esi
mov edx, dword [ebp - 0xc]
movzx ecx, bx
pop edi
pop esi
sub ecx, dword [edx + 0x10]
pop ebx
lea eax, [eax + ecx*4]
mov esp, ebp
pop ebp
ret 4
Function at 0x405ef4
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x422a34], 0
push esi
jne 0x405f2b
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x405f05
mov dword [ecx*4 + 0x422a30], eax
inc ecx
cmp ecx, 0x100
jl 0x405f00
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405f5c
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x422a30]
xor eax, esi
inc ecx
dec edx
jne 0x405f3e
pop edi
not eax
pop esi
ret 0xc

Function at 0x8e11c4
Capabilities:
Encode data using xor

Disassembly:
pushal
call 0x8e11ca
pop ebp
sub ebp, 6
sub ebp, 0x4e11c4
jmp 0x8e1228
push cs
add byte [edi + 0x67], cl
adc byte [esi + ebp], bh
pop edi
mov al, byte [0x5f8109a]
and eax, 0x8c5b57d2
mov esi, 0x1eaf093
add byte [eax], al
add byte [edx + 0x6b], dh
sub ah, byte [edx + 0x200f4e81]
fist dword [ebp + 0x6a56d85a]
mov ebx, dword [esi + 0x486ebe51]
fisub word [edx]
mov ebp, 0x77e2a302
mov byte [esi - 0x10], bh
shl dword [edi - 0x17], 1
add al, 0
add byte [eax], al
aas
dec edx
xlatb
mov byte [eax + 0x4e11c4], bh
jmp 0x8e1231
mov eax, 0x4e11c4
add eax, ebp
add eax, 0x93
mov ecx, 0x639
mov edx, 0x53e8c445
xor byte [eax], dl
inc eax
dec ecx
jne 0x8e1248
jmp 0x8e125b
das
add eax, 0x4555452d
inc ebp
sub eax, 0x45698945
jbe 0x8e11ee
adc eax, 0x1479d0ba
add dword [ebp + 0x15], eax
into
mov dh, cl
int3
Function at 0x402f2e
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x408310]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00401e8a
and dword [ebp - 0x14], 0
cmp dword [0x40941c], 0
mov dword [ebp - 0x18], eax
jne 0x402fe1
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x403089
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x403089
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x40941c], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x409420], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x409424], eax
call edi
push eax
call esi
mov dword [0x40942c], eax
test eax, eax
je 0x402fe1
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x409428], eax
mov eax, dword [0x409428]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x40303a
cmp dword [0x40942c], ecx
je 0x40303a
push eax
call esi
push dword [0x40942c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x40303a
test ebx, ebx
je 0x40303a
call edi
test eax, eax
je 0x403031
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x403031
test byte [ebp - 8], 1
jne 0x40303a
or dword [ebp + 0x10], 0x200000
jmp 0x40306d
mov eax, dword [0x409420]
cmp eax, dword [ebp - 0x18]
je 0x40306d
push eax
call esi
test eax, eax
je 0x40306d
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40306d
mov eax, dword [0x409424]
cmp eax, dword [ebp - 0x18]
je 0x40306d
push eax
call esi
test eax, eax
je 0x40306d
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x40941c]
call esi
test eax, eax
je 0x403089
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x40308b
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403299
leave
ret

Function at 0x403299
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x408310]
jne 0x4032a3
repz ret
jmp fcn.00404506
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x408ecc
nop
mov ecx, 0x6be26a86
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
jne 0x430024
nop
nop
nop
nop
mov eax, section..rsrc
nop
nop
mov ebx, 0x42e1d0
mov ecx, 0x103869e8
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x430084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219