joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4012f2
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0x10], 0
jne 0x401305
push 0x80004005
call fcn.00401046
push esi
mov esi, dword [ebp + 0x10]
push edi
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x40130c
mov eax, dword [ebp + 8]
push edi
push dword [ebp + 0x10]
push 7
push 0
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x40133c
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x421060]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
lea edx, [ebp - 0x214]
push edx
push 0x2001f
mov eax, ecx
mov ecx, dword [ebp + 8]
xor esi, esi
push esi
mov dword [ebp - 0x220], eax
mov eax, dword [eax]
push ecx
push eax
mov dword [ebp - 0x21c], ecx
mov dword [ebp - 0x210], esi
mov dword [ebp - 0x214], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, eax
cmp edi, esi
jne 0x401459
xor eax, eax
cmp dword [ebp - 0x210], esi
je 0x4013aa
push dword [ebp - 0x210]
call ebx
cmp eax, esi
mov ecx, dword [ebp - 0x214]
mov edi, eax
mov dword [ebp - 0x210], ecx
jne 0x401459
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea eax, [ebp - 0x228]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x20c]
push eax
push esi
push ecx
jmp 0x40141d
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x210]
call fcn.0040133c
cmp eax, esi
mov dword [ebp - 0x214], eax
jne 0x40147c
lea eax, [ebp - 0x228]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x20c]
push eax
push esi
push dword [ebp - 0x210]
mov dword [ebp - 0x218], 0x100
call edi
test eax, eax
je 0x4013e2
cmp dword [ebp - 0x210], esi
je 0x401443
push dword [ebp - 0x210]
call ebx
mov dword [ebp - 0x210], esi
push dword [ebp - 0x21c]
mov eax, dword [ebp - 0x220]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov edi, eax
cmp dword [ebp - 0x210], esi
je 0x401469
push dword [ebp - 0x210]
call ebx
mov eax, edi
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040ac5f
leave
ret 4
cmp dword [ebp - 0x210], esi
je 0x40148c
push dword [ebp - 0x210]
call ebx
mov eax, dword [ebp - 0x214]
jmp 0x40146b
Function at 0x40369c
Capabilities:
Connect to http server
Create http request
Send file using ftp

Disassembly:
push 0x48
mov eax, 0x418449
call fcn.0040d550
mov eax, dword [ebp + 8]
push 8
pop esi
cmp dword [0x423190], esi
mov dword [ebp - 0x38], eax
mov eax, dword [0x42317c]
jae 0x4036c3
mov eax, 0x42317c
xor edi, edi
push edi
push edi
push edi
push edi
push eax
call dword [sym.imp.WININET.dll_InternetOpenW]
cmp eax, edi
mov dword [ebp - 0x30], eax
jne 0x4036df
xor al, al
call fcn.0040d5d3
ret
cmp dword [0x4231ac], esi
mov edx, dword [0x423198]
jae 0x4036f2
mov edx, 0x423198
cmp dword [0x423258], esi
mov ecx, dword [0x423244]
jae 0x403705
mov ecx, 0x423244
cmp dword [0x423158], esi
mov eax, dword [0x423144]
jae 0x403717
mov eax, 0x423144
push 1
push 0x8000000
push 1
push edx
push ecx
push 0x15
push eax
push dword [ebp - 0x30]
call dword [sym.imp.WININET.dll_InternetConnectW]
mov ebx, eax
cmp ebx, edi
mov dword [ebp - 0x34], ebx
je 0x4036d7
cmp dword [0x423174], esi
mov eax, dword [0x423160]
jae 0x403749
mov eax, 0x423160
push eax
push ebx
call dword [sym.imp.WININET.dll_FtpSetCurrentDirectoryW]
test eax, eax
je 0x4036d7
push 0x41ddb8
lea esi, [ebp - 0x2c]
call fcn.00404463
mov eax, esi
mov dword [ebp - 4], edi
push eax
lea edi, [ebp - 0x54]
call fcn.00403459
cmp dword [eax + 0x18], 8
pop ecx
jb 0x40377c
mov eax, dword [eax + 4]
jmp 0x40377f
add eax, 4
mov ecx, dword [ebp - 0x38]
cmp dword [ecx + 0x18], 8
jb 0x40378d
mov ecx, dword [ecx + 4]
jmp 0x403790
add ecx, 4
push 1
push 2
push eax
push ecx
push ebx
call dword [sym.imp.WININET.dll_FtpPutFileW]
mov ebx, eax
neg ebx
push 0
sbb bl, bl
push 1
lea esi, [ebp - 0x54]
inc bl
call fcn.00404891
test bl, bl
je 0x4037ca
xor bl, bl
push 0
push 1
lea esi, [ebp - 0x2c]
call fcn.00404891
mov al, bl
jmp 0x4036d9
push dword [ebp - 0x34]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push dword [ebp - 0x30]
call esi
mov bl, 1
jmp 0x4037b7
Function at 0x403877
Capabilities:
Hide graphical window

Disassembly:
push ecx
push ecx
push ebx
push ebp
mov ebp, dword [esp + 0x14]
push esi
push edi
lea edi, [ebp + 4]
push edi
call fcn.00403075
mov eax, dword [0x4224a8]
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0
push 0xc
mov dword [esp + 0x24], eax
call esi
push eax
push 0xb
call esi
push eax
push 1
mov ebx, 0x80
push ebx
push dword [esp + 0x30]
call dword [sym.imp.USER32.dll_LoadImageW]
push eax
push 1
push ebx
push dword [edi]
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
call ebx
mov eax, dword [0x4224a8]
push 0
push 0x32
mov dword [esp + 0x24], eax
call esi
push eax
push 0x31
call esi
push eax
push 1
mov esi, 0x80
push esi
push dword [esp + 0x30]
call dword [sym.imp.USER32.dll_LoadImageW]
push eax
push 0
push esi
push dword [edi]
call ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call fcn.00402f7f
mov esi, eax
lea eax, [ebp + 0x20]
push eax
call fcn.00402bea
lea eax, [ebp + 0x24]
push eax
call fcn.00402c66
mov eax, dword [edi]
test eax, eax
je 0x403937
lea esi, [ebp + 0x28]
lea ebx, [esp + 0x10]
mov dword [esp + 0x10], eax
mov word [esp + 0x14], 4
call fcn.004043a0
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0x3ea
push dword [edi]
call esi
push 0
push 1
push 0xf1
push eax
call ebx
push 0x3f1
push dword [edi]
call esi
push 0xcd
push dword [0x4224a8]
mov dword [esp + 0x24], eax
call dword [sym.imp.USER32.dll_LoadBitmapW]
push eax
lea esi, [esp + 0x14]
lea eax, [esp + 0x20]
call fcn.00404616
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0x3ee
push dword [edi]
call esi
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push str.Microsoft_Sans_Serif
push 0x20
xor eax, eax
push eax
push eax
push eax
push eax
push eax
push eax
push eax
push 0x2bc
push eax
push eax
push eax
push 0xe
call dword [sym.imp.GDI32.dll_CreateFontW]
push 0x3ed
mov dword [ebp + 0x5c], eax
push dword [edi]
call esi
push 1
push dword [ebp + 0x5c]
push 0x30
push eax
call ebx
push 0x3ee
push dword [edi]
call esi
push 1
push dword [ebp + 0x5c]
push 0x30
push eax
call ebx
pop edi
pop esi
xor eax, eax
pop ebp
inc eax
pop ebx
pop ecx
pop ecx
ret 4
Function at 0x403e53
Capabilities:
Delete file

Disassembly:
push 0x3c
mov eax, 0x418324
call fcn.0040d550
lea ecx, [ebp - 0x2c]
call fcn.00405a7a
and dword [ebp - 4], 0
push 0x42325c
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.004053e4
add esp, 0xc
cmp dword [eax + 0x18], 8
jb 0x403e8b
mov eax, dword [eax + 4]
jmp 0x403e8e
add eax, 4
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push eax
call edi
push 0
push 1
lea esi, [ebp - 0x48]
call fcn.00404891
push 0x4231cc
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.004053e4
add esp, 0xc
cmp dword [eax + 0x18], 8
jb 0x403ec3
mov eax, dword [eax + 4]
jmp 0x403ec6
add eax, 4
push eax
call edi
push 0
push 1
lea esi, [ebp - 0x48]
call fcn.00404891
push 0x4231b0
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.004053e4
add esp, 0xc
cmp dword [eax + 0x18], 8
jb 0x403ef5
mov eax, dword [eax + 4]
jmp 0x403ef8
add eax, 4
push eax
call edi
push 0
push 1
lea esi, [ebp - 0x48]
call fcn.00404891
push str._funshion_fsps.txt
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.00405391
add esp, 0xc
cmp dword [eax + 0x18], 8
jb 0x403f27
mov eax, dword [eax + 4]
jmp 0x403f2a
add eax, 4
push eax
call edi
push 0
push 1
lea esi, [ebp - 0x48]
call fcn.00404891
push 0
push 1
lea esi, [ebp - 0x2c]
call fcn.00404891
call fcn.0040d5d3
ret
Function at 0x40580c
Capabilities:
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x103c]
mov eax, 0x103c
call fcn.00417d00
push 0xffffffffffffffff
push 0x418207
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x421060]
xor eax, ebp
mov dword [ebp + 0x1038], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x1044]
mov dword [ebp - 0x1c], eax
mov esi, ecx
mov eax, dword [esi + 0x14]
lea eax, [eax + eax + 1]
push eax
call fcn.00409ff2
mov edi, eax
pop ecx
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x24], edi
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp dword [esi + 0x18], 8
mov eax, dword [esi + 0x14]
jb 0x40587d
mov esi, dword [esi + 4]
jmp 0x405880
add esi, 4
push ebx
push ebx
lea ecx, [eax + eax + 1]
push ecx
push edi
inc eax
push eax
push esi
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push ebx
push 0x80
push 3
push ebx
push ebx
push 0x80000000
push edi
mov byte [ebp - 0xd], bl
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0x18], eax
je 0x4059ac
push 8
pop ecx
push dword [ebp - 0x20]
xor eax, eax
lea edi, [ebp - 0x44]
mov dword [ebp - 0x48], ebx
rep stosd dword es:[edi], eax
lea ecx, [ebp]
call fcn.00404411
lea edi, [ebp]
mov byte [ebp - 4], 1
call fcn.004059df
inc eax
push eax
mov eax, edi
push eax
lea esi, [ebp + 0x1c]
call fcn.00405a4d
mov byte [ebp - 4], 2
cmp dword [ebp + 0x34], 0x10
mov eax, dword [ebp + 0x20]
jae 0x4058f9
lea eax, [ebp + 0x20]
mov ecx, dword [ebp - 0x1c]
mov esi, dword [ecx + 4]
push eax
lea ecx, [ebp - 0x48]
call fcn.00405d60
test eax, eax
pop ecx
jne 0x40597c
push 0xfff
lea eax, [ebp + 0x39]
push ebx
push eax
mov byte [ebp + 0x38], bl
call fcn.0040a8f0
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
add esp, 0xc
mov dword [ebp - 0x14], ebx
mov esi, 0x1000
jmp 0x405954
mov ecx, dword [ebp - 0x14]
cmp ecx, ebx
je 0x405967
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 4]
lea edx, [ebp + 0x38]
call fcn.004063b0
test eax, eax
jne 0x405954
cmp dword [ebp - 0x14], esi
jae 0x405954
mov byte [ebp - 0xd], 1
push ebx
lea eax, [ebp - 0x14]
push eax
push esi
lea eax, [ebp + 0x38]
push eax
push dword [ebp - 0x18]
call edi
test eax, eax
jne 0x405932
mov eax, dword [ebp - 0x1c]
push dword [eax + 4]
call fcn.00406490
neg eax
sbb al, al
inc al
and byte [ebp - 0xd], al
pop ecx
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x40598c
mov byte [ebp - 0xd], bl
push ebx
push 1
lea ecx, [ebp + 0x1c]
mov byte [ebp - 4], 1
call fcn.004047b4
push ebx
push 1
lea ecx, [ebp]
mov byte [ebp - 4], bl
call fcn.004047b4
mov edi, dword [ebp - 0x20]
or dword [ebp - 4], 0xffffffff
push edi
call fcn.00409ff7
mov al, byte [ebp - 0xd]
pop ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x1038]
xor ecx, ebp
call fcn.0040ac5f
add ebp, 0x103c
leave
ret 4
Function at 0x4062c0
Capabilities:
Encode data using xor

Disassembly:
cmp dword [esi + 0x4090], 0
je 0x406379
cmp dword [esi + 0x6c], 0
jbe 0x406379
push ebx
push ebp
mov ebx, 0xffffff78
push edi
lea edi, [esi + 0x88]
sub ebx, esi
jmp 0x4062f0
movzx ecx, byte [edi]
mov eax, dword [esi + 0x4094]
mov ebp, dword [esi + 0x40a0]
xor ecx, eax
mov edx, dword [esi + 0x409c]
shr eax, 8
and ecx, 0xff
mov ecx, dword [ebp + ecx*4]
xor ecx, eax
movzx eax, cl
add eax, dword [esi + 0x4098]
mov dword [esi + 0x4094], ecx
mov ecx, dword [esi + 0x409c]
imul eax, eax, 0x8088405
add eax, 1
mov dword [esi + 0x4098], eax
shr eax, 0x18
xor eax, ecx
and eax, 0xff
and edx, 0xfffd
shr ecx, 8
xor ecx, dword [ebp + eax*4]
or edx, 2
mov eax, edx
xor eax, 1
imul eax, edx
mov dword [esi + 0x409c], ecx
shr eax, 8
xor byte [edi], al
add edi, 1
lea ecx, [ebx + edi]
cmp ecx, dword [esi + 0x6c]
jb 0x4062f0
pop edi
pop ebp
pop ebx
mov edx, dword [esi + 0x6c]
mov ecx, dword [esi + 0x20]
push edx
mov edx, dword [esi + 0x1c]
lea eax, [esi + 0x88]
push eax
mov eax, dword [esi + 8]
push ecx
push edx
call eax
add esp, 0x10
cmp eax, dword [esi + 0x6c]
mov dword [esi + 0x6c], 0
je 0x4063a4
or eax, 0xffffffff
ret
xor eax, eax
ret
Function at 0x407a58
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [esi + 0x2c]
push edi
mov edi, dword [esi + 0x3c]
sub edi, dword [esi + 0x74]
mov eax, dword [esi + 0x6c]
mov ecx, dword [esi + 0x2c]
sub edi, eax
lea ecx, [ebx + ecx - 0x106]
cmp eax, ecx
mov dword [ebp - 8], edi
jb 0x407ae5
mov eax, dword [esi + 0x38]
push ebx
lea ecx, [eax + ebx]
push ecx
push eax
call fcn.0040f020
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x44]
sub dword [esi + 0x70], ebx
sub dword [esi + 0x6c], ebx
add esp, 0xc
sub dword [esi + 0x5c], ebx
mov dword [ebp - 4], eax
lea eax, [ecx + eax*2]
dec eax
dec eax
movzx ecx, word [eax]
mov edx, ecx
sub edx, ebx
cmp ecx, ebx
sbb ecx, ecx
not ecx
and ecx, edx
dec dword [ebp - 4]
mov word [eax], cx
jne 0x407aa5
mov eax, dword [esi + 0x40]
mov dword [ebp - 4], ebx
lea eax, [eax + ebx*2]
dec eax
dec eax
movzx ecx, word [eax]
mov edx, ecx
sub edx, ebx
cmp ecx, ebx
sbb ecx, ecx
not ecx
and ecx, edx
dec dword [ebp - 4]
mov word [eax], cx
jne 0x407ac7
add edi, ebx
mov dword [ebp - 8], edi
mov edi, dword [esi]
cmp dword [edi + 4], 0
je 0x407bad
mov ecx, dword [esi + 0x74]
add ecx, dword [esi + 0x6c]
mov eax, dword [edi + 4]
add ecx, dword [esi + 0x38]
mov edx, dword [ebp - 8]
cmp eax, edx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], eax
jbe 0x407b0d
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
jne 0x407b17
xor eax, eax
jmp 0x407b6e
sub eax, dword [ebp - 4]
mov dword [edi + 4], eax
mov eax, dword [edi + 0x1c]
mov eax, dword [eax + 0x18]
cmp eax, 1
jne 0x407b37
push dword [ebp - 4]
mov ecx, dword [edi]
mov eax, dword [edi + 0x30]
call fcn.00409836
jmp 0x407b51
cmp eax, 2
jne 0x407b58
mov edx, dword [edi]
test edx, edx
mov eax, dword [edi + 0x30]
jne 0x407b49
xor eax, eax
jmp 0x407b55
push dword [ebp - 4]
call fcn.00406b8e
pop ecx
mov ecx, dword [ebp - 0xc]
mov dword [edi + 0x30], eax
push dword [ebp - 4]
push dword [edi]
push ecx
call fcn.0040f020
mov eax, dword [ebp - 4]
add dword [edi], eax
add esp, 0xc
add dword [edi + 8], eax
add dword [esi + 0x74], eax
mov edi, dword [esi + 0x74]
cmp edi, 3
jb 0x407b99
mov eax, dword [esi + 0x6c]
mov ecx, dword [esi + 0x38]
lea edx, [eax + ecx]
movzx eax, byte [edx]
mov ecx, dword [esi + 0x58]
mov dword [esi + 0x48], eax
shl eax, cl
movzx ecx, byte [edx + 1]
xor eax, ecx
and eax, dword [esi + 0x54]
mov dword [esi + 0x48], eax
cmp edi, 0x106
jae 0x407bad
mov eax, dword [esi]
cmp dword [eax + 4], 0
jne 0x407a63
pop edi
pop ebx
leave
ret
Function at 0x409b9c
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x421060]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.00409b31
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.0040a8f0
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x409beb
cmp dword [ebp - 0x1c], 5
jb 0x409c03
jmp 0x409bff
cmp dword [ebp - 0x10], 1
jne 0x409c03
cmp dword [ebp - 0x1c], 4
ja 0x409bff
jne 0x409c03
cmp dword [ebp - 0x18], 0
jbe 0x409c03
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x419310
call fcn.004010e5
test eax, eax
jge 0x409c24
mov byte [0x423110], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0040ac5f
add ebp, 0x78
leave
ret

Function at 0x409ea3
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x422508], 0
push esi
jne 0x409e16
call fcn.00409d41
test eax, eax
je 0x409e59
mov eax, dword [0x422508]
cmp eax, 1
jne 0x409e37
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x409e59
pop esi
ret
push eax
call dword [0x422510]
test eax, eax
jne 0x409ea1
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x409e5d
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x422508]
call dword [0x422510]
mov edi, eax
test edi, edi
je 0x409e84
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x409ea0
lea edi, [esi + 0xff0]
push esi
push dword [0x422508]
call dword [0x42250c]
add esi, 0x10
cmp esi, edi
jb 0x409e8a
mov eax, esi
pop edi
pop esi
ret
jmp 0x409e03

Function at 0x40ac5f
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x421060]
jne 0x40ac69
repz ret
jmp fcn.00410675
Function at 0x40c613
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ebx
je 0x40c650
cmp dword [ebp + 0x14], edi
je 0x40c650
cmp ecx, edi
jne 0x40c657
call fcn.0040d78c
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.0040a57d
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x40c66b
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x40c68c
cmp ebx, 0xffffffff
je 0x40c67b
push ebx
push edi
push ecx
call fcn.0040a8f0
add esp, 0xc
cmp esi, edi
je 0x40c638
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x40c638
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x40c6a8
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x40c6af
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x40c7a0
test word [esi + 0xc], 0x10c
je 0x40c703
mov eax, dword [esi + 4]
test eax, eax
je 0x40c703
jl 0x40c801
cmp ebx, eax
mov edi, ebx
jb 0x40c6d4
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x40c7a8
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.0040abe4
sub dword [esi + 4], edi
add dword [esi], edi
add dword [ebp - 8], edi
sub ebx, edi
add esp, 0x10
sub dword [ebp - 4], edi
mov edi, dword [ebp - 0x10]
jmp 0x40c798
cmp ebx, dword [ebp - 0xc]
jb 0x40c770
cmp dword [ebp - 0xc], 0
je 0x40c72d
mov ecx, 0x7fffffff
xor edx, edx
cmp ebx, ecx
jbe 0x40c722
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x40c729
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x40c738
mov eax, 0x7fffffff
cmp ebx, eax
ja 0x40c738
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x40c7d4
push eax
push dword [ebp - 8]
push esi
call fcn.0041206d
pop ecx
push eax
call fcn.00411f70
add esp, 0xc
test eax, eax
je 0x40c813
cmp eax, 0xffffffff
je 0x40c801
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x40c798
push esi
call fcn.0041188f
cmp eax, 0xffffffff
pop ecx
je 0x40c805
cmp dword [ebp - 4], 0
je 0x40c7d4
mov ecx, dword [ebp - 8]
inc dword [ebp - 8]
mov byte [ecx], al
mov eax, dword [esi + 0x18]
dec ebx
dec dword [ebp - 4]
mov dword [ebp - 0xc], eax
test ebx, ebx
jne 0x40c6b7
mov eax, dword [ebp + 0x14]
jmp 0x40c652
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x40c7bf
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.0040a8f0
add esp, 0xc
call fcn.0040d78c
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x40c648
cmp dword [ebp + 0xc], 0xffffffff
je 0x40c7ea
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.0040a8f0
add esp, 0xc
call fcn.0040d78c
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x40c648
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x40c652
or dword [esi + 0xc], 0x10
jmp 0x40c805
Function at 0x40fd08
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x421310]
je 0x40fd23
inc edi
cmp edi, 0x17
jb 0x40fd14
cmp edi, 0x17
jae 0x40fea3
push ebp
push 3
call fcn.00415113
cmp eax, 1
pop ecx
je 0x40fe6f
push 3
call fcn.00415113
test eax, eax
pop ecx
jne 0x40fd57
cmp dword [0x42105c], 1
je 0x40fe6f
cmp ebx, 0xfc
je 0x40fea2
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x422718
push ebp
call fcn.0040fee1
add esp, 0xc
test eax, eax
je 0x40fd8d
push esi
push esi
push esi
push esi
push esi
call fcn.0040a481
add esp, 0x14
push 0x104
mov esi, 0x422731
push esi
push 0
mov byte [0x422835], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40fdd1
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.0040fee1
add esp, 0xc
test eax, eax
je 0x40fdd1
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0040a481
add esp, 0x14
push esi
call fcn.0040a860
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x40fe16
push esi
call fcn.0040a860
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x422a2c
push 0x419a14
sub ecx, eax
push ecx
push eax
call fcn.00415060
add esp, 0x14
test eax, eax
je 0x40fe16
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.0040a481
add esp, 0x14
jmp 0x40fe18
xor esi, esi
push 0x419a10
push ebx
push ebp
call fcn.00414fef
add esp, 0xc
test eax, eax
je 0x40fe38
push esi
push esi
push esi
push esi
push esi
call fcn.0040a481
add esp, 0x14
push dword [edi*8 + 0x421314]
push ebx
push ebp
call fcn.00414fef
add esp, 0xc
test eax, eax
je 0x40fe5a
push esi
push esi
push esi
push esi
push esi
call fcn.0040a481
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.00414e32
add esp, 0xc
jmp 0x40fea2
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x40fea2
cmp ebp, 0xffffffff
je 0x40fea2
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x421314]
push dword [esi]
call fcn.0040a860
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret