joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41b258
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, eax
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [esi + 0x6af80], 2
cmp dword [esi + 0x6af90], ebx
je 0x41b456
push edi
mov edi, 0x7fff
cmp dword [esi + 0x6af90], 3
jb 0x41b2d2
mov ecx, dword [esi + 0x6af84]
movzx eax, byte [ecx + esi + 0x1af72]
mov edx, dword [esi + 0x6af7c]
shl edx, 5
xor eax, edx
and eax, edi
mov dword [esi + 0x6af7c], eax
mov eax, dword [esi + eax*4 + 0x4af70]
and ecx, edi
mov dword [esi + ecx*4 + 0x2af70], eax
mov ecx, dword [esi + 0x6af84]
mov dword [ebp - 4], eax
mov eax, dword [esi + 0x6af7c]
mov dword [esi + eax*4 + 0x4af70], ecx
cmp dword [ebp - 4], 0
je 0x41b315
mov eax, dword [esi + 0x6af84]
sub eax, dword [ebp - 4]
cmp eax, 0x7efa
ja 0x41b315
mov ecx, dword [esi + 0x6af90]
cmp dword [esi + 0x6afa0], ecx
jbe 0x41b2fc
mov dword [esi + 0x6afa0], ecx
push dword [ebp - 4]
mov edx, esi
call fcn.0041b006
mov ebx, eax
mov eax, dword [esi + 0x6af90]
pop ecx
cmp ebx, eax
jbe 0x41b315
mov ebx, eax
cmp ebx, 3
jb 0x41b3d6
mov edx, dword [esi + 0x6af84]
sub edx, dword [esi + 0x6af88]
lea ecx, [ebx - 3]
mov eax, esi
call fcn.0041a98d
sub dword [esi + 0x6af90], ebx
mov dword [ebp - 8], eax
mov eax, dword [esi + 0x6af90]
cmp ebx, dword [esi + 0x6af98]
ja 0x41b3a3
cmp eax, 3
jb 0x41b3a3
dec ebx
inc dword [esi + 0x6af84]
mov edx, dword [esi + 0x6af84]
movzx ecx, byte [esi + edx + 0x1af72]
mov eax, dword [esi + 0x6af7c]
shl eax, 5
xor ecx, eax
and ecx, edi
mov dword [esi + 0x6af7c], ecx
mov ecx, dword [esi + ecx*4 + 0x4af70]
and edx, edi
dec ebx
mov dword [esi + edx*4 + 0x2af70], ecx
mov eax, dword [esi + 0x6af7c]
mov dword [ebp - 4], ecx
mov ecx, dword [esi + 0x6af84]
mov dword [esi + eax*4 + 0x4af70], ecx
jne 0x41b351
jmp 0x41b3f6
add dword [esi + 0x6af84], ebx
mov edx, dword [esi + 0x6af84]
movzx ecx, byte [edx + esi + 0x1af70]
mov dword [esi + 0x6af7c], ecx
movzx edx, byte [edx + esi + 0x1af71]
shl ecx, 5
xor edx, ecx
xor ebx, ebx
and edx, edi
mov dword [esi + 0x6af7c], edx
jmp 0x41b3fc
mov eax, dword [esi + 0x6af84]
movzx ecx, byte [eax + esi + 0x1af70]
xor edx, edx
mov eax, esi
call fcn.0041a98d
dec dword [esi + 0x6af90]
mov dword [ebp - 8], eax
inc dword [esi + 0x6af84]
cmp dword [ebp - 8], 0
je 0x41b437
mov ecx, dword [esi + 0x6af74]
test ecx, ecx
js 0x41b415
lea edx, [ecx + esi + 0x1af70]
jmp 0x41b417
xor edx, edx
mov eax, dword [esi + 0x6af84]
push 0
sub eax, ecx
push edx
mov ecx, esi
call fcn.0041a810
mov eax, dword [esi + 0x6af84]
pop ecx
pop ecx
mov dword [esi + 0x6af74], eax
cmp dword [esi + 0x6af90], 0x106
jae 0x41b448
call fcn.0041b147
cmp dword [esi + 0x6af90], 0
jne 0x41b282
pop edi
mov ecx, dword [esi + 0x6af74]
test ecx, ecx
js 0x41b469
lea edx, [ecx + esi + 0x1af70]
jmp 0x41b46b
xor edx, edx
mov eax, dword [esi + 0x6af84]
push 1
sub eax, ecx
push edx
mov ecx, esi
call fcn.0041a810
pop ecx
pop ecx
pop esi
pop ebx
leave
ret
Function at 0x41c013
Capabilities:
Encode data using xor

Disassembly:
push edi
mov edi, edx
test ecx, ecx
jne 0x41c01e
xor eax, eax
pop edi
ret
push esi
not eax
mov edx, 0xff
cmp edi, 8
jb 0x41c0d2
mov esi, edi
shr esi, 3
push ebx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x4351a0]
movzx ebx, byte [ecx + 1]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x4351a0]
movzx ebx, byte [ecx + 2]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x4351a0]
movzx ebx, byte [ecx + 3]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x4351a0]
movzx ebx, byte [ecx + 4]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x4351a0]
movzx ebx, byte [ecx + 5]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x4351a0]
movzx ebx, byte [ecx + 6]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x4351a0]
movzx ebx, byte [ecx + 7]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x4351a0]
add ecx, 8
sub edi, 8
dec esi
jne 0x41c035
pop ebx
test edi, edi
je 0x41c0eb
movzx esi, byte [ecx]
xor esi, eax
and esi, edx
shr eax, 8
xor eax, dword [esi*4 + 0x4351a0]
inc ecx
dec edi
jne 0x41c0d6
pop esi
not eax
pop edi
ret

Function at 0x41c0f0
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
mov eax, dword [ecx]
movsx edx, dl
xor edx, eax
push esi
mov esi, 0xff
and edx, esi
mov edx, dword [edx*4 + 0x4351a0]
shr eax, 8
xor edx, eax
mov eax, dword [ecx + 8]
mov dword [ecx], edx
movzx edx, dl
add edx, dword [ecx + 4]
imul edx, edx, 0x8088405
inc edx
mov dword [ecx + 4], edx
shr edx, 0x18
xor edx, eax
and edx, esi
shr eax, 8
xor eax, dword [edx*4 + 0x4351a0]
pop esi
mov dword [ecx + 8], eax
ret
Function at 0x41c292
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
mov eax, dword [0x43c078]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp + 0x10]
push edi
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x38]
mov edi, ecx
push eax
mov esi, edx
push edi
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x50], esi
call dword [0x42f110]
test eax, eax
jne 0x41c2da
mov eax, 0x200
jmp 0x41c45e
mov ecx, dword [ebp - 0x38]
xor eax, eax
xor ebx, ebx
inc eax
mov dword [ebp - 0x40], ecx
and dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], ebx
je 0x41c2f0
mov dword [ebp - 0x3c], eax
test cl, 2
je 0x41c2f9
or dword [ebp - 0x3c], 2
test cl, 4
je 0x41c302
or dword [ebp - 0x3c], 4
mov eax, ecx
and eax, 0x10
je 0x41c30d
or dword [ebp - 0x3c], 0x10
test cl, 0x20
je 0x41c316
or dword [ebp - 0x3c], 0x20
cmp eax, ebx
je 0x41c323
or dword [ebp - 0x3c], 0x40000000
jmp 0x41c32a
or dword [ebp - 0x3c], 0x80000000
or dword [ebp - 0x3c], 0x1000000
cmp dword [ebp - 0x40], ebx
jne 0x41c33d
or dword [ebp - 0x3c], 0x800000
push ebx
push edi
call dword [0x42f0ec]
mov dword [ebp - 0x48], eax
cmp eax, 0x28
jbe 0x41c3e1
mov esi, dword [0x42f0f0]
push ebx
push ebx
push ebx
push edi
call esi
push ebx
lea eax, [ebp - 0x54]
push eax
push 2
lea eax, [ebp - 0x40]
push eax
push edi
mov edi, dword [0x42f068]
call edi
push ebx
push ebx
push 0x24
push dword [ebp - 0x44]
call esi
push ebx
lea eax, [ebp - 0x54]
push eax
push 4
lea eax, [ebp - 0x64]
push eax
push dword [ebp - 0x44]
call edi
mov eax, 0x54ad
cmp word [ebp - 0x40], ax
jne 0x41c3de
mov eax, dword [ebp - 0x64]
lea ecx, [eax + 0x34]
cmp dword [ebp - 0x48], ecx
jbe 0x41c3de
push ebx
push ebx
push eax
push dword [ebp - 0x44]
call esi
push ebx
lea eax, [ebp - 0x54]
push eax
push 4
lea eax, [ebp - 0x58]
push eax
push dword [ebp - 0x44]
call edi
mov eax, dword [ebp - 0x58]
cmp eax, 0x5a4d
je 0x41c3d7
cmp eax, 0x454e
je 0x41c3d7
cmp eax, 0x454c
je 0x41c3d7
cmp eax, 0x4550
jne 0x41c3de
or dword [ebp - 0x3c], 0x400000
mov esi, dword [ebp - 0x50]
mov eax, dword [ebp - 0x60]
cmp eax, ebx
je 0x41c3ed
mov ecx, dword [ebp - 0x3c]
mov dword [eax], ecx
mov eax, dword [ebp - 0x5c]
cmp eax, ebx
je 0x41c3f9
mov ecx, dword [ebp - 0x48]
mov dword [eax], ecx
cmp esi, ebx
je 0x41c432
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
call fcn.0041c207
push dword [ebp - 0x20]
mov dword [esi], eax
push dword [ebp - 0x24]
mov dword [esi + 4], edx
call fcn.0041c207
push dword [ebp - 0x30]
mov dword [esi + 8], eax
push dword [ebp - 0x34]
mov dword [esi + 0xc], edx
call fcn.0041c207
add esp, 0x18
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], edx
cmp dword [ebp - 0x4c], ebx
je 0x41c45c
push dword [ebp - 0x20]
lea edi, [ebp - 0x3c]
push dword [ebp - 0x24]
lea esi, [ebp - 0x40]
call fcn.0041c22b
movzx eax, word [ebp - 0x40]
pop ecx
pop ecx
movzx ecx, word [ebp - 0x3c]
shl eax, 0x10
or eax, ecx
mov ecx, dword [ebp - 0x4c]
mov dword [ecx], eax
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041d928
leave
ret
Function at 0x42211b
Capabilities:
Parse pe header

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

Function at 0x4347a0
Capabilities:
Parse pe header

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

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 0x401000
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x44
test eax, eax
push esi
mov esi, dword [esp + 0x4c]
jne 0x401083
push 0x64
push esi
mov dword [esp + 0x4c], str.ScreenSaverSetupClass
mov dword [esp + 0x2c], 0x401120
mov dword [esp + 0x28], 0x23
mov dword [esp + 0x38], esi
call dword [sym.imp.USER32.dll_LoadIconA]
push 0x7f00
push 0
mov dword [esp + 0x3c], eax
call dword [sym.imp.USER32.dll_LoadCursorA]
mov dword [esp + 0x3c], 6
mov dword [esp + 0x40], 0
mov dword [esp + 0x38], eax
lea eax, [esp + 0x20]
push eax
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
call dword [sym.imp.USER32.dll_RegisterClassA]
test ax, ax
jne 0x401083
xor eax, eax
pop esi
add esp, 0x44
ret 0x10
push 0
push esi
push 0
push 0
push 0x80000000
push 0x80000000
push 0
push 0
push 0xcf0000
push str.SCR_Setup
push str.ScreenSaverSetupClass
push 0
mov dword [0x40d1b8], esi
call dword [sym.imp.USER32.dll_CreateWindowExA]
test eax, eax
jne 0x4010c0
pop esi
add esp, 0x44
ret 0x10
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov esi, dword [sym.imp.USER32.dll_GetMessageA]
push 0
push 0
lea ecx, [esp + 0xc]
push 0
push ecx
call esi
test eax, eax
je 0x40110f
push ebx
mov ebx, dword [sym.imp.USER32.dll_DispatchMessageA]
push edi
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
lea edx, [esp + 0xc]
push edx
call edi
lea eax, [esp + 0xc]
push eax
call ebx
push 0
push 0
lea ecx, [esp + 0x14]
push 0
push ecx
call esi
test eax, eax
jne 0x4010ee
pop edi
pop ebx
mov eax, dword [esp + 0xc]
pop esi
add esp, 0x44
ret 0x10

Function at 0x401d50
Capabilities:
Delete file
Get common file path

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x104
lea eax, [esp]
push eax
push 0
push 0x40c1fc
push ecx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x401d78
add esp, 0x104
ret
lea edx, [esp]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, 1
add esp, 0x104
ret

Function at 0x401df6
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x409ddb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push 0x80
mov dword [esp + 8], esi
mov dword [esi + 8], 0x40a1c8
call fcn.00402987
mov dword [esi + 0xc], eax
xor eax, eax
add esp, 4
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], 0x1f
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], 0x40
mov ecx, esi
mov dword [esp + 0x10], eax
call fcn.00401f10
push 0x200000
call fcn.00402987
mov ecx, dword [esp + 0xc]
add esp, 4
mov dword [esi + 0x30], eax
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x402450
Capabilities:
Read file on windows

Disassembly:
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x2c]
test eax, eax
jne 0x402532
mov ecx, dword [esi + 0x24]
test ecx, ecx
jne 0x402478
mov dword [esi + 0x2c], 0x1f4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 0xc
mov edi, dword [esp + 0x14]
mov eax, dword [esi + 0x10]
cmp edi, eax
jge 0x40252b
test edi, edi
jl 0x40252b
mov ebp, dword [esp + 0x18]
test ebp, ebp
jne 0x4024b7
cmp edi, eax
jge 0x4024ab
mov eax, dword [esi + 0xc]
mov edi, dword [eax + edi*4]
mov eax, dword [edi + 0xc]
pop edi
pop esi
pop ebp
pop ebx
ret 0xc
xor edi, edi
mov eax, dword [edi + 0xc]
pop edi
pop esi
pop ebp
pop ebx
ret 0xc
mov ebx, dword [esp + 0x1c]
test ebx, ebx
je 0x402532
cmp edi, dword [esi + 0x10]
jge 0x4024cc
mov edx, dword [esi + 0xc]
mov eax, dword [edx + edi*4]
jmp 0x4024ce
xor eax, eax
mov eax, dword [eax + 8]
push 0
push 0
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp edi, dword [esi + 0x10]
jge 0x4024ea
mov ecx, dword [esi + 0xc]
mov eax, dword [ecx + edi*4]
jmp 0x4024ec
xor eax, eax
cmp ebx, dword [eax + 0xc]
jae 0x4024f5
mov eax, ebx
jmp 0x402507
cmp edi, dword [esi + 0x10]
jge 0x402502
mov edx, dword [esi + 0xc]
mov edi, dword [edx + edi*4]
jmp 0x402504
xor edi, edi
mov eax, dword [edi + 0xc]
mov edx, dword [esi + 0x24]
lea ecx, [esp + 0x14]
push 0
push ecx
push eax
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [esp + 0x14]
pop edi
neg eax
sbb eax, eax
pop esi
pop ebp
and eax, ecx
pop ebx
ret 0xc
mov dword [esi + 0x2c], 0x190
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 0xc
Function at 0x402540
Capabilities:
Get system information on windows
Read file via mapping

Disassembly:
sub esp, 0x24
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x2c]
test eax, eax
jne 0x4026cd
mov eax, dword [esi + 0x24]
test eax, eax
jne 0x40256e
mov dword [esi + 0x2c], 0x1f4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x24
ret 8
mov edi, dword [esp + 0x38]
mov eax, dword [esi + 0x10]
cmp edi, eax
jge 0x4026c6
test edi, edi
jl 0x4026c6
mov eax, dword [esp + 0x3c]
test eax, eax
jne 0x4025a0
mov dword [esi + 0x2c], 0x514
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x24
ret 8
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp edi, dword [esi + 0x10]
jge 0x4025b8
mov ecx, dword [esi + 0xc]
mov eax, dword [ecx + edi*4]
jmp 0x4025ba
xor eax, eax
mov eax, dword [eax + 8]
mov ecx, dword [esp + 0x2c]
xor edx, edx
div ecx
mov ebp, eax
mov eax, dword [esi + 0x10]
imul ebp, ecx
cmp edi, eax
jge 0x4025d9
mov edx, dword [esi + 0xc]
mov eax, dword [edx + edi*4]
jmp 0x4025db
xor eax, eax
mov eax, dword [eax + 8]
sub eax, ebp
mov dword [esp + 0x38], eax
mov eax, dword [esi + 0x10]
cmp edi, eax
jge 0x4025f3
mov eax, dword [esi + 0xc]
mov eax, dword [eax + edi*4]
jmp 0x4025f5
xor eax, eax
cmp edi, dword [esi + 0x10]
jge 0x402602
mov ecx, dword [esi + 0xc]
mov ecx, dword [ecx + edi*4]
jmp 0x402604
xor ecx, ecx
mov eax, dword [eax + 8]
xor edx, edx
div dword [esp + 0x2c]
mov eax, dword [esi + 0x10]
mov ebx, edx
mov edx, dword [ecx + 0xc]
add ebx, edx
cmp edi, eax
jge 0x402623
mov edx, dword [esi + 0xc]
mov ecx, dword [edx + edi*4]
jmp 0x402625
xor ecx, ecx
cmp edi, dword [esi + 0x10]
jge 0x402632
mov eax, dword [esi + 0xc]
mov edi, dword [eax + edi*4]
jmp 0x402634
xor edi, edi
mov eax, dword [edi + 0xc]
mov edx, dword [ecx + 8]
mov ecx, dword [esi + 0x24]
add eax, edx
push 0
push eax
push 0
push 2
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov edi, eax
test edi, edi
jne 0x40266f
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x2c], 0xc8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x24
ret 8
push ebx
push ebp
push 0
push 4
push edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
mov esi, eax
push 8
lea eax, [esi + edx]
mov dword [ecx], eax
call fcn.00402987
add esp, 4
test eax, eax
je 0x4026b5
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax], edi
mov dword [eax + 4], esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret 8
xor eax, eax
mov dword [eax], edi
mov dword [eax + 4], esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret 8
mov dword [esi + 0x2c], 0x190
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x24
ret 8
Function at 0x40579d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x40c4d8
cmp edx, dword [eax]
je 0x4057bf
add eax, 8
inc ecx
cmp eax, 0x40c568
jl 0x4057b0
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x40c4d8]
jne 0x4058ed
mov eax, dword [0x40d684]
cmp eax, 1
je 0x4058c7
test eax, eax
jne 0x4057f0
cmp dword [0x40c214], 1
je 0x4058c7
cmp edx, 0xfc
je 0x4058ed
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x405827
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00407d20
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00406090
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40586a
lea eax, [ebp - 0x1a4]
push eax
call fcn.00406090
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x40a598
push edi
call fcn.004081d0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00407d20
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00407d30
lea eax, [ebp - 0xa0]
push 0x40a578
push eax
call fcn.00407d30
push dword [esi + 0x40c4dc]
lea eax, [ebp - 0xa0]
push eax
call fcn.00407d30
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00408145
add esp, 0x2c
pop edi
jmp 0x4058ed
lea eax, [ebp + 8]
lea esi, [esi + 0x40c4dc]
push 0
push eax
push dword [esi]
call fcn.00406090
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x430006
Capabilities:
Encode data using xor

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, ecx
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 8], edx
mov esi, edx
lea eax, [ecx - 1]
mov dword [ebp - 4], ebx
mov edi, eax
mov dword [ebp - 0x14], ecx
sar edi, 1
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], edi
cmp edx, edi
jge 0x10007f5a
add esi, esi
lea eax, [esi + 2]
lea eax, [eax + eax*2]
lea ecx, [ebx + eax*4]
lea eax, [ecx - 0xc]
push eax
push ecx
call fcn.10005cb0
movzx eax, al
xor eax, 1
inc eax
add esi, eax
lea eax, [esi + esi*2]
movq xmm0, qword [ebx + eax*4]
lea edx, [ebx + eax*4]
mov eax, dword [ebp - 8]
mov dword [ebp - 8], esi
lea eax, [eax + eax*2]
movq qword [ebx + eax*4], xmm0
lea ecx, [ebx + eax*4]
mov eax, dword [edx + 8]
mov dword [ecx + 8], eax
cmp esi, edi
jl 0x10007f13
mov ecx, dword [ebp - 0x14]
mov edi, esi
cmp esi, dword [ebp - 0x18]
jne 0x10007f85
test cl, 1
jne 0x10007f85
mov edi, dword [ebp - 0x1c]
lea eax, [ecx + ecx*2]
movq xmm0, qword [ebx + eax*4 - 0xc]
lea edx, [ebx + eax*4]
lea eax, [esi + esi*2]
lea ecx, [ebx + eax*4]
movq qword [ecx], xmm0
mov eax, dword [edx - 4]
mov dword [ecx + 8], eax
cmp dword [ebp - 0xc], edi
jge 0x10007fcc
nop word [eax + eax]
push dword [ebp - 0x10]
lea esi, [edi - 1]
sar esi, 1
lea eax, [esi + esi*2]
lea ebx, [ebx + eax*4]
push ebx
call fcn.10005cb0
test al, al
je 0x10007fc9
lea eax, [edi + edi*2]
mov ecx, dword [ebp - 4]
lea ecx, [ecx + eax*4]
movq xmm0, qword [ebx]
mov edi, esi
movq qword [ecx], xmm0
mov eax, dword [ebx + 8]
mov ebx, dword [ebp - 4]
mov dword [ecx + 8], eax
cmp dword [ebp - 0xc], esi
jl 0x10007f90
mov ebx, dword [ebp - 4]
lea eax, [edi + edi*2]
lea ecx, [ebx + eax*4]
mov eax, dword [ebp - 0x10]
pop edi
pop esi
pop ebx
movq xmm0, qword [eax]
movq qword [ecx], xmm0
mov eax, dword [eax + 8]
mov dword [ecx + 8], eax
mov esp, ebp
pop ebp
ret
Function at 0x1000b410
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx + 0x38], 0
je 0x1000b43c
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const___long_long___int64__]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x20]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x20], esi
mov ecx, dword [eax]
lea eax, [ebx + 0x30]
mov dword [esp + 0x24], edi
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], eax
test ecx, ecx
je 0x1000b464
mov eax, dword [eax]
mov ecx, dword [eax]
jmp 0x1000b46a
xor ecx, ecx
mov dword [esp + 0x18], eax
mov eax, ecx
cdq
mov dword [esp + 0x10], eax
mov ecx, edx
mov dword [esp + 0x14], ecx
test edi, edi
jl 0x1000b4d2
jg 0x1000b481
test esi, esi
je 0x1000b4d2
test ecx, ecx
jl 0x1000b4cd
jg 0x1000b48b
test eax, eax
je 0x1000b4cd
cmp edi, ecx
jg 0x1000b49f
jl 0x1000b495
cmp esi, eax
jae 0x1000b49f
mov eax, esi
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], edi
push eax
push dword [ebp + 8]
push dword [esp + 0x24]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [esp + 0x24]
add esp, 0xc
mov edx, dword [esp + 0x10]
mov ecx, dword [ebp + 8]
add ecx, edx
sub esi, edx
mov eax, dword [eax]
sbb edi, dword [esp + 0x14]
sub dword [eax], edx
mov eax, dword [ebx + 0x20]
add dword [eax], edx
jmp 0x1000b4d5
mov ecx, dword [ebp + 8]
jmp 0x1000b4df
mov ecx, dword [ebp + 8]
test edi, edi
jl 0x1000b4f9
jg 0x1000b4df
test esi, esi
je 0x1000b4f9
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x1000b4f9
push eax
push esi
push 1
push ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x1000b510
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 4], esi
test eax, eax
jg 0x1000b53c
jl 0x1000b530
test ecx, ecx
jne 0x1000b53c
pop esi
xor eax, eax
xor edx, edx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x1000b555
push eax
push ecx
push esi
mov ecx, ebx
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char___long_long___int64__]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x1c]
push edi
mov edi, ecx
mov eax, dword [eax]
mov dword [ebp - 8], eax
test eax, eax
je 0x1000b59d
mov eax, dword [ebx + 0x2c]
lea edx, [ebx + 0x2c]
mov dword [ebp - 0xc], edx
mov eax, dword [eax]
test eax, eax
je 0x1000b5a3
cmp eax, ecx
mov esi, ecx
cmovb esi, eax
push esi
push dword [ebp - 8]
push dword [ebp - 4]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebx + 0x2c]
sub edi, esi
add dword [ebp - 4], esi
add esp, 0xc
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
mov esi, dword [ebp - 4]
jmp 0x1000b5a3
lea eax, [ebx + 0x2c]
mov dword [ebp - 0xc], eax
cmp dword [ebx + 0x4c], 0
je 0x1000b616
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x1000b5cc
mov eax, dword [ebx + 0xc]
mov edx, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x50]
sub edx, ecx
mov dword [eax], ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
mov dword [eax], edx
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
cmp edi, 0xfff
jbe 0x1000b604
nop dword [eax]
push dword [ebx + 0x4c]
push 0xfff
push 1
push esi
call eax
add esp, 0x10
add esi, eax
sub edi, eax
cmp eax, 0xfff
jne 0x1000b616
cmp edi, eax
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
ja 0x1000b5e0
test edi, edi
je 0x1000b616
push dword [ebx + 0x4c]
push edi
push 1
push esi
call eax
add esp, 0x10
sub edi, eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
sub eax, edi
pop edi
pop esi
sbb edx, 0
pop ebx
mov esp, ebp
pop ebp
ret 0xc