joyce8/EMBER2024-capa huggingface dataset:
Function at 0x411250
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push edi
mov edi, ecx
mov ecx, dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp byte [edi], 0
je 0x411284
cmp byte [edi + 1], 0
je 0x41127d
push 2
push 0
push 0
push dword [edi + 4]
call ecx
mov ecx, dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x41128a
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 0x14]
mov dword [edi + 0x18], eax
cmp byte [edi], 0
push ebx
je 0x4112af
cmp byte [edi + 1], 0
je 0x4112a8
push 1
push 0
push 0
push dword [edi + 4]
call ecx
mov ebx, eax
sub ebx, dword [edi + 0xc]
jmp 0x4112b2
xor ebx, ebx
mov dword [ebp - 8], ebx
jmp 0x4112c1
mov ebx, dword [edi + 0x18]
mov eax, 0xffff
mov dword [ebp - 8], ebx
mov dword [ebp - 4], eax
cmp ebx, eax
jae 0x4112c4
mov dword [ebp - 4], ebx
push esi
push 0x404
call fcn.00412a36
mov esi, eax
add esp, 4
test esi, esi
jne 0x4112df
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 4
mov dword [ebp - 0x10], 0
cmp ecx, eax
jbe 0x4113df
add eax, 0x400
cmp eax, ecx
mov edx, eax
mov eax, 0x404
cmova edx, ecx
mov ecx, ebx
sub ecx, edx
mov dword [ebp - 0x1c], edx
sub ebx, ecx
mov dword [ebp - 0x18], ecx
cmp ebx, 0x404
cmova ebx, eax
cmp byte [edi], 0
je 0x411340
cmp byte [edi + 1], 0
je 0x4113df
mov eax, dword [edi + 0xc]
push 0
push 0
add eax, ecx
push eax
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x411343
mov dword [edi + 0x18], ecx
cmp byte [edi], 0
mov ecx, ebx
mov dword [ebp - 0xc], ebx
je 0x41136b
push 0
lea eax, [ebp - 0x14]
push eax
push ebx
push esi
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x411366
mov byte [edi + 8], 1
mov eax, dword [ebp - 0x14]
jmp 0x411394
mov edx, dword [edi + 0x18]
lea eax, [edx + ebx]
cmp eax, dword [edi + 0x14]
jbe 0x41137e
mov ecx, dword [edi + 0x14]
sub ecx, edx
mov dword [ebp - 0xc], ecx
push ecx
mov ecx, dword [edi + 0x10]
add ecx, edx
push ecx
push esi
call fcn.004171d0
mov eax, dword [ebp - 0xc]
add esp, 0xc
add dword [edi + 0x18], eax
xor edx, edx
div ebx
cmp eax, 1
jne 0x4113df
lea eax, [ebx - 3]
test eax, eax
jle 0x4113ce
dec eax
cmp byte [eax + esi], 0x50
jne 0x4113c0
cmp byte [eax + esi + 1], 0x4b
jne 0x4113c0
cmp byte [eax + esi + 2], 5
jne 0x4113c0
cmp byte [eax + esi + 3], 6
je 0x4113c6
test eax, eax
jg 0x4113a4
jmp 0x4113ce
add eax, dword [ebp - 0x18]
mov dword [ebp - 0x10], eax
jne 0x4113df
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 4]
mov ebx, dword [ebp - 8]
cmp eax, ecx
jb 0x4112f6
push esi
call fcn.00412ac8
mov eax, dword [ebp - 0x10]
add esp, 4
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x4120c0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
push edi
cmp dword [esi], 0
jne 0x412149
cmp dword [esi + 4], 0xffffffff
jne 0x412149
lea edi, [esi + 0x138]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
add edi, 0xfffffffe
jmp 0x4120f0
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x4120f0
mov eax, dword [0x4344d8]
push 0x1c
mov dword [edi], eax
mov dword [ebp - 4], 0
call fcn.00413312
mov ecx, dword [ebp + 8]
add esp, 4
mov dword [eax + 0x10], ecx
mov ecx, dword [ebp + 0xc]
mov dword [eax + 0x14], ecx
mov ecx, eax
mov word [eax], pe_nt_image_headers32
mov dword [eax + 0x18], 0
mov dword [eax + 0xc], 0
call fcn.00411400
mov dword [esi], eax
mov eax, dword [0x48b20c]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
pop edi
mov eax, 0x1000000
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x41f478
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [section..data]
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.00416ccc
mov dword [ebp - 0x14], eax
cmp dword [0x48aa04], esi
jne 0x41f56b
push 0x800
push esi
push 0x42da24
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x41f4f8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x41f64b
push esi
push esi
push 0x42da24
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x41f64b
push 0x42da3c
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x41f64b
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x48aa04], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x48aa08], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x48aa0c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x48aa14], eax
test eax, eax
je 0x41f568
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x48aa10], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x41f590
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x41f583
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x41f5a5
push 4
pop eax
jmp 0x41f64d
cmp dword [ebp - 0x14], esi
je 0x41f5a5
push dword [0x48aa04]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x41f58a
mov eax, dword [0x48aa10]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x41f603
cmp dword [0x48aa14], edi
je 0x41f603
push eax
call ebx
push dword [0x48aa14]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x41f603
test eax, eax
je 0x41f603
call ecx
test eax, eax
je 0x41f5f8
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 0x41f5f8
test byte [ebp - 8], 1
jne 0x41f603
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x41f633
mov eax, dword [0x48aa08]
cmp eax, edi
je 0x41f630
push eax
call ebx
test eax, eax
je 0x41f630
call eax
mov esi, eax
test esi, esi
je 0x41f630
mov eax, dword [0x48aa0c]
cmp eax, edi
je 0x41f630
push eax
call ebx
test eax, eax
je 0x41f630
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x48aa04]
call ebx
test eax, eax
je 0x41f64b
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x41f64d
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00412a27
mov esp, ebp
pop ebp
ret
Function at 0x4082e8
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
cmp dword [0x44d1fc], 0
mov ebp, esp
push edi
mov ecx, dword [ebp + 0xc]
push esi
push ebx
mov ebx, dword [ebp + 0x10]
jne 0x408329
xor edx, edx
mov eax, edx
mov esi, 8
mov edi, eax
and eax, 1
neg eax
shr edi, 1
and eax, 0xedb88320
xor eax, edi
dec esi
jne 0x408306
mov dword [edx*4 + 0x44d1f8], eax
inc edx
cmp edx, 0x100
jne 0x4082ff
mov eax, dword [ebp + 8]
not eax
jmp 0x408343
mov dl, byte [ecx]
dec ebx
inc ecx
xor edx, eax
movzx edx, dl
shr eax, 8
xor eax, dword [edx*4 + 0x44d1f8]
test ebx, ebx
jne 0x408330
pop ebx
not eax
pop esi
pop edi
pop ebp
ret 0xc

Function at 0x1001542
Capabilities:
Terminate process

Disassembly:
push 0x5c
push 0x1001cd0
call fcn.010016d4
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 4], 1
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x20], ebx
mov edi, 0x1003398
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x10012fd
cmp eax, esi
jne 0x10012f0
xor esi, esi
inc esi
mov dword [ebp - 0x20], esi
jmp 0x1001300
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x10012d7
xor esi, esi
inc esi
mov eax, dword [0x1003394]
cmp eax, esi
jne 0x1001313
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x1001342
mov eax, dword [0x1003394]
test eax, eax
jne 0x100133c
mov dword [0x1003394], esi
push 0x10010f4
push 0x10010e8
call fcn.01001239
pop ecx
pop ecx
test eax, eax
je 0x1001342
jmp 0x1001466
mov dword [0x100303c], esi
mov eax, dword [0x1003394]
cmp eax, esi
jne 0x1001366
push 0x10010e4
push 0x10010dc
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x1003394], 2
cmp dword [ebp - 0x20], ebx
jne 0x1001373
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x100339c], ebx
je 0x1001394
push 0x100339c
call fcn.01001649
pop ecx
test eax, eax
je 0x1001394
push ebx
push 2
push ebx
call dword [0x100339c]
mov eax, dword [sym.imp.msvcrt.dll__wcmdln]
cmp dword [eax], ebx
je 0x1001466
mov eax, dword [eax]
mov dword [ebp - 0x24], eax
movzx ecx, word [eax]
cmp cx, 0x20
ja 0x10013fe
cmp cx, bx
je 0x10013b9
cmp dword [ebp - 0x1c], ebx
jne 0x10013fe
movzx ecx, word [eax]
cmp cx, bx
je 0x10013ce
cmp cx, 0x20
ja 0x10013ce
inc eax
inc eax
mov dword [ebp - 0x24], eax
jmp 0x10013b9
test byte [ebp - 0x40], 1
je 0x10013da
movzx ecx, word [ebp - 0x3c]
jmp 0x10013dd
push 0xa
pop ecx
push ecx
push eax
push ebx
push 0x1000000
call main
mov dword [0x1003038], eax
cmp dword [0x100302c], ebx
jne 0x1001443
push eax
call dword [sym.imp.msvcrt.dll_exit]
cmp cx, 0x22
jne 0x100140f
xor ecx, ecx
cmp dword [ebp - 0x1c], ebx
sete cl
mov dword [ebp - 0x1c], ecx
inc eax
inc eax
jmp 0x10013a3
cmp dword [0x100303c], ebx
jne 0x1001451
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x1003038]
jmp 0x1001472
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.01001719
ret
call fcn.01001821
jmp 0x100129a
Function at 0x1001bdc
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
call fcn.01001beb
jmp fcn.01001b4b

Function at 0x583a6a
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
push 0x41e804
push ecx
call fcn.00585bf6
mov esi, eax
mov dword [esp + 0x20], esi
pop ecx
pop ecx
test esi, esi
je 0x583c0d
push 2
push 0
push esi
call fcn.005863d1
add esp, 0xc
test eax, eax
jne 0x583c0d
push esi
call fcn.005862d6
mov ebx, eax
pop ecx
test ebx, ebx
jle 0x583c0d
lea ecx, [ebx + 1]
push edi
push ecx
call fcn.0058512a
mov edi, eax
pop ecx
test edi, edi
jne 0x583ac6
push 0xa
jmp 0x583aea
push 0
push 0
push esi
call fcn.005863d1
add esp, 0xc
test eax, eax
jne 0x583ae8
push esi
push ebx
push 1
push edi
call fcn.00585e9a
add esp, 0x10
cmp eax, ebx
je 0x583af0
push 6
pop ebp
jmp 0x583c03
lea edx, [esp + 0x18]
mov byte [edi + ebx], 0
mov ecx, 0x41e81c
mov dword [esp + 0x18], edi
mov byte [esp + 0x13], 0
xor ebp, ebp
call fcn.005839b6
test eax, eax
je 0x583bfb
mov esi, dword [esp + 0x28]
mov cl, byte [eax]
cmp cl, 0x23
je 0x583be1
cmp cl, 0x3b
je 0x583be1
mov edx, eax
mov ecx, 0x41e820
call fcn.0058398e
mov ebx, eax
mov dword [esp + 0x14], ebx
mov al, byte [ebx]
test al, al
je 0x583be1
cmp al, 0x5b
jne 0x583b96
inc ebx
lea edx, [esp + 0x14]
mov ecx, 0x41e818
mov dword [esp + 0x14], ebx
call fcn.005839b6
test eax, eax
je 0x583b8f
lea edx, [esp + 0x14]
mov ecx, 0x41e820
call fcn.005839b6
test eax, eax
jne 0x583b8f
push 8
push 0x41e80c
push ebx
call fcn.0058fcef
add esp, 0xc
test eax, eax
sete byte [esp + 0x13]
jmp 0x583be1
mov byte [esp + 0x13], 0
jmp 0x583be1
cmp byte [esp + 0x13], 0
je 0x583be1
lea edx, [esp + 0x14]
mov ecx, 0x41e814
call fcn.005839b6
test eax, eax
je 0x583be1
mov edx, ebx
call fcn.00583a10
test eax, eax
js 0x583be1
cmp eax, 1
jae 0x583be1
imul ebx, eax, 0x258
push 0x257
push dword [esp + 0x18]
add ebx, esi
push ebx
call fcn.005851a1
add esp, 0xc
mov byte [ebx + 0x257], 0
inc ebp
lea edx, [esp + 0x18]
mov ecx, 0x41e81c
call fcn.005839b6
test eax, eax
jne 0x583b19
mov esi, dword [esp + 0x1c]
dec ebp
neg ebp
sbb ebp, ebp
and ebp, 5
push edi
call fcn.005850ff
pop ecx
pop edi
jmp 0x583c10
push 6
pop ebp
test esi, esi
je 0x583c1b
push esi
call fcn.005864c0
pop ecx
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0xcd10f0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0xcd501c
push 0xcd1229
push dword fs:[0]
mov dword fs:[0], esp
sub esp, 0x54
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push 0x2000000
call fcn.00cd1fe0
pop ecx
mov dword [0xcd6f10], eax
call fcn.00cd1440
test al, al
je 0xcd11fc
mov dword [ebp - 4], 0
call fcn.00cd1660
call fcn.00cd17f0
call fcn.00cd18e0
call fcn.00cd1c70
call fcn.00cd1d10
mov esi, 0xcd56f8
cmp esi, 0xcd56f8
jae 0xcd116d
call dword [esi]
add esi, 4
cmp esi, 0xcd56f8
jb 0xcd1160
mov dword [ebp - 0x38], 0
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.kernel32.dll_GetStartupInfoW]
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
mov esi, eax
call fcn.00cd1de0
movzx edx, word [ebp - 0x34]
mov ecx, 0xa
test dword [ebp - 0x38], 1
cmove edx, ecx
push edx
push eax
push 0
push esi
call section..text
mov esi, eax
mov edi, 0xcd56f8
cmp edi, 0xcd56f8
jae 0xcd11c6
call dword [edi]
add edi, 4
cmp edi, 0xcd56f8
jb 0xcd11b9
push esi
call fcn.00cd1e20
jmp 0xcd1204
push 0xfffffffffffffffe
call fcn.00cd1ef0
pop ecx
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
lea esp, [ebp - 0x70]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0xcd1c70
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push ebx
push esi
push edi
call dword [sym.imp.kernel32.dll_GetCommandLineW]
mov ebx, eax
cmp word [ebx], 0
jne 0xcd1ca4
push 0x104
lea eax, [ebp - 0x210]
push eax
push 0
call dword [sym.imp.kernel32.dll_GetModuleFileNameW]
lea ebx, [ebp - 0x210]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push 0
push 0
push ebx
call fcn.00cd1a80
add esp, 0x14
mov esi, dword [ebp - 4]
mov eax, dword [ebp - 8]
add eax, eax
lea eax, [eax + esi*4]
push eax
call fcn.00cd2de0
pop ecx
mov edi, eax
test edi, edi
je 0xcd1cf8
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [edi + esi*4]
push eax
push edi
push ebx
call fcn.00cd1a80
add esp, 0x14
mov eax, dword [ebp - 4]
dec eax
mov dword [0xcd6f14], eax
mov dword [0xcd6f18], edi
jmp 0xcd1d00
push 0xfffffffffffffffc
call fcn.00cd1ef0
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0xcd1d10
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
push ebx
push esi
push edi
call dword [sym.imp.kernel32.dll_GetEnvironmentStringsW]
mov dword [ebp - 4], eax
test eax, eax
je 0xcd1db6
mov eax, dword [ebp - 4]
xor edx, edx
cmp word [eax], 0
je 0xcd1d52
or ecx, 0xffffffff
inc ecx
cmp word [eax + ecx*2], 0
jne 0xcd1d38
inc ecx
cmp word [eax], 0x3d
je 0xcd1d49
add edx, ecx
lea eax, [eax + ecx*2]
cmp word [eax], 0
jne 0xcd1d35
add edx, edx
add edx, 2
push edx
call fcn.00cd2de0
pop ecx
mov dword [0xcd6f1c], eax
test eax, eax
je 0xcd1dc9
mov edx, eax
mov eax, dword [ebp - 4]
mov ebx, eax
cmp word [ebx], 0
je 0xcd1da6
or eax, 0xffffffff
inc eax
cmp word [ebx + eax*2], 0
jne 0xcd1d77
lea esi, [eax + 1]
cmp word [ebx], 0x3d
je 0xcd1d9d
xor ecx, ecx
mov ax, word [ebx + ecx]
mov word [edx + ecx], ax
add ecx, 2
test ax, ax
jne 0xcd1d8a
lea edx, [edx + esi*2]
lea ebx, [ebx + esi*2]
cmp word [ebx], 0
jne 0xcd1d74
mov word [edx], 0
push dword [ebp - 4]
call dword [sym.imp.kernel32.dll_FreeEnvironmentStringsW]
jmp 0xcd1dd1
push 2
push 1
call fcn.00cd2e40
add esp, 8
mov dword [0xcd6f1c], eax
jmp 0xcd1dd1
push 0xfffffffffffffffc
call fcn.00cd1ef0
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0xcd1de0
Capabilities:
Accept command line arguments

Disassembly:
call dword [sym.imp.kernel32.dll_GetCommandLineW]
cmp word [eax], 0x22
jne 0xcd1e08
add eax, 2
mov dx, word [eax]
cmp dx, 0x22
je 0xcd1dfd
test dx, dx
jne 0xcd1dec
cmp word [eax], 0x22
jne 0xcd1e13
add eax, 2
jmp 0xcd1e13
cmp word [eax], 0x20
jbe 0xcd1e13
add eax, 2
jmp 0xcd1e08
cmp word [eax], 0
je 0xcd1e1f
cmp word [eax], 0x20
jbe 0xcd1e03
ret
Function at 0xcd3610
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80c
push ebx
push esi
push edi
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
mov esi, edx
mov edx, dword [ebp + 0x10]
add edx, eax
mov dword [ebp - 0x808], edx
xor edi, edi
mov dword [ebp - 0x80c], 0
cmp esi, dword [ebp - 0x808]
jae 0xcd36e1
lea eax, [ebp - 0x804]
cmp byte [esi], 0xa
jne 0xcd365d
add dword [ebp - 0x80c], 1
mov byte [eax], 0xd
inc eax
inc eax
inc esi
mov dl, byte [esi - 1]
mov byte [eax - 1], dl
lea edx, [ebp - 5]
cmp eax, edx
jae 0xcd3674
cmp esi, dword [ebp - 0x808]
jb 0xcd364d
lea edx, [ebp - 0x804]
mov ebx, eax
sub ebx, edx
push dword [ebp + 0xc]
call fcn.00cd3e90
pop ecx
test al, al
je 0xcd36b6
push dword [ebp + 0xc]
call fcn.00cd3e20
pop ecx
push ebx
lea edx, [ebp - 0x804]
push edx
push eax
call fcn.00cd4010
add esp, 0xc
test al, al
je 0xcd36e5
add edi, ebx
inc esi
cmp esi, dword [ebp - 0x808]
jb 0xcd3647
jmp 0xcd36e1
push dword [ebp + 0xc]
call fcn.00cd3e20
pop ecx
push 0
lea edx, [ebp - 4]
push edx
push ebx
lea edx, [ebp - 0x804]
push edx
push eax
call dword [sym.imp.kernel32.dll_WriteFile]
test eax, eax
je 0xcd36ec
mov eax, dword [ebp - 4]
add edi, eax
cmp eax, ebx
jae 0xcd36ab
xor esi, esi
jmp 0xcd36f4
mov esi, 0x1d
jmp 0xcd36f4
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
mov eax, dword [ebp + 8]
mov dword [eax], edi
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x80c]
mov dword [eax + 4], edx
mov eax, dword [ebp + 8]
mov dword [eax + 8], esi
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0xcd3720
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x810
push ebx
push esi
push edi
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
mov esi, edx
mov edx, dword [ebp + 0x10]
add edx, eax
mov dword [ebp - 0x80c], edx
mov dword [ebp - 0x808], 0
xor edi, edi
cmp esi, dword [ebp - 0x80c]
jae 0xcd37e7
lea eax, [ebp - 0x804]
cmp word [esi], 0xa
jne 0xcd376e
add edi, 2
mov word [eax], 0xd
add eax, 2
add eax, 2
add esi, 2
mov dx, word [esi - 2]
mov word [eax - 2], dx
lea edx, [ebp - 6]
cmp eax, edx
jae 0xcd378b
cmp esi, dword [ebp - 0x80c]
jb 0xcd375d
lea edx, [ebp - 0x804]
mov ebx, eax
sub ebx, edx
push dword [ebp + 0xc]
call fcn.00cd3e90
pop ecx
test al, al
je 0xcd3801
push dword [ebp + 0xc]
call fcn.00cd3e20
pop ecx
push 0
lea edx, [ebp - 4]
push edx
mov edx, ebx
shr edx, 1
push edx
lea edx, [ebp - 0x804]
push edx
push eax
call dword [sym.imp.kernel32.dll_WriteConsoleW]
test eax, eax
je 0xcd37f3
shl dword [ebp - 4], 1
mov eax, dword [ebp - 4]
add dword [ebp - 0x808], eax
cmp eax, ebx
jb 0xcd37e7
add esi, 2
cmp esi, dword [ebp - 0x80c]
jb 0xcd3757
mov dword [ebp - 0x810], 0
jmp 0xcd382f
call dword [sym.imp.kernel32.dll_GetLastError]
mov dword [ebp - 0x810], eax
jmp 0xcd382f
push dword [ebp + 0xc]
call fcn.00cd3e20
pop ecx
push 0
lea edx, [ebp - 4]
push edx
push ebx
lea edx, [ebp - 0x804]
push edx
push eax
call dword [sym.imp.kernel32.dll_WriteFile]
test eax, eax
jne 0xcd37cb
call dword [sym.imp.kernel32.dll_GetLastError]
mov dword [ebp - 0x810], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x808]
mov dword [eax], edx
mov eax, dword [ebp + 8]
mov dword [eax + 4], edi
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x810]
mov dword [eax + 8], edx
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0xcd3860
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc10
push ebx
push esi
push edi
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
mov ebx, edx
mov edx, dword [ebp + 0x10]
add edx, eax
mov dword [ebp - 0xc0c], edx
mov dword [ebp - 0xc08], 0
cmp ebx, dword [ebp - 0xc0c]
jae 0xcd3912
lea eax, [ebp - 0x404]
cmp word [ebx], 0xa
jne 0xcd38a9
mov word [eax], 0xd
add eax, 2
add eax, 2
add ebx, 2
mov dx, word [ebx - 2]
mov word [eax - 2], dx
lea edx, [ebp - 6]
cmp eax, edx
jae 0xcd38c6
cmp ebx, dword [ebp - 0xc0c]
jb 0xcd389b
push 0
push 0
push 0x800
lea edx, [ebp - 0xc04]
push edx
lea edx, [ebp - 0x404]
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x404]
push eax
push 0
push 0xfde9
call dword [sym.imp.kernel32.dll_WideCharToMultiByte]
test eax, eax
je 0xcd391e
lea esi, [ebp + eax - 0xc04]
lea eax, [ebp - 0xc04]
cmp esi, eax
jbe 0xcd3977
lea edi, [ebp - 0xc04]
jmp 0xcd3950
mov dword [ebp - 0xc10], 0
jmp 0xcd392a
call dword [sym.imp.kernel32.dll_GetLastError]
mov dword [ebp - 0xc10], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0xc08]
mov dword [eax], edx
mov eax, dword [ebp + 8]
mov dword [eax + 4], 0
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0xc10]
mov dword [eax + 8], edx
mov eax, dword [ebp + 8]
jmp 0xcd39ba
push dword [ebp + 0xc]
call fcn.00cd3e20
pop ecx
push 0
lea edx, [ebp - 4]
push edx
mov edx, esi
sub edx, edi
push edx
push edi
push eax
call dword [sym.imp.kernel32.dll_WriteFile]
test eax, eax
je 0xcd3996
add edi, dword [ebp - 4]
cmp edi, esi
jb 0xcd3950
mov eax, ebx
sub eax, dword [ebp + 0x10]
mov dword [ebp - 0xc08], eax
add ebx, 2
cmp ebx, dword [ebp - 0xc0c]
jb 0xcd3895
jmp 0xcd3912
call dword [sym.imp.kernel32.dll_GetLastError]
mov edx, dword [ebp + 8]
mov ecx, dword [ebp - 0xc08]
mov dword [edx], ecx
mov edx, dword [ebp + 8]
mov dword [edx + 4], 0
mov edx, dword [ebp + 8]
mov dword [edx + 8], eax
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x403970
Capabilities:
Get common file path
Get disk information

Disassembly:
sub esp, 0x800
push ebx
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetCaretBlinkTime]
xor esi, esi
cmp esi, 0x97f
jge 0x40398b
call edi
cmp esi, 0x160d6ee
jg 0x40399c
inc esi
cmp esi, 0x33cd48d
jl 0x403981
cmp dword [0x614204], 0x400
jne 0x403a1c
push 0
call dword [sym.imp.USER32.dll_GetDC]
push 0
push 0
call dword [sym.imp.KERNEL32.dll__lcreat]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll__hwrite]
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCalendarInfoA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_LocalShrink]
push 0
lea eax, [esp + 0x10]
push eax
push 0x40316c
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceA]
push 0
call fcn.00403b7f
push 0
push 0
call fcn.0040408e
push 0
call fcn.00404029
push 0
call fcn.004041d9
push 0
call fcn.0040424d
add esp, 0x18
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
xor esi, esi
lea ebx, [ebx]
call edi
call ebx
cmp esi, 0x12e8a06
jg 0x403a45
inc esi
cmp esi, 0x30375
jl 0x403a30
mov ecx, dword [0x471734]
mov dword [0x614204], ecx
call fcn.00403640
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov edi, 0x2ec37
mov ebx, 0x51f
cmp dword [0x614204], ebx
jne 0x403a77
lea edx, [esp + 0xc]
push edx
push 0
call esi
dec edi
jne 0x403a66
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x800
ret 0x10

Function at 0x407634
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x46ed28]
jne 0x40763e
repz ret
jmp fcn.00409598