joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4912e0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x517b78
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
lea eax, [esp + 0xc]
mov ecx, dword [esi + 0x1c]
push eax
push ecx
call dword [0x51a680]
push 0
lea ecx, [esp + 0x20]
call fcn.0050ffbf
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.00490c40
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x48]
add eax, 0x64
add esp, 0xc
add ecx, 0x64
mov dword [esp + 8], eax
lea eax, [esp + 4]
mov dword [esp + 4], ecx
push eax
lea ecx, [esp + 0x20]
call fcn.0050feed
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
push 1
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
lea eax, [edx + ecx + 1]
xor edx, edx
test eax, eax
setl dl
dec edx
mov ecx, esi
and eax, edx
push eax
push 0
push 0
call fcn.0050c7b3
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 8]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
xor ecx, ecx
sar edx, 4
mov eax, edx
push 1
shr eax, 0x1f
lea eax, [edx + eax + 1]
test eax, eax
setl cl
dec ecx
and eax, ecx
mov ecx, esi
push eax
push 0
push 1
call fcn.0050c7b3
push 1
push 0
push 0
mov ecx, esi
call fcn.0050c75b
push 1
push 0
push 1
mov ecx, esi
call fcn.0050c75b
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.00510031
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x491460
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x517b98
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call fcn.0050ffbf
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.00490c40
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x4c]
add ecx, 0x64
add esp, 0xc
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
add eax, 0x96
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call fcn.0050feed
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [0x51a680]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x491524
cmp dword [esp + 0x40], 1
jne 0x491522
cmp ecx, eax
jge 0x491524
mov eax, ecx
cmp eax, 0xc8
jge 0x491530
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.004912e0
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [0x51a678]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.00510031
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x491d30
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x517c43
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.0050abce
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], method.CBrush.virtual_0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [0x51a130]
push eax
mov ecx, edi
call fcn.00510267
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.005117c6
test eax, eax
je 0x491e4c
mov ecx, dword [esp + 0x3c]
call fcn.00510294
mov ecx, dword [esi + 0x1c]
mov ebp, dword [0x51a448]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x491e10
push edi
mov ecx, esi
call fcn.0050d8fa
mov ecx, esi
call fcn.00491ff0
cmp dword [esp + 0x38], 1
jne 0x491e45
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.0050da35
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28

Function at 0x494030
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x494063
push esi
call fcn.004a22c0
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x49405c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x4940e9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x4940d2
mov eax, dword [esi + 8]
test eax, eax
je 0x494087
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x4940ce
cmp eax, 2
je 0x4940d2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x49407a
cmp eax, 3
je 0x4940ad
cmp eax, 1
jne 0x49407a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x49407a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x49407a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.00494110
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x4940f8
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.00494110
add esp, 4
pop esi
ret
Function at 0x4d5580
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0xd3ee48]
xor edx, edx
cmp eax, edx
jne 0x4d55a6
xor eax, eax
mov byte [eax + 0xd3ed48], al
inc eax
cmp eax, 0x100
jl 0x4d558e
mov dword [0xd3ee48], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0xd3ed48
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x4d5637
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 0x4d560a
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 0x4d55d8
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x4d56b0
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 0x4d5703
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 0x4d56ea
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 0x4dc0c0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x51881e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x10], edi
call fcn.004dc9e0
push 0x10
mov dword [esp + 0x18], 0
mov dword [edi], 0xbeedf4
call fcn.00509337
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov al, 1
test esi, esi
mov byte [esp + 0x14], al
je 0x4dc153
push 4
mov byte [esi + 8], al
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.00509337
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 2
je 0x4dc14c
push 0
mov ecx, eax
call fcn.004d31c0
mov dword [esi + 0xc], eax
jmp 0x4dc155
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x4dc155
xor esi, esi
mov ecx, dword [esp + 0xc]
mov dword [edi + 0x30], esi
mov dword [edi + 0x34], 0
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8
Function at 0xd5dc10
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
sub esp, 0x4c
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0xd5dd1c
test eax, eax
je 0xd5dd1c
push esi
push edi
mov ecx, 0x10
mov esi, 0xd78fe8
lea edi, [ebp - 0x4c]
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov esi, dword [ebp + 0x14]
mov esi, dword [esi]
add esi, eax
mov dword [ebp - 8], esi
xor esi, esi
mov dword [ebp - 4], 0
mov ecx, eax
test edx, edx
jbe 0xd5dd03
lea edi, [eax + 4]
jmp 0xd5dc67
mov ebx, dword [ebp + 8]
movzx eax, byte [esi + ebx]
inc esi
shl eax, 0x10
cmp esi, edx
jne 0xd5dc7c
mov dword [ebp - 4], 2
jmp 0xd5dc9d
movzx ebx, byte [esi + ebx]
shl ebx, 8
inc esi
or eax, ebx
cmp esi, edx
jne 0xd5dc93
mov dword [ebp - 4], 1
jmp 0xd5dc9d
mov edx, dword [ebp + 8]
movzx edx, byte [esi + edx]
or eax, edx
inc esi
mov edx, eax
and edx, 0x3f
cmp edi, dword [ebp - 8]
ja 0xd5dd13
mov ebx, eax
shr ebx, 0x12
and ebx, 0x3f
movzx ebx, byte [ebp + ebx - 0x4c]
mov byte [ecx], bl
mov ebx, eax
shr ebx, 0xc
and ebx, 0x3f
movzx ebx, byte [ebp + ebx - 0x4c]
inc ecx
inc edi
mov byte [ecx], bl
mov ebx, dword [ebp - 4]
inc ecx
inc edi
cmp ebx, 1
jbe 0xd5dcd6
mov byte [ecx], 0x3d
jmp 0xd5dce2
shr eax, 6
and eax, 0x3f
mov al, byte [ebp + eax - 0x4c]
mov byte [ecx], al
inc ecx
inc edi
test ebx, ebx
jbe 0xd5dced
mov byte [ecx], 0x3d
jmp 0xd5dcf3
mov dl, byte [ebp + edx - 0x4c]
mov byte [ecx], dl
mov edx, dword [ebp + 0xc]
inc ecx
inc edi
cmp esi, edx
jb 0xd5dc64
mov eax, dword [ebp + 0x10]
sub ecx, eax
mov eax, dword [ebp + 0x14]
pop edi
pop esi
mov dword [eax], ecx
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401050
Capabilities:
Set registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
lea eax, [esp + 8]
push eax
push 0x20006
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4010a2
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
push eax
mov eax, dword [esp + 0xc]
push ecx
push 3
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x4010a2
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x4010a2
ret
and eax, 0xffff
or eax, 0x80040000
ret
Function at 0x401960
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push ebx
push esi
lea eax, [ebp + 0x18]
push edi
mov edi, dword [ebp + 0x18]
push eax
push 0x20019
push 0
push ecx
push edx
mov dword [ebp - 4], 0
mov dword [ebp - 8], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4019fc
mov ebx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
lea eax, [ebp - 8]
lea ecx, [ebp + 0xc]
push eax
mov eax, dword [ebp + 0x18]
push ebx
push ecx
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4019f2
mov eax, dword [ebp + 0xc]
cmp eax, 1
je 0x4019eb
cmp eax, 2
jne 0x4019f2
mov eax, edi
add eax, 3
and al, 0xfc
call fcn.0040e560
mov esi, esp
test esi, esi
je 0x4019f2
push edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
test eax, eax
je 0x4019f2
cmp eax, edi
jae 0x4019f2
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov dword [ebp - 4], 1
mov ecx, dword [ebp + 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 4]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x401d40
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x24
push ebx
push ebp
mov ebp, ecx
push esi
mov eax, dword [ebp + 0xc18]
test eax, eax
je 0x401e4f
mov eax, dword [esp + 0x3c]
mov ecx, dword [ebp + 0xc20]
cmp eax, ecx
jg 0x401e4f
mov ebx, dword [esp + 0x34]
test ebx, ebx
je 0x401e4f
mov esi, dword [esp + 0x38]
test esi, esi
je 0x401e4f
lea ecx, [esp + 0xc]
push edi
push ecx
call dword [sym.imp.MSVCRT.dll__wstrdate]
add esp, 4
lea edx, [esp + 0x22]
mov edi, 0x20
push edx
mov word [esp + 0x24], di
call dword [sym.imp.MSVCRT.dll__wstrtime]
mov eax, dword [ebp + 0xc1c]
add esp, 4
mov word [esp + 0x32], di
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp word [ebp + 0xa10], 0
jne 0x401e28
xor esi, esi
push esi
push esi
push esi
push esi
push 0xffffffffffffffff
push ebx
push esi
push esi
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
je 0x401dff
inc edi
push edi
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
add esp, 4
test esi, esi
je 0x401dff
push 0
push 0
push edi
push esi
push 0xffffffffffffffff
push ebx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edx, dword [esp + 0x3c]
mov eax, dword [ebp + 0xc18]
lea ecx, [esp + 0x40]
push 0
push ecx
push edx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test esi, esi
je 0x401e41
push esi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
jmp 0x401e41
mov eax, dword [ebp + 0xc18]
lea ecx, [esp + 0x40]
push 0
lea edx, [esi + esi]
push ecx
push edx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp + 0xc1c]
push ecx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret 0xc
Function at 0x403000
Capabilities:
Create thread

Disassembly:
push ecx
lea eax, [esp]
push esi
mov esi, ecx
push eax
push 0
push esi
push 0x402ff0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
mov dword [esi + 0x1084], eax
jne 0x40303d
push 0x4e33
push esi
call fcn.00401210
add esp, 8
mov dword [esi + 0xa0c], 0
mov eax, dword [esi + 0xa0c]
pop esi
pop ecx
ret

Function at 0x4035c0
Capabilities:
Get system information on windows

Disassembly:
sub esp, 0x24
xor eax, eax
push esi
mov esi, ecx
push edi
mov ecx, 0x114
mov edi, esi
rep stosd dword es:[edi], eax
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x30]
push 0x103
push edx
shl ecx, 4
push esi
mov dword [esi + 0x434], ecx
mov word [esi + 0x206], 0
call dword [sym.imp.MSVCRT.dll_wcsncpy]
add esp, 0xc
mov eax, esi
pop edi
pop esi
add esp, 0x24
ret 4

Function at 0x403630
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 0xc
push ebx
push esi
push edi
xor edi, edi
push edi
push 0x8000080
push 3
push edi
mov esi, ecx
push 1
push SQLAllocConnect
push esi
call dword [sym.imp.SQLWOA.dll__CreateFile_28]
cmp eax, 0xffffffff
mov dword [esi + 0x208], eax
jne 0x40366c
mov ecx, esi
call fcn.004037a0
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0xc
ret
lea ecx, [esp + 0x10]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edx, dword [esp + 0x10]
push 1
push edi
push edi
push edx
mov ebx, eax
call fcn.0040e5a0
xor ecx, ecx
add eax, ebx
adc edx, ecx
mov dword [esi + 0x420], eax
mov eax, edx
mov dword [esi + 0x438], edi
mov dword [esi + 0x440], edi
cmp eax, edi
mov dword [esi + 0x424], edx
mov dword [esi + 0x43c], edi
mov dword [esi + 0x444], edi
mov dword [esi + 0x448], edi
mov ebx, 2
ja 0x4036cb
cmp dword [esi + 0x420], edi
jbe 0x403702
mov edx, dword [esi + 0x208]
push edi
push edi
push edi
push ebx
push edi
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
cmp eax, edi
mov dword [esi + 0x418], eax
je 0x403702
mov ecx, esi
call fcn.00403a10
test eax, eax
jne 0x403702
mov ecx, esi
call fcn.004037a0
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0xc
ret
mov edx, dword [esi + 0x208]
lea eax, [esp + 0x14]
push edi
push eax
lea ecx, [esp + 0x16]
push ebx
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40372f
mov ecx, esi
call fcn.004037a0
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0xc
ret
cmp dword [esp + 0x14], ebx
jne 0x40376b
mov ax, word [esp + 0xe]
cmp al, 0xff
jne 0x40376b
cmp ah, 0xfe
jne 0x40376b
mov ecx, dword [esi + 0x440]
mov dword [esi + 0x414], 1
add ecx, ebx
mov dword [esi + 0x440], ecx
mov eax, dword [esi + 0x444]
adc eax, edi
mov dword [esi + 0x444], eax
jmp 0x403781
mov eax, dword [esi + 0x208]
push edi
push edi
push edi
push eax
mov dword [esi + 0x414], edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [esi + 0x410], 1
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0xc
ret
Function at 0x403800
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
mov esi, dword [esp + 0x1c]
xor eax, eax
push edi
cmp esi, eax
mov ebx, ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], eax
je 0x403a00
cmp dword [ebx + 0x448], eax
je 0x4039d0
mov ebp, dword [esp + 0x24]
mov eax, esi
cdq
mov dword [ebp], esi
mov edi, dword [ebx + 0x440]
mov ecx, dword [ebx + 0x430]
add eax, edi
mov edi, dword [ebx + 0x444]
adc edx, edi
xor edi, edi
cmp edx, edi
jb 0x403876
ja 0x403857
cmp eax, ecx
jbe 0x403876
sub ecx, dword [ebx + 0x440]
mov dword [ebp], ecx
mov eax, dword [ebx + 0x420]
or eax, dword [ebx + 0x424]
je 0x403876
mov dword [esp + 0x14], 1
mov ecx, dword [ebp]
xor eax, eax
cmp ecx, eax
je 0x4038d0
mov esi, dword [ebx + 0x41c]
mov edx, dword [ebx + 0x440]
mov edi, dword [esp + 0x1c]
add esi, edx
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp]
mov ecx, dword [ebx + 0x440]
add ecx, eax
mov esi, dword [esp + 0x20]
mov dword [ebx + 0x440], ecx
mov eax, dword [ebx + 0x444]
adc eax, 0
mov dword [ebx + 0x444], eax
mov ecx, dword [ebp]
mov dword [esp + 0x10], ecx
mov edi, ecx
xor eax, eax
jmp 0x4038d4
mov edi, dword [esp + 0x10]
cmp dword [esp + 0x14], 1
jne 0x403a00
jmp 0x4038e3
xor eax, eax
mov edx, dword [ebx + 0x41c]
mov dword [ebx + 0x438], eax
mov dword [ebx + 0x440], eax
push edx
mov dword [ebx + 0x43c], eax
mov dword [ebx + 0x444], eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, ebx
mov dword [ebx + 0x41c], 0
call fcn.00403a10
test eax, eax
je 0x4039ed
mov eax, dword [ebp]
mov ecx, dword [ebx + 0x430]
mov edx, esi
sub edx, eax
cmp edx, ecx
jbe 0x40394f
add eax, ecx
mov dword [ebp], eax
mov eax, dword [ebx + 0x420]
or eax, dword [ebx + 0x424]
je 0x40395a
mov dword [esp + 0x14], 1
jmp 0x40395a
mov dword [ebp], esi
mov dword [esp + 0x14], 0
mov ecx, dword [ebp]
sub ecx, edi
je 0x4039b6
mov esi, dword [ebx + 0x41c]
mov eax, dword [ebx + 0x440]
mov edx, dword [esp + 0x1c]
add esi, eax
mov eax, ecx
add edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp]
mov esi, dword [esp + 0x10]
mov edx, dword [ebx + 0x440]
sub ecx, esi
add edx, ecx
mov esi, dword [esp + 0x20]
mov dword [ebx + 0x440], edx
mov eax, dword [ebx + 0x444]
adc eax, 0
mov dword [ebx + 0x444], eax
mov edx, dword [ebp]
mov dword [esp + 0x10], edx
mov edi, edx
cmp dword [esp + 0x14], 1
je 0x4038e1
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 0xc
mov ecx, dword [esp + 0x1c]
mov edx, dword [ebx + 0x208]
push eax
mov eax, dword [esp + 0x28]
push eax
push esi
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x403a00
mov ecx, ebx
call fcn.004037a0
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 0xc
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 8
ret 0xc
Function at 0x403a10
Capabilities:
Read file via mapping

Disassembly:
push esi
mov esi, ecx
xor ecx, ecx
mov edx, dword [esi + 0x424]
mov eax, dword [esi + 0x434]
cmp edx, ecx
ja 0x403a6a
jb 0x403a31
mov ecx, dword [esi + 0x420]
cmp ecx, eax
ja 0x403a6a
mov edx, dword [esi + 0x428]
push 0
push edx
mov eax, edx
mov edx, dword [esi + 0x42c]
mov ecx, 0x20
call fcn.0040e5e0
push eax
mov eax, dword [esi + 0x418]
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ecx, dword [esi + 0x420]
mov dword [esi + 0x41c], eax
jmp 0x403aa0
mov edx, dword [esi + 0x428]
push eax
push edx
mov eax, edx
mov edx, dword [esi + 0x42c]
mov ecx, 0x20
call fcn.0040e5e0
push eax
mov eax, dword [esi + 0x418]
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ecx, dword [esi + 0x434]
mov dword [esi + 0x41c], eax
mov eax, dword [esi + 0x41c]
mov dword [esi + 0x430], ecx
test eax, eax
je 0x403afd
mov edx, dword [esi + 0x420]
mov eax, ecx
xor ecx, ecx
sub edx, eax
mov dword [esi + 0x420], edx
mov edx, dword [esi + 0x424]
sbb edx, ecx
mov dword [esi + 0x448], 1
mov dword [esi + 0x424], edx
mov edx, dword [esi + 0x428]
add edx, eax
mov dword [esi + 0x428], edx
mov eax, dword [esi + 0x42c]
adc eax, ecx
mov dword [esi + 0x42c], eax
mov eax, 1
pop esi
ret
xor eax, eax
pop esi
ret
Function at 0x408ae0
Capabilities:
Query or enumerate registry value

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
lea eax, [esp + 0xc]
mov byte [esi], 0
mov byte [edi], 0
mov ecx, dword [str.HardwareDescriptionSystem]
push eax
push 0x20019
push 0
push ecx
push reloc.ODBC32.dll_SQLAllocEnv
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x408b59
mov edx, dword [esp + 0x14]
mov ecx, dword [str.Identifier]
push edx
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push eax
push 0
push ecx
push edx
call esi
mov eax, dword [esp + 0x18]
mov edx, dword [str.SystemBiosVersion]
push eax
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push edi
push ecx
push 0
push edx
push eax
call esi
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
ret