joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40f450
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x40b015
lea edi, [esi - 0xa015]
push edi
or ebp, 0xffffffff
jmp 0x40f472
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x40f479
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x40f468
mov eax, 1
add ebx, ebx
jne 0x40f48b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x40f480
jne 0x40f49c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40f480
xor ecx, ecx
sub eax, 3
jb 0x40f4b0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x40f522
mov ebp, eax
add ebx, ebx
jne 0x40f4bb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x40f4c8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40f4ec
inc ecx
add ebx, ebx
jne 0x40f4d8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x40f4cd
jne 0x40f4e9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40f4cd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40f50c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40f4fd
jmp 0x40f46e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40f50c
add edi, ecx
jmp 0x40f46e
pop esi
mov edi, esi
mov ecx, 0x210
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40f52a
cmp byte [edi], 5
jne 0x40f52a
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 0x40f52f
lea edi, [esi + 0xd000]
mov eax, dword [edi]
or eax, eax
je 0x40f59e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x10730]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x107e4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40f55c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x107e8]
or eax, eax
je 0x40f598
mov dword [ebx], eax
add ebx, 4
jmp 0x40f579
call dword [esi + 0x107f8]
mov ebp, dword [esi + 0x107ec]
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
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x40f5d2
sub esp, 0xffffff80
jmp section.UPX0
Function at 0x4027dd
Capabilities:
Get common file path
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1400
call fcn.00408de0
mov eax, dword [0x845d78]
mov ecx, dword [0x844cc8]
push esi
shr eax, 3
xor esi, esi
cmp eax, esi
jbe 0x4028b2
push ebx
push edi
mov edi, ecx
mov ebx, eax
cmp dword [0x845d78], 0x959
jne 0x4028a0
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SleepEx]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateJobObjectW]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_EnumDateFormatsExA]
push esi
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SetFileShortNameA]
push esi
lea eax, [ebp - 0x800]
push eax
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_LCMapStringW]
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push esi
call dword [sym.imp.KERNEL32.dll_HeapLock]
push esi
push esi
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push esi
lea eax, [ebp - 0xc00]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push esi
lea eax, [ebp - 0x1400]
push eax
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_FoldStringW]
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push edi
call fcn.0040263e
add edi, 8
dec ebx
jne 0x402809
pop edi
pop ebx
pop esi
leave
ret
Function at 0x4037a0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4260c8]
jne 0x4037aa
repz ret
jmp fcn.00405d0e

Function at 0x405934
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.00403b1f
and dword [ebp - 4], 0
cmp dword [0x427704], 0
mov ebx, eax
jne 0x4059e5
push 0x401920
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x405a96
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x401914
push edi
call esi
test eax, eax
je 0x405a96
push eax
call fcn.00403aad
mov dword [esp], 0x401904
push edi
mov dword [0x427704], eax
call esi
push eax
call fcn.00403aad
mov dword [esp], 0x4018f0
push edi
mov dword [0x427708], eax
call esi
push eax
call fcn.00403aad
mov dword [esp], 0x4018d4
push edi
mov dword [0x42770c], eax
call esi
push eax
call fcn.00403aad
pop ecx
mov dword [0x427714], eax
test eax, eax
je 0x4059e5
push 0x4018bc
push edi
call esi
push eax
call fcn.00403aad
pop ecx
mov dword [0x427710], eax
mov eax, dword [0x427710]
cmp eax, ebx
je 0x405a3d
cmp dword [0x427714], ebx
je 0x405a3d
push eax
call fcn.00403b28
push dword [0x427714]
mov esi, eax
call fcn.00403b28
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x405a3d
test edi, edi
je 0x405a3d
call esi
test eax, eax
je 0x405a34
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x405a34
test byte [ebp - 0xc], 1
jne 0x405a3d
or dword [ebp + 0x10], 0x200000
jmp 0x405a76
mov eax, dword [0x427708]
cmp eax, ebx
je 0x405a76
push eax
call fcn.00403b28
pop ecx
test eax, eax
je 0x405a76
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x405a76
mov eax, dword [0x42770c]
cmp eax, ebx
je 0x405a76
push eax
call fcn.00403b28
pop ecx
test eax, eax
je 0x405a76
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x427704]
call fcn.00403b28
pop ecx
test eax, eax
je 0x405a96
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x405a98
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

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

Disassembly:
pushal
nop
nop
mov eax, section..text
nop
mov ebx, 0x408f6c
nop
mov ecx, 0x7b901d1d
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x430024
nop
nop
nop
nop
nop
mov eax, section..data
mov ebx, 0x42e3d0
nop
nop
mov ecx, 0x3b5f172f
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x430084
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

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

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
not esi
ror edi, 0x18
bswap edi
rcl edx, 0xff
not esi
inc eax
imul edx
dec eax
rcl esi, 0x13
sub eax, 0xda
sbb ebx, 0xb2
rcl eax, 0xc5
rol edx, 0x2d
imul edi
bswap edi
imul edx
rcl edx, 0x54
rcl edx, 0x1b
neg eax
sbb edi, 0x47
neg edi
inc esi
imul eax
rol edi, 0xe7
sub edx, 0x30
rcl ebx, 0x68
dec esi
add ebx, 0xa0
neg edx
mov edx, 0x9c
inc eax
bswap ebx
dec edi
inc eax
not edx
dec eax
inc ebx
dec edx
inc edi
sub esi, 0x36
add esi, 3
rcr eax, 0x31
add ebx, 0xed
neg edx
neg ebx
dec edi
not ebx
dec edx
rcr esi, 0x9b
rol edi, 0xa7
xor ecx, ecx
xor edi, edi
sub edx, 0x62
neg ebx
inc eax
mov eax, 0x89
not ebx
sub ebx, 0x3b
not edi
bswap esi
inc edi
dec ebx
rcr ebx, 0x2e
sbb edi, 0x2c
dec eax
rol edi, 0x4e
dec edi
rol eax, 0xa3
dec esi
not eax
neg edx
rcl edx, 0xa0
and edi, 0xd8
imul ebx
sub ebx, 0x9a
dec ebx
or ebx, 0x7b
rol edi, 0xc4
neg eax
neg ebx
not edi
bswap ebx
dec esi
rcl esi, 0xec
bswap esi
ror ebx, 0x52
neg eax
rol esi, 0x6c
inc esi
rol edi, 0xc
dec ebx
dec esi
rcl edi, 0x82
imul edx
not esi
rcl edi, 0x85
neg esi
not eax
not esi
inc esi
and esi, 0x53
sub esi, 0x82
mov ecx, dword [ebp + 0xc]
neg eax
imul esi
rcl esi, 0xbd
imul esi
rol esi, 0xfd
not eax
ror ebx, 0xaf
bswap edi
sbb edi, 0xd
neg eax
not edx
rcl edx, 0x25
sbb esi, 0x8e
rcr eax, 0x5a
rol eax, 0x4c
sub edi, 0x37
imul ebx
and edi, 0x87
bswap esi
dec ebx
dec edx
imul edi
dec edi
or edi, 0xe9
not eax
dec ebx
or edx, 0xe0
rcr ebx, 0xd5
mov ebx, 0x27
rcr ebx, 0x6c
inc ebx
rol esi, 0x24
rol eax, 3
imul edi
and edi, 0xbb
rcl eax, 0x66
dec esi
or edx, 0x27
rcl esi, 0xa5
dec ebx
bswap edx
or ebx, 0x79
sbb edx, 0x33
and eax, 0x95
and eax, 0x46
inc eax
sub esi, 0xd1
dec edx
neg edi
neg esi
mov edi, dword [ebp + 8]
mov eax, esi
xor esi, esi
mov esi, eax
not byte [edi]
mov esi, esi
mov ebx, eax
xor ebx, eax
mov ebx, ebx
mov eax, eax
mov esi, esi
mov ebx, ebx
mov esi, esi
xor eax, esi
add byte [edi], 0x26
mov esi, ebx
xor ebx, esi
mov esi, esi
xor esi, eax
mov eax, ebx
mov ebx, esi
xor ebx, esi
xor ebx, ebx
xor esi, ebx
sub byte [edi], 0x86
xor ebx, ebx
xor esi, eax
mov eax, eax
mov ebx, eax
mov eax, eax
mov eax, eax
mov esi, esi
xor eax, esi
xor esi, eax
imul byte [edi]
inc edi
loop 0x4013b1
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x4062a8
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x59f464]
jne 0x4062b2
repz ret
jmp fcn.00408bc5
Function at 0x40aba3
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.00406329
and dword [ebp - 4], 0
cmp dword [0x5a0d58], 0
mov ebx, eax
jne 0x40ac54
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40ad05
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x40ad05
push eax
call fcn.004062b7
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x5a0d58], eax
call esi
push eax
call fcn.004062b7
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x5a0d5c], eax
call esi
push eax
call fcn.004062b7
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x5a0d60], eax
call esi
push eax
call fcn.004062b7
pop ecx
mov dword [0x5a0d68], eax
test eax, eax
je 0x40ac54
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004062b7
pop ecx
mov dword [0x5a0d64], eax
mov eax, dword [0x5a0d64]
cmp eax, ebx
je 0x40acac
cmp dword [0x5a0d68], ebx
je 0x40acac
push eax
call fcn.00406332
push dword [0x5a0d68]
mov esi, eax
call fcn.00406332
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40acac
test edi, edi
je 0x40acac
call esi
test eax, eax
je 0x40aca3
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40aca3
test byte [ebp - 0xc], 1
jne 0x40acac
or dword [ebp + 0x10], 0x200000
jmp 0x40ace5
mov eax, dword [0x5a0d5c]
cmp eax, ebx
je 0x40ace5
push eax
call fcn.00406332
pop ecx
test eax, eax
je 0x40ace5
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40ace5
mov eax, dword [0x5a0d60]
cmp eax, ebx
je 0x40ace5
push eax
call fcn.00406332
pop ecx
test eax, eax
je 0x40ace5
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x5a0d58]
call fcn.00406332
pop ecx
test eax, eax
je 0x40ad05
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40ad07
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x433002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x40de38
nop
mov ecx, 0x6f206963
nop
test eax, eax
nop
nop
nop
je 0x43304e
nop
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x433024
nop
mov eax, section..data
nop
mov ebx, 0x4304d8
nop
mov ecx, 0x2b1435f1
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x433084
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219

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

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

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
add eax, 0x403d7a
nop
nop
sub eax, 0x403d20
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
add ebx, 4
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
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
popal
nop
jmp loc.00401219
Function at 0x401e10
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41ef1a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push esi
mov esi, ecx
push 0
mov dword [ebp - 0x10], esi
call fcn.004075e6
mov dword [ebp - 4], 0
mov dword [esi + 4], 0
mov byte [esi + 8], 0
mov dword [esi + 0xc], 0
mov byte [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 0
mov word [esi + 0x18], ax
mov dword [esi + 0x1c], eax
mov word [esi + 0x20], ax
mov dword [esi + 0x24], eax
mov byte [esi + 0x28], al
mov dword [esi + 0x2c], eax
mov byte [esi + 0x30], al
mov eax, dword [ebp + 8]
mov byte [ebp - 4], 6
test eax, eax
jne 0x401ea8
lea eax, [ebp + 8]
mov dword [ebp + 8], str.bad_locale_name
push eax
lea ecx, [ebp - 0x1c]
call fcn.0040961a
push 0x427ee8
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], vtable.std::runtime_error.0
push eax
call fcn.00409772
push eax
push esi
call fcn.00407ca5
mov ecx, dword [ebp - 0xc]
add esp, 8
mov eax, esi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x402a40
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 8]
push ebx
push esi
mov eax, dword [ecx + 0x14]
movzx ebx, word [ecx + 0x1e]
mov dword [ebp + 8], eax
mov eax, dword [ecx + 0x18]
cdq
mov esi, eax
shr ebx, 3
xor esi, edx
sub esi, edx
test esi, esi
jle 0x402af4
mov edx, dword [ebp + 8]
mov eax, ebx
movsd xmm2, qword [0x4206f0]
movsd xmm3, qword [0x4206e0]
movsd xmm4, qword [0x4206d8]
imul eax, edx
push edi
mov edi, dword [ebp + 0xc]
inc edi
mov dword [ebp - 4], eax
test edx, edx
jle 0x402aee
mov ecx, edi
jmp 0x402aa0
movzx eax, byte [ecx]
movd xmm1, eax
movzx eax, byte [ecx + 1]
cvtdq2pd xmm1, xmm1
movd xmm0, eax
movzx eax, byte [ecx - 1]
cvtdq2pd xmm0, xmm0
mulsd xmm1, xmm2
mulsd xmm0, xmm3
addsd xmm1, xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
mulsd xmm0, xmm4
addsd xmm1, xmm0
cvttsd2si eax, xmm1
mov byte [ecx + 1], al
mov byte [ecx], al
mov byte [ecx - 1], al
add ecx, ebx
dec edx
jne 0x402aa0
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 4]
add edi, eax
dec esi
jne 0x402a90
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x403030
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x41ef38
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
mov ebx, ecx
cmp dword [ebx + 0x40], 0
je 0x403161
cmp byte [ebx + 0x45], 0
je 0x403161
mov eax, dword [ebx]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
jne 0x40307f
xor al, al
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
mov ecx, 0xf
mov byte [ebp - 0x28], 0
xorps xmm0, xmm0
mov dword [ebp - 0x14], ecx
cmp ecx, 0x10
movq qword [ebp - 0x28], xmm0
lea eax, [ebp - 0x28]
mov dword [ebp - 0x18], 8
cmovae eax, dword [ebp - 0x28]
mov byte [eax + 8], 0
push esi
mov dword [ebp - 4], 0
push edi
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x10]
mov ecx, dword [ebx + 0x40]
lea edi, [ebp - 0x28]
cmovae edi, dword [ebp - 0x28]
lea esi, [ebp - 0x28]
cmovae esi, dword [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x18]
mov edx, dword [ecx]
add eax, edi
push eax
push esi
lea eax, [ebx + 0x48]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x4030eb
dec eax
je 0x4030ef
sub eax, 2
je 0x40313b
xor bl, bl
jmp 0x40313d
mov byte [ebx + 0x45], 0
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 0x28]
cmp ecx, 0x10
mov esi, dword [ebp - 0x10]
cmovae eax, edx
sub esi, eax
je 0x403121
push dword [ebx + 0x50]
cmp ecx, 0x10
lea eax, [ebp - 0x28]
push esi
cmovae eax, edx
push 1
push eax
call fcn.00409179
add esp, 0x10
cmp esi, eax
jne 0x4030e7
cmp byte [ebx + 0x45], 0
je 0x40313b
test esi, esi
jne 0x4030b1
push esi
push 8
lea ecx, [ebp - 0x28]
call fcn.004047e0
jmp 0x4030b1
mov bl, 1
cmp dword [ebp - 0x14], 0x10
pop edi
pop esi
jb 0x403150
push dword [ebp - 0x28]
call fcn.004080f0
add esp, 4
mov al, bl
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0xc]
mov al, 1
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x407300
Capabilities:
Allocate or change rwx memory
Encode data using xor
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
push esi
push edi
push 0x2faf080
xor ebx, ebx
call fcn.0040766a
mov edi, eax
add esp, 4
xor eax, eax
test edi, edi
je 0x40745f
lea ecx, [edi + 0x2faf080]
mov edx, edi
mov esi, ecx
sub esi, edi
cmp edi, ecx
cmova esi, eax
test esi, esi
je 0x40734a
lea esp, [esp]
inc eax
mov byte [edx], bl
lea edx, [edx + 1]
cmp eax, esi
jne 0x407340
xor ecx, ecx
lea esi, [ecx + 0xd]
nop
movzx eax, byte [ecx + section..data]
ror al, 3
xor al, byte [ebx + str.hbnyzmfbbzggd]
mov byte [ecx + section..data], al
lea eax, [ebx + 1]
cdq
idiv esi
movzx eax, byte [ecx + 0x42a001]
ror al, 3
xor al, byte [edx + str.hbnyzmfbbzggd]
mov byte [ecx + 0x42a001], al
lea eax, [edx + 1]
cdq
idiv esi
movzx eax, byte [ecx + 0x42a002]
ror al, 3
xor al, byte [edx + str.hbnyzmfbbzggd]
mov byte [ecx + 0x42a002], al
lea eax, [edx + 1]
cdq
idiv esi
movzx eax, byte [ecx + 0x42a003]
ror al, 3
xor al, byte [edx + str.hbnyzmfbbzggd]
mov byte [ecx + 0x42a003], al
lea eax, [edx + 1]
cdq
idiv esi
movzx eax, byte [ecx + 0x42a004]
ror al, 3
xor al, byte [edx + str.hbnyzmfbbzggd]
mov byte [ecx + 0x42a004], al
lea eax, [edx + 1]
cdq
add ecx, 5
idiv esi
mov ebx, edx
cmp ecx, 0x16e4
jb 0x407350
push str.VirtualProtect
push str.Kernel32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
lea ecx, [ebp - 8]
push ecx
push 0x40
push 0x16e4
push section..data
call eax
lea eax, section..data
call eax
push edi
call fcn.00409747
add esp, 4
lea eax, [ebp - 0x40]
push eax
push str.input.bmp
call fcn.00402b00
mov esi, eax
test esi, esi
je 0x40745d
push esi
lea eax, [ebp - 0x40]
push eax
call fcn.00402a40
push esi
lea eax, [ebp - 0x40]
push eax
push str.output.bmp
call fcn.00402d30
push esi
call fcn.00409747
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x419d7f
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x42be40]
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.0040c542
mov dword [ebp - 0x14], eax
cmp dword [0x42e41c], esi
jne 0x419e72
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x419dff
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x419f52
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x419f52
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x419f52
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x42e41c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x42e420], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x42e424], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x42e42c], eax
test eax, eax
je 0x419e6f
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x42e428], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x419e97
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x419e8a
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x419eac
push 4
pop eax
jmp 0x419f54
cmp dword [ebp - 0x14], esi
je 0x419eac
push dword [0x42e41c]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x419e91
mov eax, dword [0x42e428]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x419f0a
cmp dword [0x42e42c], edi
je 0x419f0a
push eax
call ebx
push dword [0x42e42c]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x419f0a
test eax, eax
je 0x419f0a
call ecx
test eax, eax
je 0x419eff
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 0x419eff
test byte [ebp - 8], 1
jne 0x419f0a
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x419f3a
mov eax, dword [0x42e420]
cmp eax, edi
je 0x419f37
push eax
call ebx
test eax, eax
je 0x419f37
call eax
mov esi, eax
test esi, esi
je 0x419f37
mov eax, dword [0x42e424]
cmp eax, edi
je 0x419f37
push eax
call ebx
test eax, eax
je 0x419f37
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x42e41c]
call ebx
test eax, eax
je 0x419f52
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x419f54
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040b4db
mov esp, ebp
pop ebp
ret
Function at 0x419008
Capabilities:
Encode data using xor

Disassembly:
xor al, 0x58
xchg ecx, eax
jecxz 0x41901b
push esi
mov cl, 0x9a
jge 0x419013
and al, byte [eax]
invalid
jecxz 0x41905d
out dx, al
cld
inc esi
dec edx
mov word [ebx - 0x2e], gs
mov byte [esi], bl
dec ebp
bound edx, qword [edi + 0x26]
push esp
test dword [eax - 0x9815cc8], esi
test dword [esi + edi*4 - 0x3e], eax
jp 0x419038
xor dword [eax], eax
adc ch, byte [ebx + 0x3e89a4cc]
jbe 0x41900b
add byte [edx], dl
stosd dword es:[edi], eax
int3
cli
mov dword [0x471c71cf], eax
xlatb
jne 0x4190a7
cmp dword [ebx], 0
mov ebp, 0x71beb097
or eax, 0x17bfb6a7
mov edi, dword [ebp + ebp*4 - 0x78]
pop edi
pop eax
jmp 0x419088
cli
mov eax, 0xf0b5a5d3
push ebp
mov ch, 0x64
stc
ret 0xbccc
cmc
cld
pop ebx
outsb dx, byte [esi]
invalid

Function at 0x414dd9
Capabilities:
Encode data using xor

Disassembly:
xor dword [edi], ebx
add ecx, ecx
or edx, edx
add edi, 4
add edx, ecx
mov esi, 0xdcae7b90
add ecx, 0x52602997
cmp edi, eax
jne fcn.00414dd9
ret