joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401295
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [eax + 0x30]
sub esp, 0x14
push ebx
push esi
push edi
mov edi, dword [eax]
mov ebx, ecx
lea esi, [eax + 4]
jmp 0x4012ca
movzx eax, word [esi + 0x1a]
lea eax, [eax + esi + 0x1c]
push str.sfc_os.dll
push eax
dec edi
call sub.ntdll.dll__stricmp
pop ecx
pop ecx
test eax, eax
je 0x4012d7
add esi, 0x11c
test edi, edi
jne 0x4012aa
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
mov eax, dword [esi + 8]
mov dword [ebp - 0xc], eax
mov eax, dword [esi + 0xc]
mov esi, dword [ebx + 4]
mov dword [ebp - 0x10], eax
test esi, esi
je 0x401361
lea edi, [ebx + 0xd8]
push edi
push 0x409f74
push 0x42
lea eax, [ebp - 4]
push eax
dec esi
call dword [sym.imp.ntdll.dll_ZwOpenThread]
test eax, eax
jl 0x40135a
lea eax, [ebp - 0x14]
push eax
push 4
lea eax, [ebp - 8]
push eax
push 9
push dword [ebp - 4]
call dword [sym.imp.ntdll.dll_ZwQueryInformationThread]
test eax, eax
jl 0x401351
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x10]
jae 0x401351
push 0
push dword [ebp - 4]
call dword [sym.imp.ntdll.dll_ZwSuspendThread]
test eax, eax
jl 0x401351
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx]
mov ebx, dword [edi]
mov edx, dword [ebp + 8]
mov dword [edx + eax*8], ebx
mov ebx, dword [edi + 4]
mov dword [edx + eax*8 + 4], ebx
inc eax
mov dword [ecx], eax
push dword [ebp - 4]
call dword [sym.imp.ntdll.dll_ZwClose]
add edi, 0x40
test esi, esi
jne 0x4012f0
xor eax, eax
inc eax
jmp 0x4012d0

Function at 0x401369
Capabilities:
Enumerate processes via ntquerysysteminformation
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov al, byte [0x40a0ac]
push ebx
push esi
push edi
movsx eax, al
xor edi, edi
mov dword [ebp - 8], edi
call fcn.00408ef0
mov ebx, esp
xor esi, esi
mov dword [ebp - 4], 0x1000
mov eax, dword [ebp - 4]
cmp edi, eax
jae 0x4013a4
sub eax, edi
call fcn.00408ef0
mov esi, esp
mov eax, ebx
sub eax, esi
mov edi, eax
lea eax, [ebp - 4]
push eax
push edi
push esi
push 5
call dword [sym.imp.ntdll.dll_ZwQuerySystemInformation]
cmp eax, 0xc0000004
je 0x40138e
test eax, eax
jge 0x4013c1
xor eax, eax
jmp 0x401421
xor eax, eax
add esi, eax
push 1
lea eax, [esi + 0x38]
push eax
push 0x4091fc
call dword [sym.imp.ntdll.dll_RtlEqualUnicodeString]
test al, al
jne 0x4013e2
mov eax, dword [esi]
test eax, eax
jne 0x4013c3
jmp 0x40141e
push 0
push 0x40000
call dword [sym.imp.ntdll.dll_RtlCreateQueryDebugBuffer]
mov edi, eax
test edi, edi
je 0x40141e
push edi
push 1
push dword [esi + 0x44]
call dword [sym.imp.ntdll.dll_RtlQueryProcessDebugInformation]
test eax, eax
jl 0x401417
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
mov eax, edi
call fcn.00401295
mov dword [ebp - 8], eax
push edi
call dword [sym.imp.ntdll.dll_RtlDestroyQueryDebugBuffer]
mov eax, dword [ebp - 8]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x40142b
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push esi
mov esi, eax
push esi
call sub.ntdll.dll_strlen
pop ecx
cmp eax, 0x80
ja 0x4014f5
cmp byte [esi], 0x2e
je 0x4014f5
push esi
lea eax, [ebp - 0x238]
push str._registryMACHINESYSTEMCurrentControlSet_services_S
push eax
call dword [sym.imp.ntdll.dll_swprintf]
lea eax, [ebp - 0x238]
push 0x2e
push eax
call sub.ntdll.dll_wcsrchr
add esp, 0x14
test eax, eax
je 0x4014f5
xor ecx, ecx
mov word [eax], cx
add eax, 2
push 0x409278
push eax
call sub.ntdll.dll__wcsicmp
pop ecx
pop ecx
test eax, eax
jne 0x4014f5
lea eax, [ebp - 0x238]
push eax
lea esi, [ebp - 0x34]
call fcn.00402684
push eax
push 0x20019
lea eax, [ebp - 4]
push eax
call dword [sym.imp.ntdll.dll_ZwOpenKey]
test eax, eax
jl 0x4014f5
lea eax, [ebp - 0x14]
push eax
push 0x10
push eax
push 2
push 0x409314
push dword [ebp - 4]
xor esi, esi
call dword [sym.imp.ntdll.dll_ZwQueryValueKey]
test eax, eax
jl 0x4014e2
cmp dword [ebp - 0x10], 4
jne 0x4014e2
cmp dword [ebp - 0xc], 4
jne 0x4014e2
mov esi, dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.ntdll.dll_ZwClose]
xor eax, eax
cmp esi, 1
sete al
jmp 0x4014f7
xor eax, eax
pop esi
leave
ret
Function at 0x401742
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
push esi
push edi
push 6
pop ecx
xor eax, eax
push 0x409fcc
lea edi, [ebp - 0x24]
rep stosd dword es:[edi], eax
push 0x20019
lea eax, [ebp - 8]
push eax
call dword [sym.imp.ntdll.dll_ZwOpenKey]
test eax, eax
jl 0x40178d
lea eax, [ebp - 0x1c]
push eax
push 0x18
lea eax, [ebp - 0x24]
push eax
push 0
push dword [ebp - 8]
call dword [sym.imp.ntdll.dll_ZwQueryKey]
push dword [ebp - 8]
call dword [sym.imp.ntdll.dll_ZwClose]
lea eax, [ebp - 0x94]
push eax
call dword [sym.imp.ADVAPI32.dll_MD5Init]
push 8
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x94]
push eax
call dword [sym.imp.ADVAPI32.dll_MD5Update]
lea eax, [ebp - 0x94]
push eax
call dword [sym.imp.ADVAPI32.dll_MD5Final]
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x38]
push 7
pop eax
mov edi, dword [ebp + 8]
mov esi, ecx
and esi, 0x1f
movsx si, byte [esi + str.eaoimnqazwsxedcrfvtgbyhnujmikolp]
shrd ecx, edx, 5
mov word [edi + eax*2], si
shr edx, 5
mov esi, eax
dec eax
test esi, esi
jne 0x4017c3
pop edi
pop esi
leave
ret 4
Function at 0x40214f
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
lea eax, [ebp - 5]
push eax
push 1
push 1
push 0x23
call dword [sym.imp.ntdll.dll_RtlAdjustPrivilege]
call fcn.00401cc2
xor esi, esi
cmp eax, esi
je 0x4021ea
push eax
call fcn.00401e85
test eax, eax
je 0x4021ea
lea eax, [ebp - 0x10]
push eax
call fcn.004003a3
cmp eax, esi
je 0x4021e6
push dword [ebp - 0x10]
push eax
call fcn.00401868
push esi
push esi
push 0x20
push 5
push esi
push esi
push 0x40a068
lea eax, [ebp - 0x18]
push eax
push 0x40a050
push 0x100004
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.ntdll.dll_ZwCreateFile]
test eax, eax
jl 0x4021e6
push esi
push esi
push 0x800
push dword [ebp + 8]
lea eax, [ebp - 0x18]
push eax
push esi
push esi
push esi
push dword [ebp - 0xc]
call dword [sym.imp.ntdll.dll_ZwWriteFile]
push dword [ebp - 0xc]
xor ecx, ecx
test eax, eax
setge cl
mov esi, ecx
call dword [sym.imp.ntdll.dll_ZwClose]
mov eax, esi
jmp 0x4021ec
xor eax, eax
pop esi
leave
ret 4

Function at 0x40226f
Capabilities:
Enumerate processes via ntquerysysteminformation
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov al, byte [0x40a0a4]
push ebx
push esi
movzx eax, al
push edi
xor esi, esi
mov dword [ebp - 4], 0x1000
xor edi, edi
call fcn.00408ef0
mov ebx, esp
mov eax, dword [ebp - 4]
cmp esi, eax
jae 0x4022a6
sub eax, esi
call fcn.00408ef0
mov edi, esp
mov eax, ebx
sub eax, edi
mov esi, eax
lea eax, [ebp - 4]
push eax
push esi
push edi
push 5
call dword [sym.imp.ntdll.dll_ZwQuerySystemInformation]
cmp eax, 0xc0000004
je 0x402290
test eax, eax
jl 0x4022d7
mov eax, edi
xor ecx, ecx
add eax, ecx
cmp dword [eax + 4], 0
je 0x4022d1
cmp dword [eax + 0x48], 0
jne 0x4022e1
mov ecx, dword [eax]
test ecx, ecx
jne 0x4022c3
xor eax, eax
lea esp, [ebp - 0x10]
pop edi
pop esi
pop ebx
leave
ret
add eax, 0xd8
push eax
call fcn.004021f1
jmp 0x4022d9
Function at 0x402525
Capabilities:
Extract resource via kernel32 functions
Initialize winsock library
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1ac
push ebx
push esi
push edi
push 0x10000
push 7
lea eax, [esp + 0x28]
push eax
push 0x40a07c
push 0x100000
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.ntdll.dll_ZwOpenFile]
mov esi, eax
xor ebx, ebx
cmp esi, ebx
jl 0x402567
push dword [esp + 0x18]
call dword [sym.imp.ntdll.dll_ZwClose]
cmp esi, 0xc0000271
jne 0x402576
push ebx
call dword [sym.imp.KERNEL32.dll_ExitProcess]
lea eax, [esp + 0x14]
push eax
push 3
push 0x40a094
mov esi, 0x400000
push esi
call dword [sym.imp.ntdll.dll_LdrFindResource_U]
test eax, eax
jl 0x402670
push ebx
lea eax, [esp + 0x20]
push eax
push dword [esp + 0x1c]
push esi
call dword [sym.imp.ntdll.dll_LdrAccessResource]
test eax, eax
jl 0x402670
mov eax, dword [esp + 0x14]
cmp dword [eax + 4], 0x800
jne 0x402670
lea eax, [esp + 0x13]
push eax
push ebx
push 1
push 0x14
call dword [sym.imp.ntdll.dll_RtlAdjustPrivilege]
test eax, eax
jl 0x4025d9
call fcn.0040226f
push dword [esp + 0x1c]
call fcn.0040214f
test eax, eax
je 0x402670
lea eax, [esp + 0x28]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x402670
mov edx, 0x409f8c
call fcn.00400a20
test eax, eax
je 0x40261a
push pe_nt_image_headers32
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
jmp 0x40261c
xor eax, eax
cmp eax, ebx
je 0x40262b
mov esi, eax
call fcn.004022ee
mov edi, eax
jmp 0x40262d
xor edi, edi
cmp edi, ebx
je 0x402670
mov esi, 0x1000
call fcn.0040045f
mov dword [edi + 0x18], eax
cmp eax, ebx
je 0x402669
lea eax, [edi + 8]
push eax
call fcn.00400ad7
cmp eax, ebx
jne 0x402669
push str.hit_click5_q
mov ebx, str.counter.yadro.ru
push ebx
mov esi, edi
call fcn.00402336
push ebx
mov eax, edi
call fcn.00400883
mov ecx, edi
call fcn.00400480
call fcn.00400a6b
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_Sleep]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1e72060
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x11f6000]
push edi
or ebp, 0xffffffff
jmp 0x1e72082
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x1e72089
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1e72078
mov eax, 1
add ebx, ebx
jne 0x1e7209b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x1e720ac
jne 0x1e720cb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1e720cb
dec eax
add ebx, ebx
jne 0x1e720b8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x1e72090
add ebx, ebx
jne 0x1e720c7
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x1e7211d
xor ecx, ecx
sub eax, 3
jb 0x1e720e3
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x1e72152
sar eax, 1
mov ebp, eax
jmp 0x1e720ee
add ebx, ebx
jne 0x1e720ee
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1e720bc
inc ecx
add ebx, ebx
jne 0x1e720fc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1e720bc
add ebx, ebx
jne 0x1e72109
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x1e720fe
jne 0x1e7211a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x1e720fe
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x1e7213c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x1e7212e
jmp 0x1e7207e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x1e7213c
add edi, ecx
jmp 0x1e7207e
pop esi
mov edi, esi
mov ecx, 0x4b7ef
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x1e7215a
mov eax, dword [edi]
mov bl, byte [edi + 4]
xchg ah, al
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x1e7215f
lea edi, [esi + 0x1a6d000]
mov eax, dword [edi]
or eax, eax
je 0x1e721c7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1a91648]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1a9183c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x1e72185
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1a91844]
or eax, eax
je 0x1e721c1
mov dword [ebx], eax
add ebx, 4
jmp 0x1e721a2
call dword [esi + 0x1a91840]
mov ebp, dword [esi + 0x1a91848]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x1e721fb
sub esp, 0xffffff80
jmp 0x11b8530
Function at 0x406de0
Capabilities:
Hide graphical window

Disassembly:
push 0
mov eax, dword [0x40a930]
push eax
call sub.user32.dll_ShowWindow
push 0xffffffffffffffec
mov eax, dword [0x40a930]
push eax
call sub.user32.dll_GetWindowLongA
or eax, 0x80
push eax
push 0xffffffffffffffec
mov eax, dword [0x40a930]
push eax
call sub.user32.dll_SetWindowLongA
push 5
mov eax, dword [0x40a930]
push eax
call sub.user32.dll_ShowWindow
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x407ef8
mov ecx, 0x7aa95483
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
je 0x42e04e
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x42e024
nop
mov eax, section..data_1
nop
mov ebx, 0x42cd70
nop
mov ecx, 0x2a1d2049
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x42e084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x42e06c
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219
Function at 0x40894e
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
xor eax, eax
mov edx, eax
push esi
mov esi, dword [ebp + 8]
and ecx, 0xfffffffc
jbe 0x408992
rol eax, 5
xor eax, dword [edx + esi]
add edx, 4
imul eax, eax, 0x9e3779b9
rol eax, 5
xor eax, 4
imul eax, eax, 0x9e3779b9
cmp edx, ecx
jb 0x408961
jmp 0x408992
movsx ecx, byte [edx + esi]
rol eax, 5
xor eax, ecx
imul eax, eax, 0x9e3779b9
inc edx
cmp edx, dword [ebp + 0xc]
jb 0x408982
pop esi
pop ebp
ret

Function at 0x409420
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 1
lea esi, [ebx - 1]
push 0x2000
not esi
push ebx
and esi, 0xf0deafff
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
cmp edi, esi
jne 0x409455
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp esi, dword [ebp - 0x18]
jb 0x40947f
lea eax, [esi + ebx]
cmp eax, dword [ebp - 0x18]
jb 0x40947f
test edi, edi
je 0x40944c
push 0x8000
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x40944c
test edi, edi
je 0x409487
mov eax, edi
jmp 0x40944e
push 1
push 0x2000
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
jne 0x40944e
int3
Function at 0x40b884
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 8]
push eax
mov dword [sym.TestIntegerPrintfMacros.exe_gMozillaPoisonSize], eax
call fcn.00409420
pop ecx
mov ecx, dword [sym.TestIntegerPrintfMacros.exe_gMozillaPoisonSize]
mov dword [sym.TestIntegerPrintfMacros.exe_gMozillaPoisonBase], eax
test ecx, ecx
je 0x40b8bc
shr ecx, 1
dec ecx
add eax, ecx
mov dword [sym.TestIntegerPrintfMacros.exe_gMozillaPoisonValue], eax
mov esp, ebp
pop ebp
ret
Function at 0x401550
Capabilities:
Terminate process

Disassembly:
push 0x5c
push 0x401c18
call fcn.004018fb
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
cmp dword [0x403390], ebx
jne 0x4012eb
push ebx
push ebx
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_HeapSetInformation]
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x24], ebx
mov edi, 0x403384
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x401325
cmp eax, esi
jne 0x401318
xor esi, esi
inc esi
mov dword [ebp - 0x24], esi
jmp 0x401328
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4012ff
xor esi, esi
inc esi
mov eax, dword [0x403380]
cmp eax, esi
jne 0x40133b
push 0x1f
call sub.MSVCR100.dll__amsg_exit
pop ecx
jmp 0x401376
mov eax, dword [0x403380]
test eax, eax
jne 0x401370
mov dword [0x403380], esi
push 0x4010e8
push 0x4010dc
call sub.MSVCR100.dll__initterm_e
pop ecx
pop ecx
test eax, eax
je 0x401376
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x401490
mov dword [0x403038], esi
mov eax, dword [0x403380]
cmp eax, esi
jne 0x40139a
push 0x4010d8
push 0x4010d0
call sub.MSVCR100.dll__initterm
pop ecx
pop ecx
mov dword [0x403380], 2
cmp dword [ebp - 0x24], ebx
jne 0x4013a7
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x403394], ebx
je 0x4013c8
push 0x403394
call fcn.00401833
pop ecx
test eax, eax
je 0x4013c8
push ebx
push 2
push ebx
call dword [0x403394]
mov eax, dword [sym.imp.MSVCR100.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x20], esi
mov al, byte [esi]
cmp al, 0x20
ja 0x401421
cmp al, bl
je 0x4013e1
cmp dword [ebp - 0x1c], ebx
jne 0x401421
mov al, byte [esi]
cmp al, bl
je 0x4013f1
cmp al, 0x20
ja 0x4013f1
inc esi
mov dword [ebp - 0x20], esi
jmp 0x4013e1
test byte [ebp - 0x40], 1
je 0x4013fd
movzx eax, word [ebp - 0x3c]
jmp 0x401400
push 0xa
pop eax
push eax
push esi
push ebx
push 0x400000
call main
mov dword [0x403034], eax
cmp dword [0x403028], ebx
jne 0x401476
push eax
call dword [sym.imp.MSVCR100.dll_exit]
cmp al, 0x22
jne 0x401430
xor ecx, ecx
cmp dword [ebp - 0x1c], ebx
sete cl
mov dword [ebp - 0x1c], ecx
movzx eax, al
push eax
call dword [sym.imp.MSVCR100.dll__ismbblead]
pop ecx
test eax, eax
je 0x401443
inc esi
mov dword [ebp - 0x20], esi
inc esi
jmp 0x4013cf
cmp dword [0x403038], ebx
jne 0x401484
call dword [sym.imp.MSVCR100.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x403034]
call fcn.00401940
ret
call fcn.004011a7
jmp 0x4012bd

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x40c7d0
nop
nop
mov ecx, 0x53966569
nop
nop
nop
nop
test eax, eax
je 0x43204e
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x432024
nop
mov eax, section..data
nop
mov ebx, 0x42f314
nop
mov ecx, 0x464f5890
nop
test eax, eax
nop
nop
nop
nop
je 0x432084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x43206c
nop
nop
nop
popal
nop
nop
jmp 0x431219

Function at 0x402350
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [ebp + 8]
mov edx, eax
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
mov edx, eax
cmp word [edx], 0x5a4d
je 0x402375
or eax, 0xffffffff
jmp 0x402422
mov eax, dword [edx + 0x3c]
mov ecx, edx
add eax, ecx
mov ecx, eax
cmp dword [ecx], 0x4550
je 0x40238e
or eax, 0xffffffff
jmp 0x402422
mov eax, dword [ecx + 0x78]
mov edx, dword [ebp - 0x10]
lea ecx, [edx + eax]
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x20]
add eax, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x18]
mov ebx, eax
test ebx, ebx
jne 0x4023b6
or eax, 0xffffffff
jmp 0x402422
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x24]
mov edx, dword [ebp - 0x10]
add eax, edx
mov dword [ebp - 0xc], eax
xor esi, esi
or edi, 0xffffffff
test ebx, ebx
jle 0x402408
mov eax, dword [ebp - 4]
mov eax, dword [eax + esi*4]
mov edx, dword [ebp - 0x10]
add eax, edx
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp + 0xc]
xor eax, eax
mov al, byte [edx]
mov ah, byte [ecx]
sub ah, al
jne 0x4023f3
test al, al
je 0x4023f8
inc edx
inc ecx
jmp 0x4023e3
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x402400
mov edi, esi
jmp 0x402408
inc esi
or edi, 0xffffffff
cmp esi, ebx
jl 0x4023cd
cmp edi, 0xffff
jne 0x402415
or eax, 0xffffffff
jmp 0x402422
mov eax, dword [ebp - 0xc]
movzx eax, word [eax + edi*2]
mov edx, dword [ebp - 8]
add eax, dword [edx + 0x10]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x402430
Capabilities:
Parse pe header

Disassembly:
push ebx
push esi
push edi
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov ecx, eax
mov ebx, ecx
cmp word [ebx], 0x5a4d
je 0x40244a
xor eax, eax
jmp 0x40248e
mov eax, dword [ebx + 0x3c]
mov esi, ebx
add eax, esi
mov esi, eax
cmp dword [esi], 0x4550
je 0x40245f
xor eax, eax
jmp 0x40248e
mov eax, dword [esi + 0x78]
mov ebx, ecx
lea esi, [ebx + eax]
mov eax, dword [esi + 0x1c]
add eax, ebx
mov ebx, eax
mov eax, dword [esi + 0x10]
cmp edx, eax
jb 0x40247e
neg eax
add eax, edx
cmp eax, dword [esi + 0x14]
jbe 0x402482
xor eax, eax
jmp 0x40248e
mov eax, edx
sub eax, dword [esi + 0x10]
mov eax, dword [ebx + eax*4]
mov edi, ecx
add eax, edi
pop edi
pop esi
pop ebx
ret 8
Function at 0x4033a0
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 8
push esi
mov esi, dword [esp + 0x14]
push esi
mov dword [esp + 8], 1
call fcn.004044b0
mov ecx, dword [esp + 0x14]
mov edx, dword [0x68fb78]
lea eax, [esp + 0x18]
push eax
push ecx
push edx
call fcn.004090e0
add esp, 0x10
test eax, eax
jne 0x4033d8
pop esi
add esp, 8
ret
push ebx
mov ebx, dword [esp + 0x18]
push ebp
push edi
lea eax, [ebx + 0xe]
mov edi, eax
add eax, 0x28
mov dword [esp + 0x14], eax
mov eax, dword [edi + 8]
test eax, eax
jge 0x4033ff
neg eax
mov dword [edi + 8], eax
mov dword [esp + 0x10], 0
mov eax, dword [edi + 4]
mov ebp, dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [esi + 0xc], eax
mov eax, dword [edi + 8]
mov ecx, dword [esi + 0xc]
mov dword [esi + 0x10], eax
imul ecx, eax
push ecx
push 0x40
call ebp
push 0x400
push 0x40
mov dword [esi], eax
call ebp
mov edx, dword [esp + 0x24]
mov dword [esi + 8], eax
xor eax, eax
xor ecx, ecx
mov ax, word [ebx + 6]
mov dword [edx], eax
mov edx, dword [ebx + 0xa]
mov cx, word [edi + 0xe]
sub edx, 0x36
pop edi
pop ebp
cmp ecx, 8
pop ebx
je 0x403473
mov eax, dword [esp + 0x10]
push ecx
push eax
push 0x4c15e0
push 0
call fcn.00491750
mov eax, dword [esp + 0x24]
add esp, 0x10
xor esi, esi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop esi
add esp, 8
ret
mov ecx, dword [esp + 4]
push edx
mov edx, dword [esp + 0xc]
push eax
push ecx
push edx
push esi
call fcn.00402e90
add esp, 0x14
mov esi, eax
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop esi
add esp, 8
ret