joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43b6e8
Capabilities:
Delete file

Disassembly:
mov eax, 0x44b4d7
call fcn.00415350
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
mov dword [esi], 0x40ab10
mov dword [esi + 4], 0x40aad8
mov dword [esi + 8], 0x40aac8
mov dword [ebp - 4], 5
call fcn.0043b400
push dword [esi + 0xc]
call dword [sym.imp.OLEAUT32.dll_VariantInit]
xor ebx, ebx
test eax, eax
je 0x43b74f
cmp dword [esi + 0x2c], ebx
je 0x43b74f
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x43b74f
push 0xcd
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0041808f
pop ecx
pop ecx
lea ecx, [esi + 0x20]
mov byte [ebp - 4], 4
mov dword [ecx], 0x40aa90
call fcn.0044732d
push dword [esi + 0x1c]
mov edi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
call edi
mov dword [esi + 0x1c], ebx
push dword [esi + 0x18]
call edi
mov dword [esi + 0x18], ebx
push dword [esi + 0x14]
call edi
mov dword [esi + 0x14], ebx
push dword [esi + 0x10]
call edi
mov dword [esi + 0x10], ebx
push dword [esi + 0xc]
call edi
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0xc], ebx
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x43c390
Capabilities:
Get process heap force flags

Disassembly:
mov eax, 0x44b5da
call fcn.00415350
push ecx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi], 0x40ad58
mov dword [esi + 4], 0x40ad38
lea ecx, [esi + 0x30]
mov dword [ebp - 4], 2
call fcn.0043be5c
lea ecx, [esi + 0x18]
mov byte [ebp - 4], 1
call fcn.0043be2d
lea eax, [esi + 0x14]
push eax
mov byte [ebp - 4], 0
call fcn.00431393
or dword [ebp - 4], 0xffffffff
add esi, 0x10
push esi
call fcn.00431393
pop ecx
pop ecx
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x43de80
Capabilities:
Access peb ldr_data
Get ntdll base address
Get process heap flags
Get process heap force flags

Disassembly:
mov eax, 0x44b80c
call fcn.00415350
push ecx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
mov dword [esi], 0x40b100
mov dword [esi + 4], 0x40b0c8
mov dword [esi + 8], 0x40b0b8
lea eax, [esi + 0xc]
push eax
mov dword [ebp - 4], 4
call fcn.00415e19
lea eax, [esi + 0x10]
push eax
call fcn.00415e19
lea eax, [esi + 0x14]
push eax
call fcn.00415e19
lea eax, [esi + 0x18]
push eax
call fcn.00415e19
lea eax, [esi + 0x1c]
push eax
call fcn.00415e19
lea eax, [esi + 0x30]
push eax
mov byte [ebp - 4], 3
call fcn.00431393
mov edi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
add esp, 0x18
push dword [esi + 0x2c]
call edi
and dword [esi + 0x2c], 0
push dword [esi + 0x28]
call edi
and dword [esi + 0x28], 0
push dword [esi + 0x24]
call edi
and dword [esi + 0x24], 0
push dword [esi + 0x20]
call edi
and dword [esi + 0x20], 0
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x4416f6
Capabilities:
Encode data using base64

Disassembly:
mov eax, dword [esp + 4]
push edi
xor edi, edi
cmp dword [eax + 4], edi
jbe 0x4417ef
push esi
mov ecx, dword [eax]
mov cl, byte [edi + ecx]
movzx edx, cl
inc edi
cmp byte [edx + 0x40b748], 0x3f
jbe 0x44174b
cmp cl, 0x20
je 0x4417e5
cmp cl, 9
je 0x4417e5
cmp cl, 0xa
je 0x4417e5
cmp cl, 0xd
je 0x4417e5
cmp cl, 0x3d
je 0x4417ee
jmp 0x4417e5
mov edx, dword [eax + 0x18]
mov byte [eax + edx + 0x14], cl
inc dword [eax + 0x18]
cmp dword [eax + 0x18], 4
jne 0x4417e5
mov esi, dword [eax + 0xc]
cmp esi, dword [eax + 0x10]
jae 0x44178c
movzx edx, byte [eax + 0x14]
movzx ecx, byte [eax + 0x15]
mov cl, byte [ecx + 0x40b748]
mov dl, byte [edx + 0x40b748]
shl dl, 2
shr cl, 4
or cl, dl
mov edx, dword [eax + 8]
mov byte [esi + edx], cl
inc dword [eax + 0xc]
mov esi, dword [eax + 0xc]
cmp esi, dword [eax + 0x10]
jae 0x4417b9
movzx edx, byte [eax + 0x15]
movzx ecx, byte [eax + 0x16]
mov cl, byte [ecx + 0x40b748]
mov dl, byte [edx + 0x40b748]
shl dl, 4
shr cl, 2
or cl, dl
mov edx, dword [eax + 8]
mov byte [esi + edx], cl
inc dword [eax + 0xc]
mov ecx, dword [eax + 0xc]
cmp ecx, dword [eax + 0x10]
jae 0x4417e1
movzx edx, byte [eax + 0x16]
mov dl, byte [edx + 0x40b748]
movzx esi, byte [eax + 0x17]
shl dl, 6
or dl, byte [esi + 0x40b748]
mov esi, dword [eax + 8]
mov byte [ecx + esi], dl
inc dword [eax + 0xc]
and dword [eax + 0x18], 0
cmp edi, dword [eax + 4]
jb 0x441707
pop esi
xor eax, eax
pop edi
ret

Function at 0x44370a
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x194]
sub esp, 0x214
mov eax, dword [0x4560a0]
push esi
mov dword [ebp + 0x190], eax
xor esi, esi
lea eax, [ebp - 0x80]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x70]
push eax
push esi
push dword [ebp + 0x19c]
mov dword [ebp - 0x78], 0x1ff
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
cmp eax, esi
jne 0x44378f
lea eax, [ebp - 0x74]
push eax
push 0xf000f
push esi
lea eax, [ebp - 0x70]
push eax
push dword [ebp + 0x19c]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x443726
push dword [ebp - 0x74]
call fcn.0044370a
pop ecx
push dword [ebp - 0x74]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x70]
push eax
push dword [ebp + 0x19c]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
jmp 0x443726
mov ecx, dword [ebp + 0x190]
pop esi
call fcn.0041519d
add ebp, 0x194
leave
ret
Function at 0x4437ca
Capabilities:
Delete registry key

Disassembly:
mov eax, 0x44bb74
call fcn.00415350
mov edx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x14]
mov eax, dword [esi]
mov ecx, eax
imul ecx, ecx, 0x1c
cmp eax, edx
push edi
mov edi, dword [ebp + 8]
mov ecx, dword [ecx + edi + 0x14]
mov dword [ebp + 8], ecx
jge 0x4438c0
push ebx
jmp 0x4437fb
mov ecx, dword [ebp + 8]
mov eax, dword [esi]
imul eax, eax, 0x1c
add eax, edi
cmp ecx, dword [eax + 0x14]
jg 0x4438bf
test byte [eax + 0x18], 0x10
je 0x443821
push ecx
push edi
mov eax, esi
call fcn.004437a3
pop ecx
pop ecx
jmp 0x4438b4
xor ebx, ebx
mov dword [ebp + 0x14], ebx
mov ecx, dword [eax + 0x18]
and cl, 0x20
neg cl
lea edx, [ebp + 0x14]
push edx
mov dword [ebp - 4], ebx
sbb ecx, ecx
and ecx, 0xfff0fff9
add ecx, 0xf000f
push ecx
push ebx
push dword [eax]
push dword [ebp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x44388f
mov eax, dword [esi]
mov ecx, eax
imul ecx, ecx, 0x1c
add ecx, edi
mov edx, dword [ecx + 0x18]
test dl, dl
jns 0x4438ce
push dword [ebp + 0x14]
call fcn.0044370a
cmp dword [ebp + 0x14], ebx
pop ecx
je 0x44387e
push dword [ebp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp + 0x14], ebx
mov eax, dword [esi]
imul eax, eax, 0x1c
push dword [eax + edi]
push dword [ebp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
push dword [ebp + 8]
mov edx, dword [ebp + 0xc]
push edi
mov eax, esi
call fcn.004437a3
pop ecx
pop ecx
or dword [ebp - 4], 0xffffffff
cmp dword [ebp + 0x14], ebx
je 0x4438b4
push dword [ebp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp + 0x14], ebx
mov edx, dword [ebp + 0xc]
cmp dword [esi], edx
jl 0x4437f8
pop ebx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret
test dl, 0x20
je 0x4438e8
push esi
push dword [ebp + 0x14]
inc eax
push dword [ebp + 0xc]
mov dword [esi], eax
push edi
call fcn.004437ca
add esp, 0x10
jmp 0x44389f
test dl, 0x40
je 0x44389f
mov ebx, dword [ecx]
inc eax
cmp eax, dword [ebp + 0xc]
mov dword [esi], eax
jge 0x443914
mov ecx, dword [ebp + 8]
imul eax, eax, 0x1c
inc ecx
cmp ecx, dword [eax + edi + 0x14]
jne 0x443914
push esi
push dword [ebp + 0x14]
push dword [ebp + 0xc]
push edi
call fcn.004437ca
add esp, 0x10
cmp dword [ebp + 0x14], 0
je 0x443927
push dword [ebp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
and dword [ebp + 0x14], 0
push ebx
push dword [ebp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
or dword [ebp - 4], 0xffffffff
cmp dword [ebp + 0x14], 0
je 0x4438b4
push dword [ebp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
and dword [ebp + 0x14], 0
jmp 0x4438b4
Function at 0x44411b
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
push ebx
push esi
xor esi, esi
add ecx, eax
cmp eax, ecx
push edi
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
mov edi, eax
jae 0x44416e
mov bl, byte [edi]
movsx edx, bl
cmp edx, 0x100
ja 0x444155
cmp byte [edx + 0x40c510], 0x3f
ja 0x444155
inc esi
mov dword [ebp - 4], esi
jmp 0x444169
cmp bl, 0x20
je 0x444169
cmp bl, 9
je 0x444169
cmp bl, 0xd
je 0x444169
cmp bl, 0xa
jne 0x444183
inc edi
cmp edi, ecx
jb 0x444139
mov ecx, dword [ebp + 0x10]
test ecx, ecx
jne 0x4441a4
lea eax, [esi + 3]
shr eax, 2
lea ecx, [eax + eax*2]
jmp 0x444251
test esi, esi
je 0x444198
mov ecx, esi
and ecx, 3
je 0x44416e
cmp byte [edi], 0x3d
jne 0x444198
cmp ecx, 1
jne 0x44416e
mov dword [ebp - 8], 0xd
jmp 0x444259
test esi, esi
mov edx, eax
jbe 0x444251
jmp 0x4441b3
mov esi, dword [ebp - 4]
xor eax, eax
lea edi, [ebp + 8]
stosd dword es:[edi], eax
xor edi, edi
push 4
pop eax
cmp esi, eax
ja 0x4441c4
mov eax, esi
cmp edi, eax
jae 0x4441ea
mov ebx, 0x100
jmp 0x4441d9
cmp byte [eax + 0x40c510], 0x3f
jbe 0x4441e0
inc edx
movsx eax, byte [edx]
cmp eax, ebx
jb 0x4441cf
mov al, byte [edx]
mov byte [ebp + edi + 8], al
inc edx
inc edi
jmp 0x4441bb
movzx esi, byte [ebp + 9]
movzx eax, byte [ebp + 8]
mov al, byte [eax + 0x40c510]
mov bl, byte [esi + 0x40c510]
shl al, 2
shr bl, 4
or al, bl
mov byte [ecx], al
inc ecx
cmp edi, 2
jbe 0x444229
movzx eax, byte [ebp + 0xa]
mov al, byte [eax + 0x40c510]
mov bl, byte [esi + 0x40c510]
shr al, 2
shl bl, 4
or al, bl
mov byte [ecx], al
inc ecx
cmp edi, 3
jbe 0x444248
movzx eax, byte [ebp + 0xa]
mov al, byte [eax + 0x40c510]
movzx esi, byte [ebp + 0xb]
shl al, 6
or al, byte [esi + 0x40c510]
mov byte [ecx], al
inc ecx
sub dword [ebp - 4], edi
jne 0x4441b0
sub ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 0x14]
mov dword [eax], ecx
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x444261
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0xc]
push 3
xor edx, edx
pop ecx
lea eax, [esi + 2]
div ecx
mov ecx, dword [ebp + 0x10]
shl eax, 2
test ecx, ecx
jne 0x44428b
lea ecx, [eax + 0x3f]
shr ecx, 6
lea ecx, [eax + ecx*2]
jmp 0x44435c
and dword [ebp - 4], 0
test esi, esi
jle 0x444354
push ebx
push edi
cmp dword [ebp - 4], 0x10
jne 0x4442ab
and dword [ebp - 4], 0
mov byte [ecx], 0xd
inc ecx
mov byte [ecx], 0xa
inc ecx
inc dword [ebp - 4]
xor eax, eax
lea edi, [ebp + 0xc]
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [ebp + 8]
inc dword [ebp + 8]
cmp esi, 1
mov al, byte [eax]
jbe 0x4442e0
mov edx, dword [ebp + 8]
mov dl, byte [edx]
inc dword [ebp + 8]
cmp esi, 2
mov byte [ebp + 0xd], dl
jbe 0x4442e0
mov edx, dword [ebp + 8]
mov bl, byte [edx]
inc dword [ebp + 8]
mov byte [ebp + 0xe], bl
jmp 0x4442e3
mov bl, byte [ebp + 0xe]
movzx eax, al
mov edx, eax
shr edx, 2
mov dl, byte [edx + 0x40c610]
mov byte [ecx], dl
movzx edx, byte [ebp + 0xd]
shl eax, 4
mov edi, edx
shr edi, 4
or edi, eax
and edi, 0x3f
mov al, byte [edi + 0x40c610]
inc ecx
mov byte [ecx], al
inc ecx
cmp esi, 1
jbe 0x44432a
movzx eax, bl
shr eax, 6
shl edx, 2
or eax, edx
and eax, 0x3f
movzx eax, byte [eax + 0x40c610]
jmp 0x44432d
push 0x3d
pop eax
mov byte [ecx], al
inc ecx
cmp esi, 2
jbe 0x444341
and ebx, 0x3f
movzx eax, byte [ebx + 0x40c610]
jmp 0x444344
push 0x3d
pop eax
mov byte [ecx], al
sub esi, 3
inc ecx
test esi, esi
jg 0x444299
pop edi
pop ebx
mov byte [ecx], 0xd
inc ecx
mov byte [ecx], 0xa
inc ecx
sub ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 0x14]
mov dword [eax], ecx
xor eax, eax
pop esi
leave
ret

Function at 0x445783
Capabilities:
Delete file

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0xc], 2
jne 0x4457a7
mov eax, dword [esi + 0x20]
test eax, eax
je 0x4457a7
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push dword [esi + 0x20]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
and dword [esi + 0x20], 0
pop ecx
xor eax, eax
pop esi
ret
Function at 0x44633c
Capabilities:
Check if file exists
Delete file
Move file

Disassembly:
push ebx
push ebp
push esi
mov esi, ecx
mov ecx, dword [esi + 4]
push edi
or ebp, 0xffffffff
call fcn.00446f06
mov edi, eax
xor ebx, ebx
cmp edi, ebx
jl 0x4463e7
cmp byte [esp + 0x18], bl
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0xc], ebx
mov dword [esi + 8], ebx
je 0x446391
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x446391
call edi
cmp eax, 2
je 0x446391
push 0xcd
push eax
call fcn.0041808f
pop ecx
pop ecx
mov edi, eax
jmp 0x4463e7
push dword [esp + 0x14]
push dword [esi + 0x20]
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
je 0x4463bf
push ebx
push ebx
push 3
push ebx
push 1
push SysReAllocStringLen
push dword [esp + 0x2c]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x4463c8
push 0xcd
call edi
jmp 0x446385
mov ecx, dword [esi + 4]
push ebp
call fcn.00446ee1
mov edi, eax
cmp edi, ebx
jl 0x4463e7
mov eax, dword [esi + 4]
or ebp, 0xffffffff
mov dword [esi + 0xc], 2
mov dword [esi + 8], eax
push dword [esi + 0x20]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
cmp ebp, 0xffffffff
pop ecx
mov dword [esi + 0x20], ebx
je 0x4463ff
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret 8
Function at 0x446a3c
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 8], 0
and dword [ebp - 4], 0
push ebx
push esi
mov esi, ecx
call fcn.00445ccf
mov ebx, eax
test ebx, ebx
jl 0x446ab7
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
mov ecx, esi
call fcn.004464d4
mov ebx, eax
test ebx, ebx
jl 0x446ab7
push dword [ebp - 8]
mov ecx, esi
call fcn.00445d59
mov ebx, eax
test ebx, ebx
jl 0x446ab7
push edi
lea edi, [esi + 4]
push edi
call fcn.00431393
mov eax, dword [ebp - 8]
test eax, eax
pop ecx
mov dword [edi], eax
je 0x446a97
mov ecx, dword [eax]
push eax
call dword [ecx + 4]
mov eax, dword [edi]
push dword [esi + 0x20]
mov dword [esi + 0xc], 2
mov dword [esi + 8], eax
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
mov eax, dword [ebp - 4]
and dword [ebp - 4], 0
pop ecx
mov dword [esi + 0x20], eax
pop edi
lea eax, [ebp - 8]
push eax
call fcn.00431393
cmp dword [ebp - 4], 0
pop ecx
je 0x446ad9
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push dword [ebp - 4]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
pop esi
mov eax, ebx
pop ebx
leave
ret
Function at 0x4240c0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x4d77d8]
xor edx, edx
cmp eax, edx
jne 0x4240e6
xor eax, eax
mov byte [eax + 0x4d76d8], al
inc eax
cmp eax, 0x100
jl 0x4240ce
mov dword [0x4d77d8], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x4d76d8
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x424177
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x42414a
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x424118
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x4241f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x424243
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x42422a
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4285f0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x68
mov eax, dword [esp + 0x78]
push ebx
push esi
cmp eax, 1
push edi
mov dword [esp + 0x14], ecx
jl 0x428811
cmp eax, 8
jg 0x428811
cmp dword [esp + 0x8c], 2
jl 0x428811
mov eax, dword [esp + 0x7c]
mov esi, dword [eax]
mov edi, dword [eax + 4]
mov ecx, dword [eax + 8]
mov dword [esp + 0x6c], ecx
sub ecx, esi
mov ebx, dword [eax + 0xc]
mov dword [esp + 0x7c], ecx
test ecx, ecx
mov dword [esp + 0x70], ebx
jle 0x428811
sub ebx, edi
test ebx, ebx
mov dword [esp + 0x20], ebx
jle 0x428811
mov eax, dword [esp + 0x80]
test eax, eax
je 0x428677
mov edx, dword [eax]
mov dword [esp + 0x44], edx
mov edx, dword [eax + 4]
mov dword [esp + 0x48], edx
mov edx, dword [eax + 8]
mov dword [esp + 0x4c], edx
mov eax, dword [eax + 0xc]
mov dword [esp + 0x50], eax
xor edx, edx
push ebp
test ebx, ebx
mov dword [esp + 0x1c], 1
mov dword [esp + 0x14], edx
jle 0x4287fa
mov ebp, dword [0x49f48c]
mov eax, ebx
mov dword [esp + 0x10], 0x32
sub eax, edx
cmp eax, 0x32
jg 0x4286a9
mov dword [esp + 0x10], eax
xor eax, eax
test ecx, ecx
jle 0x4287e1
mov ebx, dword [esp + 0x10]
add ebx, edx
mov dword [esp + 0x20], ebx
sub ecx, eax
cmp ecx, 0x32
jle 0x4286c9
mov ecx, 0x32
lea ebx, [ecx + eax]
mov ecx, dword [esp + 0x20]
push ecx
push ebx
push edx
lea edx, [esp + 0x34]
push eax
push edx
call dword [0x49f4a0]
push edi
lea eax, [esp + 0x2c]
push esi
push eax
call ebp
mov eax, dword [esp + 0x84]
test eax, eax
je 0x428708
lea ecx, [esp + 0x48]
lea edx, [esp + 0x28]
push ecx
lea eax, [esp + 0x2c]
push edx
push eax
call dword [0x49f498]
lea ecx, [esp + 0x28]
push ecx
call dword [0x49f458]
test eax, eax
jne 0x4287c8
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x38], edx
mov edx, dword [esp + 0x34]
mov dword [esp + 0x40], ecx
mov eax, edi
mov ecx, esi
mov dword [esp + 0x44], edx
neg eax
neg ecx
push eax
lea edx, [esp + 0x3c]
push ecx
push edx
call ebp
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x60], edx
lea edx, [esp + 0x58]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x44]
push edx
mov edx, dword [esp + 0x94]
mov dword [esp + 0x60], ecx
mov ecx, dword [esp + 0x78]
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x74]
push edx
mov edx, dword [esp + 0x94]
sub ecx, edi
sub eax, esi
push edx
push ecx
mov ecx, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x9c]
push eax
call fcn.00427c00
cmp eax, 1
jne 0x4287f2
mov ecx, dword [esp + 0x94]
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x80]
push edx
push eax
push ecx
mov ecx, dword [esp + 0x28]
call fcn.004284b0
mov ecx, dword [esp + 0x80]
mov edx, dword [esp + 0x14]
mov eax, ebx
cmp eax, ecx
jl 0x4286bd
mov ebx, dword [esp + 0x24]
add edx, dword [esp + 0x10]
cmp edx, ebx
mov dword [esp + 0x14], edx
jge 0x4287fa
jmp 0x428694
mov dword [esp + 0x1c], 0
mov ecx, dword [esp + 0x18]
call fcn.004277d0
mov eax, dword [esp + 0x1c]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x68
ret 0x1c
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x68
ret 0x1c
Function at 0x42b290
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x18
mov eax, dword [esp + 0x1c]
push ebx
push ebp
push esi
xor esi, esi
xor ecx, ecx
mov si, word [eax + 8]
mov cx, word [eax + 4]
xor ebp, ebp
xor edx, edx
mov bp, word [eax + 0xa]
mov dx, word [eax + 6]
sub esi, ecx
sub ebp, edx
inc esi
xor ebx, ebx
inc ebp
cmp esi, ebx
mov dword [esp + 0x14], esi
jle 0x42b428
cmp ebp, ebx
jle 0x42b428
mov eax, esi
push edi
cdq
and edx, 7
add eax, edx
mov edi, eax
mov eax, esi
sar edi, 3
and eax, 0x80000007
mov dword [esp + 0x10], edi
jns 0x42b2ee
dec eax
or eax, 0xfffffff8
inc eax
je 0x42b2f5
inc edi
mov dword [esp + 0x10], edi
mov ecx, edi
and ecx, 0x80000001
jns 0x42b304
dec ecx
or ecx, 0xfffffffe
inc ecx
je 0x42b30b
inc edi
mov dword [esp + 0x10], edi
push 0x18
call fcn.0048f306
add esp, 4
cmp eax, ebx
je 0x42b32c
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov dword [eax + 0x14], ebx
mov ebx, eax
mov eax, edi
mov dword [esp + 0x14], ebx
imul eax, ebp
push eax
mov dword [ebx], 7
mov dword [ebx + 4], esi
mov dword [ebx + 8], ebp
mov dword [ebx + 0x14], eax
call fcn.0048f306
mov ecx, dword [ebx + 0x14]
mov edi, eax
mov edx, ecx
xor eax, eax
shr ecx, 2
mov dword [ebx + 0x10], edi
add esp, 4
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x2c]
test ebp, ebp
lea edx, [eax + 0x80]
jle 0x42b41e
xor eax, eax
mov dword [esp + 0x20], ebp
mov dword [esp + 0x1c], eax
mov ebp, dword [ebx + 0x10]
xor ecx, ecx
add ebp, eax
mov dword [esp + 0x2c], ecx
test esi, esi
jle 0x42b405
mov al, byte [edx]
cmp al, 0xc0
jbe 0x42b3f1
and eax, 0xff
sub eax, 0xc0
inc edx
mov esi, eax
mov dword [esp + 0x24], edx
cmp esi, 1
jle 0x42b3e6
xor eax, eax
mov ecx, esi
mov al, byte [edx]
mov edx, ecx
mov bl, al
mov edi, ebp
mov bh, bl
dec esi
mov eax, ebx
shl eax, 0x10
mov ax, bx
mov ebx, dword [esp + 0x14]
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
mov edx, dword [esp + 0x24]
and ecx, 3
add ebp, esi
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x2c]
lea ecx, [eax + esi*8]
mov esi, dword [esp + 0x18]
jmp 0x42b3f4
mov al, byte [edx]
mov esi, dword [esp + 0x18]
mov byte [ebp], al
jmp 0x42b3f4
mov byte [ebp], al
inc ebp
add ecx, 8
inc edx
cmp ecx, esi
mov dword [esp + 0x2c], ecx
jl 0x42b390
mov eax, dword [esp + 0x1c]
mov edi, dword [esp + 0x10]
mov ecx, dword [esp + 0x20]
add eax, edi
dec ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ecx
jne 0x42b381
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x18
ret
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x18
ret