joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405d6b
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x422a0c], 0
push esi
jne 0x405da2
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 0x405d7c
mov dword [ecx*4 + 0x422a08], eax
inc ecx
cmp ecx, 0x100
jl 0x405d77
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405dd3
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 + 0x422a08]
xor eax, esi
inc ecx
dec edx
jne 0x405db5
pop edi
not eax
pop esi
ret 0xc

Function at 0x401000
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x53dd9c
push eax
push dword fs:[0]
push ebx
add byte [eax + 0x64], dl
push dword [0]
mov dword fs:[0], esp
xor eax, eax
mov dword [eax], ecx
push eax
inc ebp
inc ebx
outsd dx, dword [esi]
insd dword es:[edi], dx
jo 0x401080
arpl word [edx + esi], si
adc ebx, dword [edi - 0x54]
xchg ebx, eax
neg dl
push cs
dec ecx
mov eax, 0x7fb97088
add ah, ah
aam 0xe7
mov dword [0x98c0ec09], eax
mov eax, dword [0xf6a8b15c]
jecxz 0x401003
xor dword [ecx], ecx
iretd
ljmp 0x2bdb:0xc41a7522
jne 0x40109c
invalid
mov ch, byte [edx + 0x477bf67f]
jle 0x4010d4
salc
rcr cl, 1
cwde
add al, 0x60
sub byte [ecx + 0x485b75a6], bh
adc byte [eax], cl
xor eax, 0x4156615a
clc
or edi, dword [esi + 0x54]
xchg byte [ebx + 0x456a3141], bl
adc dword [edx + 0x30], ecx
jno 0x401110
sbb ebx, edi
cmp al, 0x6e
jae 0x40107e
out dx, al
aad 0x69
sub dword [edi + 0x33], ebx
retf
push ebp
mov cs, edx
mov bl, byte [edx + 0x3812e7a7]
adc eax, 0x31bdc80d
movsd dword es:[edi], dword [esi]
fild qword [eax]
add ch, al
cmpsd dword [esi], dword es:[edi]
dec eax
ret
Function at 0x65b01b60
Capabilities:
Check for peb beingdebugged flag
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, ecx
push ebx
mov ebx, eax
sub esp, 0x4c
mov dword [ecx], 0
test byte [0x65b04028], 8
jne 0x65b01ca0
cmp word [ebx], 0
je 0x65b01cec
mov eax, ebx
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x65b01b90
sub eax, ebx
sar eax, 1
test edx, edx
je 0x65b01bbf
cmp word [edx], 0
je 0x65b01bbf
mov ecx, edx
lea esi, [esi]
add ecx, 2
cmp word [ecx], 0
jne 0x65b01bb0
sub ecx, edx
sar ecx, 1
add eax, ecx
lea eax, [eax + eax + 2]
mov dword [ebp - 0x2c], edx
mov ecx, dword fs:[0x18]
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov eax, dword [ecx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
mov edx, dword [ebp - 0x2c]
sub esp, 0xc
test eax, eax
mov edi, eax
je 0x65b01c40
xor eax, eax
lea esi, [esi]
lea esi, [esi]
movzx ecx, word [ebx + eax]
mov word [edi + eax], cx
add eax, 2
test cx, cx
jne 0x65b01c00
test edx, edx
je 0x65b01c40
cmp word [edi], 0
mov ecx, edi
je 0x65b01c29
lea esi, [esi]
add ecx, 2
cmp word [ecx], 0
jne 0x65b01c20
xor eax, eax
lea esi, [esi]
nop
movzx ebx, word [edx + eax]
mov word [ecx + eax], bx
add eax, 2
test bx, bx
jne 0x65b01c30
lea eax, [ebp - 0x28]
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 1
mov dword [esp + 4], esi
mov dword [esp], edi
mov dword [esp + 8], eax
call sub.winspool.drv_OpenPrinterW
sub esp, 0xc
mov ebx, eax
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov eax, ebx
sub esp, 0xc
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, edx
mov dword [ebp - 0x2c], edx
call fcn.65b010d0
mov edi, eax
mov eax, ebx
call fcn.65b010d0
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.__s__s__n
mov dword [esp + 8], str.open_monitor_by_name
mov dword [esp + 4], 0x65b04028
mov dword [esp], 3
call fcn.65b01360
cmp word [ebx], 0
mov edx, dword [ebp - 0x2c]
jne 0x65b01b8a
xor eax, eax
jmp 0x65b01b9d

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43100c
pop eax
nop
nop
nop
nop
nop
nop
add eax, 0x403e6a
nop
sub eax, 0x403e10
nop
mov ebx, dword [eax]
nop
nop
nop
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
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x431030
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43101e
nop
nop
nop
nop
popal
nop
nop
jmp fcn.00401219
Function at 0x4029b0
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x4c]
movsx ecx, byte [eax]
cmp ecx, 0x22
jne 0x402a09
mov edx, dword [ebp - 0x4c]
add edx, 1
mov dword [ebp - 0x4c], edx
mov eax, dword [ebp - 0x4c]
movsx ecx, byte [eax]
test ecx, ecx
je 0x4029f3
mov edx, dword [ebp - 0x4c]
movsx eax, byte [edx]
cmp eax, 0x22
je 0x4029f3
mov ecx, dword [ebp - 0x4c]
add ecx, 1
mov dword [ebp - 0x4c], ecx
jmp 0x4029d3
mov edx, dword [ebp - 0x4c]
movsx eax, byte [edx]
cmp eax, 0x22
jne 0x402a07
mov ecx, dword [ebp - 0x4c]
add ecx, 1
mov dword [ebp - 0x4c], ecx
jmp 0x402a1f
mov edx, dword [ebp - 0x4c]
movsx eax, byte [edx]
cmp eax, 0x20
jle 0x402a1f
mov ecx, dword [ebp - 0x4c]
add ecx, 1
mov dword [ebp - 0x4c], ecx
jmp 0x402a09
mov edx, dword [ebp - 0x4c]
movsx eax, byte [edx]
test eax, eax
je 0x402a3f
mov ecx, dword [ebp - 0x4c]
movsx edx, byte [ecx]
cmp edx, 0x20
jg 0x402a3f
mov eax, dword [ebp - 0x4c]
add eax, 1
mov dword [ebp - 0x4c], eax
jmp 0x402a1f
mov dword [ebp - 0x1c], 0
lea ecx, [ebp - 0x48]
push ecx
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.00402ae0
push 0x404004
push section..data
call fcn.00402ab0
add esp, 8
mov edx, dword [ebp - 0x1c]
and edx, 1
je 0x402a78
movzx eax, word [ebp - 0x18]
mov dword [ebp - 0x54], eax
jmp 0x402a7f
mov dword [ebp - 0x54], 0xa
mov ecx, dword [ebp - 0x54]
push ecx
mov edx, dword [ebp - 0x4c]
push edx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov dword [ebp - 0x50], eax
call fcn.00402b50
mov eax, dword [ebp - 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x407e15
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42e180]
jne 0x407e1f
repz ret
jmp fcn.0040bc0c

Function at 0x417432
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
pushal
call 0x417441
pop dword [ebp - 0xc]
mov eax, 0xdbcca3ef
sub eax, 0xdb8b2fae
sub dword [ebp - 0xc], eax
mov dword [ebp - 0x1c], 0xa25922bf
sub dword [ebp - 0x1c], 0x5406dd74
mov dword [ebp - 0x18], 0xc8424ab
add dword [ebp - 0x18], 0x25af279a
mov dword [ebp - 0x14], 0x59ccad63
sub dword [ebp - 0x14], 0xd806935
mov dword [ebp - 0x10], 0xecf2b874
sub dword [ebp - 0x10], 0xecf2b874
lea eax, [ebp - 0x1c]
push eax
mov eax, 0x5fdc4c9d
add eax, 0xa065e3d7
add eax, dword [ebp - 0xc]
call dword [eax]
mov dword [ebp - 0x1c], 0xaa97579d
sub dword [ebp - 0x1c], 0x3624ee47
mov dword [ebp - 0x18], 0x5cecfc2e
sub dword [ebp - 0x18], 0x1b809ab9
mov dword [ebp - 0x14], 0x4306143a
add dword [ebp - 0x14], 0x20695832
mov dword [ebp - 0x10], 0x436e323a
sub dword [ebp - 0x10], 0x436e323a
lea ebx, [ebp - 0x1c]
push ebx
push eax
mov eax, 0xdc36055e
add eax, 0x240c2bc6
add eax, dword [ebp - 0xc]
call dword [eax]
push 0x40
push 0x1000
push 0x3eafe
push 0
call eax
mov ecx, 0x4bea
mov edi, eax
mov ebx, 0x434400
add ebx, dword [ebp - 0xc]
mov esi, 0x2659e76f
add esi, 0x847a7e5c
sub dword [ebp - 4], ecx
mov edx, dword [ebx]
xor edx, esi
add dword [ebp - 4], esi
mov dword [edi], edx
add dword [ebp - 4], ebx
add edi, 0x18ca9287
sub edi, 0x18ca9283
add ebx, 4
loop 0x417557
add eax, 0x1227b
mov ebx, eax
add eax, 0x285927ff
sub eax, 0x285927fa
mov ecx, 0x400000
add ecx, dword [ebp - 0xc]
call ebx
leave
ret
Function at 0x403e76
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x40b760
cmp edx, dword [eax]
je 0x403e98
add eax, 8
inc ecx
cmp eax, 0x40b7f0
jl 0x403e89
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x40b760]
jne 0x403fc6
mov eax, dword [0x40e6d8]
cmp eax, 1
je 0x403fa0
test eax, eax
jne 0x403ec9
cmp dword [0x40b694], 1
je 0x403fa0
cmp edx, 0xfc
je 0x403fc6
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x403f00
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00406370
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00406460
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x403f43
lea eax, [ebp - 0x1a4]
push eax
call fcn.00406460
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4098b8
push edi
call fcn.00407c30
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00406370
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00406380
lea eax, [ebp - 0xa0]
push 0x409898
push eax
call fcn.00406380
push dword [esi + 0x40b764]
lea eax, [ebp + 8]
lea esi, [esi + 0x40b764]
push 0
push eax
push dword [esi]
call fcn.00406460
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]
Function at 0x402c40
Capabilities:
Hide graphical window

Disassembly:
push ebp
lea ebp, [esp - 4]
enter 4, 0
push ebx
push ecx
push edx
mov dword [ebp - 4], esp
mov dword [0x41174c], 0x3e8
push 0
call sub.kernel32.dll_SetLastError
call sub.comctl32.dll_InitCommonControls
mov byte [0x40eb93], 0
call fcn.00402760
test eax, eax
je 0x402c7f
push 0x41038c
call fcn.00403420
call sub.kernel32.dll_GetLastError
test eax, eax
je 0x402c8f
push 0
call sub.kernel32.dll_SetLastError
call fcn.0040ad50
mov dword [0x413eaf], 0x40aa00
push 0x40aa00
call fcn.0040a810
mov dword [0x411744], eax
call sub.kernel32.dll_GetLastError
test eax, eax
je 0x402cbd
push 0
call sub.kernel32.dll_SetLastError
call fcn.00402dc0
call sub.kernel32.dll_GetLastError
test eax, eax
je 0x402cd2
push 0
call sub.kernel32.dll_SetLastError
call fcn.00402d70
test al, al
je 0x402cdd
jmp 0x402cd2
mov al, byte [0x40eb94]
test al, al
je 0x402cf3
push 0
push dword [0x411744]
call sub.user32.dll_ShowWindow
push 0
push 0
push 0
push 0x411728
call sub.user32.dll_GetMessageA
test al, al
je 0x402d40
mov al, byte [0x40eb93]
test al, al
jne 0x402d40
push 0x411728
push dword [0x411748]
push dword [0x411744]
call sub.user32.dll_TranslateAcceleratorA
test eax, eax
je 0x402d34
push 0x411728
call sub.user32.dll_TranslateMessage
push 0x411728
call sub.user32.dll_DispatchMessageA
jmp 0x402cf3
cmp dword [0x40eb8f], 0
jle 0x402d5a
push dword [0x40eb8f]
push dword [0x411744]
call sub.user32.dll_KillTimer
mov eax, 0
mov dword [0x40eb8f], eax
pop edx
pop ecx
pop ebx
leave
pop ebp
ret
Function at 0x402f73
Capabilities:
Delete directory
Get common file path
Get file attributes
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84c
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, dword [edi]
mov dword [ebp - 0x10], eax
mov eax, dword [edi + 4]
xor esi, esi
cmp dword [0x59d120], 0x594
mov dword [ebp - 0xc], eax
jne 0x402fbb
push 0x402d38
push 0x402d48
call dword [sym.imp.KERNEL32.dll_SetVolumeMountPointA]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_EndUpdateResourceA]
mov eax, dword [0x4294c8]
push ebx
mov ebx, dword [0x4294cc]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 8]
mov dword [ebp - 8], esi
mov dword [ebp - 0x30], 0x9e3779b9
call fcn.00402f6c
mov eax, dword [0x4294d0]
add dword [ebp - 8], 0x23f
mov dword [ebp - 0x2c], eax
mov eax, dword [0x4294d4]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], 0x20
mov dword [ebp - 0x14], 2
add dword [ebp - 0x14], 3
mov eax, dword [ebp - 0x10]
mov ecx, eax
shl ecx, 4
cmp dword [0x59d120], 0xc
mov dword [ebp - 4], ecx
jne 0x403065
push esi
lea eax, [ebp - 0x44c]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
xor eax, eax
mov word [ebp - 0x1c], ax
lea edi, [ebp - 0x1a]
stosw word es:[edi], ax
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 0x1c]
lea eax, [ebp - 0x84c]
push esi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadConsoleOutputCharacterA]
lea eax, [ebp - 0x38]
push eax
push esi
lea eax, [ebp - 0x4c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadConsoleInputW]
mov eax, dword [ebp - 0x10]
mov edi, dword [ebp + 8]
mov ecx, dword [ebp - 0x2c]
add dword [ebp - 4], ecx
mov ecx, dword [0x59d120]
cmp ecx, 0xfa9
jne 0x403083
mov dword [0x59c6bc], 0xedeb2e40
cmp ecx, 0x3eb
jne 0x403091
mov dword [0x59c070], esi
mov ecx, dword [ebp - 8]
add ecx, eax
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp - 0x14]
shr eax, cl
mov dword [0x59c6b8], 0xf4ea3dee
add eax, dword [ebp - 0x24]
mov ecx, eax
mov eax, dword [ebp - 0x18]
xor dword [ebp - 4], eax
xor ecx, dword [ebp - 4]
cmp dword [0x59d120], 0x213
mov dword [ebp - 0x18], ecx
jne 0x4030cc
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov eax, dword [ebp - 0x18]
add dword [ebp - 0xc], 0x64
sub dword [ebp - 0xc], eax
sub dword [ebp - 0xc], 0x64
mov eax, dword [ebp - 0xc]
shl eax, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x28]
add dword [ebp - 4], eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
lea edx, [ecx + eax]
mov ecx, dword [ebp - 0x14]
shr eax, cl
add eax, ebx
xor eax, edx
xor dword [ebp - 4], eax
mov eax, dword [ebp - 4]
sub dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x30]
sub dword [ebp - 8], eax
dec dword [ebp - 0x20]
jne 0x402ffa
cmp dword [0x59d120], 0xa6d
mov eax, dword [ebp - 0x10]
mov dword [edi], eax
pop ebx
jne 0x40312d
push esi
push esi
call dword [sym.imp.KERNEL32.dll_BeginUpdateResourceA]
mov eax, dword [ebp - 0xc]
mov dword [edi + 4], eax
pop edi
pop esi
leave
ret 4
Function at 0x403207
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Execute shellcode via windows callback function
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.0040c750
push esi
xor esi, esi
cmp dword [0x59d120], 0x5b1
push edi
jne 0x403293
push esi
lea eax, [ebp - 0x80c]
push eax
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_FoldStringW]
push esi
push esi
call dword [sym.imp.USER32.dll_ChangeDisplaySettingsA]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_TerminateJobObject]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_EnumSystemCodePagesW]
push esi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateHardLinkW]
push 0x402d88
push esi
call fcn.00403bad
push esi
push esi
push esi
push esi
call fcn.00403e64
push esi
call fcn.00403995
push esi
push esi
call fcn.00403f08
push esi
push esi
call fcn.004039a0
add esp, 0x2c
call fcn.00403505
push esi
call fcn.00404516
add dword [0x59d120], 0x1134b
push dword [0x59d120]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
lea ecx, [ebp - 8]
push ecx
push 0x40
push dword [0x59d120]
mov dword [0x59c074], eax
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [0x59d120]
xor ecx, ecx
cmp eax, esi
jbe 0x4032e8
mov edx, dword [0x59d124]
mov dl, byte [edx + ecx + 0x1134b]
mov edi, dword [0x59c074]
mov byte [edi + ecx], dl
inc ecx
cmp ecx, eax
jb 0x4032cd
xor edi, edi
lea ecx, [eax + edi]
cmp ecx, 0xe
jne 0x40331d
lea eax, [ebp - 0xc]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetCompressedFileSizeA]
call dword [sym.imp.KERNEL32.dll_GetACP]
push esi
push esi
lea eax, [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_OpenSemaphoreW]
mov eax, dword [0x59d120]
inc edi
cmp edi, 0x39621
jl 0x4032ea
mov edi, dword [sym.imp.KERNEL32.dll_SetLastError]
push ebx
xor ebx, ebx
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetCommMask]
push esi
call edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp ebx, 0x206d47
jg 0x403351
inc ebx
cmp ebx, 0x4f6a4
jl 0x40332f
mov ebx, 0x4e320c
push esi
push esi
call dword [sym.imp.USER32.dll_LoadMenuW]
push esi
push esi
push esi
call dword [sym.imp.USER32.dll_CharToOemBuffW]
call dword [sym.imp.USER32.dll_GetMessagePos]
dec ebx
jne 0x403356
call fcn.00403139
push esi
call edi
cmp ebx, 0x26
jne 0x403382
call fcn.004031ed
inc ebx
cmp ebx, 0x6753f
jl 0x403375
push 0x7b
pop edi
pop ebx
cmp dword [0x59d120], 0x86
jne 0x4033d0
push esi
lea eax, [ebp - 0x40c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextVolumeA]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_BeginUpdateResourceW]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_AddConsoleAliasW]
push esi
call dword [sym.imp.KERNEL32.dll_AddAtomW]
push esi
lea eax, [ebp - 0x100c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryW]
dec edi
jne 0x40338f
call fcn.00402ef5
pop edi
pop esi
leave
ret
Function at 0x4033dc
Capabilities:
Read pipe
Write pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
push ebx
push esi
xor esi, esi
cmp dword [0x59d120], 0x400
push edi
jne 0x403449
push esi
call dword [sym.imp.KERNEL32.dll__lclose]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll__hwrite]
push esi
push esi
call fcn.00403740
push esi
push esi
call fcn.00403740
push esi
call fcn.0040390a
push esi
push esi
push esi
call fcn.004041e1
add esp, 0x18
mov dword [esp + 4], esi
mov dword [esp], esi
call fcn.00402ed0
fstp st(0)
push esi
call fcn.00404266
push esi
call fcn.00403ff8
push esi
push esi
call fcn.00403634
add esp, 0x10
mov eax, dword [0x429b54]
mov dword [0x59d120], eax
mov eax, dword [0x429b2c]
mov dword [0x59d124], eax
call fcn.00403207
mov dword [ebp - 4], esi
mov ebx, 0x2b259d
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor eax, eax
mov dword [ebp - 0x20], esi
lea edi, [ebp - 0x1c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 8]
push eax
push esi
lea eax, [ebp - 0x420]
push eax
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_TransactNamedPipe]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
cmp dword [ebp - 4], ebx
jle 0x4034ab
cmp dword [ebp - 8], 0x785074d5
jne 0x4034b7
inc dword [ebp - 4]
cmp dword [ebp - 4], 0x1c1b
jl 0x40346a
xor edi, edi
push esi
lea eax, [ebp - 0x420]
push eax
push esi
push 0x402d98
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetNumberFormatA]
push 0x402de4
call dword [sym.imp.KERNEL32.dll_GlobalFindAtomA]
cmp edi, ebx
jle 0x4034e7
cmp dword [ebp - 8], 0x785074d5
jne 0x4034f0
inc edi
cmp edi, 0x11915
jl 0x4034b9
mov eax, dword [0x59c074]
mov dword [0x59c6b4], eax
call eax
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret 0x10

Function at 0x404bd0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4280e8]
jne 0x404bda
repz ret
jmp fcn.0040a772
Function at 0x40a495
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.00407152
and dword [ebp - 4], 0
cmp dword [0x42a420], 0
mov ebx, eax
jne 0x40a546
push 0x401bb4
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40a5f7
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x401ba8
push edi
call esi
test eax, eax
je 0x40a5f7
push eax
call fcn.004070e0
mov dword [esp], 0x401b98
push edi
mov dword [0x42a420], eax
call esi
push eax
call fcn.004070e0
mov dword [esp], 0x401b84
push edi
mov dword [0x42a424], eax
call esi
push eax
call fcn.004070e0
mov dword [esp], 0x401b68
push edi
mov dword [0x42a428], eax
call esi
push eax
call fcn.004070e0
pop ecx
mov dword [0x42a430], eax
test eax, eax
je 0x40a546
push 0x401b50
push edi
call esi
push eax
call fcn.004070e0
pop ecx
mov dword [0x42a42c], eax
mov eax, dword [0x42a42c]
cmp eax, ebx
je 0x40a59e
cmp dword [0x42a430], ebx
je 0x40a59e
push eax
call fcn.0040715b
push dword [0x42a430]
mov esi, eax
call fcn.0040715b
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40a59e
test edi, edi
je 0x40a59e
call esi
test eax, eax
je 0x40a595
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40a595
test byte [ebp - 0xc], 1
jne 0x40a59e
or dword [ebp + 0x10], 0x200000
jmp 0x40a5d7
mov eax, dword [0x42a424]
cmp eax, ebx
je 0x40a5d7
push eax
call fcn.0040715b
pop ecx
test eax, eax
je 0x40a5d7
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40a5d7
mov eax, dword [0x42a428]
cmp eax, ebx
je 0x40a5d7
push eax
call fcn.0040715b
pop ecx
test eax, eax
je 0x40a5d7
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x42a420]
call fcn.0040715b
pop ecx
test eax, eax
je 0x40a5f7
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40a5f9
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x407010
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40704e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x407046
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x407050
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x407036
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407120
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x407151
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407151
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x407151
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

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

Disassembly:
pushal
nop
mov eax, section..rsrc
push 4
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x431072
nop
nop
nop
nop
mov ebx, 0x40915c
nop
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x1bf017a8
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
loop 0x431060
nop
nop
nop
nop
nop
mov eax, section..data
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x4310d2
nop
nop
mov ebx, 0x42f3f8
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x4f820b4f
nop
nop
nop
nop
xor dword [eax], esi
nop
add eax, edi
nop
nop
nop
nop
nop
nop
nop
loop 0x4310c0
nop
nop
nop
nop
nop
popal
jmp 0x401219

Function at 0x40b15a
Capabilities:
Parse pe header

Disassembly:
mov eax, dword [pe_dos_header]
mov eax, dword ds:[eax + 0x34]
mov ebp, dword ds:[eax + 0xb8]
jmp 0x40b168
push eax
push ecx
push esi
push ebp
mov eax, dword fs:[0x30]
test eax, eax
js 0x40b14a
mov eax, dword ds:[eax + 0xc]
mov esi, dword ds:[eax + 0x1c]
lodsd eax, dword [esi]
mov ebp, dword ds:[eax + 8]
mov dword [ebx + 0x60], ebp
mov eax, ebp
cmp word [eax], 0x5a4d
jne 0x40b145
add eax, 0x3c
mov ecx, dword [eax]
add ecx, dword [ebx + 0x60]
cmp word [ecx], 0x4550
jne 0x40b145
add ecx, 0x78
mov esi, dword [ecx]
add esi, dword [ebx + 0x60]
add esi, 0x18
lodsd eax, dword [esi]
mov dword [ebx + 0x64], eax
lodsd eax, dword [esi]
add eax, dword [ebx + 0x60]
mov dword [ebx + 0x68], eax
lodsd eax, dword [esi]
add eax, dword [ebx + 0x60]
mov dword [ebx + 0x6c], eax
lodsd eax, dword [esi]
add eax, dword [ebx + 0x60]
mov dword [ebx + 0x70], eax
pop ebp
pop esi
pop ecx
pop eax
ret