joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40d6e0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40d70d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40d70d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x418c10
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
sub esp, 0x4c
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x418d1c
test eax, eax
je 0x418d1c
push esi
push edi
mov ecx, 0x10
mov esi, 0x433fe8
lea edi, [ebp - 0x4c]
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov esi, dword [ebp + 0x14]
mov esi, dword [esi]
add esi, eax
mov dword [ebp - 8], esi
xor esi, esi
mov dword [ebp - 4], 0
mov ecx, eax
test edx, edx
jbe 0x418d03
lea edi, [eax + 4]
jmp 0x418c67
mov ebx, dword [ebp + 8]
movzx eax, byte [esi + ebx]
inc esi
shl eax, 0x10
cmp esi, edx
jne 0x418c7c
mov dword [ebp - 4], 2
jmp 0x418c9d
movzx ebx, byte [esi + ebx]
shl ebx, 8
inc esi
or eax, ebx
cmp esi, edx
jne 0x418c93
mov dword [ebp - 4], 1
jmp 0x418c9d
mov edx, dword [ebp + 8]
movzx edx, byte [esi + edx]
or eax, edx
inc esi
mov edx, eax
and edx, 0x3f
cmp edi, dword [ebp - 8]
ja 0x418d13
mov ebx, eax
shr ebx, 0x12
and ebx, 0x3f
movzx ebx, byte [ebp + ebx - 0x4c]
mov byte [ecx], bl
mov ebx, eax
shr ebx, 0xc
and ebx, 0x3f
movzx ebx, byte [ebp + ebx - 0x4c]
inc ecx
inc edi
mov byte [ecx], bl
mov ebx, dword [ebp - 4]
inc ecx
inc edi
cmp ebx, 1
jbe 0x418cd6
mov byte [ecx], 0x3d
jmp 0x418ce2
shr eax, 6
and eax, 0x3f
mov al, byte [ebp + eax - 0x4c]
mov byte [ecx], al
inc ecx
inc edi
test ebx, ebx
jbe 0x418ced
mov byte [ecx], 0x3d
jmp 0x418cf3
mov dl, byte [ebp + edx - 0x4c]
mov byte [ecx], dl
mov edx, dword [ebp + 0xc]
inc ecx
inc edi
cmp esi, edx
jb 0x418c64
mov eax, dword [ebp + 0x10]
sub ecx, eax
mov eax, dword [ebp + 0x14]
pop edi
pop esi
mov dword [eax], ecx
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4033a0
Capabilities:
Enumerate gui resources
Get hostname

Disassembly:
mov eax, 0x1c0c
call fcn.0040d4d0
mov eax, dword [0xa6c514]
mov ecx, dword [0xa6c484]
shr eax, 3
test eax, eax
jbe 0x4034d2
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextVolumeW]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_WriteProfileSectionW]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetNumberFormatA]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], eax
jmp 0x4033f0
cmp dword [0xa6c514], 0x959
jne 0x4034b4
push 0
lea eax, [esp + 0x20]
push eax
push 0
push 0
push 0
push 0
call edi
push 0
lea ecx, [esp + 0x820]
push ecx
push 0
call ebx
push 0
push 0
call esi
push 0
call ebp
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumCalendarInfoExW]
push 0
push 0
lea edx, [esp + 0x1024]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasA]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_AddConsoleAliasW]
push 0
push 0
call esi
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumResourceTypesW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetThreadPriorityBoost]
push 0
lea eax, [esp + 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_GetConsoleTitleA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_BeginUpdateResourceW]
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x1420]
push edx
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
push 0
push 0x402d38
push 0x402d48
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceExA]
mov eax, dword [esp + 0x10]
push eax
call fcn.004031c0
add dword [esp + 0x10], 8
sub dword [esp + 0x14], 1
jne 0x4033f0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c0c
ret
Function at 0x403da0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
mov eax, 0x1830
call fcn.0040d4d0
cmp dword [0xa6c514], 0xc
push ebx
push ebp
push esi
push edi
jne 0x403e6f
push 0
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push 0
lea eax, [esp + 0x444]
push eax
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasExesW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetConsoleFontSize]
push 0
push 0
lea ecx, [esp + 0xc48]
push ecx
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasesA]
push 0
push 0x402e08
push 0x402e24
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceExA]
push 0
lea edx, [esp + 0x44]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryA]
push 0x402e40
call dword [sym.imp.KERNEL32.dll_FindAtomA]
push 0
lea eax, [esp + 0x1044]
push eax
push 0x402e74
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_HeapSize]
push 0x402e7c
call dword [sym.imp.KERNEL32.dll_AddAtomA]
push 0
push 0
call fcn.00403f79
mov eax, esp
mov dword [eax], 0
mov dword [eax + 4], 0
call fcn.0040414a
fstp st(0)
add esp, 8
mov edi, dword [sym.imp.USER32.dll_SetCaretPos]
mov ebx, dword [sym.imp.USER32.dll_CharLowerBuffW]
mov ebp, dword [sym.imp.USER32.dll_GetSysColorBrush]
xor esi, esi
cmp esi, 0x9458
jge 0x403ea1
push 0
push 0
call edi
push 0
lea ecx, [esp + 0x1044]
push ecx
call ebx
push 0
call ebp
inc esi
cmp esi, 0x14ee8
jl 0x403e83
mov edx, dword [0x45f6b4]
mov eax, dword [0x45f688]
mov dword [0xa6c514], edx
mov dword [0xa6de1c], eax
call fcn.004035e0
pop edi
xor eax, eax
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x408886
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x45ea98]
jne 0x408890
repz ret
jmp fcn.0040a5f9
Function at 0x409d20
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.00404b85
and dword [ebp - 4], 0
cmp dword [0x45ffc8], 0
mov ebx, eax
jne 0x409dd1
push 0x402ae4
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x409e82
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x402ad8
push edi
call esi
test eax, eax
je 0x409e82
push eax
call fcn.00404b13
mov dword [esp], 0x402ac8
push edi
mov dword [0x45ffc8], eax
call esi
push eax
call fcn.00404b13
mov dword [esp], 0x402ab4
push edi
mov dword [0x45ffcc], eax
call esi
push eax
call fcn.00404b13
mov dword [esp], 0x402a98
push edi
mov dword [0x45ffd0], eax
call esi
push eax
call fcn.00404b13
pop ecx
mov dword [0x45ffd8], eax
test eax, eax
je 0x409dd1
push 0x402a80
push edi
call esi
push eax
call fcn.00404b13
pop ecx
mov dword [0x45ffd4], eax
mov eax, dword [0x45ffd4]
cmp eax, ebx
je 0x409e29
cmp dword [0x45ffd8], ebx
je 0x409e29
push eax
call fcn.00404b8e
push dword [0x45ffd8]
mov esi, eax
call fcn.00404b8e
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x409e29
test edi, edi
je 0x409e29
call esi
test eax, eax
je 0x409e20
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x409e20
test byte [ebp - 0xc], 1
jne 0x409e29
or dword [ebp + 0x10], 0x200000
jmp 0x409e62
mov eax, dword [0x45ffcc]
cmp eax, ebx
je 0x409e62
push eax
call fcn.00404b8e
pop ecx
test eax, eax
je 0x409e62
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x409e62
mov eax, dword [0x45ffd0]
cmp eax, ebx
je 0x409e62
push eax
call fcn.00404b8e
pop ecx
test eax, eax
je 0x409e62
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x45ffc8]
call fcn.00404b8e
pop ecx
test eax, eax
je 0x409e82
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x409e84
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x409905
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.0040768b
and dword [ebp - 4], 0
cmp dword [0x45c9b4], 0
mov ebx, eax
jne 0x4099b6
push 0x401a4c
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x409a67
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x401a40
push edi
call esi
test eax, eax
je 0x409a67
push eax
call fcn.00407619
mov dword [esp], 0x401a30
push edi
mov dword [0x45c9b4], eax
call esi
push eax
call fcn.00407619
mov dword [esp], 0x401a1c
push edi
mov dword [0x45c9b8], eax
call esi
push eax
call fcn.00407619
mov dword [esp], 0x401a00
push edi
mov dword [0x45c9bc], eax
call esi
push eax
call fcn.00407619
pop ecx
mov dword [0x45c9c4], eax
test eax, eax
je 0x4099b6
push 0x4019e8
push edi
call esi
push eax
call fcn.00407619
pop ecx
mov dword [0x45c9c0], eax
mov eax, dword [0x45c9c0]
cmp eax, ebx
je 0x409a0e
cmp dword [0x45c9c4], ebx
je 0x409a0e
push eax
call fcn.00407694
push dword [0x45c9c4]
mov esi, eax
call fcn.00407694
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x409a0e
test edi, edi
je 0x409a0e
call esi
test eax, eax
je 0x409a05
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x409a05
test byte [ebp - 0xc], 1
jne 0x409a0e
or dword [ebp + 0x10], 0x200000
jmp 0x409a47
mov eax, dword [0x45c9b8]
cmp eax, ebx
je 0x409a47
push eax
call fcn.00407694
pop ecx
test eax, eax
je 0x409a47
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x409a47
mov eax, dword [0x45c9bc]
cmp eax, ebx
je 0x409a47
push eax
call fcn.00407694
pop ecx
test eax, eax
je 0x409a47
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x45c9b4]
call fcn.00407694
pop ecx
test eax, eax
je 0x409a67
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x409a69
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40929b
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x433bcc]
jne 0x4092a5
repz ret
jmp fcn.0041296c

Function at 0x412232
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x433bcc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00404b9c
and dword [ebp - 0x14], 0
cmp dword [0x462000], 0
mov dword [ebp - 0x18], eax
jne 0x4122e5
push 0x403320
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x41238d
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x403314
push ebx
call edi
test eax, eax
je 0x41238d
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x403304
push ebx
mov dword [0x462000], eax
call edi
push eax
call esi
push 0x4032f0
push ebx
mov dword [0x462004], eax
call edi
push eax
call esi
push 0x4032d4
push ebx
mov dword [0x462008], eax
call edi
push eax
call esi
mov dword [0x462010], eax
test eax, eax
je 0x4122e5
push 0x4032bc
push ebx
call edi
push eax
call esi
mov dword [0x46200c], eax
mov eax, dword [0x46200c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x41233e
cmp dword [0x462010], ecx
je 0x41233e
push eax
call esi
push dword [0x462010]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x41233e
test ebx, ebx
je 0x41233e
call edi
test eax, eax
je 0x412335
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x412335
test byte [ebp - 8], 1
jne 0x41233e
or dword [ebp + 0x10], 0x200000
jmp 0x412371
mov eax, dword [0x462004]
cmp eax, dword [ebp - 0x18]
je 0x412371
push eax
call esi
test eax, eax
je 0x412371
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x412371
mov eax, dword [0x462008]
cmp eax, dword [ebp - 0x18]
je 0x412371
push eax
call esi
test eax, eax
je 0x412371
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x462000]
call esi
test eax, eax
je 0x41238d
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x41238f
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040929b
leave
ret

Function at 0x414700
Capabilities:
Delete file
Get uefi variable

Disassembly:
sub esp, 0x818
cmp dword [0x4dd76c], 0x37
jne 0x414768
push 0
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessId]
push 0
call dword [sym.imp.KERNEL32.dll_IsDBCSLeadByte]
push 0
lea eax, [esp + 0x1c]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetFirmwareEnvironmentVariableW]
lea ecx, [esp]
push ecx
push 0
lea edx, [esp + 0xc]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_ReadConsoleInputA]
push 0
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push 0
lea eax, [esp + 0x41c]
push eax
push 0x403400
call dword [sym.imp.KERNEL32.dll_FindFirstVolumeMountPointA]
mov ecx, dword [0x4ddb80]
mov eax, dword [0x4dd250]
mov dl, byte [ecx + esi + 0x38d6]
mov byte [eax + esi], dl
add esp, 0x818
ret
Function at 0x414ca0
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword [0x4dd76c]
sub esp, 0x830
push ebx
push ebp
push esi
push edi
cmp eax, 0x422
jne 0x414d41
push 0
push 0
push 0
call fcn.00403df8
add esp, 0xc
push 0x403440
push 0
call fcn.00403df8
push 0
call fcn.00403dbd
add esp, 0xc
push 0
call fcn.004039d1
add esp, 4
push 0
call fcn.00403dbd
add esp, 4
push 0x40344c
push 0x403450
push 0x462348
call fcn.00403df8
add esp, 0xc
push 0
push 0
push 0
push 0
push 0
call fcn.004037dc
add esp, 0x14
push 0
push 0
push 0
push 0
call fcn.00403931
push 0
push 0
push 0
call fcn.00403d2c
mov eax, dword [0x4dd76c]
add esp, 0x1c
mov esi, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov edi, dword [sym.imp.KERNEL32.dll_VerSetConditionMask]
mov ebx, dword [sym.imp.KERNEL32.dll_BuildCommDCBAndTimeoutsW]
mov ebp, 0x2443831
cmp eax, 0x47
jne 0x414d95
push 0x403458
call esi
push 0
push 0
push 0
push 0
call edi
xor eax, eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x28]
push ecx
push 0x4034c8
call ebx
dec ebp
mov eax, dword [0x4616b0]
mov dword [0x4dd76c], eax
jne 0x414d58
mov esi, dword [sym.imp.KERNEL32.dll_GlobalGetAtomNameW]
mov edi, 0x79a863
lea ecx, [ecx]
cmp eax, 0x4c5
jne 0x414dc7
push 0
lea edx, [esp + 0x44]
push edx
push 0
call esi
mov eax, dword [0x4dd76c]
dec edi
jne 0x414db0
mov eax, dword [0x4616a4]
mov dword [0x4ddb80], eax
call fcn.004149b0
pop edi
xor eax, eax
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x41eab0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x417015
lea edi, [esi - 0x16015]
push edi
jmp 0x41eaca
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x41ead1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x41eac0
mov eax, 1
add ebx, ebx
jne 0x41eae3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x41ead8
jne 0x41eaf4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41ead8
xor ecx, ecx
sub eax, 3
jb 0x41eb08
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x41eb7a
mov ebp, eax
add ebx, ebx
jne 0x41eb13
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x41eb20
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x41eb44
inc ecx
add ebx, ebx
jne 0x41eb30
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x41eb25
jne 0x41eb41
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41eb25
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x41eb64
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x41eb55
jmp 0x41eac6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x41eb64
add edi, ecx
jmp 0x41eac6
pop esi
mov edi, esi
mov ecx, 0x2fa
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x41eb82
cmp byte [edi], 7
jne 0x41eb82
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
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 0x41eb87
lea edi, [esi + 0x1c000]
mov eax, dword [edi]
or eax, eax
je 0x41ebf6
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1e000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1e03c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x41ebb4
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1e044]
or eax, eax
je 0x41ebf0
mov dword [ebx], eax
add ebx, 4
jmp 0x41ebd1
call dword [esi + 0x1e040]
mov ebp, dword [esi + 0x1e048]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
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
lea ebx, [esi - 0x1000]
lea edi, [ebx + 0x1ec51]
push edi
xor eax, eax
stosb byte es:[edi], al
pop ecx
dec ecx
push eax
push 1
push ebx
call ecx
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x41ec42
sub esp, 0xffffff80
jmp 0x4012e0
Function at 0x404256
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
lea edx, [ecx + 0x18]
add edx, eax
movzx eax, word [ecx + 6]
imul esi, eax, 0x28
add esi, edx
jmp 0x40428b
mov ecx, dword [edx + 0xc]
cmp dword [ebp + 0xc], ecx
jb 0x404288
mov eax, dword [edx + 8]
add eax, ecx
cmp dword [ebp + 0xc], eax
jb 0x404294
add edx, 0x28
cmp edx, esi
jne 0x404276
xor eax, eax
pop esi
pop ebp
ret
mov eax, edx
jmp 0x404291

Function at 0x4046d9
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x404718
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x404718
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x404718
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x404718
cmp dword [ecx + 0x74], 0xe
jbe 0x404718
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x40a344
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x40a3e1
push ebx
push esi
call fcn.0040a30d
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0040a2a3
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x40a38e
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40a3e0
push edi
push eax
call fcn.004084d0
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x40a3ae
call fcn.00408480
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40a3df
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0040a2a3
add esp, 0x20
test eax, eax
jne 0x40a3cd
push edi
call fcn.00408480
jmp 0x40a3d5
push ebx
call fcn.00408480
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret
Function at 0x411240
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41126d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41126d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x44ae0d
Capabilities:
Encode data using xor

Disassembly:
rcr dword [esi - 0x519fc047], 1
into
div dword [ebx + 0xc]
sub ebx, dword [eax - 0x63280bae]
lodsd eax, dword [esi]
mov byte [eax], 0xcd
in al, dx
fdivr st(4)
call dword [edx - 0x35]
mov byte [0xb2801309], al
lahf
sbb edx, 0x6d0b15f2
cmp ch, dh
dec esp
outsb dx, byte [esi]
push edx
mov dh, 0x51
sbb al, 0x29
sbb dword [edx + 4], 0xffffffec
pop edx
add al, 0xec
pop edx
add al, 0xec
push dword [edx + 0x34]
jno 0x44addd
out 0xa7, al
add al, 0x84
pop ebx
bound ebp, qword ds:[eax + 0x4e8e48e3]
inc esi
jp 0x44ae31
pop esp
cli
mov al, byte [0xbdf5d243]
xor dword [edi], esp
push edx
jb 0x44ae24
outsb dx, byte [esi]
cmpsb byte cs:[esi], byte es:[edi]
ret

Function at 0x56cc68
Capabilities:
Encode data using xor

Disassembly:
cmp dh, byte [eax - 0x7a]
nop
iretd
mov bl, 0x20
jle 0x56cc7d
cmpsb byte [esi], byte es:[edi]
add byte [edi - 0x73], dl
mov ch, bh
salc
in eax, dx
frstor dword [edx]
mov bh, 0x60
mov ebx, 0xc71c2a7b
cmp dword [esi + 0x2a6026d2], edx
popal
mov ebx, 0xb75daa46
out dx, eax
daa
xor eax, 0x71f34d64
mov dh, 0xa3
imul edx, dword [eax - 0x37b98aec], 0xffffffeb
scasb al, byte es:[edi]
mov es, word [eax - 0x4d]
out dx, eax
clc
xor byte [ecx + eax*8], al
and al, 0xa8
cmc
mul dword [eax - 5]
cli
mov edi, 0xb4e23e3b
loop 0x56cc62
or al, 0xe9
pop ecx
pushal
mov cl, ah
xchg edi, eax
mov eax, ds
xor ch, byte [esp + eax*4 - 0x5b066b34]
in al, 0xb4
cmp esp, dword [edi]
push cs
and dword [ecx - 0x52fe96e9], ebp
cdq
inc edi
xor dword [esi + 0x43], edi
sal dword [ebx - 0x45], 1
jae 0x56ccab
movsd dword es:[edi], dword [esi]
scasb al, byte es:[edi]
xlatb
out dx, al
mov byte [0x9dca83fb], al
imul ecx, edx, 0xe7542d9a
xchg edi, eax
retf
Function at 0x5b4dc3
Capabilities:
Encode data using xor

Disassembly:
fld qword [edx]
iretd
call dword [edx + 0xe]
xchg ecx, eax
mov dl, 0x50
lodsb al, byte [esi]
sub ecx, dword [edx - 0x7d0400d7]
xchg edi, eax
ret 0xb6f6
jne 0x5b4d27
xchg edi, eax
out 0x67, eax
and esp, dword cs:[esi]
and byte [edi + 0x3e], 0x29
dec ebx
cwde
push ebp
pmulhw mm6, qword [ebx - 0xe]
out dx, al
sub al, 0xbc
idiv dl
cli
mov edx, 0x4e0df1d1
sbb dword [edx + 0x3da4cc73], esi
mov cs, word [ebp - 0x44afa070]
loope 0x5b4d2e
pop edi
push eax
mov ebx, 0x1b197e1
mov cl, 1
enter 0xffffffffffffe2df, 0x4a
shl ch, cl
or cl, byte [esi]
push ebp
pop esi
xor byte [ecx + esi*2], ch
xlatb
insd dword es:[edi], dx
lea eax, [edx + 0x35]
push edx
mov ecx, 0xab158743
mov esp, 0x96749a77
push ecx
stosd dword es:[edi], eax
test al, 0x8d
jmp 0x5b4d6c
cdq
mov edi, 0xfe75deca
dec esi
inc ebx
cmpsb byte [esi], byte es:[edi]
xor bh, al
inc eax
mov cl, 0x25
sahf
arpl dx, bx
mov al, byte [0xba057cb4]
jb 0x5b4dcc
add byte [edi + 0x25], bh
lodsd eax, dword [esi]
jg 0x5b4d83
out dx, al
pmuludq mm3, qword [esi - 0x4469da52]
xor ebx, dword [esi + 0x2a08fa32]
jae 0x5b4d92
add esi, dword [edx + ecx + 0x165da491]
xlatb
inc esp
push 0xffffffffffffffa5
les esp, [eax - 0x21]
pushfd
scasd eax, dword es:[edi]
cmpsd dword [esi], dword es:[edi]
pop esp
xlatb
pop esp
cmp eax, 0xa78a75f7
mov word [eax], gs
call 0xb3fa44c0
pavgw mm3, mm0
push 0x4f
adc ch, byte [ecx + 0x17f08890]
xchg ecx, eax
adc eax, 0x728a5528
sub esi, dword [ebx]
add eax, dword [0x8f17db35]
cmp dword [ebx + 0x63], esi
push edx
dec ebx
inc esp
mov ch, 0xa7
retf
Function at 0x658dfd
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x65f3a8
cmp edx, dword [eax]
je 0x658e1f
add eax, 8
inc ecx
cmp eax, 0x65f438
jl 0x658e10
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x65f3a8]
jne 0x658f4d
mov eax, dword [0xa5be04]
cmp eax, 1
je 0x658f27
test eax, eax
jne 0x658e50
cmp dword [0x65f2d4], 1
je 0x658f27
cmp edx, 0xfc
je 0x658f4d
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x658e87
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.006597e0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00659c70
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x658eca
lea eax, [ebp - 0x1a4]
push eax
call fcn.00659c70
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x65e4d4
push edi
call fcn.0065bb40
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.006597e0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.006597f0
lea eax, [ebp - 0xa0]
push 0x65e4b4
push eax
call fcn.006597f0
push dword [esi + 0x65f3ac]
lea eax, [ebp - 0xa0]
push eax
call fcn.006597f0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0065bab4
add esp, 0x2c
pop edi
jmp 0x658f4d
lea eax, [ebp + 8]
lea esi, [esi + 0x65f3ac]
push 0
push eax
push dword [esi]
call fcn.00659c70
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