joyce8/EMBER2024-capa huggingface dataset:
Function at 0x547604
Capabilities:
Inspect section memory permissions

Disassembly:
sub eax, eax
sub ebx, ebx
bt ecx, 0xa
jae 0x547613
or eax, 0x80
bt ecx, 0x17
jae 0x54761c
or eax, 0x40
bt ecx, 0xd
jae 0x547625
or eax, 0x20
bt ecx, 0x10
jae 0x54762e
or eax, 0x10
bt ecx, 7
jae 0x547637
or eax, 8
bt ecx, 3
jae 0x547640
or eax, 4
bt ecx, 5
jae 0x547649
or eax, 2
bt ecx, 0x1c
jae 0x547652
or eax, 1
bt ecx, 9
jae 0x54765d
or eax, 0x8000
bt ecx, 2
jae 0x547668
or eax, 0x4000
bt ecx, 0x13
jae 0x547673
or eax, 0x2000
bt ecx, 0xe
jae 0x54767e
or eax, 0x1000
bt ecx, 0x11
jae 0x547689
or eax, 0x800
bt ecx, 0x15
jae 0x547694
or eax, 0x400
bt ecx, 0xc
jae 0x54769f
or eax, 0x200
bt ecx, 4
jae 0x5476aa
or eax, 0x100
bt ecx, 0x1e
jae 0x5476b5
or eax, 0x800000
bt ecx, 0
jae 0x5476c0
or eax, 0x400000
bt ecx, 8
jae 0x5476cb
or eax, 0x200000
bt ecx, 1
jae 0x5476d6
or eax, 0x100000
bt ecx, 0x1d
jae 0x5476e1
or eax, 0x80000
bt ecx, 0x14
jae 0x5476ec
or eax, 0x40000
bt ecx, 0xb
jae 0x5476f7
or eax, 0x20000
bt ecx, 6
jae 0x547702
or eax, 0x10000
bt edx, 0xf
jae 0x54770d
or eax, 0x80000000
bt edx, 0x14
jae 0x547718
or eax, 0x40000000
bt edx, 0x19
jae 0x547723
or eax, 0x20000000
bt edx, 3
jae 0x54772e
or eax, 0x10000000
bt edx, 9
jae 0x547739
or eax, 0x8000000
bt edx, 0x11
jae 0x547744
or eax, 0x4000000
bt edx, 0x1a
jae 0x54774f
or eax, 0x2000000
bt edx, 0
jae 0x54775a
or eax, 0x1000000
bt edx, 0x15
jae 0x547766
or ebx, 0x80
bt edx, 0xb
jae 0x54776f
or ebx, 0x40
bt edx, 7
jae 0x547778
or ebx, 0x20
bt edx, 8
jae 0x547781
or ebx, 0x10
bt edx, 0xc
jae 0x54778a
or ebx, 8
bt edx, 0x17
jae 0x547793
or ebx, 4
bt edx, 1
jae 0x54779c
or ebx, 2
bt edx, 0x10
jae 0x5477a5
or ebx, 1
bt edx, 6
jae 0x5477b1
or ebx, 0x8000
bt edx, 0x13
jae 0x5477bd
or ebx, 0x4000
bt edx, 0xa
jae 0x5477c9
or ebx, 0x2000
bt edx, 0xe
jae 0x5477d5
or ebx, 0x1000
bt edx, 0x16
jae 0x5477e1
or ebx, 0x800
bt edx, 4
jae 0x5477ed
or ebx, 0x400
bt edx, 0x1b
jae 0x5477f9
or ebx, 0x200
bt edx, 0x18
jae 0x547805
or ebx, 0x100
ret
Function at 0x566460
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push edi
push esi
push ebp
push ebx
mov esi, dword [ecx + 0x31]
mov edi, esi
xor eax, eax
mov dh, byte [edi]
mov ecx, edi
test dh, dh
je 0x56647b
inc ecx
inc eax
mov dl, byte [ecx]
test dl, dl
jne 0x566473
inc eax
push eax
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x5664e9
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ebp, eax
mov edi, esi
xor eax, eax
mov dh, byte [edi]
mov ecx, edi
test dh, dh
je 0x5664a8
inc ecx
inc eax
mov dl, byte [ecx]
test dl, dl
jne 0x5664a0
mov edi, ebp
mov ecx, eax
push ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
pop ecx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
jne 0x5664d4
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x5664e9
call dword [sym.imp.USER32.dll_EmptyClipboard]
push ebx
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
xor eax, eax
pop ebx
pop ebp
pop esi
pop edi
ret
Function at 0x567b78
Capabilities:
Check internet connectivity via wininet
Connect to http server
Create http request

Disassembly:
push ebx
mov ebx, ecx
mov eax, dword [ebx + 0x1c]
test eax, eax
je 0x567c3d
push 0
call dword [sym.imp.WININET.dll_InternetAttemptConnect]
test eax, eax
je 0x567b9b
mov eax, 1
pop ebx
ret 8
xor eax, eax
push eax
push eax
push eax
push eax
push 0x74e434
call dword [sym.imp.WININET.dll_InternetOpenA]
mov ecx, eax
mov dword [ebx + 0x10], ecx
test ecx, ecx
je 0x567c88
movzx eax, word [ebx + 0x20]
xor edx, edx
push edx
push edx
push 1
push dword [ebx + 0x26]
push dword [ebx + 0x22]
push eax
push dword [ebx + 0x1c]
push ecx
call dword [sym.imp.WININET.dll_InternetConnectA]
mov dword [ebx + 0xc], eax
test eax, eax
je 0x567c46
push 0
push 2
push dword [esp + 0x10]
push dword [ebx + 0x2a]
push eax
call dword [sym.imp.WININET.dll_FtpOpenFileA]
mov dword [ebx + 8], eax
test eax, eax
je 0x567bfa
xor eax, eax
pop ebx
ret 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebx + 4]
mov dword [edx + 4], eax
push dword [ebx + 0xc]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push dword [ebx + 0x10]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
xor eax, eax
mov dword [ebx + 0xc], eax
mov dword [ebx + 0x10], eax
mov edx, dword [esp + 0xc]
test edx, edx
jne 0x567c3d
push dword [ebx + 0x14]
push 0x751db0
push 0
push dword [ebx + 4]
call fcn.00571068
add esp, 0x10
mov eax, 1
pop ebx
ret 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebx + 4]
mov dword [edx + 4], eax
push dword [ebx + 0x10]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [ebx + 0x10], 0
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x567c7f
push dword [ebx + 0x14]
push 0x751d8c
push 0
push dword [ebx + 4]
call fcn.00571068
add esp, 0x10
mov eax, 1
pop ebx
ret 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebx + 4]
mov dword [edx + 4], eax
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x567cb1
push dword [ebx + 0x14]
push 0x751d64
push 0
push dword [ebx + 4]
call fcn.00571068
add esp, 0x10
mov eax, 1
pop ebx
ret 8

Function at 0x56b2d4
Capabilities:
Initialize winsock library

Disassembly:
push esi
push ecx
mov eax, 0x18c
call fcn.00602270
mov ecx, dword [esp + 0x18c]
mov esi, ecx
lea eax, [esp]
push eax
push 0x101
call sub.WSOCK32.dll_WSAStartup
test eax, eax
jne 0x56b334
movzx edx, word [esp]
mov eax, edx
and eax, 0xff
cmp eax, 1
jne 0x56b319
and edx, 0xffffff00
cmp edx, 0x100
je 0x56b34a
call fcn.005caf48
mov eax, dword [esi + 0x60]
mov edx, dword [eax]
push str.WinSock_1.1_failed_
push eax
call dword [edx + 0x48]
add esp, 0x198
pop esi
ret
mov eax, dword [esi + 0x60]
mov edx, dword [eax]
push str.WinSock_failed_nto_initialize_
push eax
call dword [edx + 0x48]
add esp, 0x198
pop esi
ret
xor eax, eax
add esp, 0x190
pop esi
ret
Function at 0x56b758
Capabilities:
Read file on windows

Disassembly:
push ebx
sub esp, 8
mov ebx, ecx
lea edx, [esp + 4]
lea eax, [esp]
push 0
push eax
push 2
push edx
push dword [ebx + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
xor eax, eax
push eax
push eax
push eax
push dword [ebx + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
xor eax, eax
mov al, byte [esp + 4]
cmp eax, 0xff
jne 0x56b79c
xor eax, eax
mov al, byte [esp + 5]
cmp eax, 0xfe
je 0x56b7a3
xor eax, eax
add esp, 8
pop ebx
ret
mov eax, 1
add esp, 8
pop ebx
ret
Function at 0x5917f4
Capabilities:
Encrypt data using blowfish

Disassembly:
push edi
push esi
push ebp
push ebx
sub esp, 0x1c
mov edi, edx
mov esi, ecx
xor eax, eax
mov dword [esp], eax
mov dword [esp + 4], eax
xor ebx, ebx
xor ecx, ecx
test ecx, ecx
je 0x5919c1
cmp ecx, 1
je 0x591833
cmp ecx, 2
jne 0x591826
lea ebx, [esi + 0xc48]
jmp 0x591835
cmp ecx, 3
jne 0x591835
lea ebx, [esi + 0x800]
jmp 0x591835
mov ebx, esi
xor edx, edx
mov eax, ecx
shl eax, 0xa
mov ebp, dword [eax + edx*4 + 0x64f820]
mov dword [ebx + edx*4], ebp
mov ebp, dword [eax + edx*4 + 0x64f824]
mov dword [ebx + edx*4 + 4], ebp
mov ebp, dword [eax + edx*4 + 0x64f828]
mov dword [ebx + edx*4 + 8], ebp
mov ebp, dword [eax + edx*4 + 0x64f82c]
mov dword [ebx + edx*4 + 0xc], ebp
add edx, 4
cmp edx, 0x100
jl 0x59183c
inc ecx
cmp ecx, 4
jl 0x59180c
xor eax, eax
xor edx, edx
mov dword [esp + 8], ebx
mov dword [esp + 0x18], esi
mov ebx, edx
xor edx, edx
mov dl, byte [eax + edi]
or edx, 0
inc eax
mov ecx, dword [esp + 0x30]
cmp eax, ecx
jl 0x591899
xor eax, eax
shl edx, 8
xor ecx, ecx
mov cl, byte [eax + edi]
or edx, ecx
inc eax
mov ebp, dword [esp + 0x30]
cmp eax, ebp
jl 0x5918ae
xor eax, eax
shl edx, 8
xor ecx, ecx
mov cl, byte [eax + edi]
or edx, ecx
inc eax
mov ebp, dword [esp + 0x30]
cmp eax, ebp
jl 0x5918c3
xor eax, eax
shl edx, 8
xor ecx, ecx
mov cl, byte [eax + edi]
or edx, ecx
inc eax
mov ebp, dword [esp + 0x30]
cmp eax, ebp
jl 0x5918d8
xor eax, eax
mov ecx, dword [ebx*4 + 0x64f7c0]
xor ecx, edx
mov ebp, dword [esp + 0x18]
mov dword [ebp + ebx*4 + 0xc00], ecx
inc ebx
cmp ebx, 0x12
jl 0x591886
mov ebx, dword [esp + 8]
mov esi, ebp
xor eax, eax
mov dword [esp], eax
mov dword [esp + 4], eax
lea eax, [esi + 0xc00]
lea edi, [esi + 0xc48]
mov ebp, eax
lea edx, [esp]
lea eax, [esp + 4]
push eax
mov ecx, esi
call fcn.005919cc
mov edx, dword [esp]
mov dword [ebp], edx
mov edx, dword [esp + 4]
mov dword [ebp + 4], edx
add ebp, 8
cmp edi, ebp
ja 0x59190f
xor edx, edx
lea eax, [esi + 0x800]
lea edi, [esi + 0xc48]
lea ecx, [esi + 0x400]
mov dword [esp + 0x14], ecx
mov ecx, ebx
test edx, edx
je 0x5919bb
cmp edx, 1
je 0x591967
cmp edx, 2
jne 0x59195e
mov ecx, edi
jmp 0x591969
cmp edx, 3
jne 0x591969
mov ecx, eax
jmp 0x591969
mov ecx, esi
mov ebx, ecx
lea ebp, [ecx + 0x400]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], edx
mov dword [esp + 8], ecx
lea edx, [esp]
lea eax, [esp + 4]
push eax
mov ecx, esi
call fcn.005919cc
mov eax, dword [esp]
mov dword [ebx], eax
mov edx, dword [esp + 4]
mov dword [ebx + 4], edx
add ebx, 8
cmp ebp, ebx
ja 0x59197d
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
mov ecx, dword [esp + 8]
inc edx
cmp edx, 4
jl 0x59194c
add esp, 0x1c
pop ebx
pop ebp
pop esi
pop edi
ret 4
mov ecx, dword [esp + 0x14]
jmp 0x591969
lea ebx, [esi + 0x400]
jmp 0x591835
Function at 0x5b927c
Capabilities:
Parse credit card information

Disassembly:
push edi
push esi
push ebp
push ebx
sub esp, 0x14
mov ebx, ecx
mov edi, ebx
xor esi, esi
xor ecx, ecx
mov dword [esp + 4], edi
mov dword [esp], ecx
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], ebx
jmp 0x5b92a0
inc dword [esp + 0xc]
mov ebp, edx
xor bl, bl
mov al, byte [edx]
test al, al
je 0x5b9498
mov al, byte [edx]
cmp al, 0x20
jne 0x5b92bc
mov al, byte [ebp + 1]
inc ebp
test al, al
jne 0x5b92b0
cmp al, 0x30
jl 0x5b92c6
cmp al, 0x39
jg 0x5b92c6
mov bl, 1
lea eax, [ebp + 1]
mov cl, byte [ebp + 1]
cmp bl, 1
je 0x5b947b
test cl, cl
je 0x5b9357
cmp cl, 0x20
je 0x5b9357
cmp cl, 0x2e
je 0x5b946b
cmp cl, 0x2c
je 0x5b946b
cmp cl, 0x28
je 0x5b946b
cmp cl, 0x29
je 0x5b946b
inc eax
mov cl, byte [eax]
cmp cl, 0x2b
je 0x5b9357
cmp cl, 0x2d
je 0x5b9357
cmp cl, 0x2a
je 0x5b9357
cmp cl, 0x2f
je 0x5b9357
cmp cl, 0x5e
je 0x5b9357
cmp cl, 0x25
je 0x5b9357
cmp cl, 0x3d
je 0x5b9357
cmp cl, 0x3e
je 0x5b9357
cmp cl, 0x3c
je 0x5b9357
cmp cl, 0x21
je 0x5b9357
cmp cl, 0x7c
je 0x5b9357
cmp cl, 0x26
je 0x5b9357
cmp bl, 1
je 0x5b944e
test cl, cl
je 0x5b9357
cmp cl, 0x20
jne 0x5b92e2
sub eax, edx
je 0x5b9471
mov edi, dword [esp]
lea ebx, [edi + eax]
mov dword [esp + 8], ebx
mov ebp, dword [esp + 0x28]
cmp ebp, ebx
jl 0x5b93ea
mov edi, dword [esp + 4]
mov esi, edx
mov ecx, eax
push ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
pop ecx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
add dword [esp + 4], eax
lea ebx, [eax + edx]
mov dword [esp], ebx
mov al, byte [edx + eax]
test al, al
je 0x5b93ae
mov al, byte [ebx]
mov edx, ebx
cmp al, 0x20
jne 0x5b93ab
mov al, byte [edx + 1]
inc edx
test al, al
jne 0x5b939a
jmp 0x5b94a9
mov dword [esp], edx
mov ecx, dword [esp]
sub ecx, ebx
mov dword [esp], ecx
mov edi, dword [esp + 4]
mov esi, ebx
push ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
pop ecx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp]
add dword [esp + 4], eax
lea edx, [eax + ebx]
add eax, dword [esp + 8]
mov dword [esp], eax
mov ebx, dword [esp + 0x28]
cmp eax, ebx
jge 0x5b949f
jmp 0x5b929c
mov edi, dword [esp + 4]
mov ecx, dword [esp]
mov esi, dword [esp + 0xc]
mov ebx, dword [esp + 0x10]
mov ebp, dword [esp + 0x28]
lea ebp, [ebp - 1]
cmp ecx, ebp
jge 0x5b943d
cmp esi, dword [esp + 0x2c]
jge 0x5b943d
mov esi, edx
mov ecx, eax
push ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
pop ecx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edx, dword [esp + 0x28]
mov byte [ebx + edx - 1], 0x2d
mov byte [ebx + edx], 0
mov ecx, dword [esp + 0x30]
mov dword [ecx], 1
mov eax, ebp
add esp, 0x14
pop ebx
pop ebp
pop esi
pop edi
ret 0xc
mov byte [edi], 0
sub edi, ebx
mov eax, edi
add esp, 0x14
pop ebx
pop ebp
pop esi
pop edi
ret 0xc
cmp cl, byte [0x64e9dc]
je 0x5b92e2
cmp cl, byte [0x64e9e0]
je 0x5b92e2
jmp 0x5b934e
inc eax
jmp 0x5b9357
mov edi, dword [esp + 4]
mov ebx, dword [esp + 0x10]
jmp 0x5b943d
cmp cl, byte [0x64e9dc]
je 0x5b92e2
cmp cl, byte [0x64e9e0]
je 0x5b92e2
jmp 0x5b92d5
mov al, byte [edx]
jmp 0x5b92bc
mov edi, dword [esp + 4]
mov ebx, dword [esp + 0x10]
jmp 0x5b943d
mov dword [esp], edx
jmp 0x5b93ae
Function at 0x5cb471
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
lea eax, [ebp - 4]
push esi
xor esi, esi
push eax
push 0x20019
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x5cb4c9
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x104
push eax
push dword [ebp + 8]
push esi
push esi
push 0x62c58c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x5cb4bc
push 1
pop esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x5cb4cb
xor eax, eax
pop esi
leave
ret 4

Function at 0x5cdcf0
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x58], ecx
ret
Function at 0x5e2ce0
Capabilities:
Hash data using sha1

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
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
mov dword [eax + 0x5c], ecx
ret
Function at 0x602d89
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
inc esi
cmp dword [0x6648a8], esi
push edi
jne 0x602da9
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp dword [ebp + 0xc], 0
mov al, byte [ebp + 0x10]
mov dword [0x6648a4], esi
mov byte [0x6648a0], al
jne 0x602e0f
mov ecx, dword [0x74d6ec]
test ecx, ecx
je 0x602df0
mov eax, dword [0x74d6e8]
sub eax, 4
cmp eax, ecx
jmp 0x602de9
mov eax, dword [eax]
test eax, eax
je 0x602ddb
call eax
mov eax, dword [0x74d6e8]
sub eax, 4
cmp eax, dword [0x74d6ec]
mov dword [0x74d6e8], eax
jae 0x602dd3
mov eax, 0x6462c8
mov esi, 0x6462d4
cmp eax, esi
mov edi, eax
jae 0x602e0f
mov eax, dword [edi]
test eax, eax
je 0x602e08
call eax
add edi, 4
cmp edi, esi
jb 0x602e00
mov eax, 0x6462d8
mov esi, 0x6462e0
cmp eax, esi
mov edi, eax
jae 0x602e2e
mov eax, dword [edi]
test eax, eax
je 0x602e27
call eax
add edi, 4
cmp edi, esi
jb 0x602e1f
cmp dword [ebp + 0x10], 0
pop edi
pop esi
jne 0x602e49
push dword [ebp + 8]
mov dword [0x6648a8], 1
call fcn.00602cf4
pop ecx
pop ebp
ret

Function at 0x607070
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x659c50]
xor eax, dword [ebp + 4]
mov ecx, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 4], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x659c68]
je 0x60709d
inc eax
cmp eax, 0x12
jb 0x60708e
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x659c68]
jne 0x6071d1
mov eax, dword [0x664854]
cmp eax, 1
je 0x6071ac
cmp eax, edx
jne 0x6070cd
cmp dword [0x659964], 1
je 0x6071ac
cmp ecx, 0xfc
je 0x6071d1
push 0x104
lea eax, [ebp - 0x10c]
push eax
push edx
mov byte [ebp - 8], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x607106
lea eax, [ebp - 0x10c]
push str._program_name_unknown_
push eax
call fcn.00608f50
pop ecx
pop ecx
lea eax, [ebp - 0x10c]
push eax
lea edi, [ebp - 0x10c]
call fcn.00605ef0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x607148
lea eax, [ebp - 0x10c]
push eax
call fcn.00605ef0
mov edi, eax
lea eax, [ebp - 0x10c]
sub eax, 0x3b
push 3
add edi, eax
push 0x640bb4
push edi
call fcn.006034d0
add esp, 0x10
push edi
call fcn.00605ef0
push dword [esi + 0x659c6c]
mov ebx, eax
call fcn.00605ef0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00602270
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00608f50
push edi
push ebx
call fcn.00608f60
push 0x624bfc
push ebx
call fcn.00608f60
push dword [esi + 0x659c6c]
push ebx
call fcn.00608f60
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.0060aa01
add esp, 0x2c
jmp 0x6071d1
push edx
lea eax, [ebp + 8]
push eax
lea esi, [esi + 0x659c6c]
push dword [esi]
call fcn.00605ef0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x118]
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
call fcn.00606017
pop edi
pop esi
pop ebx
leave
ret
Function at 0x609126
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [ebp + 8]
cmp esi, dword [0x74c580]
push edi
jae 0x6092ed
mov eax, esi
sar eax, 5
lea ebx, [eax*4 + 0x74c5a0]
mov eax, dword [ebx]
and esi, 0x1f
shl esi, 3
add eax, esi
mov dl, byte [eax + 4]
test dl, 1
je 0x6092ed
and dword [ebp - 0xc], 0
cmp dword [ebp + 0x10], 0
mov edi, dword [ebp + 0xc]
mov ecx, edi
je 0x6091cc
test dl, 2
jne 0x6091cc
test dl, 0x48
je 0x609196
mov al, byte [eax + 5]
cmp al, 0xa
je 0x609196
dec dword [ebp + 0x10]
mov byte [edi], al
mov eax, dword [ebx]
lea ecx, [edi + 1]
mov dword [ebp - 0xc], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0x10]
mov eax, dword [ebx]
push ecx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x6091df
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop ecx
cmp eax, ecx
jne 0x6091c7
mov dword [0x664860], ecx
jmp 0x6092f4
cmp eax, 0x6d
jne 0x6091d3
xor eax, eax
jmp 0x609301
push eax
call fcn.0060a2a2
pop ecx
jmp 0x6092fe
mov eax, dword [ebx]
mov edx, dword [ebp - 0x10]
add dword [ebp - 0xc], edx
lea ecx, [eax + esi + 4]
mov al, byte [ecx]
test al, al
jns 0x6092e8
test edx, edx
je 0x609202
cmp byte [edi], 0xa
jne 0x609202
or al, 4
jmp 0x609204
and al, 0xfb
mov byte [ecx], al
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0xc]
add ecx, eax
cmp eax, ecx
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], ecx
jae 0x6092e2
mov eax, dword [ebp - 8]
mov al, byte [eax]
cmp al, 0x1a
je 0x6092d2
cmp al, 0xd
je 0x609238
mov byte [edi], al
inc edi
inc dword [ebp - 8]
jmp 0x6092c4
dec ecx
cmp dword [ebp - 8], ecx
jae 0x609252
mov eax, dword [ebp - 8]
inc eax
cmp byte [eax], 0xa
jne 0x60924d
add dword [ebp - 8], 2
jmp 0x6092a6
mov dword [ebp - 8], eax
jmp 0x6092c0
inc dword [ebp - 8]
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x60927a
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x6092c0
cmp dword [ebp - 0x10], 0
je 0x6092c0
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x48
je 0x60929b
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x6092a6
mov byte [edi], 0xd
mov ecx, dword [ebx]
mov byte [ecx + esi + 5], al
jmp 0x6092c3
cmp edi, dword [ebp + 0xc]
jne 0x6092ab
cmp byte [ebp - 1], 0xa
jne 0x6092ab
mov byte [edi], 0xa
jmp 0x6092c3
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00609511
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x6092c4
mov byte [edi], 0xd
inc edi
mov ecx, dword [ebp - 0xc]
cmp dword [ebp - 8], ecx
jb 0x60921c
jmp 0x6092e2
mov eax, dword [ebx]
lea esi, [eax + esi + 4]
mov al, byte [esi]
test al, 0x40
jne 0x6092e2
or al, 2
mov byte [esi], al
sub edi, dword [ebp + 0xc]
mov dword [ebp - 0xc], edi
mov eax, dword [ebp - 0xc]
jmp 0x609301
and dword [0x664860], 0
mov dword [0x66485c], 9
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x609306
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x659c50]
xor eax, dword [ebp + 4]
mov ecx, dword [ebp + 8]
cmp ecx, dword [0x74c580]
push ebx
push esi
mov dword [ebp - 4], eax
push edi
jae 0x609496
mov eax, ecx
sar eax, 5
lea ebx, [eax*4 + 0x74c5a0]
mov eax, dword [ebx]
mov esi, ecx
and esi, 0x1f
shl esi, 3
mov al, byte [eax + esi + 4]
test al, 1
mov dword [ebp - 0x18], ebx
je 0x609496
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x14], edi
jne 0x609365
xor eax, eax
jmp 0x6094aa
test al, 0x20
je 0x609376
push 2
push edi
push edi
push ecx
call fcn.0060b8a7
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x609432
cmp dword [ebp + 0x10], edi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], eax
mov dword [ebp + 8], edi
jbe 0x60946a
mov ecx, dword [ebp - 8]
sub ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x41c]
cmp ecx, dword [ebp + 0x10]
jae 0x6093cc
mov edx, dword [ebp - 8]
inc dword [ebp - 8]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x6093bd
inc dword [ebp - 0x14]
mov byte [eax], 0xd
inc eax
inc edi
mov ebx, dword [ebp - 0x18]
mov byte [eax], dl
inc eax
inc edi
cmp edi, 0x400
jl 0x6093a2
mov edi, eax
lea eax, [ebp - 0x41c]
sub edi, eax
push 0
lea eax, [ebp - 0x10]
push eax
push edi
lea eax, [ebp - 0x41c]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x60940c
mov eax, dword [ebp - 0x10]
add dword [ebp - 0xc], eax
cmp eax, edi
jl 0x609415
mov eax, dword [ebp - 8]
sub eax, dword [ebp + 0xc]
xor edi, edi
cmp eax, dword [ebp + 0x10]
jb 0x609396
jmp 0x609417
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 8], eax
xor edi, edi
mov eax, dword [ebp - 0xc]
cmp eax, edi
jne 0x609491
cmp dword [ebp + 8], edi
je 0x60946a
push 5
pop eax
cmp dword [ebp + 8], eax
jne 0x60945f
mov dword [0x664860], eax
jmp 0x60949d
push edi
lea ecx, [ebp - 0x10]
push ecx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x609454
mov eax, dword [ebp - 0x10]
mov dword [ebp + 8], edi
mov dword [ebp - 0xc], eax
jmp 0x609417
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 8], eax
jmp 0x609417
push dword [ebp + 8]
call fcn.0060a2a2
pop ecx
jmp 0x6094a7
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x60947f
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0x1a
je 0x60935e
mov dword [0x66485c], 0x1c
mov dword [0x664860], edi
jmp 0x6094a7
sub eax, dword [ebp - 0x14]
jmp 0x6094aa
and dword [0x664860], 0
mov dword [0x66485c], 9
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop edi
pop esi
pop ebx
call fcn.00606017
leave
ret