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

Disassembly:
push ecx
mov al, byte [0x651660]
push ebp
inc al
push esi
cmp al, 0x10
push edi
mov byte [0x651660], al
jb 0x4789ab
mov byte [0x651660], 0
mov al, byte [0x652728]
mov cl, byte [0x65272c]
inc al
cmp al, cl
mov byte [0x652728], al
jb 0x4789c8
mov byte [0x652728], 0
mov eax, dword [0x652728]
and eax, 0xff
mov cl, byte [eax + 0x652738]
mov byte [esp + 0xc], cl
xor ecx, ecx
call fcn.00476e80
mov ebp, eax
mov eax, dword [esp + 0xc]
and eax, 0xff
dec eax
je 0x478a75
dec eax
je 0x478a09
mov esi, dword [0x651660]
and esi, 0xff
jmp 0x478aa0
xor esi, esi
mov ecx, 0x4feeb4
xor esi, dword [ecx - 0x30]
mov eax, esi
shr eax, 0x1d
lea edx, [esi*8]
or eax, edx
mov edx, dword [ecx]
xor eax, edx
mov edx, eax
shr edx, 0x1d
shl eax, 3
or edx, eax
mov esi, edx
mov edx, ecx
sub ecx, 4
cmp edx, 0x4fee88
jne 0x478a10
call fcn.00476eb0
lea ecx, [esi*8]
shr esi, 0x1d
or ecx, esi
mov esi, dword [0x4fefa4]
xor eax, ecx
lea ecx, [eax*8]
shr eax, 0x1d
or ecx, eax
xor ecx, esi
mov esi, ecx
shr esi, 0x1d
lea edx, [ecx*8]
or esi, edx
jmp 0x478aa0
xor edi, edi
call fcn.00421050
mov esi, eax
test esi, esi
je 0x478a9e
mov ecx, esi
call fcn.00423e40
mov esi, dword [esi + 4]
xor eax, edi
lea edi, [eax*8]
shr eax, 0x1d
or edi, eax
test esi, esi
jne 0x478a82
mov esi, edi
test ebp, ebp
je 0x478aae
mov ecx, 1
call fcn.00476e80
mov edx, dword [0x4fef3c]
mov edi, dword [0x651658]
and edx, 0xffff
mov ecx, edi
imul ecx, edx
mov ebp, dword [0x63c568]
xor eax, eax
shl edx, 2
sar edx, 2
lea ecx, [ebp + ecx*4]
mov ebp, edx
dec edx
test ebp, ebp
je 0x478afb
inc edx
mov ebp, dword [ecx]
add ecx, 4
and ebp, 0xbfffffff
xor eax, ebp
lea ebp, [eax*8]
shr eax, 0x1d
or eax, ebp
dec edx
jne 0x478adf
xor edx, edx
inc edi
mov dx, word [0x4fef3e]
mov dword [0x651658], edi
cmp edi, edx
jb 0x478b19
mov dword [0x651658], 0
mov edx, dword [0x4f30d8]
mov ebp, dword [0x65098c]
mov ecx, 8
sub ecx, edx
mov edx, dword [0x650990]
xor edx, ebp
shl edx, cl
xor edx, eax
mov eax, dword [0x651660]
and eax, 0xff
xor esi, edx
mov ecx, eax
shl ecx, 5
add ecx, eax
lea edx, [eax + ecx*2]
mov ecx, esi
shr ecx, 0x10
lea eax, [edx*4 + 0x651668]
mov dl, byte [esp + 0xc]
xor ecx, esi
mov word [eax], cx
mov byte [eax + 2], dl
mov cl, byte [0x652730]
mov byte [eax + 4], cl
mov dl, byte [0x65165c]
lea ecx, [eax + 0xc]
mov byte [eax + 5], dl
push ecx
lea edx, [eax + 8]
lea ecx, [eax + 3]
call fcn.00410450
pop edi
pop esi
pop ebp
pop ecx
ret
Function at 0x49c5f0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
sub esp, 0x108
push ebx
push ebp
push esi
push edi
mov edi, ecx
test edi, edi
jne 0x49c60d
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret
mov al, byte [edi]
mov esi, edi
test al, al
je 0x49c6b8
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov al, byte [esi]
test al, al
je 0x49c637
cmp al, 0x5c
je 0x49c637
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x49c62b
mov eax, esi
sub eax, edi
add eax, 2
cmp eax, 0x105
jb 0x49c64a
mov eax, 0x105
push eax
lea eax, [esp + 0x14]
push edi
push eax
call sub.storm.dll_Ordinal_501
cmp eax, 0x104
jae 0x49c6ab
lea ecx, [esp + 0x10]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x49c675
cmp byte [esi], 0
je 0x49c6b8
jmp 0x49c693
call ebx
cmp eax, 0xb7
je 0x49c683
cmp eax, 5
jne 0x49c6ab
lea edx, [esp + 0x10]
push edx
call ebp
cmp eax, 0xffffffff
je 0x49c6ab
test al, 0x10
je 0x49c6ab
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x49c625
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x108
ret
Function at 0x49e500
Capabilities:
Hash data using sha1

Disassembly:
lea eax, [ecx + ecx*2]
shl eax, 3
sub eax, ecx
xor ecx, ecx
lea eax, [eax*4 + 0x687330]
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
mov dword [eax + 0x14], ecx
mov dword [eax + 0x18], ecx
ret
Function at 0x4c1fc0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x28]
mov ebx, edx
xor ebp, ebp
xor eax, eax
test edi, edi
mov dword [esp + 0x20], ebx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x10], ebp
mov dword [esp + 0x1c], eax
je 0x4c1ff3
mov dword [esp + 0x10], 1
mov dword [ebx], edi
mov ebp, dword [esp + 0x10]
mov esi, dword [ecx]
test esi, esi
je 0x4c215a
lea eax, [ebx + ebp*4]
mov dword [esp + 0x14], eax
jmp 0x4c200a
mov ebx, dword [esp + 0x20]
cmp esi, edi
je case.0x4c2087.14
mov eax, dword [esi + 0x70]
test eax, eax
je 0x4c2047
xor ecx, ecx
mov cx, word [esi + 0x64]
test byte [ecx*4 + 0x6b0358], 0x10
je 0x4c202b
mov esi, eax
test ebp, ebp
lea eax, [ebp - 1]
je 0x4c2047
lea ecx, [ebx + eax*4]
cmp dword [ecx], esi
je case.0x4c2087.14
mov edx, eax
dec eax
sub ecx, 4
test edx, edx
jne 0x4c2035
mov ecx, dword [esi + 0xc]
mov eax, dword [0x65098c]
test byte [ecx + 0xc], al
je case.0x4c2087.14
mov ecx, dword [esi + 0xdc]
test ch, 3
je 0x4c206f
test dword [esi + 0xe4], eax
je case.0x4c2087.14
xor eax, eax
mov ax, word [esi + 0x64]
add eax, 0xfffffff2
cmp eax, 0xc2
ja case.0x4c2087.19
xor edx, edx
mov dl, byte [eax + 0x4c21bc]
jmp dword [edx*4 + 0x4c21a4]
mov ecx, esi
call fcn.00424a80
test eax, eax
je 0x4c219e
mov al, byte [esi + 0x4c]
mov edx, dword [0x4f30d8]
mov ecx, eax
and ecx, 0xff
cmp ecx, edx
jne 0x4c219e
test edi, edi
je 0x4c20f1
cmp byte [edi + 0x4c], al
jne case.0x4c2087.14
mov dx, word [edi + 0x64]
cmp dx, word [esi + 0x64]
jne case.0x4c2087.14
mov ecx, dword [esi + 0xdc]
mov eax, dword [edi + 0xdc]
xor eax, ecx
test al, 0x10
jne case.0x4c2087.14
test ch, 8
je 0x4c20e5
test cl, 0x10
je 0x4c20ea
test ah, 1
jne case.0x4c2087.14
test eax, 0x40000000
jne case.0x4c2087.14
cmp ebp, 0xc
jl 0x4c218a
mov ecx, dword [esi + 0xc]
mov edi, ebx
call fcn.00412210
mov ebx, eax
mov eax, dword [esp + 0x10]
dec ebp
test eax, eax
je 0x4c2135
mov eax, dword [edi]
mov ecx, dword [esp + 0x28]
cmp eax, ecx
je 0x4c212b
mov ecx, dword [eax + 0xc]
call fcn.00412210
cmp ebx, eax
ja 0x4c2186
cmp esi, dword [esp + 0x28]
je 0x4c2186
add edi, 4
mov eax, ebp
dec ebp
test eax, eax
jne 0x4c210f
mov edi, dword [esp + 0x28]
mov ebp, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
add eax, 4
mov dword [esp + 0x18], eax
mov esi, dword [eax]
test esi, esi
jne 0x4c2006
mov eax, dword [esp + 0x1c]
mov ebx, dword [esp + 0x20]
test ebp, ebp
jne 0x4c217a
test eax, eax
jne 0x4c2166
test edi, edi
je 0x4c217a
test edi, edi
je 0x4c216c
mov eax, edi
mov dword [esp + 0x10], 1
mov dword [ebx], eax
mov ebp, dword [esp + 0x10]
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 4
mov dword [edi], esi
jmp 0x4c2135
mov eax, dword [esp + 0x14]
inc ebp
mov dword [esp + 0x10], ebp
mov dword [eax], esi
add eax, 4
mov dword [esp + 0x14], eax
jmp case.0x4c2087.14
mov dword [esp + 0x1c], esi
jmp case.0x4c2087.14
Function at 0x4c7080
Capabilities:
Create thread

Disassembly:
push esi
push edi
push 0x74
push 1
xor edi, edi
call fcn.004ca530
mov esi, eax
add esp, 8
test esi, esi
je 0x4c70e0
push esi
call fcn.004c8320
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x1c]
add esp, 4
mov dword [esi + 0x48], eax
mov eax, dword [esp + 0x1c]
push edx
mov edx, dword [esp + 0x10]
mov dword [esi + 0x4c], ecx
mov ecx, dword [esp + 0x14]
push eax
push esi
push 0x4c7100
push ecx
push edx
mov dword [esi + 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x4c70f8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push esi
call fcn.004c88d0
add esp, 4
test edi, edi
je 0x4c70f6
push edi
call fcn.004c8940
add esp, 4
xor eax, eax
pop edi
pop esi
ret

Function at 0x4c78f0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e6a70
push 0x4ca928
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffffa8
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
call dword [sym.imp.KERNEL32.dll_GetVersion]
xor edx, edx
mov dl, ah
mov dword [0x6b23c0], edx
mov ecx, eax
and ecx, 0xff
mov dword [0x6b23bc], ecx
shl ecx, 8
add ecx, edx
mov dword [0x6b23b8], ecx
shr eax, 0x10
mov dword [0x6b23b4], eax
call fcn.004cbc80
test eax, eax
jne 0x4c795a
push 0x1c
call fcn.004c7ad0
add esp, 4
call fcn.004c82c0
test eax, eax
jne 0x4c796d
push 0x10
call fcn.004c7ad0
add esp, 4
mov dword [ebp - 4], 0
call fcn.004cba70
call fcn.004cba60
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x6bb258], eax
call fcn.004cb400
mov dword [0x6b2314], eax
test eax, eax
je 0x4c79a0
mov eax, dword [0x6bb258]
test eax, eax
jne 0x4c79aa
push 0xffffffffffffffff
call fcn.004c84a0
add esp, 4
call fcn.004cb150
call fcn.004cb060
call fcn.004c8470
mov esi, dword [0x6bb258]
mov dword [ebp - 0x64], esi
cmp byte [esi], 0x22
jne 0x4c7a89
inc esi
mov dword [ebp - 0x64], esi
mov al, byte [esi]
cmp al, 0x22
je 0x4c79f1
test al, al
je 0x4c79f1
and eax, 0xff
push eax
call fcn.004cb000
add esp, 4
test eax, eax
je 0x4c79cb
inc esi
mov dword [ebp - 0x64], esi
jmp 0x4c79cb
cmp byte [esi], 0x22
jne 0x4c79fa
inc esi
mov dword [ebp - 0x64], esi
mov al, byte [esi]
test al, al
je 0x4c7a0a
cmp al, 0x20
ja 0x4c7a0a
inc esi
mov dword [ebp - 0x64], esi
jmp 0x4c79fa
mov dword [ebp - 0x30], 0
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x30], 1
je 0x4c7a2b
mov eax, dword [ebp - 0x2c]
and eax, 0xffff
jmp 0x4c7a30
mov eax, 0xa
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov dword [ebp - 0x60], eax
push eax
call fcn.004c84a0
jmp 0x4c7a6e
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [esi], 0x20
jbe 0x4c79fa
inc esi
mov dword [ebp - 0x64], esi
jmp 0x4c7a89
Function at 0x4c7ad0
Capabilities:
Terminate process

Disassembly:
cmp dword [0x6b231c], 1
jne 0x4c7ade
call fcn.004cbcc0
mov eax, dword [esp + 4]
push eax
call fcn.004cbd00
add esp, 4
push 0xff
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x4c82c0
Capabilities:
Allocate thread local storage
Set thread local storage value

Disassembly:
push esi
call fcn.004c7b00
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [0x4f9c30], eax
je 0x4c8318
push 0x74
push 1
call fcn.004ca530
mov esi, eax
add esp, 8
test esi, esi
je 0x4c8318
mov eax, dword [0x4f9c30]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x4c8318
push esi
call fcn.004c8320
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esi], eax
mov dword [esi + 4], 0xffffffff
mov eax, 1
pop esi
ret
xor eax, eax
pop esi
ret

Function at 0x4c8340
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [0x4f9c30]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x4c83ae
push 0x74
push 1
call fcn.004ca530
mov esi, eax
add esp, 8
test esi, esi
je 0x4c83a4
mov ecx, dword [0x4f9c30]
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x4c83a4
push esi
call fcn.004c8320
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push edi
mov dword [esi], eax
mov dword [esi + 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
pop edi
pop esi
ret
push 0x10
call fcn.004c7aa0
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
pop edi
pop esi
ret

Function at 0x4c83c0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov eax, dword [0x4f9c30]
cmp eax, 0xffffffff
je 0x4c846f
push esi
mov esi, dword [esp + 8]
test esi, esi
jne 0x4c83e4
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
je 0x4c8460
mov eax, dword [esi + 0x24]
test eax, eax
je 0x4c83f4
push eax
call fcn.004c88d0
add esp, 4
mov eax, dword [esi + 0x28]
test eax, eax
je 0x4c8404
push eax
call fcn.004c88d0
add esp, 4
mov eax, dword [esi + 0x30]
test eax, eax
je 0x4c8414
push eax
call fcn.004c88d0
add esp, 4
mov eax, dword [esi + 0x38]
test eax, eax
je 0x4c8424
push eax
call fcn.004c88d0
add esp, 4
mov eax, dword [esi + 0x40]
test eax, eax
je 0x4c8434
push eax
call fcn.004c88d0
add esp, 4
mov eax, dword [esi + 0x44]
test eax, eax
je 0x4c8444
push eax
call fcn.004c88d0
add esp, 4
mov eax, dword [esi + 0x50]
cmp eax, 0x4f9e60
je 0x4c8457
push eax
call fcn.004c88d0
add esp, 4
push esi
call fcn.004c88d0
add esp, 4
mov eax, dword [0x4f9c30]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop esi
ret
Function at 0x4c84e0
Capabilities:
Terminate process

Disassembly:
push ebx
push ebp
push esi
call fcn.004c85a0
mov eax, dword [0x6b23f0]
mov ebp, dword [esp + 0x10]
cmp eax, 1
jne 0x4c8504
push ebp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
test eax, eax
mov dword [0x6b23ec], 1
mov byte [0x6b23e8], bl
jne 0x4c855e
mov ecx, dword [0x6bb24c]
test ecx, ecx
je 0x4c854c
mov esi, dword [0x6bb248]
sub esi, 4
cmp esi, ecx
jb 0x4c854c
mov eax, dword [esi]
test eax, eax
je 0x4c8545
call eax
mov ecx, dword [0x6bb24c]
sub esi, 4
cmp esi, ecx
jae 0x4c8537
push 0x4e90ec
push 0x4e90e4
call fcn.004c85c0
add esp, 8
push 0x4e90f4
push 0x4e90f0
call fcn.004c85c0
add esp, 8
test ebx, ebx
je 0x4c857d
call fcn.004c85b0
pop esi
pop ebp
pop ebx
ret
push ebp
mov dword [0x6b23f0], 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x4cb400
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [0x6b25f0]
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
push esi
xor esi, esi
xor ebx, ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test eax, eax
jne 0x4cb442
call edi
mov esi, eax
test esi, esi
je 0x4cb42c
mov eax, 1
jmp 0x4cb43d
call ebp
mov ebx, eax
test ebx, ebx
je 0x4cb54f
mov eax, 2
mov dword [0x6b25f0], eax
cmp eax, 1
jne 0x4cb4e2
test esi, esi
jne 0x4cb45b
call edi
mov esi, eax
test esi, esi
je 0x4cb54f
cmp word [esi], 0
mov eax, esi
je 0x4cb475
add eax, 2
cmp word [eax], 0
jne 0x4cb463
add eax, 2
cmp word [eax], 0
jne 0x4cb463
sub eax, esi
push 0
sar eax, 1
inc eax
push 0
mov ebp, eax
push 0
push 0
push ebp
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
je 0x4cb4d4
push edi
call fcn.004c8800
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x4cb4d4
push 0
push 0
push edi
push ebx
push ebp
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x4cb4c6
push ebx
call fcn.004c88d0
add esp, 4
xor ebx, ebx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
cmp eax, 2
jne 0x4cb54f
test ebx, ebx
jne 0x4cb4f3
call ebp
mov ebx, eax
test ebx, ebx
je 0x4cb54f
mov cl, byte [ebx]
mov eax, ebx
test cl, cl
je 0x4cb50b
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x4cb4fb
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x4cb4fb
sub eax, ebx
inc eax
mov esi, eax
push esi
call fcn.004c8800
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x4cb52d
push ebx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov ecx, esi
mov esi, ebx
mov eax, ecx
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
Function at 0x4cbd00
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x1a8
mov eax, 0x4fa030
push ebx
push ebp
push esi
push edi
xor ebp, ebp
cmp ecx, dword [eax]
je 0x4cbd24
add eax, 8
inc ebp
cmp eax, 0x4fa0c0
jb 0x4cbd15
cmp ecx, dword [ebp*8 + 0x4fa030]
jne 0x4cbecb
mov eax, dword [0x6b231c]
cmp eax, 1
je 0x4cbe8d
test eax, eax
jne 0x4cbd50
cmp dword [0x4f97f4], 1
je 0x4cbe8d
cmp ecx, 0xfc
je 0x4cbecb
lea eax, [esp + 0xb4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4cbd8b
mov ecx, 5
mov esi, str._program_name_unknown_
lea edi, [esp + 0xb4]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
xor eax, eax
lea ebx, [esp + 0xb4]
repne scasb al, byte es:[edi]
not ecx
cmp ecx, 0x3c
jbe 0x4cbdd4
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 3
mov ebx, ecx
lea ecx, [esp + 0xb8]
sub ecx, 0x3b
push 0x4ec268
add ebx, ecx
push ebx
call fcn.004c6090
add esp, 0xc
mov ecx, 6
mov esi, str.Runtime_Error__n_nProgram:
lea edi, [esp + 0x14]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
or ecx, 0xffffffff
mov edi, ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x14]
mov ebx, ecx
mov esi, edi
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x14]
and ecx, 3
push 0x12010
rep movsb byte es:[edi], byte [esi]
mov edi, 0x4f18e0
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push str.Microsoft_Visual_C_Runtime_Library
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x1c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp*8 + 0x4fa034]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x1c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.004cf400
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
mov eax, dword [0x6bb140]
test eax, eax
je 0x4cbe9e
mov esi, dword [eax + 0x48]
cmp esi, 0xffffffff
jne 0x4cbea8
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
mov edx, dword [ebp*8 + 0x4fa034]
lea ecx, [esp + 0x10]
push 0
push ecx
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
Function at 0x4ce580
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x41c
push ebx
mov ebx, dword [esp + 0x42c]
push ebp
xor ebp, ebp
push esi
cmp ebx, ebp
push edi
mov dword [esp + 0x10], ebp
mov dword [esp + 0x20], ebp
jne 0x4ce5ac
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov ecx, dword [esp + 0x430]
mov eax, ecx
sar eax, 5
lea edi, [eax*4 + 0x6bb140]
mov eax, ecx
and eax, 0x1f
mov dword [esp + 0x24], edi
mov edx, dword [edi]
lea esi, [eax + eax*8]
shl esi, 2
mov dword [esp + 0x14], esi
test byte [esi + edx + 4], 0x20
je 0x4ce5e7
push 2
push ebp
push ecx
call fcn.004cf760
add esp, 0xc
mov eax, dword [edi]
add eax, esi
test byte [eax + 4], 0x80
je 0x4ce749
mov ebp, dword [esp + 0x434]
mov dword [esp + 0x18], 0
test ebx, ebx
mov edi, ebp
jbe 0x4ce691
lea eax, [esp + 0x28]
mov ecx, edi
sub ecx, ebp
cmp ecx, ebx
jae 0x4ce642
mov cl, byte [edi]
inc edi
cmp cl, 0xa
jne 0x4ce62f
mov esi, dword [esp + 0x20]
mov byte [eax], 0xd
inc esi
inc eax
mov dword [esp + 0x20], esi
mov byte [eax], cl
inc eax
mov edx, eax
lea ecx, [esp + 0x28]
sub edx, ecx
cmp edx, 0x400
jl 0x4ce612
mov esi, eax
lea edx, [esp + 0x28]
lea eax, [esp + 0x1c]
sub esi, edx
mov edx, dword [esp + 0x24]
push 0
push eax
lea ecx, [esp + 0x30]
mov eax, dword [edx]
push esi
push ecx
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx + eax]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4ce73a
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
add edx, eax
cmp eax, esi
mov dword [esp + 0x10], edx
jl 0x4ce68d
mov eax, edi
sub eax, ebp
cmp eax, ebx
jb 0x4ce60e
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x4ce729
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4ce6e5
cmp eax, 5
jne 0x4ce6ce
call fcn.004c89c0
mov dword [eax], 9
call fcn.004c89d0
mov dword [eax], 5
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
push eax
call fcn.004c8940
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx]
test byte [esi + edx + 4], 0x40
je 0x4ce705
cmp byte [ebp], 0x1a
jne 0x4ce705
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
call fcn.004c89c0
mov dword [eax], 0x1c
call fcn.004c89d0
mov dword [eax], 0
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
sub eax, ecx
pop ebx
add esp, 0x41c
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x18], eax
jmp 0x4ce68d
mov edx, dword [eax]
lea ecx, [esp + 0x1c]
push ebp
mov ebp, dword [esp + 0x438]
push ecx
push ebx
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4ce77a
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], eax
jmp 0x4ce691
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x18], eax
jmp 0x4ce691
Function at 0x4cf900
Capabilities:
Clear file content

Disassembly:
mov eax, 0x1004
call fcn.004c64a0
push ebx
mov ebx, dword [esp + 0x100c]
push ebp
push esi
push edi
xor ebp, ebp
push 1
push ebp
push ebx
call fcn.004cf760
mov edi, eax
add esp, 0xc
cmp edi, 0xffffffff
mov dword [esp + 0x10], edi
je 0x4cfa40
push 2
push ebp
push ebx
call fcn.004cf760
add esp, 0xc
cmp eax, 0xffffffff
je 0x4cfa40
mov ecx, dword [esp + 0x101c]
mov esi, ecx
sub esi, eax
test esi, esi
jle 0x4cf9e1
mov ecx, 0x400
xor eax, eax
lea edi, [esp + 0x14]
push 0x8000
rep stosd dword es:[edi], eax
push ebx
call fcn.004d1290
add esp, 8
mov edi, eax
cmp esi, 0x1000
mov eax, 0x1000
jge 0x4cf986
mov eax, esi
push eax
lea eax, [esp + 0x18]
push eax
push ebx
call fcn.004ce580
add esp, 0xc
cmp eax, 0xffffffff
je 0x4cf9a2
sub esi, eax
test esi, esi
jle 0x4cf9ba
jmp 0x4cf977
call fcn.004c89d0
cmp dword [eax], 5
jne 0x4cf9b7
call fcn.004c89c0
mov dword [eax], 0xd
or ebp, 0xffffffff
push edi
push ebx
call fcn.004d1290
mov edi, dword [esp + 0x18]
add esp, 8
push 0
push edi
push ebx
call fcn.004cf760
add esp, 0xc
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1004
ret
jge 0x4cfa27
push 0
push ecx
push ebx
call fcn.004cf760
add esp, 0xc
push ebx
call fcn.004ce370
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov ebp, eax
neg ebp
sbb ebp, ebp
neg ebp
dec ebp
cmp ebp, 0xffffffff
jne 0x4cfa27
call fcn.004c89c0
mov dword [eax], 0xd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call fcn.004c89d0
mov dword [eax], esi
push 0
push edi
push ebx
call fcn.004cf760
add esp, 0xc
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1004
ret
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x1004
ret