joyce8/EMBER2024-capa huggingface dataset:
Function at 0x438b5d
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
push ebx
push esi
push edi
push str.open
lea esi, [ebp - 0x14]
mov edi, eax
call fcn.00416a3c
xor ebx, ebx
push 0x3c
xor esi, esi
lea eax, [ebp - 0x50]
push ebx
inc esi
push eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], esi
call fcn.00448eb0
add esp, 0xc
cmp dword [ebp + 0x10], 2
jb 0x438bcf
cmp dword [edi + 0xc], esi
ja 0x438b9f
lea esi, [edi + 0x18]
jmp 0x438ba5
mov eax, dword [edi + 8]
mov esi, dword [eax + 4]
call fcn.004181d6
cmp word [eax], 0
je 0x438bcf
cmp dword [edi + 0xc], 1
ja 0x438bbb
lea esi, [edi + 0x18]
jmp 0x438bc1
mov eax, dword [edi + 8]
mov esi, dword [eax + 4]
call fcn.004181d6
push eax
call fcn.00415e61
pop ecx
mov ebx, eax
cmp dword [ebp + 0x10], 3
jb 0x438bf5
cmp dword [edi + 0xc], 2
ja 0x438be0
lea esi, [edi + 0x18]
jmp 0x438be6
mov eax, dword [edi + 8]
mov esi, dword [eax + 8]
call fcn.004181d6
push eax
call fcn.00415e61
pop ecx
mov dword [ebp - 4], eax
cmp dword [ebp + 0x10], 4
jb 0x438c37
cmp dword [edi + 0xc], 3
ja 0x438c06
lea esi, [edi + 0x18]
jmp 0x438c0c
mov eax, dword [edi + 8]
mov esi, dword [eax + 0xc]
call fcn.004181d6
cmp word [eax], 0
je 0x438c37
cmp dword [edi + 0xc], 3
ja 0x438c22
lea esi, [edi + 0x18]
jmp 0x438c28
mov eax, dword [edi + 8]
mov esi, dword [eax + 0xc]
call fcn.004181d6
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00416b3e
cmp dword [ebp + 0x10], 5
jb 0x438c59
cmp dword [edi + 0xc], 4
ja 0x438c48
lea eax, [edi + 0x18]
jmp 0x438c4e
mov eax, dword [edi + 8]
mov eax, dword [eax + 0x10]
call fcn.004182bb
movzx eax, ax
mov dword [ebp - 8], eax
push 0x3c
pop esi
push esi
lea eax, [ebp - 0x50]
push 0
push eax
call fcn.00448eb0
and dword [ebp - 0x48], 0
mov eax, dword [ebp - 0x14]
add esp, 0xc
cmp dword [edi + 0xc], 0
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x4c], 0x40
mov dword [ebp - 0x44], eax
ja 0x438c8a
lea esi, [edi + 0x18]
jmp 0x438c8f
mov eax, dword [edi + 8]
mov esi, dword [eax]
call fcn.004181d6
mov edi, dword [ebp - 4]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x50]
push eax
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x38], edi
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test ebx, ebx
mov esi, eax
je 0x438cbd
push ebx
call fcn.004488cc
pop ecx
test edi, edi
je 0x438cc8
push edi
call fcn.004488cc
pop ecx
test esi, esi
jne 0x438d11
mov ebx, dword [ebp + 8]
cmp byte [ebx + 0x294], 1
jne 0x438ced
push 0xffffffffffffffff
call fcn.0041fab5
push eax
push 0x87
call fcn.0041f91c
inc esi
jmp 0x438d05
xor ecx, ecx
push 0
inc ecx
mov eax, ebx
call fcn.004211e9
mov esi, dword [ebp + 0x14]
push 0
call fcn.00418741
xor esi, esi
push dword [ebp - 0x14]
call fcn.004488cc
mov eax, esi
jmp 0x438d48
cmp byte [ebp + 0xc], 0
je 0x438d25
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x810], eax
jmp 0x438d3e
mov esi, dword [ebp + 0x14]
push 1
call fcn.00418741
cmp dword [ebp - 0x18], 0
je 0x438d3e
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x14]
call fcn.004488cc
xor eax, eax
pop ecx
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x43bc44
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
push edi
xor ebx, ebx
lea eax, [ebp - 0x14]
push eax
push ebx
push ebx
push ebx
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push ebx
push dword [ebp + 8]
mov dword [ebp - 8], 0xff
call esi
mov edi, 0x103
jmp 0x43bcf9
xor eax, eax
cmp byte [0x478bc8], bl
je 0x43bc8d
mov eax, 0x100
lea ecx, [ebp - 0xc]
push ecx
or eax, 0x20019
push eax
push ebx
lea eax, [ebp - 0x214]
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x43bd01
push dword [ebp - 0xc]
call fcn.0043bc44
pop ecx
push dword [ebp - 0xc]
mov byte [ebp - 1], al
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [ebp - 1], bl
je 0x43bd01
lea eax, [ebp - 0x214]
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x43bd01
lea eax, [ebp - 0x14]
push eax
push ebx
push ebx
push ebx
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push ebx
push dword [ebp + 8]
mov dword [ebp - 8], 0xff
call esi
cmp eax, edi
jne 0x43bc7e
mov al, 1
jmp 0x43bd03
xor al, al
pop edi
pop esi
pop ebx
leave
ret
Function at 0x43c696
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 0x43c71e
push edi
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
jne 0x43c71e
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 0x43c6f2
cmp dword [ebp + 0x10], ebx
jbe 0x43c6f2
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 0x43c6ea
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
jmp 0x43c720
push ebx
push ebx
push dword [ebp - 4]
push edi
call esi
cmp dword [ebp + 0x18], ebx
je 0x43c712
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 0x43c728
push 6
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

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

Disassembly:
push esi
xor esi, esi
inc esi
mov dword [0x476a30], eax
push edi
mov edx, esi
mov eax, 0x476a30
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, 0x4773ec
jl 0x44118a
pop edi
mov dword [0x4662d8], esi
mov dword [0x47740c], esi
pop esi
ret

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

Disassembly:
push ecx
cmp dword [0x47740c], 0
push ebx
push ebp
push esi
push edi
mov esi, 0x476a30
jne 0x4411d8
push 0
call fcn.0044b202
pop ecx
call fcn.00441179
mov dword [0x4662d8], 0x270
mov dword [0x476a28], 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 0x4411f7
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 0x44122d
mov edx, dword [0x476a30]
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 0x441287
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
dec dword [0x4662d8]
jne 0x441294
call fcn.004411b8
mov eax, dword [0x476a28]
mov ecx, dword [eax]
add dword [0x476a28], 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 0x4412cb
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
dec dword [0x4662d8]
jne 0x4412dd
call fcn.004411b8
mov eax, dword [0x476a28]
mov eax, dword [eax]
add dword [0x476a28], 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 0x441323
fadd qword [0x461708]
fstp qword [ebp - 8]
fld qword [ebp - 8]
fmul qword [0x4616f8]
leave
ret

Function at 0x44199d
Capabilities:
Hash data with md5

Disassembly:
push 8
lea eax, [esi + 0x44]
push 0
push eax
call fcn.00448eb0
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 0x442314
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 0x442320
mov dword [eax + 0x9c0], edi
mov dword [eax + 0x9c4], edi
pop edi
pop esi
pop ebx
ret
Function at 0x442350
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 0x442374
push 0
call fcn.0044b202
pop ecx
mov ecx, eax
mov eax, ebx
call fcn.00442314
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 0x442396
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 0x4423d2
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 0x44242c
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
dec dword [esi + 0x9c0]
jne 0x44243b
mov eax, esi
call fcn.00442350
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 0x442660
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.00442314
cmp dword [ebp + 0xc], ebx
jbe 0x4426a3
push esi
push edi
mov eax, dword [ebp + 8]
lea esi, [ebp - 0x9cc]
lea edi, [ebx + eax]
call fcn.0044242c
xor byte [edi], al
inc ebx
cmp ebx, dword [ebp + 0xc]
jb 0x442688
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x44a711
Capabilities:
Terminate process

Disassembly:
push 8
push 0x45a110
call fcn.0044d018
push 8
call fcn.0044bf6c
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x46640c], esi
jne 0x44a745
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x466408], esi
mov al, byte [ebp + 0x10]
mov byte [0x466404], al
cmp dword [ebp + 0xc], edi
jne 0x44a78f
cmp dword [0x480bac], edi
je 0x44a77f
mov eax, dword [0x480ba8]
sub eax, 4
mov dword [0x480ba8], eax
cmp eax, dword [0x480bac]
jb 0x44a77f
mov eax, dword [eax]
cmp eax, edi
je 0x44a760
call eax
jmp 0x44a760
push 0x464050
mov eax, 0x464048
call fcn.0044a68f
pop ecx
push 0x464058
mov eax, 0x464054
call fcn.0044a68f
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x44a7c0
cmp dword [ebp + 0x10], edi
jne 0x44a7ce
mov dword [0x46640c], esi
push dword [ebp + 8]
call fcn.0044a64d
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x44a7cd
push 8
call fcn.0044beb7
pop ecx
ret
call fcn.0044d053
ret

Function at 0x44a8da
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 0x44a8f7
call fcn.0044d1a5
mov dword [eax], 0x16
xor eax, eax
jmp 0x44a961
push esi
push 0x8c
push 1
call fcn.0044fd5f
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x44a94c
push esi
call fcn.0044bb30
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 0x44a92a
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0x18]
push esi
push 0x44a845
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x44a960
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push esi
call fcn.004494d8
test ebx, ebx
pop ecx
je 0x44a95e
push ebx
call fcn.0044d1b7
pop ecx
xor eax, eax
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x44af61
Capabilities:
Create thread
Resume thread

Disassembly:
push ebx
push edi
mov edi, dword [esp + 0xc]
xor ebx, ebx
test edi, edi
jne 0x44af7d
call fcn.0044d1a5
mov dword [eax], 0x16
or eax, 0xffffffff
jmp 0x44afef
push esi
push 0x8c
push 1
call fcn.0044fd5f
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x44afd5
push esi
call fcn.0044bb30
mov eax, dword [esp + 0x1c]
pop ecx
push esi
push 4
push esi
push 0x44aecf
push dword [esp + 0x24]
mov dword [esi + 0x4c], edi
push 0
mov dword [esi + 0x50], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
test edi, edi
mov dword [esi + 4], edi
je 0x44afcd
push edi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
jne 0x44afec
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push esi
call fcn.004494d8
test ebx, ebx
pop ecx
je 0x44afe7
push ebx
call fcn.0044d1b7
pop ecx
or eax, 0xffffffff
jmp 0x44afee
mov eax, edi
pop esi
pop edi
pop ebx
ret
Function at 0x44b6c8
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x45a1a8
call fcn.0044d018
mov edi, 0x94
mov eax, edi
call fcn.0044b8a0
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 [0x4663cc], ecx
mov eax, dword [esi + 4]
mov dword [0x4663d8], eax
mov edx, dword [esi + 8]
mov dword [0x4663dc], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x4663d0], esi
cmp ecx, 2
je 0x44b728
or esi, 0x8000
mov dword [0x4663d0], esi
shl eax, 8
add eax, edx
mov dword [0x4663d4], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x44b763
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x44b763
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x44b77b
cmp eax, 0x20b
je 0x44b768
mov dword [ebp - 0x1c], esi
jmp 0x44b78f
cmp dword [ecx + 0x84], 0xe
jbe 0x44b763
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x44b789
cmp dword [ecx + 0x74], 0xe
jbe 0x44b763
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.0044d90d
pop ecx
test eax, eax
jne 0x44b7a3
push 0x1c
call fcn.0044b6a4
pop ecx
call fcn.0044bd2a
test eax, eax
jne 0x44b7b4
push 0x10
call fcn.0044b6a4
pop ecx
call fcn.0044fb73
mov dword [ebp - 4], esi
call fcn.0044fe36
test eax, eax
jge 0x44b7cd
push 0x1b
call fcn.0044b67f
pop ecx
call fcn.00452e82
mov dword [0x47fb84], eax
call fcn.00452d18
mov dword [0x466418], eax
call fcn.00452c82
test eax, eax
jge 0x44b7f2
push 8
call fcn.0044b67f
pop ecx
call fcn.00452a4f
test eax, eax
jge 0x44b803
push 9
call fcn.0044b67f
pop ecx
push 1
call fcn.0044a6a7
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x44b819
push eax
call fcn.0044b67f
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
call fcn.00452a09
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x44b83a
movzx eax, word [ebp - 0x40]
jmp 0x44b83d
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.00401825
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x44b85b
push edi
call fcn.0044a7d4
call fcn.0044a7f6
jmp 0x44b88d
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.0044d053
ret
Function at 0x44d22a
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.0044b8a0
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x44d2c5
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x4663cc]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x44d2c5
cmp eax, 1
je 0x44d2e6
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x44d2c5
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x44d292
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x44d2c1
xor eax, eax
inc eax
jmp 0x44d305
cmp edi, eax
jae 0x44d2c9
xor eax, eax
jmp 0x44d305
cmp eax, esi
jae 0x44d2d0
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x4663cc]
jmp 0x44d2e9
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x44f380
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a4]
sub esp, 0x424
mov eax, dword [0x464718]
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 0x44f3bc
xor eax, eax
jmp 0x44f526
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 + 0x47fa60]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x44f3fa
push 2
push ecx
push ecx
push dword [ebp + 0x3ac]
call fcn.00455086
add esp, 0x10
xor ecx, ecx
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x44f494
cmp dword [ebp + 0x3b4], ecx
mov dword [ebp - 0x70], edi
mov dword [ebp - 0x68], ecx
jbe 0x44f4f7
jmp 0x44f41e
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 0x44f459
mov edx, dword [ebp - 0x70]
inc dword [ebp - 0x70]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x44f44a
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 0x44f42a
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 0x44f4b8
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x74], eax
cmp eax, edi
jl 0x44f4c1
mov eax, dword [ebp - 0x70]
sub eax, dword [ebp - 0x7c]
cmp eax, dword [ebp + 0x3b4]
jb 0x44f41c
jmp 0x44f4c1
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 0x44f4b8
mov eax, dword [ebp - 0x80]
and dword [ebp - 0x68], 0
mov dword [ebp - 0x74], eax
jmp 0x44f4c1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x74]
test eax, eax
jne 0x44f521
cmp dword [ebp - 0x68], eax
je 0x44f4f4
push 5
pop esi
cmp dword [ebp - 0x68], esi
jne 0x44f4e9
call fcn.0044d1a5
mov dword [eax], 9
call fcn.0044d1ae
mov dword [eax], esi
jmp 0x44f51c
push dword [ebp - 0x68]
call fcn.0044d1b7
pop ecx
jmp 0x44f51c
mov edi, dword [ebp - 0x7c]
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x44f509
cmp byte [edi], 0x1a
jne 0x44f509
xor eax, eax
jmp 0x44f524
call fcn.0044d1a5
mov dword [eax], 0x1c
call fcn.0044d1ae
and dword [eax], 0
or eax, 0xffffffff
jmp 0x44f524
sub eax, dword [ebp - 0x78]
pop esi
pop ebx
mov ecx, dword [ebp + 0x3a0]
xor ecx, ebp
pop edi
call fcn.0044c1fa
add ebp, 0x3a4
leave
ret
Function at 0x44f811
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 0x44f9e7
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x47fa60]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x44f9e7
test cl, 0x48
je 0x44f87c
cmp byte [eax + 5], 0xa
je 0x44f87c
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 0x44f8ce
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x44f8b6
call fcn.0044d1a5
mov dword [eax], 9
call fcn.0044d1ae
mov dword [eax], esi
jmp 0x44f8c6
cmp eax, 0x6d
je 0x44f9e7
push eax
call fcn.0044d1b7
pop ecx
or eax, 0xffffffff
jmp 0x44f9e9
mov eax, dword [ebp - 0xc]
mov ecx, dword [edi]
add dword [ebp - 8], eax
test byte [ecx + esi + 4], 0x80
je 0x44f9e2
test eax, eax
je 0x44f8f5
cmp byte [ebx], 0xa
jne 0x44f8f5
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x44f8fe
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 0x44f9dc
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x44f9cc
cmp al, 0xd
je 0x44f930
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x44f9be
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x44f94a
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x44f945
add dword [ebp + 0x10], 2
jmp 0x44f99e
mov dword [ebp + 0x10], eax
jmp 0x44f9ba
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 0x44f972
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x44f9ba
cmp dword [ebp - 0xc], 0
je 0x44f9ba
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x44f993
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x44f99e
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x44f9bd
cmp ebx, dword [ebp + 0xc]
jne 0x44f9a3
cmp byte [ebp - 1], 0xa
jne 0x44f9a3
mov byte [ebx], 0xa
jmp 0x44f9bd
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00455086
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x44f9be
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x44f914
jmp 0x44f9dc
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x44f9dc
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 0x44f9e9
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret