joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41d3a0
Capabilities:
Get common file path
Manipulate console buffer

Disassembly:
mov eax, 0x22ac
call fcn.004189e0
cmp dword [0x963b8c], 0x37
jne 0x41d539
push 0
lea eax, [esp + 0x16ac]
push eax
push 0
push 0x4041e0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetNumberFormatA]
lea ecx, [esp + 0x70]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_VirtualUnlock]
push 0
lea edx, [esp + 0x6ac]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_FindFirstVolumeMountPointW]
lea eax, [esp + 4]
push eax
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WaitForDebugEvent]
push 0x404220
push 0
call dword [sym.imp.KERNEL32.dll_CreateJobObjectW]
xor eax, eax
push eax
lea edx, [esp + 0xeac]
push edx
push 0x404234
mov dword [esp + 0x16], eax
mov dword [esp + 0x1a], eax
mov dword [esp + 0x1e], eax
mov word [esp + 0x22], ax
xor ecx, ecx
lea eax, [esp + 0x14]
push eax
push ecx
push ecx
mov word [esp + 0x20], cx
call dword [sym.imp.KERNEL32.dll_GetDateFormatW]
mov ecx, dword [esp + 4]
push 0
push ecx
push 0
call dword [sym.imp.ADVAPI32.dll_DuplicateToken]
push 0
lea edx, [esp + 0x2ac]
push edx
push 0x404250
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
push 0
lea eax, [esp + 0x1aac]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea ecx, [esp + 0x188]
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCPInfoExA]
lea edx, [esp + 0x20]
push edx
push 0
lea eax, [esp + 0x64]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_PeekConsoleInputW]
lea ecx, [esp + 0x18]
push ecx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
push 0
push 0x404264
push 0
call dword [sym.imp.KERNEL32.dll__hwrite]
push 0x40429c
push 0
push 0
call dword [sym.imp.KERNEL32.dll_OpenJobObjectA]
push 0x4042c0
call dword [sym.imp.KERNEL32.dll_GlobalAddAtomA]
lea edx, [esp + 0x24]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetCompressedFileSizeW]
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetProfileSectionW]
push 0x30
lea ecx, [esp + 0x30]
push 0
push ecx
mov dword [esp + 0x34], 0
call fcn.0040a9c0
add esp, 0xc
lea edx, [esp + 0x28]
push edx
push 0
push 0x4042d0
call dword [sym.imp.KERNEL32.dll_CommConfigDialogW]
mov eax, dword [0x9662f0]
mov dword [esp], eax
mov eax, 0x5d1
add dword [esp], eax
mov ecx, dword [esp]
mov dl, byte [ecx + esi]
mov eax, dword [0x962384]
mov byte [eax + esi], dl
add esp, 0x22ac
ret
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
pop eax
nop
nop
nop
nop
nop
add eax, 0x403d6f
nop
sub eax, 0x403d15
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
nop
add ebx, 4
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
popal
nop
nop
jmp fcn.00401219
Function at 0x401000
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 4]
test ecx, ecx
je 0x401023
mov edx, dword [esp + 8]
test edx, edx
je 0x401023
xor eax, eax
test edx, edx
jbe 0x40101f
xor byte [eax + ecx], 7
inc eax
cmp eax, edx
jb 0x401016
mov byte [eax + ecx], 0
ret

Function at 0x4011d0
Capabilities:
Resolve dns

Disassembly:
mov eax, dword [esp + 0xc]
push esi
mov esi, dword [esp + 8]
push eax
push 0
push esi
call fcn.00401190
mov ecx, dword [esp + 0x18]
add esp, 0xc
push ecx
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x4011fe
mov edx, dword [eax + 0xc]
mov eax, dword [edx]
mov ecx, dword [eax]
mov dword [esi + 4], ecx
xor eax, eax
pop esi
ret

Function at 0x401210
Capabilities:
Send data
Send data on socket

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [eax]
mov edx, dword [esp + 0xc]
push 0x10
push ecx
mov ecx, dword [esp + 0x10]
push 0
push edx
mov edx, dword [eax + 4]
push ecx
push edx
call dword [sym.imp.WS2_32.dll_sendto]
ret

Function at 0x4013b0
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x194
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x190], eax
lea eax, [esp]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov ecx, dword [esp + 0x190]
neg eax
sbb eax, eax
xor ecx, esp
inc eax
call fcn.00402673
add esp, 0x194
ret
Function at 0x402340
Capabilities:
Create thread

Disassembly:
mov eax, dword [esp + 4]
lea ecx, [eax + 8]
push ecx
push 0
push eax
push 0x402210
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x402368
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
ret
xor al, al
ret

Function at 0x402673
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [section..data]
jne 0x40267d
repz ret
jmp fcn.00403bc8

Function at 0x408d9d
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.00403dcd
and dword [ebp - 4], 0
cmp dword [0x40fa24], 0
mov ebx, eax
jne 0x408e4e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x408eff
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x408eff
push eax
call fcn.00403d5b
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x40fa24], eax
call esi
push eax
call fcn.00403d5b
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x40fa28], eax
call esi
push eax
call fcn.00403d5b
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x40fa2c], eax
call esi
push eax
call fcn.00403d5b
pop ecx
mov dword [0x40fa34], eax
test eax, eax
je 0x408e4e
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00403d5b
pop ecx
mov dword [0x40fa30], eax
mov eax, dword [0x40fa30]
cmp eax, ebx
je 0x408ea6
cmp dword [0x40fa34], ebx
je 0x408ea6
push eax
call fcn.00403dd6
push dword [0x40fa34]
mov esi, eax
call fcn.00403dd6
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x408ea6
test edi, edi
je 0x408ea6
call esi
test eax, eax
je 0x408e9d
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x408e9d
test byte [ebp - 0xc], 1
jne 0x408ea6
or dword [ebp + 0x10], 0x200000
jmp 0x408edf
mov eax, dword [0x40fa28]
cmp eax, ebx
je 0x408edf
push eax
call fcn.00403dd6
pop ecx
test eax, eax
je 0x408edf
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x408edf
mov eax, dword [0x40fa2c]
cmp eax, ebx
je 0x408edf
push eax
call fcn.00403dd6
pop ecx
test eax, eax
je 0x408edf
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x40fa24]
call fcn.00403dd6
pop ecx
test eax, eax
je 0x408eff
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x408f01
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

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

Disassembly:
pushal
call 0x43000c
nop
pop eax
nop
nop
nop
nop
nop
add eax, 0x403daa
sub eax, 0x403d50
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
jne 0x43001e
nop
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp loc.00401219
Function at 0x100032c0
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [0x1001eb94], 0xc0a
mov dword [ebp - 4], 0
mov eax, dword fs:[0x30]
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], eax
mov eax, dword [0x1001eb90]
sub eax, 0x52
mov dword [0x1001eb90], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
mov eax, dword [eax + 0x3c]
mov dword [ebp - 8], eax
mov dword [0x1001eb94], 0x25f3
mov dword [ebp - 0xc], 0
jmp 0x1000337f
jmp 0x1000344b
mov dword [0x1001eb94], 0x20f1
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
movzx eax, word [eax + ecx*2 - 0x10]
cmp eax, 0x6c
je 0x10003412
jmp 0x10003311
jmp 0x10003454
mov eax, dword [0x1001eb90]
sub eax, 0x1cd6
mov dword [0x1001eb94], eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
movzx eax, word [eax + ecx*2 - 0x18]
cmp eax, 0x6f
jne 0x10003338
mov dword [0x1001eb94], 0xffe
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
movzx eax, word [eax + ecx*2 - 0x16]
cmp eax, 0x61
je 0x100033de
jmp 0x1000344f
cmp dword [ebp - 0xc], 0x104
jge 0x100033bc
mov dword [0x1001eb94], 0x2511
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
movzx eax, word [eax + ecx*2]
cmp eax, 0
jne 0x100033a5
jmp 0x100033bc
mov dword [0x1001eb90], 0x1a4
mov eax, dword [ebp - 0xc]
add eax, 1
mov dword [ebp - 0xc], eax
jmp 0x1000337f
mov dword [0x1001eb94], 0x995
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
movzx eax, word [eax + ecx*2 - 0x1a]
cmp eax, 0x6c
je 0x1000333d
jmp 0x10003454
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
movzx eax, word [eax + ecx*2 - 0x14]
cmp eax, 0x64
jne 0x1000344d
mov dword [0x1001eb90], 0x8e
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
movzx eax, word [eax + ecx*2 - 0x12]
cmp eax, 0x64
je 0x10003316
jmp 0x1000344b
mov dword [0x1001eb90], 0xda9
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
movzx eax, word [eax + ecx*2 - 0xe]
cmp eax, 0x6c
jne 0x10003446
mov eax, dword [0x1001eb90]
sub eax, 0xaff
mov dword [0x1001eb90], eax
mov dword [ebp - 0x10], 1
jmp 0x10003465
jmp 0x10003311
jmp 0x1000344d
jmp 0x1000344f
jmp 0x10003338
mov dword [0x1001eb90], 0x1e0c
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 0x10]
add esp, 0x10
pop ebp
ret

Function at 0x100036a0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
lea eax, [fcn.100036a0]
mov dword [ebp - 8], eax
mov dword [0x1001eb90], 0x2550
jmp 0x100036d9
mov eax, dword [ebp - 8]
sub eax, 0x1000
and eax, 0xfffff000
mov dword [ebp - 8], eax
mov dword [0x1001eb94], 0xd8e
jmp 0x10003700
jmp 0x100036bb
mov eax, dword [ebp - 8]
movzx eax, word [eax]
cmp eax, 0x5a4d
jne 0x100036bb
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 8]
mov ecx, dword [ecx + 0x3c]
cmp dword [eax + ecx], 0x4550
jne 0x100036d7
mov eax, dword [ebp - 8]
mov dword [ebp - 4], eax
jmp 0x1000370f
mov al, 1
test al, 1
jne 0x100036d9
jmp 0x10003708
mov dword [ebp - 4], 0
mov eax, dword [ebp - 4]
add esp, 8
pop ebp
ret
Function at 0x1001f870
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
pushal
call 0x1001f87f
pop dword [ebp - 0x40]
mov eax, 0x911da5dd
add eax, 0x7ee452a2
sub dword [ebp - 0x40], eax
push 0x40
push 0x1000
push 0x3dbb9
push 0
mov eax, 0xde092840
add eax, 0x31fa389c
add eax, dword [ebp - 0x40]
call dword [eax]
mov ecx, 0x3d37
xor edi, edi
add edi, eax
mov esi, 0x1003be00
add esi, dword [ebp - 0x40]
mov ebx, 0x589b05df
add ebx, 0x9a63aa2
sub dword [ebp - 0x3c], 0x33ef4f46
mov edx, dword [esi]
sub dword [ebp - 8], ebx
add edx, ebx
xor dword [ebp - 0x24], esi
mov dword [edi], edx
xor dword [ebp - 0x20], 0xa4f56798
add edi, 4
add esi, 4
loop 0x1001f8d4
add eax, 0x7cfc700
add eax, 0xf83120af
xor ebx, ebx
add ebx, eax
add eax, 0x824c197e
add eax, 0x7db3e687
mov ecx, 0x9e1154f7
add ecx, 0x71eeab09
add ecx, dword [ebp - 0x40]
call ebx
leave
ret

Function at 0x100289d0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x808
mov eax, dword [0x100330b4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x10035b0c]
test dword [ebp + 8], eax
je 0x10028a7a
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x808]
push eax
call fcn.1001f870
xor eax, eax
add esp, 0xc
mov word [ebp - 8], ax
mov eax, dword [0x10035b08]
test eax, eax
je 0x10028a6d
lea ecx, [ebp - 0x808]
push ecx
push eax
call fcn.1001f870
mov eax, dword [0x100330ac]
pop ecx
pop ecx
test eax, eax
jle 0x10028a7a
push esi
mov esi, dword [0x10035b10]
push edi
mov edi, dword [0x10035b14]
cdq
push edx
push eax
push edi
push esi
call fcn.10029420
add esi, 1
mov dword [0x10035b10], esi
adc edi, 0
or eax, edx
mov dword [0x10035b14], edi
pop edi
pop esi
jne 0x10028a7a
push dword [0x10035b08]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
pop ecx
jmp 0x10028a7a
lea eax, [ebp - 0x808]
push eax
call dword [sym.imp.kernel32.dll_OutputDebugStringW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10028d50
leave
ret
Function at 0x4059bd
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x40fba0
cmp edx, dword [eax]
je 0x4059df
add eax, 8
inc ecx
cmp eax, 0x40fc30
jl 0x4059d0
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x40fba0]
jne 0x405b0d
mov eax, dword [0x41f1f0]
cmp eax, 1
je 0x405ae7
test eax, eax
jne 0x405a10
cmp dword [0x40faec], 1
je 0x405ae7
cmp edx, 0xfc
je 0x405b0d
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x405a47
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004067c0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00405e80
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x405a8a
lea eax, [ebp - 0x1a4]
push eax
call fcn.00405e80
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x40841c
push edi
call fcn.00406940
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004067c0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004067d0
lea eax, [ebp - 0xa0]
push 0x4083fc
push eax
call fcn.004067d0
push dword [esi + 0x40fba4]
lea eax, [ebp - 0xa0]
push eax
call fcn.004067d0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.004068b0
add esp, 0x2c
pop edi
jmp 0x405b0d
lea eax, [ebp + 8]
lea esi, [esi + 0x40fba4]
push 0
push eax
push dword [esi]
call fcn.00405e80
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 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..rsrc
nop
nop
mov ebx, 0x40c7d0
nop
mov ecx, 0x35100e5b
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x43204e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x432024
nop
nop
nop
nop
mov eax, section..data
mov ebx, 0x42f314
nop
mov ecx, 0x6f32b01
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x432084
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43206c
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x403d7d
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x400
push ebx
mov ebx, dword [ebp + 8]
push edi
push ebx
call fcn.004031af
mov edi, eax
pop ecx
test edi, edi
je 0x403e45
push esi
push ebx
call sub.MSVCRT.dll_strlen
mov esi, eax
lea eax, [ebp - 0x400]
push esi
push ebx
push eax
call dword [sym.imp.MSVCRT.dll_strncpy]
mov cl, byte [ebp + esi - 0x401]
add esp, 0x10
cmp cl, 0x2f
je 0x403dd4
mov al, byte [0x40d1ac]
cmp cl, al
je 0x403dd4
mov byte [ebp + esi - 0x400], al
inc esi
push edi
call fcn.004032a5
test eax, eax
pop ecx
je 0x403e3d
cmp byte [eax + 0x10], 0x2e
lea ecx, [eax + 0x10]
jne 0x403dfa
mov dl, byte [eax + 0x11]
test dl, dl
je 0x403dd4
cmp dl, 0x2e
jne 0x403dfa
cmp byte [eax + 0x12], 0
je 0x403dd4
lea eax, [ebp + esi - 0x400]
push ecx
push eax
call sub.MSVCRT.dll_strcpy
lea eax, [ebp - 0x400]
push 0x1ff
push eax
call dword [sym.imp.MSVCRT.dll__chmod]
lea eax, [ebp - 0x400]
push eax
call dword [sym.imp.MSVCRT.dll__unlink]
add esp, 0x14
test eax, eax
je 0x403dd4
lea eax, [ebp - 0x400]
push eax
call fcn.00403d7d
pop ecx
jmp 0x403dd4
push edi
call fcn.00403364
pop ecx
pop esi
push ebx
call dword [sym.imp.MSVCRT.dll__rmdir]
pop ecx
pop edi
pop ebx
leave
ret

Function at 0x4048a7
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x200
lea eax, [ebp + 0x14]
push eax
lea eax, [ebp - 0x200]
push dword [ebp + 0x10]
push eax
call dword [sym.imp.MSVCRT.dll_vsprintf]
add esp, 0xc
lea eax, [ebp - 0x200]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [ebp + 0xc]
xor ecx, ecx
cmp eax, ecx
je 0x4048f3
cmp byte [eax], cl
je 0x4048f3
push ecx
push eax
lea eax, [ebp - 0x200]
push eax
push ecx
call dword [sym.imp.USER32.dll_MessageBoxA]
leave
ret
push dword [ebp + 8]
lea eax, [ebp - 0x200]
push eax
call dword [sym.imp.MSVCRT.dll_fputs]
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll_fflush]
add esp, 0xc
leave
ret
Function at 0x4062cf
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0x10], 0
mov dword [ebp - 4], 0xffffffff
push 0x14
call sub.MSVCRT.dll_malloc
add esp, 4
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x4062fd
xor eax, eax
jmp 0x406407
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp + 8]
mov dword [eax + 4], ecx
mov edx, dword [ebp - 0xc]
mov dword [edx + 8], 1
mov eax, dword [ebp - 0xc]
cmp dword [eax + 4], 0
je 0x40632e
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 4]
push edx
call sub.MSVCRT.dll__strdup
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0xc]
cmp dword [edx + 4], 0
jne 0x40634a
mov eax, dword [ebp - 0xc]
push eax
call sub.MSVCRT.dll_free
add esp, 4
xor eax, eax
jmp 0x406407
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x406374
push 2
push 0
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x40637c
jmp 0x4063d8
push 0x40f14c
push 0x40f150
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4063bf
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x4063bf
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [ebp - 0xc]
mov dword [ecx], eax
mov edx, dword [ebp - 0xc]
mov eax, dword [edx]
push eax
call fcn.00405ca0
add esp, 4
test eax, eax
jne 0x4063d3
jmp 0x4063d8
mov eax, dword [ebp - 0xc]
jmp 0x406407
cmp dword [ebp - 4], 0
jl 0x4063ea
mov ecx, dword [ebp - 4]
push ecx
call sub.MSVCRT.dll__close
add esp, 4
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 4]
push eax
call sub.MSVCRT.dll_free
add esp, 4
mov ecx, dword [ebp - 0xc]
push ecx
call sub.MSVCRT.dll_free
add esp, 4
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x406992
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp + 8]
add edx, dword [ecx + 0x3c]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
xor ecx, ecx
mov cx, word [eax + 0x14]
mov edx, dword [ebp - 0x10]
lea eax, [edx + ecx + 0x18]
mov dword [ebp - 8], eax
mov dword [ebp - 4], 0
jmp 0x4069d8
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 8]
add edx, 0x28
mov dword [ebp - 8], edx
mov eax, dword [ebp - 0x10]
xor ecx, ecx
mov cx, word [eax + 6]
cmp dword [ebp - 4], ecx
jge 0x406a09
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0xc]
cmp eax, dword [ebp + 0xc]
ja 0x406a07
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0xc]
mov eax, dword [ebp - 8]
add edx, dword [eax + 8]
cmp dword [ebp + 0xc], edx
jae 0x406a07
mov eax, dword [ebp - 8]
jmp 0x406a0b
jmp 0x4069c6
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x407ccc
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40d1f0
push 0x407e10
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
and dword [ebp - 4], 0
push 1
call dword [sym.imp.MSVCRT.dll___set_app_type]
pop ecx
or dword [0x410900], 0xffffffff
or dword [0x410904], 0xffffffff
call dword [sym.imp.MSVCRT.dll___p__fmode]
mov ecx, dword [0x410830]
mov dword [eax], ecx
call dword [sym.imp.MSVCRT.dll___p__commode]
mov ecx, dword [0x41082c]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCRT.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x4108fc], eax
call fcn.00407e0f
cmp dword [0x40f350], 0
jne 0x407d4f
push 0x407e0c
call dword [sym.imp.MSVCRT.dll___setusermatherr]
pop ecx
call fcn.00407dfa
push 0x40e00c
push 0x40e008
call sub.MSVCRT.dll__initterm
mov eax, dword [0x410828]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push dword [0x410824]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.MSVCRT.dll___getmainargs]
push 0x40e004
push section..data
call sub.MSVCRT.dll__initterm
call dword [sym.imp.MSVCRT.dll___p___initenv]
mov ecx, dword [ebp - 0x20]
mov dword [eax], ecx
push dword [ebp - 0x20]
push dword [ebp - 0x2c]
push dword [ebp - 0x1c]
call section..text
add esp, 0x30
mov dword [ebp - 0x24], eax
push eax
call dword [sym.imp.MSVCRT.dll_exit]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x30], ecx
push eax
push ecx
call sub.MSVCRT.dll__XcptFilter
pop ecx
pop ecx
ret
Function at 0x40a15c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [ebp + 0xc]
mov word [ebp + 0xc], ax
mov ebx, 0x19826993
mov eax, ebx
mul ebx
mov dword [ebp - 0x10], eax
mov ebx, eax
xor esi, esi
mov eax, ebx
mul ebx
mov dword [ebp - 0x14], eax
mov ebx, eax
mov word [ebp - 0xc], 0
jmp 0x40a272
mov eax, ebx
xor eax, ebx
mov ebx, eax
mov eax, dword [ebp + 8]
add eax, esi
push eax
call fcn.00405066
pop ecx
mov edx, eax
mov byte [ebp - 1], dl
cmp byte [ebp - 1], 0
jne 0x40a1b3
mov byte [ebp - 2], 0
jmp 0x40a1dd
call fcn.0040ddd8
mov dword [ebp - 0x18], eax
mov eax, 0x7fff
mov edi, 7
movzx edx, byte [ebp - 1]
mov ecx, edi
sub ecx, edx
cdq
idiv ecx
mov ecx, eax
mov eax, dword [ebp - 0x18]
cdq
idiv ecx
mov edx, eax
mov byte [ebp - 2], dl
mov eax, dword [ebp + 8]
mov al, byte [esi + eax]
cmp al, 0x70
jb 0x40a1fc
cmp al, 0x7f
ja 0x40a1fc
mov eax, dword [ebp + 8]
add eax, esi
inc eax
movzx edx, byte [eax]
movzx ecx, byte [ebp - 2]
sub edx, ecx
mov byte [eax], dl
mov eax, dword [ebp + 8]
movzx eax, byte [esi + eax]
cmp eax, 0xe2
jne 0x40a21b
mov eax, dword [ebp + 8]
add eax, esi
inc eax
movzx edx, byte [eax]
movzx ecx, byte [ebp - 2]
sub edx, ecx
mov byte [eax], dl
mov eax, ebx
sub eax, ebx
mov ebx, eax
push 8
push 0x90
lea eax, [ebp - 0xa]
push eax
call fcn.0040ddc0
movzx eax, byte [ebp - 1]
push eax
mov eax, dword [ebp + 8]
add eax, esi
push eax
lea eax, [ebp - 0xa]
movzx edx, byte [ebp - 2]
add eax, edx
push eax
call fcn.0040ddb4
mov eax, ebx
sub eax, ebx
mov ebx, eax
push 6
lea eax, [ebp - 0xa]
push eax
mov eax, dword [ebp + 8]
add eax, esi
push eax
call fcn.0040ddb4
add esp, 0x24
mov eax, ebx
add eax, ebx
mov ebx, eax
add esi, 6
inc word [ebp - 0xc]
movzx eax, word [ebp + 0xc]
dec eax
cmp esi, eax
jb 0x40a190
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
pop eax
nop
nop
nop
nop
add eax, 0x403ac5
nop
nop
sub eax, 0x403a6b
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x42e030
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x42e01e
nop
nop
nop
nop
nop
popal
jmp int.00401219