joyce8/EMBER2024-capa huggingface dataset:
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 0x43c2a4
Capabilities:
Enumerate gui resources

Disassembly:
mov eax, 0x45541f
call fcn.00454158
sub esp, 0xc
mov al, byte [ebp + 8]
push esi
mov esi, edi
mov byte [edi + 0x806], al
call fcn.0043c23e
cmp dword [edi + 0x7a8], 7
jne 0x43c306
lea esi, [edi + 0x7a0]
mov eax, esi
call fcn.00414bb5
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x43c2ff
mov eax, esi
call fcn.00414bb5
push eax
mov esi, edi
mov dword [edi + 0x7ec], eax
call fcn.0043c270
mov al, 1
jmp 0x43c4ac
xor al, al
jmp 0x43c4ac
push ebx
push dword [edi + 0x7f0]
call fcn.004466c0
cmp eax, 4
pop ecx
lea esi, [edi + 0x7a0]
jne 0x43c444
call fcn.004149b3
cmp byte [eax], 0
je 0x43c435
push str.last
call fcn.004149b3
push eax
call fcn.0044857e
test eax, eax
pop ecx
pop ecx
je 0x43c435
push str.active
call fcn.004149b3
push eax
call fcn.0044857e
test eax, eax
pop ecx
pop ecx
jne 0x43c37b
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov dword [edi + 0x7ec], eax
push eax
mov esi, edi
call fcn.0043c270
mov al, 1
jmp 0x43c4ab
push 7
push str.handle
call fcn.004149b3
push eax
call fcn.00452a3a
add esp, 0xc
test eax, eax
jne 0x43c3aa
push str.Use_directly_Windows_handle
push 0xb8
mov ebx, edi
call fcn.0041c119
jmp 0x43c4a9
push 7
push str.regexp
call fcn.004149b3
push eax
call fcn.00452a3a
add esp, 0xc
test eax, eax
jne 0x43c462
lea ebx, [edi + 0x7d0]
mov esi, ebx
call fcn.0040c660
lea esi, [edi + 0x7a0]
call fcn.004149b3
add eax, 7
push eax
lea esi, [ebp - 0x18]
call fcn.00413053
lea eax, [ebp - 0x18]
push eax
xor esi, esi
mov eax, ebx
mov dword [ebp - 4], esi
call fcn.0040c694
test eax, eax
setne bl
or dword [ebp - 4], 0xffffffff
push dword [ebp - 0x18]
call fcn.0044624a
test bl, bl
pop ecx
je 0x43c464
xor eax, eax
push esi
inc eax
mov ecx, edi
call fcn.0041da7b
push esi
lea esi, [edi + 0x108]
call fcn.00415008
and dword [edi + 0x58], 0
mov byte [edi + 0x120], 1
jmp 0x43c4a9
mov eax, dword [edi + 0x7ec]
test eax, eax
je 0x43c4a9
jmp 0x43c36c
call fcn.004149b3
cmp byte [eax], 0
jne 0x43c462
lea esi, [edi + 0x7b8]
call fcn.004149b3
cmp byte [eax], 0
je 0x43c360
xor esi, esi
cmp byte [edi + 0x805], 0
push edi
push 0x43c4bb
jne 0x43c47b
call dword [sym.imp.USER32.dll_EnumWindows]
jmp 0x43c488
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_EnumChildWindows]
cmp dword [edi + 0x800], esi
je 0x43c4a3
mov eax, dword [edi + 0x7f8]
mov eax, dword [eax]
mov dword [edi + 0x7ec], eax
jmp 0x43c374
mov dword [edi + 0x7ec], esi
xor al, al
pop ebx
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret 4
Function at 0x43c4cd
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 0x43c52f
lea eax, [ebp - 0x410]
push eax
call fcn.004466d0
pop ecx
push eax
lea eax, [ebp - 0x410]
push eax
call dword [sym.imp.USER32.dll_CharLowerBuffA]
push dword [ebx + 0x7f0]
call fcn.004466c0
dec eax
pop ecx
je 0x43c66f
dec eax
je 0x43c652
dec eax
je 0x43c642
dec eax
jne 0x43c69b
push 0xa
lea esi, [ebx + 0x7a0]
push str.classname
call fcn.004149b3
push eax
call fcn.00452a3a
add esp, 0xc
test eax, eax
jne 0x43c5a3
push edi
lea eax, [ebp - 0x410]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetClassNameA]
call fcn.004149b3
add eax, 0xa
push eax
lea eax, [ebp - 0x410]
push eax
call fcn.004464a0
pop ecx
pop ecx
jmp 0x43c697
push 0x45b6c0
call fcn.004149b3
push eax
call fcn.0044857e
test eax, eax
pop ecx
pop ecx
je 0x43c62b
call fcn.004149b3
push eax
call fcn.004466d0
pop ecx
push eax
lea eax, [ebp - 0x410]
push eax
call fcn.004149b3
push eax
call fcn.004472f0
add esp, 0xc
test eax, eax
je 0x43c62b
push 7
push str.regexp
call fcn.004149b3
push eax
call fcn.00452a3a
add esp, 0xc
test eax, eax
jne 0x43c69b
lea eax, [ebp - 0x410]
push eax
lea esi, [ebp - 0xc]
call fcn.00413053
lea esi, [ebx + 0x7d0]
lea eax, [ebp - 0xc]
call fcn.0040c6f4
push dword [ebp - 0xc]
mov byte [ebp + 0xb], al
call fcn.0044624a
cmp byte [ebp + 0xb], 0
pop ecx
je 0x43c69b
mov edi, ebx
call fcn.0043c6a4
cmp al, 1
jne 0x43c69b
cmp byte [ebx + 0x806], al
jne 0x43c69b
xor eax, eax
jmp 0x43c69e
lea esi, [ebx + 0x7a0]
call fcn.004149b3
jmp 0x43c58f
lea esi, [ebx + 0x7a0]
call fcn.004149b3
push eax
lea eax, [ebp - 0x410]
push eax
call fcn.00447a50
pop ecx
test eax, eax
jmp 0x43c628
lea esi, [ebx + 0x7a0]
call fcn.004149b3
push eax
call fcn.004466d0
pop ecx
push eax
lea eax, [ebp - 0x410]
push eax
call fcn.004149b3
push eax
call fcn.004472f0
add esp, 0xc
test eax, eax
je 0x43c62b
xor eax, eax
inc eax
pop edi
pop esi
leave
ret 4
Function at 0x43c71e
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x8000
call fcn.0044f570
push esi
push dword [ebp + 8]
mov byte [ebp - 0x8000], 0
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jne 0x43c74d
cmp byte [edi + 0x804], 1
jne 0x43c7db
cmp dword [edi + 0x7f4], 2
lea eax, [ebp - 0x8000]
jne 0x43c76d
push 0x7fff
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x43c77e
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 0x43c7a8
lea eax, [ebp - 0x8000]
push eax
call fcn.004466d0
pop ecx
push eax
lea eax, [ebp - 0x8000]
push eax
call dword [sym.imp.USER32.dll_CharLowerBuffA]
test esi, esi
je 0x43c7db
lea esi, [edi + 0x7b8]
call fcn.004149b3
push eax
lea eax, [ebp - 0x8000]
push eax
call fcn.00447a50
test eax, eax
pop ecx
pop ecx
je 0x43c7db
push dword [edi + 0x7ec]
mov esi, edi
call fcn.0043c270
xor eax, eax
jmp 0x43c7de
xor eax, eax
inc eax
pop esi
leave
ret 4

Function at 0x43ce17
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 0x43ce4e
lea eax, [edi + 0x818]
call fcn.00414a92
push ebx
mov esi, eax
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
cmp esi, eax
jmp 0x43cee8
test eax, eax
lea eax, [ebp - 0x408]
jne 0x43cebf
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.004466d0
pop ecx
push eax
lea eax, [ebp - 0x408]
push eax
call fcn.004149b3
push eax
call fcn.004472f0
add esp, 0xc
test eax, eax
jne 0x43cefb
lea eax, [edi + 0x830]
inc dword [eax]
push dword [eax]
lea eax, [ebp - 0x408]
push eax
push str._s_u
push eax
call fcn.00447329
add esp, 0x10
call fcn.004149b3
push eax
lea eax, [ebp - 0x408]
jmp 0x43cede
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.004149b3
push eax
call fcn.004464a0
pop ecx
pop ecx
test eax, eax
jne 0x43cefb
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 0x43f6f8
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 0x43f709
pop edi
mov dword [0x4633d8], esi
mov dword [0x46c534], esi
pop esi
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, 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 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, 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 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