joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43c500
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
push esi
mov esi, dword [ebp + 8]
push edi
xor eax, eax
mov byte [ebp - 0x410], 0
mov ecx, 0x100
lea edi, [ebp - 0x40f]
rep stosd dword es:[edi], eax
mov edi, 0x400
push edi
lea eax, [ebp - 0x410]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowTextA]
cmp dword [ebx + 0x7f0], 0
mov dword [ebx + 0x7ec], esi
jge 0x43c562
lea eax, [ebp - 0x410]
push eax
call fcn.00446710
pop ecx
push eax
lea eax, [ebp - 0x410]
push eax
call dword [sym.imp.USER32.dll_CharLowerBuffA]
push dword [ebx + 0x7f0]
call fcn.00446700
dec eax
pop ecx
je 0x43c6a2
dec eax
je 0x43c685
dec eax
je 0x43c675
dec eax
jne 0x43c6ce
push 0xa
lea esi, [ebx + 0x7a0]
push str.classname
call fcn.004149d4
push eax
call fcn.00452a7a
add esp, 0xc
test eax, eax
jne 0x43c5d6
push edi
lea eax, [ebp - 0x410]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetClassNameA]
call fcn.004149d4
add eax, 0xa
push eax
lea eax, [ebp - 0x410]
push eax
call fcn.004464e0
pop ecx
pop ecx
jmp 0x43c6ca
push 0x45b6b8
call fcn.004149d4
push eax
call fcn.004485be
test eax, eax
pop ecx
pop ecx
je 0x43c65e
call fcn.004149d4
push eax
call fcn.00446710
pop ecx
push eax
lea eax, [ebp - 0x410]
push eax
call fcn.004149d4
push eax
call fcn.00447330
add esp, 0xc
test eax, eax
je 0x43c65e
push 7
push str.regexp
call fcn.004149d4
push eax
call fcn.00452a7a
add esp, 0xc
test eax, eax
jne 0x43c6ce
lea eax, [ebp - 0x410]
push eax
lea esi, [ebp - 0xc]
call fcn.00413004
lea esi, [ebx + 0x7d0]
lea eax, [ebp - 0xc]
call fcn.0040c741
push dword [ebp - 0xc]
mov byte [ebp + 0xb], al
call fcn.0044627e
cmp byte [ebp + 0xb], 0
pop ecx
je 0x43c6ce
mov edi, ebx
call fcn.0043c6d7
cmp al, 1
jne 0x43c6ce
cmp byte [ebx + 0x806], al
jne 0x43c6ce
xor eax, eax
jmp 0x43c6d1
lea esi, [ebx + 0x7a0]
call fcn.004149d4
jmp 0x43c5c2
lea esi, [ebx + 0x7a0]
call fcn.004149d4
push eax
lea eax, [ebp - 0x410]
push eax
call fcn.00447a90
pop ecx
test eax, eax
jmp 0x43c65b
lea esi, [ebx + 0x7a0]
call fcn.004149d4
push eax
call fcn.00446710
pop ecx
push eax
lea eax, [ebp - 0x410]
push eax
call fcn.004149d4
push eax
call fcn.00447330
add esp, 0xc
test eax, eax
je 0x43c65e
xor eax, eax
inc eax
pop edi
pop esi
leave
ret 4
Function at 0x43c751
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x8000
call fcn.0044f5b0
push esi
push dword [ebp + 8]
mov byte [ebp - 0x8000], 0
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jne 0x43c780
cmp byte [edi + 0x804], 1
jne 0x43c80e
cmp dword [edi + 0x7f4], 2
lea eax, [ebp - 0x8000]
jne 0x43c7a0
push 0x7fff
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x43c7b1
push eax
push 0x7fff
push 0xd
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageA]
cmp dword [edi + 0x7f0], 0
mov esi, eax
mov byte [ebp - 1], 0
jge 0x43c7db
lea eax, [ebp - 0x8000]
push eax
call fcn.00446710
pop ecx
push eax
lea eax, [ebp - 0x8000]
push eax
call dword [sym.imp.USER32.dll_CharLowerBuffA]
test esi, esi
je 0x43c80e
lea esi, [edi + 0x7b8]
call fcn.004149d4
push eax
lea eax, [ebp - 0x8000]
push eax
call fcn.00447a90
test eax, eax
pop ecx
pop ecx
je 0x43c80e
push dword [edi + 0x7ec]
mov esi, edi
call fcn.0043c2a3
xor eax, eax
jmp 0x43c811
xor eax, eax
inc eax
pop esi
leave
ret 4

Function at 0x43ce4a
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
mov eax, dword [edi + 0x814]
cmp eax, 2
push esi
mov dword [ebp - 4], 1
jne 0x43ce81
lea eax, [edi + 0x818]
call fcn.00414ab3
push ebx
mov esi, eax
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
cmp esi, eax
jmp 0x43cf1b
test eax, eax
lea eax, [ebp - 0x408]
jne 0x43cef2
push 0x100
push eax
push ebx
call dword [sym.imp.USER32.dll_GetClassNameA]
lea eax, [ebp - 0x408]
push eax
lea esi, [edi + 0x818]
call fcn.00446710
pop ecx
push eax
lea eax, [ebp - 0x408]
push eax
call fcn.004149d4
push eax
call fcn.00447330
add esp, 0xc
test eax, eax
jne 0x43cf2e
lea eax, [edi + 0x830]
inc dword [eax]
push dword [eax]
lea eax, [ebp - 0x408]
push eax
push str._s_u
push eax
call fcn.00447369
add esp, 0x10
call fcn.004149d4
push eax
lea eax, [ebp - 0x408]
jmp 0x43cf11
push 0x400
push eax
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea eax, [ebp - 0x408]
push eax
lea esi, [edi + 0x818]
call fcn.004149d4
push eax
call fcn.004464e0
pop ecx
pop ecx
test eax, eax
jne 0x43cf2e
and dword [ebp - 4], 0
mov dword [edi + 0x838], ebx
mov byte [edi + 0x834], 1
mov eax, dword [ebp - 4]
pop esi
leave
ret

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

Disassembly:
push esi
xor esi, esi
inc esi
mov dword [0x46bb58], eax
push edi
mov edx, esi
mov eax, 0x46bb58
mov ecx, dword [eax]
mov edi, ecx
shr edi, 0x1e
xor edi, ecx
imul edi, edi, 0x6c078965
add edi, edx
mov dword [eax + 4], edi
add eax, 4
inc edx
cmp eax, 0x46c514
jl 0x43f73c
pop edi
mov dword [0x4633d8], esi
mov dword [0x46c534], esi
pop esi
ret
Function at 0x43f76a
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 0x43f78a
push 0
call fcn.00448972
pop ecx
call fcn.0043f72b
mov dword [0x4633d8], 0x270
mov dword [0x46bb50], esi
mov edx, 0xe3
mov ecx, SysReAllocString
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 0x43f7a9
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 0x43f7df
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 0x43f839
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
dec dword [0x4633d8]
jne 0x43f846
call fcn.0043f76a
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 0x43f87d
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
dec dword [0x4633d8]
jne 0x43f88f
call fcn.0043f76a
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 0x43f8d5
fadd qword [0x45cb20]
fstp qword [ebp - 8]
fld qword [ebp - 8]
fmul qword [0x45cb10]
leave
ret

Function at 0x43ff4f
Capabilities:
Hash data with md5

Disassembly:
push 8
lea eax, [esi + 0x44]
push 0
push eax
call fcn.004466a0
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 0x4408c6
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 0x4408d2
mov dword [eax + 0x9c0], edi
mov dword [eax + 0x9c4], edi
pop edi
pop esi
pop ebx
ret
Function at 0x440902
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 0x440926
push 0
call fcn.00448972
pop ecx
mov ecx, eax
mov eax, ebx
call fcn.004408c6
mov dword [ebx + 0x9c0], 0x270
mov dword [ebx + 0x9c8], ebx
mov dword [esp + 0x10], 0xe3
mov ecx, SysReAllocString
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 0x440948
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 0x440984
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 0x4409de
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
dec dword [esi + 0x9c0]
jne 0x4409ed
mov eax, esi
call fcn.00440902
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 0x440bc4
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.004408c6
cmp dword [ebp + 0xc], ebx
jbe 0x440c07
push esi
push edi
mov eax, dword [ebp + 8]
lea esi, [ebp - 0x9cc]
lea edi, [ebx + eax]
call fcn.004409de
xor byte [edi], al
inc ebx
cmp ebx, dword [ebp + 0xc]
jb 0x440bec
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x447837
Capabilities:
Terminate process

Disassembly:
push 8
push 0x457eb8
call fcn.0044976c
push 8
call fcn.00449510
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x46352c], esi
jne 0x44786b
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 0x4478b5
cmp dword [0x473fac], edi
je 0x4478a5
mov eax, dword [0x473fa8]
sub eax, 4
mov dword [0x473fa8], eax
cmp eax, dword [0x473fac]
jb 0x4478a5
mov eax, dword [eax]
cmp eax, edi
je 0x447886
call eax
jmp 0x447886
push 0x461054
mov eax, 0x46104c
call fcn.004477b5
pop ecx
push 0x461060
mov eax, 0x461058
call fcn.004477b5
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x4478e6
cmp dword [ebp + 0x10], edi
jne 0x4478f4
mov dword [0x46352c], esi
push dword [ebp + 8]
call fcn.00447773
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x4478f3
push 8
call fcn.0044945b
pop ecx
ret
call fcn.004497a7
ret

Function at 0x447a00
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 0x447a1d
call fcn.0044b6a2
mov dword [eax], 0x16
xor eax, eax
jmp 0x447a87
push esi
push 0x8c
push 1
call fcn.00448bdd
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x447a72
push esi
call fcn.0044abca
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 0x447a50
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0x18]
push esi
push 0x44796b
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_CreateThread]
test eax, eax
jne 0x447a86
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov ebx, eax
push esi
call fcn.00446c21
test ebx, ebx
pop ecx
je 0x447a84
push ebx
call fcn.0044b6b4
pop ecx
xor eax, eax
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x448ea0
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x457fa0
call fcn.0044976c
mov edi, 0x94
mov eax, edi
call fcn.0044f5b0
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 0x448f00
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 0x448f3b
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x448f3b
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x448f53
cmp eax, 0x20b
je 0x448f40
mov dword [ebp - 0x1c], esi
jmp 0x448f67
cmp dword [ecx + 0x84], 0xe
jbe 0x448f3b
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x448f61
cmp dword [ecx + 0x74], 0xe
jbe 0x448f3b
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.00449ded
pop ecx
test eax, eax
jne 0x448f7b
push 0x1c
call fcn.00448e7c
pop ecx
call fcn.0044adc4
test eax, eax
jne 0x448f8c
push 0x10
call fcn.00448e7c
pop ecx
call fcn.0044c488
mov dword [ebp - 4], esi
call fcn.0044c7d2
test eax, eax
jge 0x448fa5
push 0x1b
call fcn.00448e57
pop ecx
call dword [sym.imp.KERNEL32.DLL_GetCommandLineA]
mov dword [0x472f84], eax
call fcn.0044f483
mov dword [0x463534], eax
call fcn.0044f3e1
test eax, eax
jge 0x448fcb
push 8
call fcn.00448e57
pop ecx
call fcn.0044f1ae
test eax, eax
jge 0x448fdc
push 9
call fcn.00448e57
pop ecx
push 1
call fcn.004477cd
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x448ff2
push eax
call fcn.00448e57
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.DLL_GetStartupInfoA]
call fcn.0044f151
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x449013
movzx eax, word [ebp - 0x40]
jmp 0x449016
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.004018f6
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x449034
push edi
call fcn.004478fa
call fcn.0044791c
jmp 0x449066
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.004497a7
ret
Function at 0x44cd4a
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 0x44cd86
xor eax, eax
jmp 0x44cef0
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 0x44cdc4
push 2
push ecx
push ecx
push dword [ebp + 0x3ac]
call fcn.004515ae
add esp, 0x10
xor ecx, ecx
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x44ce5e
cmp dword [ebp + 0x3b4], ecx
mov dword [ebp - 0x70], edi
mov dword [ebp - 0x68], ecx
jbe 0x44cec1
jmp 0x44cde8
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 0x44ce23
mov edx, dword [ebp - 0x70]
inc dword [ebp - 0x70]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x44ce14
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 0x44cdf4
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 0x44ce82
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x74], eax
cmp eax, edi
jl 0x44ce8b
mov eax, dword [ebp - 0x70]
sub eax, dword [ebp - 0x7c]
cmp eax, dword [ebp + 0x3b4]
jb 0x44cde6
jmp 0x44ce8b
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 0x44ce82
mov eax, dword [ebp - 0x80]
and dword [ebp - 0x68], 0
mov dword [ebp - 0x74], eax
jmp 0x44ce8b
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x74]
test eax, eax
jne 0x44ceeb
cmp dword [ebp - 0x68], eax
je 0x44cebe
push 5
pop esi
cmp dword [ebp - 0x68], esi
jne 0x44ceb3
call fcn.0044b6a2
mov dword [eax], 9
call fcn.0044b6ab
mov dword [eax], esi
jmp 0x44cee6
push dword [ebp - 0x68]
call fcn.0044b6b4
pop ecx
jmp 0x44cee6
mov edi, dword [ebp - 0x7c]
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x44ced3
cmp byte [edi], 0x1a
jne 0x44ced3
xor eax, eax
jmp 0x44ceee
call fcn.0044b6a2
mov dword [eax], 0x1c
call fcn.0044b6ab
and dword [eax], 0
or eax, 0xffffffff
jmp 0x44ceee
sub eax, dword [ebp - 0x78]
pop esi
pop ebx
mov ecx, dword [ebp + 0x3a0]
xor ecx, ebp
pop edi
call fcn.0044c7c4
add ebp, 0x3a4
leave
ret
Function at 0x44d431
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 0x44d607
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 0x44d607
test cl, 0x48
je 0x44d49c
cmp byte [eax + 5], 0xa
je 0x44d49c
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 0x44d4ee
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x44d4d6
call fcn.0044b6a2
mov dword [eax], 9
call fcn.0044b6ab
mov dword [eax], esi
jmp 0x44d4e6
cmp eax, 0x6d
je 0x44d607
push eax
call fcn.0044b6b4
pop ecx
or eax, 0xffffffff
jmp 0x44d609
mov eax, dword [ebp - 0xc]
mov ecx, dword [edi]
add dword [ebp - 8], eax
test byte [ecx + esi + 4], 0x80
je 0x44d602
test eax, eax
je 0x44d515
cmp byte [ebx], 0xa
jne 0x44d515
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x44d51e
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 0x44d5fc
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x44d5ec
cmp al, 0xd
je 0x44d550
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x44d5de
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x44d56a
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x44d565
add dword [ebp + 0x10], 2
jmp 0x44d5be
mov dword [ebp + 0x10], eax
jmp 0x44d5da
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 0x44d592
call dword [sym.imp.KERNEL32.DLL_GetLastError]
test eax, eax
jne 0x44d5da
cmp dword [ebp - 0xc], 0
je 0x44d5da
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x44d5b3
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x44d5be
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x44d5dd
cmp ebx, dword [ebp + 0xc]
jne 0x44d5c3
cmp byte [ebp - 1], 0xa
jne 0x44d5c3
mov byte [ebx], 0xa
jmp 0x44d5dd
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004515ae
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x44d5de
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x44d534
jmp 0x44d5fc
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x44d5fc
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 0x44d609
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x44efa0
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 0x44efd7
inc eax
cmp eax, 0x13
jb 0x44efc8
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x461c90]
jne 0x44f0fa
mov eax, dword [0x46353c]
cmp eax, 1
je 0x44f0d5
cmp eax, edx
jne 0x44f007
cmp dword [0x461444], 1
je 0x44f0d5
cmp ecx, 0xfc
je 0x44f0fa
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 0x44f03d
lea eax, [ebp - 0x7c]
push str._program_name_unknown_
push eax
call fcn.00446290
pop ecx
pop ecx
lea edi, [ebp - 0x7c]
mov eax, edi
push eax
call fcn.00446710
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x44f071
mov eax, edi
push eax
call fcn.00446710
mov edi, eax
lea eax, [ebp - 0x7c]
sub eax, 0x3b
push 3
add edi, eax
push 0x45881c
push edi
call fcn.00446820
add esp, 0x10
push edi
call fcn.00446710
push dword [esi + 0x461c94]
mov ebx, eax
call fcn.00446710
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.0044f5b0
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00446290
push edi
push ebx
call fcn.004462a0
push 0x45a048
push ebx
call fcn.004462a0
push dword [esi + 0x461c94]
push ebx
call fcn.004462a0
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.00451770
add esp, 0x2c
jmp 0x44f0fa
push edx
lea eax, [ebp - 0x80]
push eax
lea esi, [esi + 0x461c94]
push dword [esi]
call fcn.00446710
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.0044c7c4
add ebp, 0x90
leave
ret