joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42ccba
Capabilities:
Connect network resource
Query or enumerate registry value

Disassembly:
mov eax, 0x454f08
call fcn.00454158
sub esp, 0x154
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], ebx
call fcn.00413036
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], ebx
call fcn.00413036
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 1
call fcn.00413036
push str.SOFTWAREClasses_
lea eax, [ebp - 0x30]
mov byte [ebp - 4], 2
push eax
mov dword [ebp - 0x18], 0xff
call fcn.0041316e
push dword [ebp + 8]
or edi, 0xffffffff
mov eax, edi
lea ecx, [ebp - 0x30]
call fcn.00413379
push str.CLSID
mov eax, edi
lea ecx, [ebp - 0x30]
call fcn.00413379
push 0x459596
lea eax, [ebp - 0x24]
push eax
call fcn.0041316e
cmp esi, ebx
je 0x42cd64
cmp byte [esi], 0x5c
je 0x42cd64
cmp byte [esi + 1], 0x5c
je 0x42cd64
push 0x45be04
lea eax, [ebp - 0x24]
push eax
call fcn.0041316e
push esi
mov eax, edi
lea ecx, [ebp - 0x24]
call fcn.00413379
cmp dword [ebp + 0x10], ebx
je 0x42cdb8
push 0x20
lea eax, [ebp - 0x5c]
push ebx
push eax
call fcn.00446660
mov dword [ebp - 0x58], ebx
add esp, 0xc
lea ebx, [ebp - 0x24]
lea eax, [ebp - 0x3c]
call fcn.004133c8
push str.IPC_
mov eax, edi
lea ecx, [ebp - 0x3c]
call fcn.00413379
mov eax, dword [ebp - 0x3c]
push 0
push dword [ebp + 0x10]
mov dword [ebp - 0x48], eax
push dword [ebp + 0x14]
lea eax, [ebp - 0x5c]
push eax
call sub.MPR.dll_WNetAddConnection2A
mov esi, eax
xor ebx, ebx
test esi, esi
jne 0x42ce49
lea eax, [ebp - 0x10]
push eax
push reloc.WSOCK32.dll_bind
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_RegConnectRegistryA]
mov esi, eax
cmp esi, ebx
jne 0x42ce49
lea eax, [ebp - 0x14]
push eax
push 0x20019
push ebx
push dword [ebp - 0x30]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
cmp esi, ebx
jne 0x42ce40
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x160]
push eax
push ebx
push ebx
push ebx
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
cmp esi, ebx
jne 0x42ce37
mov eax, dword [ebp - 0x18]
mov byte [ebp + eax - 0x160], bl
lea eax, [ebp - 0x160]
push ebx
push eax
call fcn.00412a6f
pop ecx
pop ecx
push dword [ebp + 0xc]
mov edi, eax
push edi
call dword [sym.imp.ole32.dll_CLSIDFromString]
push edi
mov esi, eax
call fcn.0044624a
pop ecx
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], 1
push dword [ebp - 0x3c]
call fcn.0044624a
mov byte [ebp - 4], bl
push dword [ebp - 0x24]
call fcn.0044624a
or dword [ebp - 4], 0xffffffff
push dword [ebp - 0x30]
call fcn.0044624a
mov ecx, dword [ebp - 0xc]
add esp, 0xc
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x439bc7
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
cmp edi, 0xffffffff
je 0x439c4f
push edi
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
jne 0x439c4f
mov esi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push eax
xor ebx, ebx
push ebx
push ebx
push edi
call esi
cmp dword [ebp + 0xc], ebx
mov dword [ebp - 4], eax
je 0x439c23
cmp dword [ebp + 0x10], ebx
jbe 0x439c23
push ebx
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x439c1b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
jmp 0x439c51
push ebx
push ebx
push dword [ebp - 4]
push edi
call esi
cmp dword [ebp + 0x18], ebx
je 0x439c43
push 2
push ebx
push ebx
push edi
call esi
push ebx
push ebx
push dword [ebp - 4]
mov edi, eax
push dword [ebp + 8]
call esi
sub edi, dword [ebp - 4]
mov eax, dword [ebp + 0x18]
mov dword [eax], edi
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
inc eax
jmp 0x439c59
push 6
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x43f737
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ecx
cmp dword [0x46c534], 0
push ebx
push ebp
push esi
push edi
mov esi, 0x46bb58
jne 0x43f757
push 0
call fcn.00448932
pop ecx
call fcn.0043f6f8
mov dword [0x4633d8], 0x270
mov dword [0x46bb50], esi
mov edx, 0xe3
mov ecx, bind
mov eax, 0x9908b0df
mov ebx, dword [esi]
lea edi, [esi + 4]
mov ebp, dword [edi]
xor ebx, ebp
and ebx, ecx
xor ebx, dword [esi]
mov dword [esp + 0x10], ecx
mov ecx, ebp
and cl, 1
shr ebx, 1
neg cl
sbb ecx, ecx
and ecx, eax
xor ebx, ecx
xor ebx, dword [esi + 0x634]
dec edx
mov ecx, dword [esp + 0x10]
mov dword [esi], ebx
mov esi, edi
jne 0x43f776
mov edx, 0x18c
mov ebx, dword [esi]
lea edi, [esi + 4]
mov ebp, dword [edi]
xor ebx, ebp
and ebx, ecx
xor ebx, dword [esi]
mov dword [esp + 0x10], ecx
mov ecx, ebp
and cl, 1
shr ebx, 1
neg cl
sbb ecx, ecx
and ecx, eax
xor ebx, ecx
xor ebx, dword [esi - 0x38c]
dec edx
mov ecx, dword [esp + 0x10]
mov dword [esi], ebx
mov esi, edi
jne 0x43f7ac
mov edx, dword [0x46bb58]
mov edi, dword [esi]
xor edi, edx
and edi, ecx
xor edi, dword [esi]
and dl, 1
shr edi, 1
neg dl
sbb edx, edx
and edx, eax
xor edi, edx
xor edi, dword [esi - 0x38c]
mov dword [esi], edi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x43f806
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
dec dword [0x4633d8]
jne 0x43f813
call fcn.0043f737
mov eax, dword [0x46bb50]
mov ecx, dword [eax]
add dword [0x46bb50], 4
mov eax, ecx
shr eax, 0xb
xor ecx, eax
mov eax, ecx
and eax, 0xff3a58ad
shl eax, 7
xor ecx, eax
mov eax, ecx
and eax, 0xffffdf8c
shl eax, 0xf
xor ecx, eax
mov eax, ecx
shr eax, 0x12
xor eax, ecx
shr eax, 1
ret

Function at 0x43f84a
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
dec dword [0x4633d8]
jne 0x43f85c
call fcn.0043f737
mov eax, dword [0x46bb50]
mov eax, dword [eax]
add dword [0x46bb50], 4
mov ecx, eax
shr ecx, 0xb
xor eax, ecx
mov ecx, eax
and ecx, 0xff3a58ad
shl ecx, 7
xor eax, ecx
mov ecx, eax
and ecx, 0xffffdf8c
shl ecx, 0xf
xor eax, ecx
mov ecx, eax
shr ecx, 0x12
xor ecx, eax
test ecx, ecx
mov dword [ebp - 4], ecx
fild dword [ebp - 4]
jge 0x43f8a2
fadd qword [0x45cb28]
fstp qword [ebp - 8]
fld qword [ebp - 8]
fmul qword [0x45cb18]
leave
ret

Function at 0x43ff1c
Capabilities:
Hash data with md5

Disassembly:
push 8
lea eax, [esi + 0x44]
push 0
push eax
call fcn.00446660
add esp, 0xc
mov dword [esi + 0x34], 0x67452301
mov dword [esi + 0x38], 0xefcdab89
mov dword [esi + 0x3c], 0x98badcfe
mov dword [esi + 0x40], 0x10325476
ret

Function at 0x440893
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebx
push esi
push edi
xor edi, edi
inc edi
mov dword [eax], ecx
mov esi, edi
mov ecx, eax
mov edx, dword [ecx]
mov ebx, edx
shr ebx, 0x1e
xor ebx, edx
imul ebx, ebx, 0x6c078965
add ebx, esi
mov dword [ecx + 4], ebx
inc esi
add ecx, 4
cmp esi, 0x270
jl 0x44089f
mov dword [eax + 0x9c0], edi
mov dword [eax + 0x9c4], edi
pop edi
pop esi
pop ebx
ret
Function at 0x4408cf
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ecx
push ecx
push ebx
push ebp
mov ebx, eax
cmp dword [ebx + 0x9c4], 0
push esi
push edi
mov esi, ebx
jne 0x4408f3
push 0
call fcn.00448932
pop ecx
mov ecx, eax
mov eax, ebx
call fcn.00440893
mov dword [ebx + 0x9c0], 0x270
mov dword [ebx + 0x9c8], ebx
mov dword [esp + 0x10], 0xe3
mov ecx, bind
mov eax, 0x9908b0df
mov edx, dword [esi]
lea edi, [esi + 4]
mov ebp, dword [edi]
xor edx, ebp
and edx, ecx
xor edx, dword [esi]
mov dword [esp + 0x14], ecx
mov ecx, ebp
and cl, 1
shr edx, 1
neg cl
sbb ecx, ecx
and ecx, eax
xor edx, ecx
xor edx, dword [esi + 0x634]
dec dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov dword [esi], edx
mov esi, edi
jne 0x440915
mov dword [esp + 0x10], 0x18c
mov edx, dword [esi]
lea edi, [esi + 4]
mov ebp, dword [edi]
xor edx, ebp
and edx, ecx
xor edx, dword [esi]
mov dword [esp + 0x14], ecx
mov ecx, ebp
and cl, 1
shr edx, 1
neg cl
sbb ecx, ecx
and ecx, eax
xor edx, ecx
xor edx, dword [esi - 0x38c]
dec dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov dword [esi], edx
mov esi, edi
jne 0x440951
mov ebx, dword [ebx]
mov edx, dword [esi]
xor edx, ebx
and edx, ecx
xor edx, dword [esi]
and bl, 1
shr edx, 1
neg bl
pop edi
sbb ebx, ebx
and ebx, eax
xor edx, ebx
xor edx, dword [esi - 0x38c]
mov dword [esi], edx
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret

Function at 0x4409ab
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
dec dword [esi + 0x9c0]
jne 0x4409ba
mov eax, esi
call fcn.004408cf
lea eax, [esi + 0x9c8]
mov edx, dword [eax]
mov ecx, dword [edx]
add edx, 4
mov dword [eax], edx
mov eax, ecx
shr eax, 0xb
xor ecx, eax
mov eax, ecx
and eax, 0xff3a58ad
shl eax, 7
xor ecx, eax
mov eax, ecx
and eax, 0xffffdf8c
shl eax, 0xf
xor ecx, eax
mov eax, ecx
shr eax, 0x12
xor eax, ecx
shr eax, 1
ret

Function at 0x440b91
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9cc
push ebx
xor ebx, ebx
lea eax, [ebp - 0x9cc]
mov dword [ebp - 0xc], 1
mov dword [ebp - 8], ebx
call fcn.00440893
cmp dword [ebp + 0xc], ebx
jbe 0x440bd4
push esi
push edi
mov eax, dword [ebp + 8]
lea esi, [ebp - 0x9cc]
lea edi, [ebx + eax]
call fcn.004409ab
xor byte [edi], al
inc ebx
cmp ebx, dword [ebp + 0xc]
jb 0x440bb9
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x4477f7
Capabilities:
Terminate process

Disassembly:
push 8
push 0x457eb8
call fcn.0044972c
push 8
call fcn.004494d0
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x46352c], esi
jne 0x44782b
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x463528], esi
mov al, byte [ebp + 0x10]
mov byte [0x463524], al
cmp dword [ebp + 0xc], edi
jne 0x447875
cmp dword [0x473fac], edi
je 0x447865
mov eax, dword [0x473fa8]
sub eax, 4
mov dword [0x473fa8], eax
cmp eax, dword [0x473fac]
jb 0x447865
mov eax, dword [eax]
cmp eax, edi
je 0x447846
call eax
jmp 0x447846
push 0x461054
mov eax, 0x46104c
call fcn.00447775
pop ecx
push 0x461060
mov eax, 0x461058
call fcn.00447775
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x4478a6
cmp dword [ebp + 0x10], edi
jne 0x4478b4
mov dword [0x46352c], esi
push dword [ebp + 8]
call fcn.00447733
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x4478b3
push 8
call fcn.0044941b
pop ecx
ret
call fcn.00449767
ret

Function at 0x4479c0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, dword [ebp + 0x10]
xor ebx, ebx
test edi, edi
jne 0x4479dd
call fcn.0044b662
mov dword [eax], 0x16
xor eax, eax
jmp 0x447a47
push esi
push 0x8c
push 1
call fcn.00448b9d
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x447a32
push esi
call fcn.0044ab8a
mov eax, dword [ebp + 0x14]
or dword [esi + 4], 0xffffffff
mov dword [esi + 0x50], eax
mov eax, dword [ebp + 0x1c]
test eax, eax
pop ecx
mov dword [esi + 0x4c], edi
jne 0x447a10
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0x18]
push esi
push 0x44792b
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x447a46
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push esi
call fcn.00446be1
test ebx, ebx
pop ecx
je 0x447a44
push ebx
call fcn.0044b674
pop ecx
xor eax, eax
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x448e60
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x457fa0
call fcn.0044972c
mov edi, 0x94
mov eax, edi
call fcn.0044f570
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x4634ec], ecx
mov eax, dword [esi + 4]
mov dword [0x4634f8], eax
mov edx, dword [esi + 8]
mov dword [0x4634fc], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x4634f0], esi
cmp ecx, 2
je 0x448ec0
or esi, 0x8000
mov dword [0x4634f0], esi
shl eax, 8
add eax, edx
mov dword [0x4634f4], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x448efb
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x448efb
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x448f13
cmp eax, 0x20b
je 0x448f00
mov dword [ebp - 0x1c], esi
jmp 0x448f27
cmp dword [ecx + 0x84], 0xe
jbe 0x448efb
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x448f21
cmp dword [ecx + 0x74], 0xe
jbe 0x448efb
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.00449dad
pop ecx
test eax, eax
jne 0x448f3b
push 0x1c
call fcn.00448e3c
pop ecx
call fcn.0044ad84
test eax, eax
jne 0x448f4c
push 0x10
call fcn.00448e3c
pop ecx
call fcn.0044c448
mov dword [ebp - 4], esi
call fcn.0044c792
test eax, eax
jge 0x448f65
push 0x1b
call fcn.00448e17
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x472f84], eax
call fcn.0044f443
mov dword [0x463534], eax
call fcn.0044f3a1
test eax, eax
jge 0x448f8b
push 8
call fcn.00448e17
pop ecx
call fcn.0044f16e
test eax, eax
jge 0x448f9c
push 9
call fcn.00448e17
pop ecx
push 1
call fcn.0044778d
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x448fb2
push eax
call fcn.00448e17
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.0044f111
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x448fd3
movzx eax, word [ebp - 0x40]
jmp 0x448fd6
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.004018a7
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x448ff4
push edi
call fcn.004478ba
call fcn.004478dc
jmp 0x449026
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.00449767
ret
Function at 0x44cd0a
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a4]
sub esp, 0x424
mov eax, dword [0x461a50]
xor ecx, ecx
xor eax, ebp
cmp dword [ebp + 0x3b4], ecx
push edi
mov edi, dword [ebp + 0x3b0]
mov dword [ebp + 0x3a0], eax
mov dword [ebp - 0x7c], edi
mov dword [ebp - 0x74], ecx
mov dword [ebp - 0x78], ecx
jne 0x44cd46
xor eax, eax
jmp 0x44ceb0
mov eax, dword [ebp + 0x3ac]
push ebx
mov ebx, dword [ebp + 0x3ac]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x472c20]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x44cd84
push 2
push ecx
push ecx
push dword [ebp + 0x3ac]
call fcn.0045156e
add esp, 0x10
xor ecx, ecx
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x44ce1e
cmp dword [ebp + 0x3b4], ecx
mov dword [ebp - 0x70], edi
mov dword [ebp - 0x68], ecx
jbe 0x44ce81
jmp 0x44cda8
xor ecx, ecx
mov dword [ebp - 0x6c], ecx
mov ecx, dword [ebp - 0x70]
sub ecx, dword [ebp - 0x7c]
lea eax, [ebp - 0x64]
cmp ecx, dword [ebp + 0x3b4]
jae 0x44cde3
mov edx, dword [ebp - 0x70]
inc dword [ebp - 0x70]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x44cdd4
inc dword [ebp - 0x78]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0x6c]
mov byte [eax], dl
inc eax
inc dword [ebp - 0x6c]
cmp dword [ebp - 0x6c], 0x400
jl 0x44cdb4
mov edi, eax
lea eax, [ebp - 0x64]
sub edi, eax
push 0
lea eax, [ebp - 0x80]
push eax
push edi
lea eax, [ebp - 0x64]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x44ce42
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x74], eax
cmp eax, edi
jl 0x44ce4b
mov eax, dword [ebp - 0x70]
sub eax, dword [ebp - 0x7c]
cmp eax, dword [ebp + 0x3b4]
jb 0x44cda6
jmp 0x44ce4b
push ecx
lea ecx, [ebp - 0x80]
push ecx
push dword [ebp + 0x3b4]
push edi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x44ce42
mov eax, dword [ebp - 0x80]
and dword [ebp - 0x68], 0
mov dword [ebp - 0x74], eax
jmp 0x44ce4b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x74]
test eax, eax
jne 0x44ceab
cmp dword [ebp - 0x68], eax
je 0x44ce7e
push 5
pop esi
cmp dword [ebp - 0x68], esi
jne 0x44ce73
call fcn.0044b662
mov dword [eax], 9
call fcn.0044b66b
mov dword [eax], esi
jmp 0x44cea6
push dword [ebp - 0x68]
call fcn.0044b674
pop ecx
jmp 0x44cea6
mov edi, dword [ebp - 0x7c]
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x44ce93
cmp byte [edi], 0x1a
jne 0x44ce93
xor eax, eax
jmp 0x44ceae
call fcn.0044b662
mov dword [eax], 0x1c
call fcn.0044b66b
and dword [eax], 0
or eax, 0xffffffff
jmp 0x44ceae
sub eax, dword [ebp - 0x78]
pop esi
pop ebx
mov ecx, dword [ebp + 0x3a0]
xor ecx, ebp
pop edi
call fcn.0044c784
add ebp, 0x3a4
leave
ret
Function at 0x44d3f1
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
cmp dword [ebp + 0x10], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edx, ebx
je 0x44d5c7
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x472c20]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x44d5c7
test cl, 0x48
je 0x44d45c
cmp byte [eax + 5], 0xa
je 0x44d45c
mov eax, dword [edi]
mov al, byte [eax + esi + 5]
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea edx, [ebx + 1]
mov dword [ebp - 8], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push edx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x44d4ae
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x44d496
call fcn.0044b662
mov dword [eax], 9
call fcn.0044b66b
mov dword [eax], esi
jmp 0x44d4a6
cmp eax, 0x6d
je 0x44d5c7
push eax
call fcn.0044b674
pop ecx
or eax, 0xffffffff
jmp 0x44d5c9
mov eax, dword [ebp - 0xc]
mov ecx, dword [edi]
add dword [ebp - 8], eax
test byte [ecx + esi + 4], 0x80
je 0x44d5c2
test eax, eax
je 0x44d4d5
cmp byte [ebx], 0xa
jne 0x44d4d5
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x44d4de
mov eax, dword [edi]
lea eax, [eax + esi + 4]
and byte [eax], 0xfb
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
add ecx, eax
cmp eax, ecx
mov dword [ebp + 0x10], eax
mov dword [ebp - 8], ecx
jae 0x44d5bc
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x44d5ac
cmp al, 0xd
je 0x44d510
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x44d59e
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x44d52a
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x44d525
add dword [ebp + 0x10], 2
jmp 0x44d57e
mov dword [ebp + 0x10], eax
jmp 0x44d59a
inc dword [ebp + 0x10]
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [edi]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x44d552
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x44d59a
cmp dword [ebp - 0xc], 0
je 0x44d59a
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x44d573
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x44d57e
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x44d59d
cmp ebx, dword [ebp + 0xc]
jne 0x44d583
cmp byte [ebp - 1], 0xa
jne 0x44d583
mov byte [ebx], 0xa
jmp 0x44d59d
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0045156e
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x44d59e
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x44d4f4
jmp 0x44d5bc
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x44d5bc
lea esi, [eax + esi + 4]
or byte [esi], 2
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jmp 0x44d5c9
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x44ef60
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x90]
sub esp, 0x110
mov eax, dword [0x461a50]
mov ecx, dword [ebp + 0x98]
push ebx
xor eax, ebp
push esi
mov dword [ebp + 0x8c], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x461c90]
je 0x44ef97
inc eax
cmp eax, 0x13
jb 0x44ef88
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x461c90]
jne 0x44f0ba
mov eax, dword [0x46353c]
cmp eax, 1
je 0x44f095
cmp eax, edx
jne 0x44efc7
cmp dword [0x461444], 1
je 0x44f095
cmp ecx, 0xfc
je 0x44f0ba
push 0x104
lea eax, [ebp - 0x7c]
push eax
push edx
mov byte [ebp + 0x88], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x44effd
lea eax, [ebp - 0x7c]
push str._program_name_unknown_
push eax
call fcn.00446250
pop ecx
pop ecx
lea edi, [ebp - 0x7c]
mov eax, edi
push eax
call fcn.004466d0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x44f031
mov eax, edi
push eax
call fcn.004466d0
mov edi, eax
lea eax, [ebp - 0x7c]
sub eax, 0x3b
push 3
add edi, eax
push 0x45881c
push edi
call fcn.004467e0
add esp, 0x10
push edi
call fcn.004466d0
push dword [esi + 0x461c94]
mov ebx, eax
call fcn.004466d0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.0044f570
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00446250
push edi
push ebx
call fcn.00446260
push 0x45a050
push ebx
call fcn.00446260
push dword [esi + 0x461c94]
push ebx
call fcn.00446260
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.00451730
add esp, 0x2c
jmp 0x44f0ba
push edx
lea eax, [ebp - 0x80]
push eax
lea esi, [esi + 0x461c94]
push dword [esi]
call fcn.004466d0
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 - 0x8c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x8c]
xor ecx, ebp
call fcn.0044c784
add ebp, 0x90
leave
ret