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

Disassembly:
push ebp
mov ebp, esp
push ecx
test edx, edx
jne 0x4093f5
xor eax, eax
jmp 0x4094cd
push ebx
push esi
mov esi, dword [ebp + 8]
or ecx, 0xffffffff
mov ebx, 0xff
cmp esi, 8
jb 0x4094ae
push edi
mov edi, esi
shr edi, 3
movzx eax, byte [edx]
sub esi, 8
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x452e20]
movzx eax, byte [edx + 1]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x452e20]
movzx eax, byte [edx + 2]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x452e20]
movzx eax, byte [edx + 3]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x452e20]
movzx eax, byte [edx + 4]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x452e20]
movzx eax, byte [edx + 5]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x452e20]
movzx eax, byte [edx + 6]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x452e20]
movzx eax, byte [edx + 7]
add edx, 8
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x452e20]
dec edi
jne 0x409411
pop edi
test esi, esi
je 0x4094c7
movzx eax, byte [edx]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x452e20]
inc edx
dec esi
jne 0x4094b2
not ecx
pop esi
mov eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x409a82
Capabilities:
Parse pe header

Disassembly:
push 0x24
push 0x45c490
call fcn.00430c40
mov edi, edx
push 0x1c
lea eax, [ebp - 0x34]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
and dword [ebp - 4], 0
mov eax, 0x5a4d
mov ecx, dword [ebp - 0x30]
cmp word [ecx], ax
jne 0x409ae9
mov edx, dword [ecx + 0x3c]
cmp dword [edx + ecx], 0x4550
jne 0x409ae9
mov esi, dword [edx + ecx + 0xd8]
lea eax, [esi + ecx]
cmp edi, eax
jb 0x409ae9
mov eax, dword [edx + ecx + 0xdc]
add eax, esi
add eax, ecx
cmp edi, eax
jae 0x409ae9
mov dword [ebp - 4], 0xfffffffe
mov al, 1
jmp 0x409af2
mov dword [ebp - 4], 0xfffffffe
xor al, al
call fcn.00430c85
ret
Function at 0x409b6e
Capabilities:
Allocate or change rwx memory
Hook routines via microsoft detours

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [0x463eb0]
sub esp, 0x3c
push ebx
push esi
mov esi, ecx
mov ebx, 0x10000
cmp esi, 0x7ff80000
push edi
mov edi, 0xfff80000
lea eax, [esi - 0x7ff80000]
cmova ebx, eax
cmp esi, 0x80000000
lea eax, [esi + 0x7ff80000]
cmovb edi, eax
mov eax, dword [0x463eb8]
test edx, edx
jne 0x409bbc
test eax, eax
je 0x409bcf
mov edx, eax
mov dword [0x463eb0], edx
mov ecx, dword [edx + 8]
test ecx, ecx
je 0x409bcf
cmp ecx, ebx
jb 0x409bcf
cmp ecx, edi
jbe 0x409ca7
mov edx, eax
test eax, eax
jmp 0x409bf1
test edx, edx
je 0x409bec
mov eax, dword [edx + 8]
test eax, eax
je 0x409bec
cmp eax, ebx
jb 0x409bec
cmp eax, edi
jbe 0x409ca7
mov edx, dword [edx + 4]
test edx, edx
mov dword [0x463eb0], edx
jne 0x409bd5
movzx eax, si
sub esi, eax
mov ecx, esi
cmp esi, ebx
jbe 0x409d47
lea eax, [ecx - 0x70000000]
mov edx, 0x6fff0000
cmp eax, 0x10000000
lea eax, [ebp - 0x3c]
push 0x1c
cmovbe ecx, edx
push eax
push ecx
mov dword [ebp - 4], ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x409d47
mov eax, 0x10000
cmp dword [ebp - 0x2c], eax
jne 0x409c42
cmp dword [ebp - 0x30], eax
jae 0x409c54
mov ecx, dword [ebp - 0x38]
add ecx, 0xffff0000
cmp ecx, ebx
ja 0x409c08
jmp 0x409d47
push 0x40
push 0x3000
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edx, eax
mov dword [0x463eb0], edx
test edx, edx
je 0x409d47
mov eax, dword [0x463eb8]
xor ecx, ecx
mov dword [edx + 4], eax
mov esi, 0x7fd
mov dword [edx], 0x52727464
lea eax, [edx + 0xffe0]
mov dword [edx + 8], ecx
mov dword [0x463eb8], edx
mov dword [eax + 0x18], ecx
mov ecx, eax
sub eax, 0x20
dec esi
jne 0x409c99
mov dword [edx + 8], ecx
mov esi, dword [edx + 8]
cmp esi, ebx
jb 0x409d4b
cmp esi, edi
ja 0x409d4b
mov ecx, dword [esi + 0x18]
mov eax, 0xcccccccc
mov dword [edx + 8], ecx
mov edi, esi
push 8
pop ecx
rep stosd dword es:[edi], eax
mov eax, esi
jmp 0x409d4d
lea eax, [esi - 0x70000000]
mov ecx, 0x80010000
cmp eax, 0x10000000
lea eax, [ebp - 0x20]
push 0x1c
cmovbe esi, ecx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x409d4b
mov eax, 0x10000
cmp dword [ebp - 0x10], eax
jne 0x409d3f
mov ecx, dword [ebp - 0x14]
cmp ecx, eax
jb 0x409d42
movzx edx, si
test edx, edx
je 0x409d20
mov esi, dword [ebp - 0x20]
sub eax, edx
sub ecx, eax
add esi, eax
mov dword [ebp - 0x14], ecx
mov eax, 0x10000
mov dword [ebp - 0x20], esi
push 0x40
push 0x3000
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edx, eax
mov dword [0x463eb0], edx
test edx, edx
jne 0x409c75
mov ecx, dword [ebp - 0x14]
mov esi, dword [ebp - 0x20]
add esi, ecx
cmp esi, edi
jb 0x409cd0
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x409e16
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [0x463ec0], 0
je 0x409e2a
mov eax, 0x10dd
jmp 0x409e8d
push esi
xor esi, esi
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push 0x463ec0
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
test eax, eax
je 0x409e4b
mov eax, 0x10dd
jmp 0x409e8c
mov dword [0x463ec4], esi
mov dword [0x463eb4], esi
mov dword [0x463eac], esi
mov dword [0x463ebc], esi
mov dword [0x463ea8], esi
mov esi, dword [0x463eb8]
jmp 0x409e86
lea eax, [ebp - 4]
push eax
push 0x40
push 0x10000
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov esi, dword [esi + 4]
test esi, esi
jne 0x409e71
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x409e91
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x463ec0], eax
je 0x409ead
mov eax, 0x10dd
jmp 0x409f35
push ebx
push esi
push edi
mov edi, dword [0x463eb4]
xor ebx, ebx
test edi, edi
je 0x409ef7
lea eax, [ebp - 4]
push eax
mov eax, dword [edi + 0x10]
push dword [edi + 0x14]
movzx eax, byte [eax + 0x17]
push eax
push dword [edi + 0xc]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
cmp dword [edi + 4], ebx
jne 0x409ee8
mov ecx, dword [edi + 0x10]
test ecx, ecx
je 0x409ee8
call fcn.00409d54
mov dword [edi + 0x10], ebx
mov esi, dword [edi]
push edi
call fcn.0042d790
mov edi, esi
pop ecx
test esi, esi
jne 0x409ebc
mov dword [0x463eb4], ebx
call fcn.00409b43
mov edi, dword [0x463eac]
test edi, edi
je 0x409f24
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov esi, dword [edi]
push edi
call fcn.0042d790
mov edi, esi
pop ecx
test esi, esi
jne 0x409f0c
pop edi
pop esi
mov dword [0x463eac], ebx
xor eax, eax
mov dword [0x463ec0], ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40b170
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp byte [ebp + 8], 0
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 4], 0x1388
jne 0x40b195
lea eax, [ebp - 4]
push eax
call fcn.0040aad0
test al, al
je 0x40b19c
mov ecx, ebx
call fcn.0040ab80
mov esi, dword [ebx + 0xc0]
cmp esi, dword [ebx + 0xc4]
je 0x40b1e0
lea ebx, [ebx]
mov edi, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [edi + 8]
cmp eax, dword [edi + 4]
jbe 0x40b1d5
mov eax, dword [edi]
mov ecx, edi
mov eax, dword [eax]
call eax
test al, al
je 0x40b1d5
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [edi + 8], eax
add esi, 4
cmp esi, dword [ebx + 0xc4]
jne 0x40b1b0
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40b2b0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x461008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebx + 0xd0], eax
mov edi, 0x3e8
mov eax, dword [ebx + 0xd4]
mov dword [ebp - 0x10], eax
mov eax, dword [ebx + 0xd8]
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], eax
mov edi, edi
push edi
push 0
lea eax, [ebp - 0x10]
push eax
push 3
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
cmp eax, 0x102
jne 0x40b366
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0x1388
push eax
mov ecx, ebx
call fcn.0040aad0
test al, al
je 0x40b323
mov ecx, ebx
call fcn.0040ab80
mov esi, dword [ebx + 0xc0]
cmp esi, dword [ebx + 0xc4]
je 0x40b361
mov edi, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [edi + 8]
cmp eax, dword [edi + 4]
jbe 0x40b356
mov eax, dword [edi]
mov ecx, edi
mov eax, dword [eax]
call eax
test al, al
je 0x40b356
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [edi + 8], eax
add esi, 4
cmp esi, dword [ebx + 0xc4]
jne 0x40b331
mov edi, dword [ebp - 0x14]
jmp 0x40b2f0
test eax, eax
jne 0x40b3ba
mov ecx, ebx
call fcn.0040ab80
mov esi, dword [ebx + 0xc0]
cmp esi, dword [ebx + 0xc4]
je 0x40b3b0
nop
mov edi, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [edi + 8]
cmp eax, dword [edi + 4]
jbe 0x40b3a5
mov eax, dword [edi]
mov ecx, edi
mov eax, dword [eax]
call eax
test al, al
je 0x40b3a5
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [edi + 8], eax
add esi, 4
cmp esi, dword [ebx + 0xc4]
jne 0x40b380
mov edi, 0x1388
jmp 0x40b2f0
cmp eax, 1
je 0x40b3d2
cmp eax, 2
jne 0x40b2f0
mov edi, 0xc8
jmp 0x40b2f0
push 1
mov ecx, ebx
call fcn.0040b170
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042cfd6
mov esp, ebp
pop ebp
ret 4
Function at 0x40e910
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x449708
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x461008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov esi, ecx
mov eax, dword [esi + 8]
lea ecx, [ebp - 0x4c]
movq xmm0, qword [esi]
mov dword [ebp - 0x54], eax
mov eax, dword [esi + 0xc]
mov dword [ebp - 0x50], eax
xor eax, eax
push 0xffffffffffffffff
push eax
mov word [ebp - 0x4c], ax
lea eax, [esi + 0x10]
push eax
movq qword [ebp - 0x5c], xmm0
mov dword [ebp - 0x38], 7
mov dword [ebp - 0x3c], 0
call fcn.004018bc
mov eax, dword [esi + 0x28]
mov dword [ebp - 0x34], eax
mov eax, dword [esi + 0x2c]
mov dword [ebp - 0x30], eax
mov eax, dword [esi + 0x30]
mov dword [ebp - 0x2c], eax
mov eax, dword [esi + 0x34]
mov dword [ebp - 0x28], eax
mov eax, dword [esi + 0x38]
mov dword [ebp - 0x24], eax
mov eax, dword [esi + 0x3c]
mov dword [ebp - 0x20], eax
mov eax, dword [esi + 0x40]
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 0x44]
mov dword [ebp - 0x18], eax
mov eax, dword [esi + 0x48]
mov dword [ebp - 0x14], eax
push edi
mov ecx, esi
mov dword [ebp - 4], 0
call fcn.0040f0f0
lea eax, [ebp - 0x5c]
mov ecx, edi
push eax
call fcn.0040f0f0
cmp dword [ebp - 0x38], 8
jb 0x40e9d7
push dword [ebp - 0x4c]
call fcn.0042d790
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042cfd6
mov esp, ebp
pop ebp
ret

Function at 0x40ea00
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x449738
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x461008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov esi, ecx
mov eax, dword [esi + 8]
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x54], eax
mov eax, dword [esi + 0xc]
mov dword [ebp - 0x50], eax
mov eax, dword [esi + 0x10]
movq xmm0, qword [esi]
mov dword [ebp - 0x4c], eax
mov eax, dword [esi + 0x14]
mov dword [ebp - 0x48], eax
mov eax, dword [esi + 0x18]
mov dword [ebp - 0x44], eax
mov eax, dword [esi + 0x1c]
mov dword [ebp - 0x40], eax
mov eax, dword [esi + 0x20]
mov dword [ebp - 0x3c], eax
mov eax, dword [esi + 0x24]
mov dword [ebp - 0x38], eax
mov eax, dword [esi + 0x28]
mov dword [ebp - 0x34], eax
mov eax, dword [esi + 0x2c]
mov dword [ebp - 0x30], eax
mov eax, dword [esi + 0x30]
mov dword [ebp - 0x2c], eax
xor eax, eax
push 0xffffffffffffffff
push eax
mov word [ebp - 0x28], ax
lea eax, [esi + 0x34]
push eax
movq qword [ebp - 0x5c], xmm0
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
call fcn.004018bc
push edi
mov ecx, esi
mov dword [ebp - 4], 0
call fcn.0040f200
lea eax, [ebp - 0x5c]
mov ecx, edi
push eax
call fcn.0040f200
cmp dword [ebp - 0x14], 8
jb 0x40eac7
push dword [ebp - 0x28]
call fcn.0042d790
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042cfd6
mov esp, ebp
pop ebp
ret
Function at 0x40edd0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x449838
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x461008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov esi, ecx
mov eax, dword [esi + 8]
lea ecx, [ebp - 0x58]
movq xmm0, qword [esi]
mov dword [ebp - 0x68], eax
mov eax, dword [esi + 0xc]
mov dword [ebp - 0x64], eax
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x60], eax
mov eax, dword [esi + 0x14]
mov dword [ebp - 0x5c], eax
xor eax, eax
push 0xffffffffffffffff
push eax
mov word [ebp - 0x58], ax
lea eax, [esi + 0x18]
push eax
movq qword [ebp - 0x70], xmm0
mov dword [ebp - 0x44], 7
mov dword [ebp - 0x48], 0
call fcn.004018bc
xor eax, eax
mov dword [ebp - 4], 0
push 0xffffffffffffffff
push eax
mov word [ebp - 0x40], ax
lea ecx, [ebp - 0x40]
lea eax, [esi + 0x30]
mov dword [ebp - 0x2c], 7
push eax
mov dword [ebp - 0x30], 0
call fcn.004018bc
xor eax, eax
mov byte [ebp - 4], 1
push 0xffffffffffffffff
push eax
mov word [ebp - 0x28], ax
lea ecx, [ebp - 0x28]
lea eax, [esi + 0x48]
mov dword [ebp - 0x14], 7
push eax
mov dword [ebp - 0x18], 0
call fcn.004018bc
push edi
mov ecx, esi
mov dword [ebp - 4], 2
call fcn.0040f590
lea eax, [ebp - 0x70]
mov ecx, edi
push eax
call fcn.0040f590
cmp dword [ebp - 0x14], 8
jb 0x40eebe
push dword [ebp - 0x28]
call fcn.0042d790
add esp, 4
xor eax, eax
mov dword [ebp - 0x14], 7
cmp dword [ebp - 0x2c], 8
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
jb 0x40eee3
push dword [ebp - 0x40]
call fcn.0042d790
add esp, 4
xor eax, eax
mov dword [ebp - 0x2c], 7
cmp dword [ebp - 0x44], 8
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
jb 0x40ef08
push dword [ebp - 0x58]
call fcn.0042d790
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042cfd6
mov esp, ebp
pop ebp
ret
Function at 0x4144b0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x15c
mov eax, dword [0x461008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x46515c]
mov dword [ebp - 0x15c], 0
push esi
mov esi, ecx
test al, 1
jne 0x41450a
or eax, 1
mov dword [0x465158], 7
mov dword [0x46515c], eax
xor eax, eax
push 0x44b070
mov dword [0x465154], 0
mov word [0x465144], ax
call fcn.0042d9c0
add esp, 4
cmp dword [0x465154], 0
ja 0x414723
lea eax, [ebp - 0x158]
mov dword [ebp - 0x158], 0x114
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [ebp - 0x148]
sub eax, 0
je 0x414659
dec eax
je 0x41461a
dec eax
je 0x414553
push 7
push str.Unknown
jmp 0x414660
cmp dword [ebp - 0x154], 4
ja 0x414568
push 0xa
push str.Windows_NT
jmp 0x414660
cmp dword [ebp - 0x154], 5
jne 0x4145b4
cmp dword [ebp - 0x150], 2
jne 0x414586
push 0xc
push str.Windows_2003
jmp 0x414660
cmp dword [ebp - 0x150], 1
jne 0x41459b
push 0xa
push str.Windows_XP
jmp 0x414660
cmp dword [ebp - 0x150], 0
jne 0x41466a
push 0xc
push str.Windows_2000
jmp 0x414660
cmp dword [ebp - 0x154], 6
jne 0x414608
cmp dword [ebp - 0x150], 0
jne 0x4145d2
push 0xd
push str.Windows_Vista
jmp 0x414660
cmp dword [ebp - 0x150], 1
jne 0x4145e4
push 9
push str.Windows_7
jmp 0x414660
cmp dword [ebp - 0x150], 2
jne 0x4145f6
push 9
push str.Windows_8
jmp 0x414660
cmp dword [ebp - 0x150], 3
jne 0x41466a
push 0xb
push str.Windows_8.1
jmp 0x414660
cmp dword [ebp - 0x154], 0xa
jne 0x41466a
push 0xa
push str.Windows_10
jmp 0x414660
cmp dword [ebp - 0x154], 4
jne 0x41466a
cmp dword [ebp - 0x150], 0
jne 0x414635
push 0xa
push str.Windows_95
jmp 0x414660
cmp dword [ebp - 0x150], 0xa
jne 0x414647
push 0xa
push str.Windows_98
jmp 0x414660
cmp dword [ebp - 0x150], 0x5a
jne 0x41466a
push 0xa
push str.Windows_ME
jmp 0x414660
push 0xe
push str.Windows_Win32s
mov ecx, 0x465144
call fcn.00401b73
xor eax, eax
push 0x3e
push eax
mov word [ebp - 0x44], ax
lea eax, [ebp - 0x42]
push eax
call fcn.0042edc0
push dword [ebp - 0x14c]
lea eax, [ebp - 0x44]
push dword [ebp - 0x150]
push dword [ebp - 0x154]
push str.__build_d._d._d_
push 0x20
push eax
call fcn.0042d0c2
add esp, 0x24
cmp word [ebp - 0x144], 0
je 0x4146f4
push 1
push 0x457ff4
mov ecx, 0x465144
call fcn.00401649
cmp word [ebp - 0x144], 0
jne 0x4146ca
xor ecx, ecx
jmp 0x4146e2
lea ecx, [ebp - 0x144]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4146d3
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x144]
mov ecx, 0x465144
push eax
call fcn.00401649
cmp word [ebp - 0x44], 0
jne 0x4146ff
xor ecx, ecx
jmp 0x414714
lea ecx, [ebp - 0x44]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x414705
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x44]
mov ecx, 0x465144
push eax
call fcn.00401649
push 0xffffffffffffffff
push 0
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov ecx, esi
push 0x465144
mov word [esi], ax
call fcn.004018bc
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0042cfd6
mov esp, ebp
pop ebp
ret
Function at 0x4248d0
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1010
call fcn.00442b40
mov eax, dword [0x461008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x100c]
push esi
push edi
mov edi, dword [ebp + 0xc]
push edx
lea edx, [ebp - 0x808]
mov dword [ebp - 0x100c], 0
push edx
lea edx, [ebp - 0x1010]
mov dword [ebp - 0x1010], 1
push edx
push 0
push eax
push dword [ecx]
mov dword [ebp - 0x100c], 0x800
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
jne 0x424a6e
mov ecx, dword [ebp - 0x1010]
cmp ecx, 1
jne 0x4249b2
cmp word [ebp - 0x808], ax
jne 0x424970
xor ecx, ecx
lea eax, [ebp - 0x808]
push ecx
push eax
mov ecx, edi
call fcn.00401b73
mov eax, esi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042cfd6
mov esp, ebp
pop ebp
ret 8
lea ecx, [ebp - 0x808]
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x424980
sub ecx, edx
lea eax, [ebp - 0x808]
sar ecx, 1
push ecx
push eax
mov ecx, edi
call fcn.00401b73
mov eax, esi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042cfd6
mov esp, ebp
pop ebp
ret 8
cmp ecx, 2
jne 0x424a69
push 0x400
lea eax, [ebp - 0x1008]
push eax
lea eax, [ebp - 0x808]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [ebp - 0x100c], eax
test eax, eax
je 0x424a52
cmp eax, 0x400
ja 0x424a52
cmp word [ebp - 0x1008], 0
jne 0x424a14
xor ecx, ecx
lea eax, [ebp - 0x1008]
push ecx
push eax
mov ecx, edi
call fcn.00401b73
mov eax, esi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042cfd6
mov esp, ebp
pop ebp
ret 8
lea ecx, [ebp - 0x1008]
lea edx, [ecx + 2]
lea ecx, [ecx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x424a20
sub ecx, edx
lea eax, [ebp - 0x1008]
sar ecx, 1
push ecx
push eax
mov ecx, edi
call fcn.00401b73
mov eax, esi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042cfd6
mov esp, ebp
pop ebp
ret 8
mov eax, 0xea
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042cfd6
mov esp, ebp
pop ebp
ret 8
mov eax, 0x3f4
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0042cfd6
mov esp, ebp
pop ebp
ret 8
Function at 0x425520
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x43c
mov eax, dword [0x461008]
xor eax, esp
mov dword [esp + 0x438], eax
push ebx
mov ebx, ecx
push esi
push edi
lea edi, [ebx + 8]
push edi
call fcn.00425890
add esp, 4
lea eax, [esp + 0x10]
lea esi, [ebx + 0xc]
mov ecx, esi
push eax
call fcn.00422b50
mov eax, dword [0x463eec]
test eax, eax
je 0x425589
lea ecx, [esp + 0x10]
push ecx
push dword [ebx + 0xa0]
push dword [ebx + 0xa8]
push dword [ebx + 0xa4]
push dword [ebx]
call eax
add esp, 0x14
test al, al
jne 0x4256d2
cmp dword [ebx], 2
jl 0x4255c9
cmp dword [esp + 0x24], 0x10
lea edi, [esp + 0x10]
mov esi, dword [esp + 0x20]
cmovae edi, dword [esp + 0x10]
call fcn.00434047
add eax, 0x40
push eax
push 1
push esi
push edi
call fcn.0044667f
call fcn.00434047
add eax, 0x40
push eax
call fcn.0043437b
add esp, 0x14
lea esi, [ebx + 0xc]
lea edi, [ebx + 8]
call fcn.00425250
cmp dword [0x463edc], 0
jne 0x4255e7
push 0xffffffffffffffff
push dword [0x463ed4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x4255f3
push dword [0x463ee8]
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call fcn.00425450
test al, al
je 0x425634
push 2
push 0
push 0
push dword [0x463ee0]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [esp + 0x24], 0x10
lea ecx, [esp + 0xc]
push 0
push ecx
push dword [esp + 0x28]
lea eax, [esp + 0x1c]
cmovae eax, dword [esp + 0x1c]
push eax
push dword [0x463ee0]
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [0x463edc], 0
jne 0x42564b
push dword [0x463ed4]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
jmp 0x425657
push dword [0x463ee8]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [ebx], 3
jne 0x4256d2
mov ecx, 0x400
lea eax, [esp + 0x10]
cmp dword [esp + 0x20], ecx
cmovb ecx, dword [esp + 0x20]
cmp dword [esp + 0x24], 0x10
cmovae eax, dword [esp + 0x10]
test ecx, ecx
je 0x42568b
push ecx
push eax
lea eax, [esp + 0x48]
push eax
call fcn.0042ee50
add esp, 0xc
lea eax, [esp + 0x40]
push eax
call fcn.00425e90
add esp, 4
cmp dword [0x463ee4], 0
je 0x425755
lea eax, [esp + 0x28]
mov ecx, esi
push eax
call fcn.00422b50
lea eax, [esp + 0x28]
push eax
call dword [0x463ee4]
add esp, 4
cmp dword [esp + 0x3c], 0x10
jb 0x4256d2
push dword [esp + 0x28]
call fcn.0042d790
add esp, 4
cmp dword [esp + 0x24], 0x10
jb 0x4256e5
push dword [esp + 0x10]
call fcn.0042d790
add esp, 4
push dword [ebx + 0xac]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [edi]
lea esi, [edi + 0x50]
mov eax, dword [eax + 4]
mov dword [eax + esi - 0x50], 0x45828c
mov eax, dword [esi - 0x50]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x50]
mov dword [ecx + esi - 0x54], eax
lea ecx, [esi - 0x4c]
call fcn.00421990
mov eax, dword [esi - 0x50]
push esi
mov eax, dword [eax + 4]
mov dword [eax + esi - 0x50], 0x4582dc
mov eax, dword [esi - 0x50]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ecx + esi - 0x54], eax
mov dword [esi], 0x4582d8
call fcn.0044607c
mov ecx, dword [esp + 0x448]
add esp, 4
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0042cfd6
mov esp, ebp
pop ebp
ret
call fcn.00425e70
int3
Function at 0x4272e0
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x40c
mov eax, dword [0x461008]
xor eax, esp
mov dword [esp + 0x408], eax
mov eax, dword [0x46287c]
push ebx
push esi
mov ebx, ecx
mov dword [esp + 8], 0
push edi
mov ecx, 0x100
mov dword [esp + 0xc], eax
mov esi, ebx
lea edi, [esp + 0x10]
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x10]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push ebx
call fcn.0042d9d5
add esp, 4
mov edi, 0x100
jmp 0x427340
mov esi, dword [0x463fb0]
xor dl, dl
test esi, esi
jle 0x427378
lea esp, [esp]
mov ecx, dword [esp + esi*4 + 0x10]
test ecx, ecx
je 0x427373
mov eax, dword [esi*4 + 0x463fd0]
test eax, eax
je 0x427373
push ecx
mov dword [esp + esi*4 + 0x14], 0
call eax
add esp, 4
mov dl, 1
dec esi
test esi, esi
jg 0x427350
dec edi
test edi, edi
jle 0x427381
test dl, dl
jne 0x427340
push 0
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [esp + 0x414]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0042cfd6
mov esp, ebp
pop ebp
ret