joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405ff1
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x42c2c4], 0
jne 0x40602f
xor ecx, ecx
push esi
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
movzx edx, dl
neg edx
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406005
mov dword [ecx*4 + 0x42c2c0], eax
inc ecx
cmp ecx, 0x100
jl 0x406000
pop esi
cmp dword [ebp + 0x10], 0
mov eax, dword [ebp + 8]
not eax
jbe 0x40605c
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
dec dword [ebp + 0x10]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x42c2c0]
inc ecx
cmp dword [ebp + 0x10], 0
ja 0x40603d
not eax
pop ebp
ret 0xc
Function at 0x404960
Capabilities:
Get common file path
Get disk information
Get hostname
Manipulate console buffer
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1d58
call fcn.0040ff50
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov edx, dword [0x45b0e8]
push ebx
mov ebx, dword [eax + 4]
mov eax, dword [0x45b0ec]
push esi
mov dword [ebp - 0x18], eax
push edi
lea eax, [ebp - 0xc]
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x1c], edx
call fcn.00404950
mov edi, dword [ebp - 0xc]
mov ecx, dword [0x45b0f0]
mov edx, dword [0x45b0f4]
add edi, 0x23f
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x10], 0x20
lea ecx, [ecx]
mov dword [ebp - 0xc], 2
add dword [ebp - 0xc], 3
mov esi, dword [ebp - 8]
mov eax, dword [0x462874]
shl esi, 4
add esi, dword [ebp - 0x24]
cmp eax, 0xfa9
jne 0x4049ec
mov dword [0x462870], 0xedeb2e40
jmp 0x404a07
cmp eax, 0x3eb
jne 0x404a07
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov dword [0x462300], 0
mov eax, dword [ebp - 8]
lea ecx, [edi + eax]
mov eax, dword [ebp - 8]
shr eax, 5
mov dword [ebp - 4], eax
mov edx, dword [ebp - 0x20]
add dword [ebp - 4], edx
xor esi, ecx
cmp dword [0x462874], 0x9e6
mov dword [0x46286c], 0xf4ea3dee
jne 0x404a40
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCommConfig]
xor dword [ebp - 4], esi
cmp dword [0x462874], 0x213
jne 0x404ae2
push 0
lea eax, [ebp - 0x958]
push eax
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrencyFormatW]
lea ecx, [ebp - 0x1558]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
lea edx, [ebp - 0x2c]
push edx
lea eax, [ebp - 0x1158]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
push 0
call dword [sym.imp.KERNEL32.dll_ClearCommBreak]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumTimeFormatsA]
push 0
push 0
lea ecx, [ebp - 0x1d58]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
push 0
call dword [sym.imp.KERNEL32.dll_IsBadCodePtr]
lea edx, [ebp - 0x30]
push edx
push 0
lea eax, [ebp - 0x44]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputA]
lea ecx, [ebp - 0x158]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
lea edx, [ebp - 0x28]
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
sub ebx, dword [ebp - 4]
cmp dword [0x462874], 0xc
jne 0x404b00
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetVolumeMountPointA]
push 0
call dword [sym.imp.KERNEL32.dll_GlobalUnWire]
mov eax, ebx
shr eax, 5
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x18]
add dword [ebp - 4], eax
mov ecx, ebx
shl ecx, 4
add ecx, dword [ebp - 0x1c]
lea edx, [edi + ebx]
xor ecx, edx
xor ecx, dword [ebp - 4]
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp - 0x14]
sub dword [ebp - 8], eax
add edi, 0x61c88647
sub dword [ebp - 0x10], 1
jne 0x4049c0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 8]
pop edi
pop esi
mov dword [eax + 4], ebx
mov dword [eax], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x404b50
Capabilities:
Connect pipe
Create process on windows
Create reverse shell
Read pipe
Set environment variable
Set thread local storage value
Write pipe

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1408
call fcn.0040ff50
mov eax, dword [0x462874]
mov ecx, dword [0x462304]
shr eax, 3
test eax, eax
jbe 0x404c68
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetNumberFormatA]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetTimeFormatA]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov dword [ebp - 4], ecx
mov dword [ebp - 8], eax
mov edi, edi
cmp dword [0x462874], 0x959
jne 0x404c4e
push 0
lea eax, [ebp - 0x408]
push eax
push 0
push 0
push 0
push 0
call ebx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateJobObjectW]
push 0
lea ecx, [ebp - 0xc08]
push ecx
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasExesA]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CallNamedPipeW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetFileShortNameW]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
push 0
push 0
push 0
push 0
push 0
push 0
call esi
push 0
push 0
push 0
call edi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
lea edx, [ebp - 0x808]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
push 0
push 0
push 0
push 0
push 0
push 0
call esi
push 0
lea eax, [ebp - 0x1408]
push eax
push 0
call edi
mov ecx, dword [ebp - 4]
push ecx
call fcn.00404960
add dword [ebp - 4], 8
sub dword [ebp - 8], 1
jne 0x404b90
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4065e0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x45a0e8]
jne 0x4065ea
repz ret
jmp fcn.0040a71e

Function at 0x40a349
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.004096d6
and dword [ebp - 4], 0
cmp dword [0x4602b4], 0
mov ebx, eax
jne 0x40a3fa
push 0x402458
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40a4ab
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x40244c
push edi
call esi
test eax, eax
je 0x40a4ab
push eax
call fcn.00409664
mov dword [esp], 0x40243c
push edi
mov dword [0x4602b4], eax
call esi
push eax
call fcn.00409664
mov dword [esp], 0x402428
push edi
mov dword [0x4602b8], eax
call esi
push eax
call fcn.00409664
mov dword [esp], 0x40240c
push edi
mov dword [0x4602bc], eax
call esi
push eax
call fcn.00409664
pop ecx
mov dword [0x4602c4], eax
test eax, eax
je 0x40a3fa
push 0x4023f4
push edi
call esi
push eax
call fcn.00409664
pop ecx
mov dword [0x4602c0], eax
mov eax, dword [0x4602c0]
cmp eax, ebx
je 0x40a452
cmp dword [0x4602c4], ebx
je 0x40a452
push eax
call fcn.004096df
push dword [0x4602c4]
mov esi, eax
call fcn.004096df
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40a452
test edi, edi
je 0x40a452
call esi
test eax, eax
je 0x40a449
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40a449
test byte [ebp - 0xc], 1
jne 0x40a452
or dword [ebp + 0x10], 0x200000
jmp 0x40a48b
mov eax, dword [0x4602b8]
cmp eax, ebx
je 0x40a48b
push eax
call fcn.004096df
pop ecx
test eax, eax
je 0x40a48b
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40a48b
mov eax, dword [0x4602bc]
cmp eax, ebx
je 0x40a48b
push eax
call fcn.004096df
pop ecx
test eax, eax
je 0x40a48b
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4602b4]
call fcn.004096df
pop ecx
test eax, eax
je 0x40a4ab
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40a4ad
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x413d00
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4397e0]
jne 0x413d0a
repz ret
jmp fcn.0041bba0
Function at 0x421f50
Capabilities:
Get common file path
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa34
cmp dword [0x470a6c], 0x37
jne 0x421fe0
lea eax, [ebp - 0x40c]
push eax
lea ecx, [ebp - 0x810]
push ecx
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
push str.Fohiyufopec_linuxejasoga_gevunenen_bugorilehosin
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push 0
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea edx, [ebp - 0xa30]
push edx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCPInfoExW]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push str.colakafi_jovivekosorodirotufimipa_rimipepimapokofo_nudecudicococawocebamenih_hefihejoho
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreW]
push 0
lea eax, [ebp - 0x408]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0
push str.sebitihibelucacufoperoyipoxipehucilonipuromosuvojarusavarukuvucimaxegotobefucahufehesapolokijikixuzegow
push 0
push str.lituvosefoteheb
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CompareStringW]
mov dword [ebp - 4], 0
mov eax, dword [0x471168]
add dword [ebp - 4], eax
mov eax, 0x12336
add dword [ebp - 4], eax
mov ecx, dword [0x45cf9c]
add ecx, dword [ebp + 8]
mov edx, dword [ebp - 4]
add edx, dword [ebp + 8]
mov al, byte [edx]
mov byte [ecx], al
mov esp, ebp
pop ebp
ret 4
Function at 0x422580
Capabilities:
Delete file
Get disk information
Manipulate console buffer
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1458
call fcn.00415ee0
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [0x470a6c], 0x516
jne 0x422631
push 0
push 0
call sub.KERNEL32.dll_Process32NextW
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll__hread]
push 0
push 0
call dword [sym.imp.KERNEL32.dll__lopen]
push 0
lea ecx, [ebp - 0xc50]
push ecx
push 0
call sub.KERNEL32.dll_VerLanguageNameA
mov dword [ebp - 0x84c], 0
push 0x30
push 0
lea edx, [ebp - 0x848]
push edx
call fcn.00404e60
add esp, 0xc
lea eax, [ebp - 0x84c]
push eax
push 0
push str.wufofecupopogofipupokenevebicocirumixewubihocoreyadesekukimegesarimuwunidezesupunezafetebageraku
call dword [sym.imp.KERNEL32.dll_CommConfigDialogW]
xor ecx, ecx
mov word [ebp - 0xc54], cx
xor edx, edx
mov word [ebp - 0xc52], dx
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0xc54]
push ecx
push 0
lea edx, [ebp - 0x818]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_ReadConsoleOutputCharacterW]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
shr ecx, 3
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], 0
jmp 0x422652
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0xc]
jae 0x4226be
cmp dword [0x470a6c], 0x29
jne 0x42266e
push str.mebaricusuhe
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
shl edx, 1
mov dword [ebp - 0x10], edx
cmp dword [0x470a6c], 0x1c
jne 0x4226a9
push 0
lea eax, [ebp - 0x1458]
push eax
push str.gekupamasusa_tozidehiyuyafahepahuxocarebayay
call dword [sym.imp.KERNEL32.dll_GetVolumeNameForVolumeMountPointW]
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
lea ecx, [eax + edx*4]
push ecx
call fcn.004222b0
jmp 0x422649
mov esp, ebp
pop ebp
ret 0xc
Function at 0x633d4682
Capabilities:
Write file on windows

Disassembly:
push ebx
push ebp
push esi
push edi
push dword [esp + 0x14]
push dword [0x633f84f8]
push 0xc
push 0x633f3ea8
call dword [sym.imp.MSVCR90.dll_fwrite]
mov esi, dword [sym.imp.MSVCR90.dll_fprintf]
xor edi, edi
add esp, 0x10
mov ebp, eax
cmp dword [0x63405158], edi
je 0x633d46c1
push str.Addr_Optable___true:GO__false:GO_n
push dword [0x6340514c]
call esi
pop ecx
pop ecx
xor ebx, ebx
cmp dword [0x633f84f8], edi
jle 0x633d4772
cmp dword [0x63405158], 0
je 0x633d4762
push edi
push 0x633e4b1c
push dword [0x6340514c]
call esi
add esp, 0xc
cmp dword [0x63405158], 0
je 0x633d4762
push dword [edi + 0x633f3ea8]
push str.OP__8X
push dword [0x6340514c]
call esi
add esp, 0xc
cmp dword [0x63405158], 0
je 0x633d4762
push dword [edi + 0x633f3eac]
push str.__8X_
push dword [0x6340514c]
call esi
add esp, 0xc
cmp dword [0x63405158], 0
je 0x633d4762
push dword [edi + 0x633f3eb0]
push 0x633e4b04
push dword [0x6340514c]
call esi
add esp, 0xc
cmp dword [0x63405158], 0
je 0x633d4762
push 0x633e4b00
push dword [0x6340514c]
call esi
pop ecx
pop ecx
inc ebx
add edi, 0xc
cmp ebx, dword [0x633f84f8]
jl 0x633d46cf
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
ret

Function at 0x633d4dc1
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x633efba0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov cl, byte [eax]
mov dl, byte [eax + 0xa]
and cl, 7
shl cl, 4
add cl, byte [eax + 1]
push esi
mov esi, dword [ebp + 8]
mov byte [ebp - 0x10], cl
mov cl, byte [eax + 4]
mov byte [ebp - 0xf], cl
mov cl, byte [eax + 8]
mov byte [ebp - 0xe], cl
mov cl, byte [eax + 6]
dec cl
shl cl, 4
and dl, 7
add cl, dl
mov byte [ebp - 0xd], cl
mov cx, word [eax + 0xc]
mov ax, word [eax + 0xe]
push esi
push 8
mov word [ebp - 0xa], ax
lea eax, [ebp - 0x10]
push 1
push eax
mov word [ebp - 0xc], cx
call dword [sym.imp.MSVCR90.dll_fwrite]
add esp, 0x10
cmp dword [0x63405158], 0
pop esi
je 0x633d4e63
movzx eax, word [ebp - 0xa]
push eax
movzx eax, word [ebp - 0xc]
push eax
movzx eax, byte [ebp - 0xd]
push eax
movzx eax, byte [ebp - 0xe]
push eax
movzx eax, byte [ebp - 0xf]
push eax
movzx eax, byte [ebp - 0x10]
push eax
push str.__02X___02X__02X__02X___04X__04X
push dword [0x63405150]
call dword [sym.imp.MSVCR90.dll_fprintf]
add esp, 0x20
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.633e1b5a
leave
ret
Function at 0x633d4f50
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x633efba0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
push esi
mov esi, dword [ebp + 8]
cmp dword [0x63405158], ebx
je 0x633d4f82
push str.access_type__INDIRECT_READ_LINK_n
push dword [0x63405150]
call dword [sym.imp.MSVCR90.dll_fprintf]
pop ecx
pop ecx
mov eax, dword [0x63402234]
push esi
push 0x10
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x14]
push 1
push eax
mov byte [ebp - 0x12], 0x69
mov byte [ebp - 0x14], 0x69
mov byte [ebp - 0x11], 0x72
mov byte [ebp - 0x13], 0x72
mov byte [ebp - 5], bl
mov byte [ebp - 6], bl
mov byte [ebp - 7], bl
mov byte [ebp - 8], bl
mov byte [ebp - 9], bl
mov byte [ebp - 0xa], bl
mov byte [ebp - 0xb], bl
mov byte [ebp - 0xc], bl
call dword [sym.imp.MSVCR90.dll_fwrite]
push dword [0x63402234]
push dword [0x6340222c]
push esi
call fcn.633d4e6f
push 0x6340222c
call fcn.633d4f36
mov ecx, dword [ebp - 4]
add esp, 0x20
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.633e1b5a
leave
ret

Function at 0x633d4ff0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x633efba0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
push esi
mov esi, dword [ebp + 8]
cmp dword [0x63405158], ebx
je 0x633d5022
push str.access_type__INDIRECT_WRITE_LINK_n
push dword [0x63405150]
call dword [sym.imp.MSVCR90.dll_fprintf]
pop ecx
pop ecx
mov eax, dword [0x63402240]
push esi
push 0x10
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x14]
push 1
push eax
mov byte [ebp - 0x12], 0x69
mov byte [ebp - 0x14], 0x69
mov byte [ebp - 0x11], 0x77
mov byte [ebp - 0x13], 0x77
mov byte [ebp - 5], bl
mov byte [ebp - 6], bl
mov byte [ebp - 7], bl
mov byte [ebp - 8], bl
mov byte [ebp - 9], bl
mov byte [ebp - 0xa], bl
mov byte [ebp - 0xb], bl
mov byte [ebp - 0xc], bl
call dword [sym.imp.MSVCR90.dll_fwrite]
push dword [0x63402240]
push dword [0x63402238]
push esi
call fcn.633d4e6f
push 0x63402238
call fcn.633d4f36
mov ecx, dword [ebp - 4]
add esp, 0x20
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.633e1b5a
leave
ret

Function at 0x633d79ea
Capabilities:
Terminate process

Disassembly:
push dword [esp + 4]
push 0x633e7074
call dword [sym.imp.MSVCR90.dll___iob_func]
add eax, 0x40
push eax
call dword [sym.imp.MSVCR90.dll_fprintf]
add esp, 0xc
push 2
call dword [sym.imp.MSVCR90.dll_exit]
int3
Function at 0x633dab8a
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x633efba0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
mov cl, byte [eax]
and dword [ebp - 0x14], 0
push ebx
movzx ebx, word [eax + 2]
mov byte [ebp - 0x10], cl
mov cl, byte [eax + 4]
push esi
mov esi, dword [ebp + 8]
push edi
mov byte [ebp - 0xf], cl
mov cl, byte [ebp + 0x14]
xor edi, edi
shl cl, 4
inc edi
mov byte [ebp - 0xe], cl
cmp dword [ebp + 0x14], edi
je 0x633dabcd
cmp dword [ebp + 0x14], 2
jne 0x633dabd6
mov cl, byte [eax + 0x18]
and cl, 0xf
or byte [ebp - 0xe], cl
mov cl, byte [eax + 6]
and cl, 7
mov dl, bl
dec dl
shl dl, 4
add cl, dl
cmp dword [ebp + 0x18], 0x72
mov byte [ebp - 0xd], cl
mov cx, word [eax + 0xc]
mov word [ebp - 0xc], cx
mov cx, word [eax + 8]
mov word [ebp - 0xa], cx
mov cx, word [eax + 0x10]
mov word [ebp - 8], cx
mov cx, word [eax + 0x14]
mov word [ebp - 6], cx
jne 0x633dac20
cmp dword [eax + 0x10], 0
jg 0x633dace8
xor eax, eax
mov word [ebp - 8], ax
jmp 0x633dac2a
cmp dword [eax + 0x10], 0
jle 0x633dace8
push esi
push 0xc
lea eax, [ebp - 0x10]
push edi
push eax
mov dword [ebp - 0x14], edi
call dword [sym.imp.MSVCR90.dll_fwrite]
mov esi, dword [sym.imp.MSVCR90.dll_fprintf]
add esp, 0x10
cmp dword [0x63405158], 0
je 0x633dac88
movzx eax, word [ebp - 6]
push eax
movzx eax, word [ebp - 8]
push eax
movzx eax, word [ebp - 0xa]
push eax
movzx eax, word [ebp - 0xc]
push eax
movzx eax, byte [ebp - 0xd]
push eax
movzx eax, byte [ebp - 0xe]
push eax
movzx eax, byte [ebp - 0xf]
push eax
movzx eax, byte [ebp - 0x10]
push eax
push dword [ebp + 0xc]
push str.__4d___02X__02X__02X__02X___04X__04X___3d__04X
push dword [0x63405150]
call esi
add esp, 0x2c
call fcn.633d48c8
test eax, eax
je 0x633dacd0
cmp dword [0x63405158], 0
je 0x633dacb2
movzx eax, word [ebp - 6]
shl eax, 2
push eax
push str.__6X_
push dword [0x63405150]
call esi
add esp, 0xc
cmp ebx, edi
je 0x633dacd0
cmp dword [0x63405158], 0
je 0x633dace8
push ebx
push str.__ch:_d_
push dword [0x63405150]
call esi
add esp, 0xc
cmp dword [0x63405158], 0
je 0x633dace8
push 0x633e4b00
push dword [0x63405150]
call esi
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x14]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.633e1b5a
leave
ret
Function at 0x633dad82
Capabilities:
Write file on windows

Disassembly:
sub esp, 0xc
push ebx
push esi
push edi
mov edi, 0x633f85b8
mov dword [esp + 0xc], edi
call fcn.633d4a3e
mov ebx, eax
mov eax, dword [0x633f85b8]
xor esi, esi
mov dword [esp + 0x10], ebx
cmp eax, esi
jne 0x633dadaa
xor eax, eax
inc eax
push dword [esp + 0x1c]
mov dword [0x633f85b8], eax
push ebx
push 1
push edi
call dword [sym.imp.MSVCR90.dll_fwrite]
mov edi, dword [sym.imp.MSVCR90.dll_fprintf]
add esp, 0x10
mov dword [esp + 0x14], eax
cmp dword [0x63405158], esi
je 0x633dade1
push str._Optable_Dump__n
push dword [0x63405150]
call edi
pop ecx
pop ecx
cmp ebx, esi
jle 0x633dafa9
push ebp
mov eax, dword [esp + 0x10]
mov ebx, dword [eax]
xor ebp, ebp
cmp ebx, ebp
jne 0x633dadf9
xor ebx, ebx
inc ebx
cmp dword [0x63405158], ebp
je 0x633dae33
movzx eax, byte [esi + 0x633f85bb]
push ebx
push eax
movzx eax, byte [esi + 0x633f85ba]
push eax
movzx eax, byte [esi + 0x633f85b9]
push eax
movzx eax, byte [esi + 0x633f85b8]
push eax
push esi
push str.__4X___02X__02X__02X__02X___d_element
push dword [0x63405150]
call edi
add esp, 0x20
cmp ebx, 1
jle 0x633dae4f
cmp dword [0x63405158], ebp
je 0x633dae66
push 0x633e4e4c
push dword [0x63405150]
call edi
pop ecx
pop ecx
cmp dword [0x63405158], ebp
je 0x633dae66
push 0x633e4b00
push dword [0x63405150]
call edi
pop ecx
pop ecx
push 4
pop ebp
add dword [esp + 0x10], ebp
add esi, ebp
test ebx, ebx
je 0x633daf9e
mov eax, dword [esp + 0x10]
lea eax, [eax + ebx*8]
sub ebp, 0x633f85b9
mov dword [esp + 0x10], eax
dec ebx
cmp dword [0x63405158], 0
je 0x633daedb
push esi
push str.__4X_
push dword [0x63405150]
call edi
add esp, 0xc
cmp dword [0x63405158], 0
je 0x633daedb
lea eax, [esi + 0x633f85ba]
movzx ecx, byte [eax + 1]
movzx eax, byte [eax]
push ecx
push eax
movzx eax, byte [esi + 0x633f85b9]
push eax
movzx eax, byte [esi + 0x633f85b8]
push eax
push str._02X__02X__02X__02X
push dword [0x63405150]
call edi
add esp, 0x18
mov al, byte [esi + 0x633f85b9]
test al, al
je 0x633daf10
cmp dword [0x63405158], 0
je 0x633daf93
movzx ecx, byte [esi + 0x633f85b8]
push ecx
movzx eax, al
push eax
push str.___c_c
push dword [0x63405150]
call edi
add esp, 0x10
jmp 0x633daf31
cmp dword [0x63405158], 0
je 0x633daf93
movzx eax, byte [esi + 0x633f85b8]
push eax
push 0x633e7410
push dword [0x63405150]
call edi
add esp, 0xc
cmp dword [0x63405158], 0
je 0x633daf93
lea eax, [esi + ebp + 0x633f85b9]
cdq
and edx, 3
add eax, edx
sar eax, 2
push eax
movzx eax, byte [esi + 0x633f85bf]
push eax
movzx eax, byte [esi + 0x633f85be]
push eax
movzx eax, byte [esi + 0x633f85bd]
push eax
movzx eax, byte [esi + 0x633f85bc]
push eax
push str.__02X__02X__02X__02X___04X_
push dword [0x63405150]
call edi
add esp, 0x1c
cmp dword [0x63405158], 0
je 0x633daf93
push 0x633e4b00
push dword [0x63405150]
call edi
pop ecx
pop ecx
add esi, 8
test ebx, ebx
jne 0x633dae88
cmp esi, dword [esp + 0x14]
jl 0x633dadea
pop ebp
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebx
add esp, 0xc
ret
Function at 0x633e1b5a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x633efba0]
jne 0x633e1b64
repz ret
jmp fcn.633e223b
Function at 0x401f09
Capabilities:
Delete file
Set file attributes

Disassembly:
push 0x20
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
ret

Function at 0x401f20
Capabilities:
Accept command line arguments

Disassembly:
push esi
push edi
push 0x1f4
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
push edi
call sub.MSVCRT.dll_strcpy
cmp byte [edi], 0x22
pop ecx
pop ecx
jne 0x401f44
inc edi
xor eax, eax
cmp byte [eax + edi], 0x22
jne 0x401f50
and byte [eax + edi], 0
inc eax
cmp eax, 0x1f3
jl 0x401f46
push edi
xor esi, esi
call sub.MSVCRT.dll_strlen
sub eax, 4
pop ecx
test eax, eax
jle 0x401fe4
mov cl, byte [esi + edi]
cmp cl, 0x2e
jne 0x401fd5
mov al, byte [esi + edi + 1]
cmp al, 0x65
je 0x401f7c
cmp al, 0x45
jne 0x401fa0
mov al, byte [esi + edi + 2]
cmp al, 0x78
je 0x401f88
cmp al, 0x58
jne 0x401fa0
mov al, byte [esi + edi + 3]
cmp al, 0x65
je 0x401f94
cmp al, 0x45
jne 0x401fa0
mov al, byte [esi + edi + 4]
cmp al, 0x20
je 0x401fe4
test al, al
je 0x401fe4
cmp cl, 0x2e
jne 0x401fd5
mov al, byte [esi + edi + 1]
cmp al, 0x73
je 0x401fb1
cmp al, 0x53
jne 0x401fd5
mov al, byte [esi + edi + 2]
cmp al, 0x63
je 0x401fbd
cmp al, 0x43
jne 0x401fd5
mov al, byte [esi + edi + 3]
cmp al, 0x72
je 0x401fc9
cmp al, 0x52
jne 0x401fd5
mov al, byte [esi + edi + 4]
cmp al, 0x20
je 0x401fe4
test al, al
je 0x401fe4
push edi
inc esi
call sub.MSVCRT.dll_strlen
sub eax, 4
pop ecx
cmp esi, eax
jl 0x401f68
push edi
call sub.MSVCRT.dll_strlen
sub eax, 4
pop ecx
cmp esi, eax
jl 0x40200b
push edi
push dword [esp + 0x10]
call sub.MSVCRT.dll_strcpy
push edi
push dword [esp + 0x1c]
call sub.MSVCRT.dll_strcpy
add esp, 0x10
jmp 0x402042
push ebx
mov ebx, dword [esp + 0x10]
push edi
push ebx
call sub.MSVCRT.dll_strcpy
add esi, 3
pop ecx
pop ecx
lea eax, [esi + ebx]
mov byte [eax + 1], 0
js 0x402035
mov edx, edi
lea ecx, [esi + 1]
sub edx, ebx
mov bl, byte [edx + eax]
mov byte [eax], bl
dec eax
dec ecx
jne 0x40202c
push edi
push dword [esp + 0x18]
call sub.MSVCRT.dll_strcpy
pop ecx
pop ecx
pop ebx
dec edi
push edi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
pop edi
pop esi
ret