joyce8/EMBER2024-capa huggingface dataset:
Function at 0x493200
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
test edx, edx
jne 0x493207
xor eax, eax
ret
push esi
mov esi, dword [esp + 8]
not ecx
cmp esi, 8
jb 0x4932c7
push edi
mov edi, esi
shr edi, 3
nop dword [eax]
movzx eax, byte [edx]
sub esi, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x54df40]
movzx eax, byte [edx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x54df40]
movzx eax, byte [edx + 2]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x54df40]
movzx eax, byte [edx + 3]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x54df40]
movzx eax, byte [edx + 4]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x54df40]
movzx eax, byte [edx + 5]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x54df40]
movzx eax, byte [edx + 6]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x54df40]
movzx eax, byte [edx + 7]
add edx, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x54df40]
sub edi, 1
jne 0x493220
pop edi
test esi, esi
je 0x4932ea
nop dword [eax + eax]
movzx eax, byte [edx]
lea edx, [edx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x54df40]
sub esi, 1
jne 0x4932d0
not ecx
mov eax, ecx
pop esi
ret

Function at 0x493e00
Capabilities:
Read file on windows

Disassembly:
push ecx
push ebp
push edi
mov edi, dword [esp + 0x14]
mov ebp, edx
mov edx, ecx
mov dword [esp + 8], edx
mov ecx, dword [edi + 0x1c]
test ecx, ecx
je 0x493e25
push dword [esp + 0x10]
mov eax, dword [ecx]
push ebp
push edx
call dword [eax + 0xc]
pop edi
pop ebp
pop ecx
ret
push ebx
mov ebx, ebp
imul ebx, dword [esp + 0x14]
cmp byte [edi], 0
je 0x493e59
push 0
lea eax, [esp + 0x1c]
push eax
push ebx
push edx
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x493e4c
mov byte [edi + 8], 1
mov eax, dword [esp + 0x18]
xor edx, edx
pop ebx
pop edi
div ebp
pop ebp
pop ecx
ret
mov edx, dword [edi + 0x18]
mov ecx, dword [edi + 0x10]
push esi
mov esi, dword [edi + 0x14]
lea eax, [edx + ebx]
sub esi, edx
cmp eax, dword [edi + 0x14]
cmovbe esi, ebx
add ecx, edx
push esi
push ecx
push dword [esp + 0x18]
call fcn.004e89b0
add dword [edi + 0x18], esi
add esp, 0xc
mov eax, esi
xor edx, edx
div ebp
pop esi
pop ebx
pop edi
pop ebp
pop ecx
ret
Function at 0x4951a0
Capabilities:
Create directory

Disassembly:
sub esp, 0x414
mov eax, dword [0x57f578]
xor eax, esp
mov dword [esp + 0x410], eax
push ebx
mov ebx, edx
push edi
mov edi, ecx
movzx eax, word [ebx]
test ax, ax
je 0x4952ac
push esi
mov esi, ebx
mov ecx, ebx
nop dword [eax + eax]
cmp ax, 0x2f
je 0x4951dc
cmp ax, 0x5c
jne 0x4951de
mov esi, ecx
movzx eax, word [ecx + 2]
add ecx, 2
test ax, ax
jne 0x4951d0
cmp esi, ebx
je 0x49522a
sub esi, ebx
lea eax, [esp + 0x214]
sar esi, 1
push esi
push ebx
push eax
call fcn.004eda4b
add esi, esi
add esp, 0xc
cmp esi, 0x208
jae 0x4952c3
xor eax, eax
lea edx, [esp + 0x214]
mov ecx, edi
mov word [esp + esi + 0x214], ax
call fcn.004951a0
lea ecx, [esp + 0xc]
mov edx, 0x104
mov eax, ecx
sub edi, eax
nop word [eax + eax]
lea eax, [edx + 0x7ffffefa]
test eax, eax
je 0x495260
movzx eax, word [edi + ecx]
test ax, ax
je 0x495260
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x495240
jmp 0x495264
test edx, edx
jne 0x495267
sub ecx, 2
xor eax, eax
mov esi, ebx
mov word [ecx], ax
nop
mov ax, word [ebx]
add ebx, 2
test ax, ax
jne 0x495270
lea edi, [esp + 0xc]
sub ebx, esi
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x495284
mov ecx, ebx
lea eax, [esp + 0xc]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
push 0
rep movsb byte es:[edi], byte [esi]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
pop esi
mov ecx, dword [esp + 0x418]
pop edi
pop ebx
xor ecx, esp
call fcn.004e679a
add esp, 0x414
ret
call fcn.004e6f1e
int3
Function at 0x495740
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x529192
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x57f578]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x344
call fcn.004e67b9
mov esi, eax
add esp, 4
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 0
mov dword [esi], 0
mov dword [esi + 4], 0xffffffff
mov dword [esi + 0x138], 0xffffffff
mov dword [ebp - 4], 0xffffffff
cmp dword [esi], 0
jne 0x49585a
cmp dword [esi + 4], 0xffffffff
jne 0x49585a
lea edi, [esi + 0x13c]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
add edi, 0xfffffffe
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x4957c5
mov eax, dword [0x54a11c]
mov ebx, dword [ebp + 8]
mov dword [edi], eax
mov edi, dword [ebp + 0x10]
cmp edi, 1
jne 0x4957fb
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
je 0x4957fb
mov dword [0x584838], 0x2000000
jmp 0x495868
mov edx, dword [ebp + 0xc]
lea eax, [ebp - 0x10]
push eax
push edi
mov ecx, ebx
call fcn.00493c40
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x495818
mov eax, dword [ebp - 0x10]
jmp 0x49585f
mov ecx, ebx
call fcn.00494220
mov edx, eax
mov dword [esi], edx
test edx, edx
je 0x495853
cmp edi, 5
jne 0x495853
mov ecx, dword [ebx + 0x1c]
test ecx, ecx
je 0x495853
mov eax, dword [ecx]
push dword [edx + 0x24]
mov eax, dword [eax]
call eax
test al, al
jne 0x495853
mov ecx, esi
call fcn.004956d0
mov dword [0x584838], 0x5000000
jmp 0x495868
mov eax, dword [0x584d00]
jmp 0x49585f
mov eax, 0x1000000
mov dword [0x584838], eax
test eax, eax
je 0x49588a
push 0x344
push esi
call fcn.004e6b81
add esp, 8
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 8
call fcn.004e67b9
add esp, 4
mov dword [eax], 1
mov dword [eax + 4], esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x495b10
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x120]
sub esp, 0x120
push 0xffffffffffffffff
push 0x5291d2
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x57f578]
xor eax, ebp
mov dword [ebp + 0x11c], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi], 0
je 0x495b54
call fcn.00495ca0
cmp byte [0x58483c], 0
jne 0x495b67
mov eax, SysReAllocString
jmp 0x495c7c
mov eax, dword [esi]
test eax, eax
jne 0x495bd2
push 8
call fcn.004e67b9
mov edi, eax
mov dword [ebp - 0x10], edi
mov dword [ebp - 4], 0
push 1
call fcn.004e67b9
mov dword [edi + 4], eax
push 0x118
push 0
mov byte [eax], 0
lea eax, [ebp + 4]
push eax
call fcn.004e8f30
add esp, 0x14
mov dword [ebp], 0x11c
lea eax, [ebp]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x495bc1
cmp dword [ebp + 4], 6
mov eax, dword [edi + 4]
setae cl
mov byte [eax], cl
mov dword [ebp - 4], 0xffffffff
mov dword [esi], edi
mov dword [edi], 0
mov eax, dword [esi]
cmp dword [eax], 0
jne 0x495c6b
call fcn.00426ce0
test al, al
jne 0x495c0c
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, dword [esi]
push eax
add ecx, 4
call fcn.004273d0
test al, al
je 0x495c6b
mov ecx, dword [esi]
add ecx, 4
call fcn.00426800
call fcn.00426ce0
test al, al
je 0x495c6b
push 0x54fb2c
lea ecx, [ebp - 0x28]
call fcn.00408f70
mov dword [ebp - 4], 2
lea eax, [ebp - 0x28]
push eax
call fcn.0041f5a0
mov ecx, eax
call fcn.0041f660
mov edi, eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00408080
test edi, edi
je 0x495c6b
push 0x556ecc
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x495c6b
push dword [esi]
push dword [ebp + 0x128]
call eax
test eax, eax
je 0x495c6b
mov eax, dword [esi]
mov dword [eax], 0
mov eax, dword [esi]
cmp dword [eax], 0
jne 0x495c7a
mov dword [eax], SysReAllocString
mov eax, dword [esi]
mov eax, dword [eax]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp + 0x11c]
xor ecx, ebp
call fcn.004e679a
lea esp, [ebp + 0x120]
pop ebp
ret 4
Function at 0x497ac0
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52950f
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x57f578]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 4
lea ecx, [esi + 0x7c]
call fcn.00408080
mov byte [ebp - 4], 3
lea ecx, [esi + 0x64]
call fcn.00408080
mov byte [ebp - 4], 2
lea ecx, [esi + 0x48]
call fcn.00408080
mov byte [ebp - 4], 1
lea ecx, [esi + 0x30]
call fcn.00408080
mov byte [ebp - 4], 0
lea ecx, [esi + 0x18]
call fcn.00408080
mov dword [ebp - 4], 0xffffffff
mov ecx, esi
call fcn.00408080
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x497b50
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52950f
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x57f578]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 4
lea ecx, [esi + 0x7c]
call fcn.00408080
mov byte [ebp - 4], 3
lea ecx, [esi + 0x64]
call fcn.00408080
mov byte [ebp - 4], 2
lea ecx, [esi + 0x48]
call fcn.00408080
mov byte [ebp - 4], 1
lea ecx, [esi + 0x30]
call fcn.00408080
mov byte [ebp - 4], 0
lea ecx, [esi + 0x18]
call fcn.00408080
mov dword [ebp - 4], 0xffffffff
mov ecx, esi
call fcn.00408080
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x498df0
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5296df
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x57f578]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov esi, dword [ebp + 8]
push esi
call fcn.00409f40
mov dword [ebp - 4], 0
lea eax, [esi + 0x18]
push eax
lea ecx, [edi + 0x18]
call fcn.00409f40
mov byte [ebp - 4], 1
lea eax, [esi + 0x30]
push eax
lea ecx, [edi + 0x30]
call fcn.00409f40
mov byte [ebp - 4], 2
lea eax, [esi + 0x48]
push eax
lea ecx, [edi + 0x48]
call fcn.00409f40
mov byte [ebp - 4], 3
lea ecx, [edi + 0x64]
mov al, byte [esi + 0x60]
mov byte [edi + 0x60], al
lea eax, [esi + 0x64]
push eax
call fcn.00409f40
mov byte [ebp - 4], 4
lea eax, [esi + 0x7c]
push eax
lea ecx, [edi + 0x7c]
call fcn.00409f40
mov dword [ebp - 4], 0xffffffff
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x49a6b0
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52997f
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x57f578]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov esi, dword [ebp + 8]
push esi
call fcn.00408fd0
mov dword [ebp - 4], 0
lea eax, [esi + 0x18]
push eax
lea ecx, [edi + 0x18]
call fcn.00408fd0
mov byte [ebp - 4], 1
lea eax, [esi + 0x30]
push eax
lea ecx, [edi + 0x30]
call fcn.00408fd0
mov byte [ebp - 4], 2
lea eax, [esi + 0x48]
push eax
lea ecx, [edi + 0x48]
call fcn.00408fd0
mov byte [ebp - 4], 3
lea ecx, [edi + 0x64]
mov al, byte [esi + 0x60]
mov byte [edi + 0x60], al
lea eax, [esi + 0x64]
push eax
call fcn.00408fd0
mov byte [ebp - 4], 4
lea eax, [esi + 0x7c]
push eax
lea ecx, [edi + 0x7c]
call fcn.00408fd0
mov dword [ebp - 4], 0xffffffff
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x49b8b0
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x529c5f
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x57f578]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
call fcn.00408fb0
mov dword [ebp - 4], 0
lea ecx, [esi + 0x18]
call fcn.00408fb0
mov byte [ebp - 4], 1
lea ecx, [esi + 0x30]
call fcn.00408fb0
mov byte [ebp - 4], 2
lea ecx, [esi + 0x48]
call fcn.00408fb0
mov byte [ebp - 4], 3
lea ecx, [esi + 0x64]
call fcn.00408fb0
mov byte [ebp - 4], 4
lea ecx, [esi + 0x7c]
call fcn.00408fb0
mov byte [ebp - 4], 5
mov byte [esi + 0x60], 0
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x49ba20
Capabilities:
Query environment variable

Disassembly:
push ebp
lea ebp, [esp - 0x414]
sub esp, 0x414
push 0xfffffffffffffffe
push 0x571758
push 0x4e8410
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x57f578]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp + 0x410], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov esi, edx
mov edi, ecx
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x20], esi
mov dword [ebp - 4], 0
mov ecx, esi
call fcn.00409140
mov dword [ebp - 0x24], 0
mov dword [eax + 0x10], 0
cmp dword [eax + 0x14], 8
jb 0x49ba92
mov eax, dword [eax]
lea ecx, [ebp - 0x24]
push ecx
push eax
call fcn.00409800
add esp, 8
mov edx, esi
mov ecx, edi
call fcn.0049bb80
mov bl, al
mov byte [ebp - 0x19], bl
mov dword [ebp - 4], 0xfffffffe
jmp 0x49bad1
test bl, bl
jne 0x49bb54
cmp edi, 0x1a
jne 0x49bb54
mov ecx, esi
call fcn.00409140
mov dword [ebp - 0x20], 0
mov dword [eax + 0x10], 0
cmp dword [eax + 0x14], 8
jb 0x49baf7
mov eax, dword [eax]
lea ecx, [ebp - 0x20]
push ecx
push eax
call fcn.00409800
push 0x410
push 0
lea eax, [ebp]
push eax
call fcn.004e8f30
add esp, 0x14
push 0x207
lea eax, [ebp]
push eax
push str.APPDATA
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea eax, [ebp]
push eax
call fcn.00409590
add esp, 4
push eax
lea eax, [ebp]
push eax
mov ecx, esi
call fcn.004092c0
mov ecx, esi
call fcn.00408e80
movzx ebx, bl
mov ecx, 1
test al, al
cmove ebx, ecx
mov al, bl
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x410]
xor ecx, ebp
call fcn.004e679a
lea esp, [ebp + 0x414]
pop ebp
ret

Function at 0x49bd20
Capabilities:
Query environment variable

Disassembly:
mov edx, dword [esp + 4]
mov ecx, 0x1a
jmp fcn.0049ba20
Function at 0x49c270
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51b2b8
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x57f578]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [esi + 8]
test edi, edi
jne 0x49c2ab
xor al, al
jmp 0x49c34e
add edi, 0x20
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x14], edi
je 0x49c2c7
mov eax, dword [edi]
test eax, eax
je 0x49c2c7
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 4], 0
mov eax, dword [esi + 8]
cmp dword [eax + 4], 0
je 0x49c32b
push 1
lea ebx, [esi + 4]
push ebx
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
mov eax, dword [esi + 8]
add eax, 0xc
push eax
push 4
push esi
push 0x49be20
push 0
push 0
call fcn.00514271
mov ecx, dword [esi + 8]
add esp, 0x18
mov dword [ecx + 0x10], eax
mov eax, dword [esi + 8]
cmp dword [eax + 0x10], 0
jne 0x49c36a
mov eax, dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
push 0xffffffffffffffff
push ebx
call eax
sub eax, 1
jne 0x49c323
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov ecx, dword [esi + 8]
call fcn.0049bfe0
xor bl, bl
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x49c34c
mov eax, dword [edi]
test eax, eax
je 0x49c345
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [ebp - 0x14], 0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004e679a
mov esp, ebp
pop ebp
ret
mov byte [eax + 8], 1
mov eax, dword [esi + 8]
mov ecx, dword [eax + 0x24]
test ecx, ecx
je 0x49c382
push ecx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, dword [esi + 8]
push dword [eax + 0x10]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
je 0x49c30d
mov bl, 1
jmp 0x49c32d
Function at 0x49df10
Capabilities:
Link many functions at runtime

Disassembly:
sub esp, 0x20
mov eax, dword [0x57f578]
xor eax, esp
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x28]
push ebx
mov ebx, dword [esp + 0x30]
push ebp
push esi
mov esi, ecx
mov dword [esp + 0x10], eax
push edi
mov edi, dword [esp + 0x34]
mov dword [esp + 0x18], ebx
mov eax, dword [esi]
mov byte [esp + 0x13], 0
mov eax, dword [eax + 4]
test eax, eax
je 0x49e0d9
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x54fc10
push eax
call ebp
mov dword [esp + 0x28], eax
test eax, eax
je 0x49e0d9
mov ecx, dword [esi]
mov dword [esp + 0x1c], 0
mov ecx, dword [ecx + 4]
test ecx, ecx
je 0x49e0d9
push 0x54fc00
push ecx
call ebp
mov dword [esp + 0x20], eax
test eax, eax
je 0x49e0d9
test edi, edi
je 0x49e0d9
mov ecx, dword [esi]
lea eax, [esp + 0x1c]
push eax
mov ecx, dword [ecx]
or ecx, 0x20019
push ecx
mov ecx, dword [esp + 0x1c]
push 0
call fcn.00408e90
push eax
push edi
call dword [esp + 0x34]
test eax, eax
jne 0x49e0d9
mov dword [esp + 0x20], eax
mov ecx, ebx
mov dword [esp + 0x24], eax
lea eax, [esp + 0x20]
push eax
push 0
lea eax, [esp + 0x2c]
push eax
push 0
call fcn.00408e90
push eax
push dword [esp + 0x30]
call dword [esp + 0x40]
movzx ebx, byte [esp + 0x13]
test eax, eax
mov ecx, 1
lea eax, [esp + 0x1c]
cmove ebx, ecx
mov ecx, esi
push eax
call fcn.0049ded0
test bl, bl
je 0x49e0d9
lea eax, [esp + 0x20]
mov dword [esp + 0x20], 0
push eax
push dword [esp + 0x18]
mov ecx, esi
push edi
call fcn.0049dc20
test al, al
je 0x49e0d9
mov edi, dword [esp + 0x20]
test edi, edi
je 0x49e0a4
mov eax, dword [esi]
mov eax, dword [eax + 4]
test eax, eax
je 0x49e0a4
push 0x54fc10
push eax
call ebp
mov ecx, dword [esi]
push 0x550f0c
mov dword [esp + 0x24], eax
push dword [ecx + 4]
call ebp
cmp dword [esp + 0x20], 0
mov ebx, eax
je 0x49e0a4
test ebx, ebx
je 0x49e0a4
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x28]
push eax
push 0
lea eax, [esp + 0x2c]
mov dword [esp + 0x30], 0
push eax
push 0
mov dword [esp + 0x34], 0
call fcn.00408e90
push eax
push edi
call dword [esp + 0x38]
cmp eax, 2
je 0x49e0a4
mov ecx, dword [esp + 0x18]
call fcn.00408e90
push eax
push edi
call ebx
test eax, eax
sete bl
jmp 0x49e0a6
xor bl, bl
mov eax, dword [esi]
mov eax, dword [eax + 4]
test eax, eax
je 0x49e0c2
push 0x54fc24
push eax
call ebp
test eax, eax
je 0x49e0c2
test edi, edi
je 0x49e0c2
push edi
call eax
pop edi
pop esi
pop ebp
mov al, bl
pop ebx
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.004e679a
add esp, 0x20
ret 0xc
mov ecx, dword [esp + 0x2c]
xor al, al
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004e679a
add esp, 0x20
ret 0xc
Function at 0x49ed20
Capabilities:
Terminate process

Disassembly:
sub esp, 0xc
mov eax, dword [0x57f578]
xor eax, esp
mov dword [esp + 8], eax
push ebx
push esi
mov esi, ecx
mov ebx, edx
push edi
mov edi, dword [esp + 0x20]
test esi, esi
je 0x49edf8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
cmp eax, esi
je 0x49edf8
test ebx, ebx
je 0x49ed93
push ebx
test edi, edi
jne 0x49ed61
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x49ed78
push 0
lea eax, [esp + 0x14]
mov dword [esp + 0x14], esi
push eax
push 2
mov dword [esp + 0x20], edi
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
cmp eax, 0x102
je 0x49ed93
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [esp + 8]
xor ecx, esp
call fcn.004e679a
add esp, 0xc
ret
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
setne bl
test eax, eax
je 0x49ede4
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x49ede4
push eax
test edi, edi
jne 0x49edcd
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
pop edi
pop esi
mov al, bl
pop ebx
mov ecx, dword [esp + 8]
xor ecx, esp
call fcn.004e679a
add esp, 0xc
ret
push 0
lea eax, [esp + 0x14]
mov dword [esp + 0x14], esi
push eax
push 2
mov dword [esp + 0x20], edi
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
pop edi
pop esi
mov al, bl
pop ebx
mov ecx, dword [esp + 8]
xor ecx, esp
call fcn.004e679a
add esp, 0xc
ret
mov ecx, dword [esp + 0x14]
xor al, al
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004e679a
add esp, 0xc
ret
Function at 0x4a5930
Capabilities:
Get file size

Disassembly:
sub esp, 8
mov eax, dword [0x57f578]
xor eax, esp
mov dword [esp + 4], eax
mov eax, dword [ecx]
push esi
push edi
mov edi, dword [esp + 0x14]
cmp eax, 0xffffffff
je 0x4a5995
lea ecx, [esp + 8]
mov dword [esp + 8], 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4a5970
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4a5995
mov eax, dword [esp + 8]
xor ecx, ecx
add ecx, esi
mov dword [edi], ecx
adc eax, 0
mov dword [edi + 4], eax
mov al, 1
pop edi
pop esi
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.004e679a
add esp, 8
ret 4
mov ecx, dword [esp + 0xc]
xor al, al
pop edi
pop esi
xor ecx, esp
call fcn.004e679a
add esp, 8
ret 4
Function at 0x4a5b10
Capabilities:
Get file size
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52af78
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x57f578]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov ecx, dword [ebp + 0x14]
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], ecx
test ecx, ecx
je 0x4a5b59
mov dword [ecx], 0
mov dword [eax], 0
cmp dword [edi], 0xffffffff
je 0x4a5cab
mov eax, dword [ebp + 0xc]
mov ecx, 0x100000
push 0
mov ebx, eax
mov dword [ebp - 0x1c], 0
cmp eax, 0x100000
lea eax, [ebp - 0x1c]
push eax
cmova ebx, ecx
push ebx
push esi
push dword [edi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
neg eax
sbb eax, eax
and eax, 0x7fffbffb
add eax, 0x80004005
cmp dword [edi + 0x1c], 0
je 0x4a5c76
test eax, eax
je 0x4a5c76
mov edx, dword [ebp - 0x1c]
cmp edx, ebx
jae 0x4a5c79
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [edi]
mov dword [ebp - 0x24], eax
cmp ecx, 0xffffffff
je 0x4a5bfb
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4a5bef
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4a5bfb
mov eax, dword [ebp - 0x14]
xor ecx, ecx
add ecx, esi
adc eax, 0
jmp 0x4a5c09
xorps xmm0, xmm0
movlpd qword [ebp - 0x38], xmm0
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x38]
push 0
push dword [ebp - 0x24]
push eax
push ecx
sub esp, 0x18
lea eax, [edi + 4]
mov ecx, esp
mov dword [ebp - 0x24], esp
push eax
call fcn.00408fd0
mov dword [ebp - 4], 0
mov ecx, dword [edi + 0x1c]
mov eax, dword [ecx]
mov dword [ebp - 4], 0xffffffff
call dword [eax + 0x18]
mov esi, dword [ebp - 0x20]
test eax, eax
jne 0x4a5c76
push eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x1c]
push ebx
add eax, esi
push eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, eax
xor edx, edx
test ecx, ecx
mov eax, 0x80004005
cmovne eax, edx
mov edx, dword [ebp - 0x1c]
add edx, dword [ebp - 0x18]
mov dword [ebp - 0x1c], edx
test ecx, ecx
je 0x4a5bb4
jmp 0x4a5c79
mov edx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x28]
add dword [ecx], edx
test eax, eax
jne 0x4a5ca2
test edx, edx
je 0x4a5c9e
mov eax, dword [ebp + 0xc]
add esi, edx
sub eax, edx
mov dword [ebp - 0x20], esi
mov dword [ebp + 0xc], eax
mov ecx, 0x100000
jne 0x4a5b70
mov al, 1
jmp 0x4a5cad
mov ecx, dword [ebp - 0x2c]
test ecx, ecx
je 0x4a5cab
mov dword [ecx], eax
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004e679a
mov esp, ebp
pop ebp
ret 0x10