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

Disassembly:
push 0x74
push 0x404598
call fcn.004032cc
xor ebx, ebx
mov dword [ebp - 0x20], ebx
push ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x40310a
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40310a
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x403122
cmp eax, 0x20b
je 0x40310f
mov dword [ebp - 0x1c], ebx
jmp 0x403136
cmp dword [ecx + 0x84], 0xe
jbe 0x40310a
xor eax, eax
cmp dword [ecx + 0xf8], ebx
jmp 0x403130
cmp dword [ecx + 0x74], 0xe
jbe 0x40310a
xor eax, eax
cmp dword [ecx + 0xe8], ebx
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], ebx
push 2
call dword [sym.imp.MSVCR71.dll___set_app_type]
pop ecx
or dword [0x406520], 0xffffffff
or dword [0x406524], 0xffffffff
call dword [sym.imp.MSVCR71.dll___p__fmode]
mov ecx, dword [0x4064d8]
mov dword [eax], ecx
call dword [sym.imp.MSVCR71.dll___p__commode]
mov ecx, dword [0x4064d4]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCR71.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x40651c], eax
call fcn.00403454
call fcn.004034f4
cmp dword [0x4060cc], ebx
jne 0x403196
push fcn.004034f4
call dword [sym.imp.MSVCR71.dll___setusermatherr]
pop ecx
call fcn.004034e2
push 0x406048
push 0x406044
call sub.MSVCR71.dll__initterm
push 0x403498
call fcn.004030ac
mov eax, dword [0x4064d0]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push dword [0x4064cc]
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.MSVCR71.dll___getmainargs]
add esp, 0x20
mov dword [ebp - 0x3c], eax
cmp eax, ebx
jge 0x4031ea
push 8
call sub.MSVCR71.dll__amsg_exit
pop ecx
push 0x406040
push section..data
call sub.MSVCR71.dll__initterm
pop ecx
pop ecx
mov eax, dword [sym.imp.MSVCR71.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x24], esi
mov al, byte [esi]
cmp al, 0x20
ja 0x403268
cmp al, bl
je 0x403214
cmp dword [ebp - 0x20], ebx
jne 0x403268
mov al, byte [esi]
cmp al, bl
je 0x403224
cmp al, 0x20
ja 0x403224
inc esi
mov dword [ebp - 0x24], esi
jmp 0x403214
mov dword [ebp - 0x58], ebx
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x58], 1
je 0x403240
movzx eax, word [ebp - 0x54]
jmp 0x403243
push 0xa
pop eax
push eax
push esi
push ebx
push ebx
call edi
push eax
call fcn.00403668
mov esi, eax
mov dword [ebp - 0x40], esi
cmp dword [ebp - 0x1c], ebx
jne 0x403260
push esi
call dword [sym.imp.MSVCR71.dll_exit]
call dword [sym.imp.MSVCR71.dll__cexit]
jmp 0x4032bd
cmp al, 0x22
jne 0x403277
xor ecx, ecx
cmp dword [ebp - 0x20], ebx
sete cl
mov dword [ebp - 0x20], ecx
movzx eax, al
push eax
call dword [sym.imp.MSVCR71.dll__ismbblead]
pop ecx
test eax, eax
je 0x40328a
inc esi
mov dword [ebp - 0x24], esi
inc esi
jmp 0x403202
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.00403307
ret

Function at 0x40c006
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ecx, 0xcbf
mov ebx, edx
xor word [eax], dx
lea edx, [ebx + edx]
xchg dh, dl
lea eax, [eax + 2]
loop 0x40c00e
pop ebx
ret
Function at 0x44bad0
Capabilities:
Log keystrokes via polling

Disassembly:
push esi
mov esi, ecx
push edi
mov edi, edx
mov dword [esi], 0
mov al, byte [0x66304a]
mov cl, byte [0x66304d]
mov edx, dword [0x663030]
and cl, al
mov eax, dword [0x663034]
mov byte [0x66304d], cl
mov ecx, eax
shr ecx, 2
sub edx, ecx
xor ecx, ecx
mov cl, byte [0x663043]
mov dword [0x663030], edx
mov edx, dword [0x663038]
or edx, 7
imul edx, ecx
and eax, edx
mov dword [0x663034], eax
call fcn.0044ba10
mov edx, dword [0x666acc]
push edx
call dword [sym.imp.GDI32.dll_SaveDC]
mov dword [esi], eax
mov eax, dword [0x666acc]
push eax
call dword [sym.imp.ole32.dll_CoRevokeClassObject]
push 0
call sub.comdlg32.dll_FindTextW
push edi
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jge 0x44bb5b
or dword [esi], 0x2000000
mov eax, esi
pop edi
pop esi
ret

Function at 0x4d4514
Capabilities:
Encode data using xor

Disassembly:
fcom dword [ecx]
mov byte [0xed25df48], al
xchg ebp, eax
pop ebx
sbb al, 0xee
sbb dword [edi], ebp
lodsd eax, dword [esi]
invalid

Function at 0x659ddd
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x6633b8
cmp edx, dword [eax]
je 0x659dff
add eax, 8
inc ecx
cmp eax, 0x663448
jl 0x659df0
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x6633b8]
jne 0x659f2d
mov eax, dword [0xa60114]
cmp eax, 1
je 0x659f07
test eax, eax
jne 0x659e30
cmp dword [0x6632e4], 1
je 0x659f07
cmp edx, 0xfc
je 0x659f2d
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x659e67
lea eax, [ebp - 0x1a4]
push 0x65fc60
push eax
call fcn.0065a7c0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0065ac50
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x659eaa
lea eax, [ebp - 0x1a4]
push eax
call fcn.0065ac50
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x65fc5c
push edi
call fcn.0065cb20
add esp, 0x10
lea eax, [ebp - 0xa0]
push 0x65fc40
push eax
call fcn.0065a7c0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0065a7d0
lea eax, [ebp - 0xa0]
push 0x65fc3c
push eax
call fcn.0065a7d0
push dword [esi + 0x6633bc]
lea eax, [ebp - 0xa0]
push eax
call fcn.0065a7d0
push 0x12010
lea eax, [ebp - 0xa0]
push 0x65fc14
push eax
call fcn.0065ca94
add esp, 0x2c
pop edi
jmp 0x659f2d
lea eax, [ebp + 8]
lea esi, [esi + 0x6633bc]
push 0
push eax
push dword [esi]
call fcn.0065ac50
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x405ed0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4135d5
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x41c014]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp + 0xc]
xor edx, edx
push eax
push ecx
push dword [ebp + 8]
xor ecx, ecx
call fcn.004059d0
add esp, 8
lea ecx, [ebp - 0x1c]
lea esi, [eax + 1]
push esi
call fcn.00406180
lea eax, [ebp + 0xc]
mov dword [ebp - 4], 0
mov edi, dword [ebp - 0x1c]
mov edx, esi
push eax
push ecx
push dword [ebp + 8]
mov ecx, edi
call fcn.004059d0
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov dword [ebp - 0x10], 0x41d080
xor esi, esi
mov eax, 1
mov ebx, 0x41d080
xchg dword [ebx], eax
test eax, eax
setne al
test al, al
je 0x405f7f
nop dword [eax + eax]
mov eax, esi
inc esi
and eax, 0x3ff
jne 0x405f6f
call sub.KERNEL32.dll_SwitchToThread
mov eax, 1
xchg dword [ebx], eax
test eax, eax
setne al
test al, al
jne 0x405f60
mov byte [ebp - 4], 1
mov eax, dword fs:[0x2c]
mov ebx, dword [eax]
mov esi, dword [ebx + 4]
test esi, esi
jne 0x405fc1
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push eax
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputws]
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 0xc
push eax
push 0xa
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputwc]
add esp, 8
jmp 0x405fcf
push edi
mov ecx, esi
call dword [0x4151f8]
call esi
add esp, 4
cmp dword [0x41d07c], 0
je 0x406011
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov esi, dword [0x41d084]
add esp, 4
cmp esi, eax
jne 0x405ff6
cmp dword [ebx + 4], 0
je 0x406011
mov edx, dword [ebp + 8]
lea eax, [ebp + 0xc]
push eax
push ecx
mov ecx, esi
call fcn.004059a0
push esi
push 0xa
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputwc]
add esp, 0x10
nop
mov dword [0x41d080], 0
test edi, edi
je 0x406052
mov ecx, dword [ebp - 0x14]
mov eax, edi
sub ecx, edi
and ecx, 0xfffffffe
cmp ecx, 0x1000
jb 0x406048
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x406048
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edi
call fcn.0040fe08
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x423d53
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret

Function at 0x444105
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00443f84
Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

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

Disassembly:
cmp ecx, dword [0x435004]
jne 0x401010
repz ret
jmp fcn.004013e8

Function at 0x4057d5
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.0040256c
and dword [ebp - 4], 0
cmp dword [0x438454], 0
mov ebx, eax
jne 0x405886
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x405937
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x405937
push eax
call fcn.004024fa
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x438454], eax
call esi
push eax
call fcn.004024fa
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x438458], eax
call esi
push eax
call fcn.004024fa
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x43845c], eax
call esi
push eax
call fcn.004024fa
pop ecx
mov dword [0x438464], eax
test eax, eax
je 0x405886
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004024fa
pop ecx
mov dword [0x438460], eax
mov eax, dword [0x438460]
cmp eax, ebx
je 0x4058de
cmp dword [0x438464], ebx
je 0x4058de
push eax
call fcn.00402575
push dword [0x438464]
mov esi, eax
call fcn.00402575
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4058de
test edi, edi
je 0x4058de
call esi
test eax, eax
je 0x4058d5
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4058d5
test byte [ebp - 0xc], 1
jne 0x4058de
or dword [ebp + 0x10], 0x200000
jmp 0x405917
mov eax, dword [0x438458]
cmp eax, ebx
je 0x405917
push eax
call fcn.00402575
pop ecx
test eax, eax
je 0x405917
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x405917
mov eax, dword [0x43845c]
cmp eax, ebx
je 0x405917
push eax
call fcn.00402575
pop ecx
test eax, eax
je 0x405917
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x438454]
call fcn.00402575
pop ecx
test eax, eax
je 0x405937
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x405939
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x42c370
Capabilities:
Accept command line arguments

Disassembly:
sub esp, 0x404
mov eax, dword [0x435004]
xor eax, esp
mov dword [esp + 0x400], eax
cmp dword [0x80b1b4], 0x114e
mov eax, dword [esp + 0x408]
mov dword [0x80aff8], eax
jne 0x42c3b1
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push 0
lea ecx, [esp + 4]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov ecx, dword [esp + 0x400]
xor ecx, esp
call fcn.00401006
add esp, 0x404
ret
Function at 0x42c3e0
Capabilities:
Encode data using xor

Disassembly:
push ecx
push ebp
mov ebp, dword [esp + 0xc]
push edi
cmp ebp, 0x182
jne 0x42c407
push 0
push 0
push 0
push str.bojeduvugetocoyayuweyukelibari
push str.zabusegagelapacedowi
push 0
call dword [sym.imp.KERNEL32.dll_UpdateResourceA]
xor edi, edi
test ebp, ebp
jle 0x42c447
push esi
mov edi, edi
lea esi, [esp + 0xc]
mov dword [esp + 0x14], 5
mov dword [esp + 0xc], 0
call fcn.0042c3d0
mov eax, dword [esp + 0xc]
add eax, 0x46
mov dword [esp + 0x14], eax
nop
sub dword [esp + 0x14], 0x46
mov al, byte [esp + 0x14]
xor byte [edi + ebx], al
inc edi
cmp edi, ebp
jl 0x42c410
pop esi
pop edi
cmp ebp, 0x2d
pop ebp
jne 0x42c462
mov dword [0x80b2e8], 0xa62e7790
mov dword [0x80b2ec], 0xffffffff
pop ecx
ret

Function at 0x42c470
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x804
mov eax, dword [0x435004]
xor eax, esp
mov dword [esp + 0x800], eax
mov eax, dword [0x435c70]
push ebx
mov ebx, dword [0x80affc]
push esi
mov esi, dword [0x80b1b4]
push eax
call fcn.0042c370
add esp, 4
cmp dword [0x80b1b4], 0x2f
jne 0x42c4af
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
push esi
call fcn.0042c3e0
add esp, 4
cmp dword [0x80b1b4], 0x568
pop esi
pop ebx
jne 0x42c4d5
push 0
lea ecx, [esp + 4]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetVolumePathNameW]
mov ecx, dword [esp + 0x800]
xor ecx, esp
call fcn.00401006
add esp, 0x804
ret
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
nop
nop
pop eax
nop
nop
add eax, 0x40a063
nop
sub eax, 0x40a009
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x433030
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43301e
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
nop
nop
pop eax
nop
nop
nop
add eax, 0x40a063
sub eax, 0x40a009
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x433030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
jne 0x43301e
nop
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219

Function at 0x100010e3
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffffc
push dword [ebp + 8]
push 0
push 0
call sub.kernel32.dll_CreateMutexA
mov dword [ebp - 4], eax
or eax, eax
je 0x10001115
call sub.kernel32.dll_GetLastError
cmp eax, 0xb7
jne 0x10001115
push dword [ebp - 4]
call fcn.100010c6
push 0
pop dword [ebp - 4]
mov eax, dword [ebp - 4]
leave
ret 4

Function at 0x10001134
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffac
push 0x44
lea eax, [ebp - 0x44]
push eax
call fcn.1000111c
push 0x10
lea eax, [ebp - 0x54]
push eax
call fcn.1000111c
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x44]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push dword [ebp + 8]
push 0
call sub.kernel32.dll_CreateProcessA
lea edi, [ebp - 0x54]
push dword [edi]
push dword [edi + 4]
call sub.kernel32.dll_CloseHandle
call sub.kernel32.dll_CloseHandle
leave
ret 4
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x408ecc
nop
mov ecx, 0x2f26350a
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x430024
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x42e1d0
nop
mov ecx, 0x6f48198f
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x430084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x401037
Capabilities:
Delete file
Extract resource via kernel32 functions
Get common file path

Disassembly:
call 0x401037
push 0
call sub.kernel32.dll_ExitProcess
push ebp
mov ebp, esp
add esp, 0xfffffbf4
push esi
push edi
push ebx
push 0
call sub.kernel32.dll_GetModuleHandleA
mov dword [0x403030], eax
mov dword [ebp - 8], 0
push 0xa
push section..data
push 0
call sub.kernel32.dll_FindResourceA
or eax, eax
je 0x401089
mov dword [ebp - 4], eax
push dword [ebp - 4]
push 0
call sub.kernel32.dll_SizeofResource
mov dword [ebp - 0xc], eax
push dword [ebp - 4]
push 0
call sub.kernel32.dll_LoadResource
or eax, eax
je 0x401089
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4010c1
push 4
push 0x1000
push dword [ebp - 0xc]
push 0
call sub.kernel32.dll_VirtualAlloc
mov edi, eax
push dword [ebp - 0xc]
push dword [ebp - 8]
push edi
call sub.kernel32.dll_RtlMoveMemory
mov dword [ebp - 8], edi
push 0xdeadbeef
push dword [ebp - 0xc]
push dword [ebp - 8]
call section..text
cmp dword [ebp - 8], 0
je 0x4010fb
lea eax, [ebp - 0x40c]
push eax
push 0x400
call sub.kernel32.dll_GetTempPathA
push str.dup2patcher.dll
lea eax, [ebp - 0x40c]
push eax
call sub.kernel32.dll_lstrcatA
push dword [ebp - 0xc]
push dword [ebp - 8]
lea eax, [ebp - 0x40c]
push eax
call fcn.00401184
lea eax, [ebp - 0x40c]
push eax
call sub.kernel32.dll_LoadLibraryA
or eax, eax
je 0x401130
mov ebx, eax
push str.load_patcher
push ebx
call sub.kernel32.dll_GetProcAddress
or eax, eax
je 0x40111e
call eax
push ebx
call sub.kernel32.dll_FreeLibrary
lea eax, [ebp - 0x40c]
push eax
call sub.kernel32.dll_DeleteFileA
pop ebx
pop edi
pop esi
leave
ret

Function at 0x401184
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push dword [ebp + 8]
call sub.kernel32.dll_CreateFileA
cmp eax, 0xffffffff
jne 0x4011af
xor eax, eax
leave
ret 0xc
mov dword [ebp - 4], eax
push 0
lea eax, [ebp - 8]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp - 4]
call sub.kernel32.dll_WriteFile
push dword [ebp - 4]
call sub.kernel32.dll_FlushFileBuffers
push dword [ebp - 4]
call sub.kernel32.dll_CloseHandle
mov eax, dword [ebp - 8]
leave
ret 0xc

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

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x408ecc
nop
mov ecx, 0x59ce1779
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
je 0x43004e
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
jne 0x430024
nop
nop
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x42e1d0
nop
mov ecx, 0x35b70e03
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x430084
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219
Function at 0x417d34
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
cld
mov dl, 0x80
movsb byte es:[edi], byte [esi]
call fcn.00417db3
jae 0x417d40
xor ecx, ecx
call fcn.00417db3
jae 0x417d6a
xor eax, eax
call fcn.00417db3
jae 0x417d7b
mov al, 0x10
call fcn.00417db3
adc al, al
jae 0x417d5c
jne 0x417da8
stosb byte es:[edi], al
jmp 0x417d41
call fcn.00417dbf
dec ecx
loop 0x417d87
mov eax, ebp
call fcn.00417dbd
jmp 0x417da9
lodsb al, byte [esi]
shr eax, 1
je 0x417dcf
adc ecx, 2
mov ebp, eax
jmp 0x417da9
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
mov ebp, eax
call fcn.00417dbd
cmp eax, 0x7d00
jae 0x417da7
cmp eax, 0x500
jae 0x417da8
cmp eax, 0x7f
ja 0x417da9
inc ecx
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x417d41
pop ebp
ret 8

Function at 0x438c89
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x438a14
mov ecx, ecx
call fcn.00438ccc
add edi, edi
mov ecx, ecx
mov ecx, 0x117dffe0
xor dword [edx], eax
add ecx, ecx
add edi, edi
sub esp, 4
mov dword [esp], ecx
pop ecx
inc edx
push ecx
pop edi
inc edi
sub ecx, 0x76586efb
cmp edx, esi
jne fcn.00438c89
sub edi, ecx
or ecx, ecx
add edi, edi
ret
Function at 0x455998
Capabilities:
Parse pe header

Disassembly:
mov eax, dword [ebp - 8]
leave
ret 4
push ebp
mov ebp, esp
sub esp, 0x84
pushal
call 0x4558dd
pop edx
sub edx, 0x122d18c9
lea eax, [ebp - 0x59f8]
mov ebx, dword [ebp + 0x18]
add byte [edx + 1], ch
add dl, dl
mov esi, 0x6e4d77e3
ja 0x455943
outsb dx, byte [esi]
xchg ebp, eax
inc ebp
add byte [eax], bl
inc ecx
cwde
cli
pushal
add byte [ebp - 4], bh
xor ah, 0xfb
std
jg 0x4558f4
mov dword [ebp - 4], 0
lea ebp, [esi + 0x12ad15e6]
mov dl, 0xea
ljmp 0x5dfb:0x7dff0045
inc ebp
add bh, bh
jge 0x455917
pop ebp
add byte [eax + eax*2], dl
add eax, 0x37abb800
push esp
js 0x4558fb
ror byte [edx + 0x77d23f17], 1
jne 0x4558c7
js 0x455977
add byte [edi], al
add cl, dl
ja 0x45597a
xor al, 0x63
jmp 0xd43552b7
xlatb
popal
adc al, 0x8e
in al, 0x77
mov ecx, 0x7000
lea esi, [eax]
loope 0x4559ca
adc bh, dh
cmova esi, esp
sti
std
jg 0x45597d
and dword [ecx + 0x48], ebp
mov edx, 0x4054000
add byte [eax], al
add byte [eax], al
cdq
xchg esi, eax
imul eax, dword [eax], 0xa6a91a9e
pop edi
add bh, bh
xor eax, 0
inc esp
add byte [esp + eax*2 - 0x26], ah
inc esi
ret 0
fiadd dword [esi - 0x3e]
add byte [eax], al
call 0x455984
pop eax
call 0x455998
aam 0xb5
jnp 0x455916
rcr dword [ebx], 0xa1
clc
add eax, 0xcf861bb0
mov bl, 0xae
pop ebx
adc ebx, 0x6ac1b6e2
mov bx, si
sub eax, edx
sbb bh, 0x1e
and eax, 0xfffff000
movzx ebx, di
mov ecx, edx
xor edi, edi
cmp word [eax], 0x5a4d
jne 0x4559ca
movzx edx, word [eax + 0x3c]
add edx, eax
cmp dword [edx], 0x4550
je 0x4559d2
sub eax, 0x1000
inc edi
jmp 0x4559b5
mov dword [ebp + 0x122d04a5], eax
pop dword fs:[0]
add esp, 4
lea edx, [ebp + 0x122d1ab1]
push edx
push dword fs:[0]
mov dword fs:[0], esp
mov edx, eax
add eax, ecx
sub eax, 0x1000
mov esi, 1
test esi, esi
je 0x455a35
mov esi, 0x5305c
test esi, esi
jne 0x455a1d
mov esi, dword [edx + 0x3c]
add esi, edx
mov esi, dword [esi + 0x80]
add esi, edx
mov esi, dword [esi + 0x10]
add esi, edx
mov ecx, esi
add ecx, 8
mov dword [ebp + 0x122d0449], ecx
mov esi, dword [esi]
mov ecx, esi
jmp 0x455a41
or byte [ecx + 0x2d04498d], cl
adc cl, byte [ebx - 0x140e76ca]
or al, 0x8d
jo 0x455a44
lea esi, [eax + 0xc]
mov dword [ebp + 0x122d0449], esi
mov esi, dword [eax + 4]
and esi, 0xffff0000
cmp esi, 0x80000000
jbe 0x455a80
add bh, bh
inc dword [ecx + 0xfe]
xor byte [esi + 0x31], 0xbe
add dword [eax], eax
add byte [eax], al
mov esi, 1
test esi, esi
je 0x455a7d
mov esi, ecx
cmp esi, 0xbff00000
jb 0x455a72
cmp esi, 0xbfff0000
ja 0x455a72
and esi, 0xffff0000
jmp 0x455a7b
mov esi, dword [esi + 1]
and esi, 0x87090000
int 0xff
mov ebp, esp
add dword [edi], ebx
adc edx, 0x47
add byte [bp - 0x7f], ah
dec ebp
pop edx
pop edi
add byte [ebx + 0x6747d2], al
cmp word [esi], 0x5a4d
daa
mov ebx, 0x60
add dword [eax], eax
inc eax
jmp 0x455a28