joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41ecdc
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x42a520]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00415fe2
and dword [ebp - 0x14], 0
cmp dword [0x46b270], 0
mov dword [ebp - 0x18], eax
jne 0x41ed8f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x41ee37
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x41ee37
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x46b270], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x46b274], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x46b278], eax
call edi
push eax
call esi
mov dword [0x46b280], eax
test eax, eax
je 0x41ed8f
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x46b27c], eax
mov eax, dword [0x46b27c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x41ede8
cmp dword [0x46b280], ecx
je 0x41ede8
push eax
call esi
push dword [0x46b280]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x41ede8
test ebx, ebx
je 0x41ede8
call edi
test eax, eax
je 0x41eddf
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x41eddf
test byte [ebp - 8], 1
jne 0x41ede8
or dword [ebp + 0x10], 0x200000
jmp 0x41ee1b
mov eax, dword [0x46b274]
cmp eax, dword [ebp - 0x18]
je 0x41ee1b
push eax
call esi
test eax, eax
je 0x41ee1b
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x41ee1b
mov eax, dword [0x46b278]
cmp eax, dword [ebp - 0x18]
je 0x41ee1b
push eax
call esi
test eax, eax
je 0x41ee1b
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x46b270]
call esi
test eax, eax
je 0x41ee37
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x41ee39
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00410717
leave
ret

Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
nop
nop
nop
pop eax
nop
add eax, 0x40a063
nop
nop
sub eax, 0x40a009
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
jl 0x433030
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43301e
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x401c10
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x4439d8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x64
push ebp
push edi
mov edi, ecx
lea ecx, [esp + 0x18]
call fcn.0042bed8
mov eax, dword [0x45abd4]
xor ebp, ebp
mov dword [esp + 0x74], ebp
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov ecx, dword [edi + 0xa4]
mov eax, 0x32
cmp ecx, eax
mov byte [esp + 0x74], 1
jb 0x401c62
mov dword [edi + 0xa4], eax
push ebp
push 0x1001
push str.Novel4.bmk
lea ecx, [esp + 0x24]
call fcn.0042bfea
test eax, eax
je 0x401dba
push esi
push ebp
push 0x1000
lea eax, [esp + 0x24]
push ebp
push eax
lea ecx, [esp + 0x3c]
call fcn.0042ec78
mov ecx, dword [esp + 0x50]
mov eax, dword [esp + 0x54]
mov esi, dword [edi + 0xa4]
add ecx, 4
cmp ecx, eax
mov byte [esp + 0x78], 2
jbe 0x401cb7
lea ecx, [esp + 0x2c]
call fcn.0042ef89
mov edx, dword [esp + 0x50]
mov dword [edx], esi
mov edx, dword [esp + 0x50]
mov eax, dword [edi + 0xa4]
add edx, 4
cmp eax, 1
mov dword [esp + 0x50], edx
jb 0x401d99
cmp eax, ebp
jbe 0x401d99
push ebx
lea esi, [edi + 0xb0]
mov eax, dword [0x45abd4]
mov dword [esp + 0x10], eax
mov cl, byte [esi - 8]
lea edx, [esi - 4]
mov byte [esp + 0x14], cl
push edx
lea ecx, [esp + 0x1c]
mov byte [esp + 0x80], 3
call fcn.0042b57e
push esi
lea ecx, [esp + 0x20]
call fcn.0042b57e
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x58]
mov bl, byte [esp + 0x14]
inc eax
cmp eax, ecx
jbe 0x401d2f
lea ecx, [esp + 0x30]
call fcn.0042ef89
mov ecx, dword [esp + 0x54]
lea edx, [esp + 0x1c]
push edx
mov byte [ecx], bl
mov eax, dword [esp + 0x58]
inc eax
lea ecx, [esp + 0x14]
mov dword [esp + 0x58], eax
call fcn.0042b57e
lea eax, [esp + 0x10]
lea ecx, [esp + 0x30]
push eax
push ecx
call fcn.0042eb10
lea edx, [esp + 0x18]
lea ecx, [esp + 0x10]
push edx
call fcn.0042b57e
lea eax, [esp + 0x10]
lea ecx, [esp + 0x30]
push eax
push ecx
call fcn.0042eb10
lea ecx, [esp + 0x10]
mov byte [esp + 0x7c], 2
call fcn.0042b445
mov eax, dword [edi + 0xa4]
inc ebp
add esi, 0xc
cmp ebp, eax
jb 0x401ce6
pop ebx
lea ecx, [esp + 0x2c]
call fcn.0042eddc
lea ecx, [esp + 0x1c]
call fcn.0042c205
lea ecx, [esp + 0x2c]
mov byte [esp + 0x78], 1
call fcn.0042ed54
pop esi
lea ecx, [esp + 0x14]
mov byte [esp + 0x74], 4
call fcn.0042b445
lea ecx, [esp + 0x10]
mov byte [esp + 0x74], 0
call fcn.0042b445
lea ecx, [esp + 0x18]
mov dword [esp + 0x74], 0xffffffff
call fcn.0042bf2d
mov ecx, dword [esp + 0x6c]
pop edi
pop ebp
mov dword fs:[0], ecx
add esp, 0x70
ret
Function at 0x403680
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x443b88
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
mov dword [esp + 8], esi
call fcn.0042aca2
xor ebx, ebx
lea ecx, [esi + 0x1c]
mov dword [esp + 0x14], ebx
call fcn.0042bed8
mov eax, dword [0x45abd4]
mov dword [esi + 0x4c], eax
mov ecx, dword [0x45abd4]
mov dword [esi + 0x50], ecx
mov ecx, dword [esp + 0xc]
mov dword [esi], 0x447998
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], 0x40
mov dword [esi + 0x34], 0x200
mov byte [esi + 0x38], bl
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x20], ebx
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x403697
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x443b88
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
mov dword [esp + 8], esi
call fcn.0042aca2
xor ebx, ebx
lea ecx, [esi + 0x1c]
mov dword [esp + 0x14], ebx
call fcn.0042bed8
mov eax, dword [0x45abd4]
mov dword [esi + 0x4c], eax
mov ecx, dword [0x45abd4]
mov dword [esi + 0x50], ecx
mov ecx, dword [esp + 0xc]
mov dword [esi], 0x447998
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], 0x40
mov dword [esi + 0x34], 0x200
mov byte [esi + 0x38], bl
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x20], ebx
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x405eb0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x443ee7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
push esi
mov dword [esp + 0x1c], 0
lea eax, [esp + 0x38]
lea ecx, [esp + 0xc]
push eax
mov dword [esp + 0x30], 1
call fcn.0042b1ba
push 0x45ede0
lea ecx, [esp + 0x14]
mov byte [esp + 0x30], 2
call fcn.0042b4b3
push 0x45ede0
lea ecx, [esp + 0x24]
mov byte [esp + 0x30], 3
call fcn.0042b4b3
lea ecx, [esp + 8]
mov bl, 4
push ecx
lea ecx, [esp + 0x10]
mov byte [esp + 0x30], bl
mov byte [esp + 0xc], 0xd
mov byte [esp + 0xd], 0xa
mov byte [esp + 0xe], 0
call fcn.00424e54
test eax, eax
jl 0x405fae
lea esi, [eax + 2]
lea edx, [esp + 0x14]
push esi
push edx
lea ecx, [esp + 0x14]
call fcn.00424ddc
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x30], 5
call fcn.0042b85d
lea ecx, [esp + 0x14]
mov byte [esp + 0x2c], bl
call fcn.0042b445
push str._BR_
lea ecx, [esp + 0x14]
call fcn.0042b821
lea eax, [esp + 0x18]
push esi
push eax
lea ecx, [esp + 0x14]
call fcn.00424ca7
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x30], 6
call fcn.0042b57e
lea ecx, [esp + 0x18]
mov byte [esp + 0x2c], bl
call fcn.0042b445
lea ecx, [esp + 8]
push ecx
lea ecx, [esp + 0x10]
call fcn.00424e54
test eax, eax
jge 0x405f35
mov esi, dword [esp + 0x34]
lea edx, [esp + 0x10]
push edx
mov ecx, esi
call fcn.0042b1ba
mov dword [esp + 0x1c], 1
lea ecx, [esp + 0x20]
mov byte [esp + 0x2c], 3
call fcn.0042b445
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 2
call fcn.0042b445
lea ecx, [esp + 0xc]
mov byte [esp + 0x2c], 1
call fcn.0042b445
lea ecx, [esp + 0x38]
mov byte [esp + 0x2c], 0
call fcn.0042b445
mov ecx, dword [esp + 0x24]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x28
ret 8
Function at 0x406bc0
Capabilities:
Encode data using xor
Set registry value

Disassembly:
sub esp, 0x74
push ebx
push ebp
push esi
mov ebx, ecx
xor esi, esi
mov ebp, 3
lea eax, [esp + 0x18]
push edi
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], esi
sub ebp, eax
lea edi, [esp + esi + 0x1c]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
lea ecx, [edi + ebp]
xor edx, edx
imul eax, ecx
mov ecx, 0xff
div ecx
inc esi
cmp esi, 0x32
mov byte [esp + esi + 0x4f], dl
mov byte [edi], dl
jb 0x406bde
mov ebp, 0x459b7c
add ebx, 0x88
xor edi, edi
mov esi, 3
sub ebp, 3
mov dl, byte [esi + ebp]
mov cl, byte [ebx]
xor dl, cl
mov byte [esp + edi + 0x1c], dl
call dword [sym.imp.KERNEL32.dll_GetTickCount]
imul eax, esi
xor edx, edx
mov ecx, 0xff
div ecx
inc ebx
inc esi
add edi, 2
mov byte [esp + edi + 0x4f], dl
lea edx, [esi - 3]
cmp edx, 0x19
jb 0x406c18
lea eax, [esp + 0x14]
lea ecx, [esp + 0x10]
push eax
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push str.SoftwareMicrosoftInternet_ExplorerMainRegistration4
push reloc.OLEAUT32.dll_SysReAllocString
call esi
test eax, eax
jne 0x406cff
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea edx, [esp + 0x1c]
push 0x32
push edx
push 3
push eax
mov eax, dword [esp + 0x20]
push str.Serial
push eax
call ebx
test eax, eax
jne 0x406cff
mov ecx, dword [esp + 0x10]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ecx
call edi
lea edx, [esp + 0x14]
lea eax, [esp + 0x10]
push edx
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push str.SoftwareMicrosoftInternet_ExplorerMainRegistration4
push reloc.OLEAUT32.dll_SysReAllocString
call esi
test eax, eax
jne 0x406ce1
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x50]
push 0x32
push ecx
push 3
push eax
push str.Code
push edx
call ebx
mov eax, dword [esp + 0x10]
push eax
call edi
mov ecx, dword [esp + 0x18]
call fcn.00406d10
push 0
push 0
push 0x459bec
call fcn.004334e1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x74
ret
Function at 0x406d10
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x44405b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1ac
push ebx
push esi
push edi
lea ecx, [esp + 0x10]
call fcn.0042bed8
lea eax, [esp + 0x20]
push 0x80
push eax
mov dword [esp + 0x1c8], 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edi, str.POEM302.DLL
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x20]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0xa0]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x24]
push ecx
call fcn.0042bc46
pop edi
pop esi
test eax, eax
pop ebx
je 0x406db3
lea edx, [esp + 0x94]
lea eax, [esp + 0x14]
push edx
push eax
mov byte [esp + 0xac], 0x20
call fcn.0042bdab
push 0
lea ecx, [esp + 0x18]
push 2
push ecx
lea ecx, [esp + 0x10]
call fcn.0042bfea
test eax, eax
je 0x406e8c
lea edx, [esp + 0x94]
lea ecx, [esp + 4]
push edx
call fcn.0042bb6c
cmp dword [esp + 0xa0], 0x400
jne 0x406e83
push 0
push 0x100
lea ecx, [esp + 0xc]
call fcn.0042c18c
lea eax, [esp + 1]
push 1
push eax
lea ecx, [esp + 0xc]
mov byte [esp + 9], 0x1a
call fcn.0042c141
push 0
push 0x200
lea ecx, [esp + 0xc]
call fcn.0042c18c
lea ecx, [esp + 3]
push 1
push ecx
lea ecx, [esp + 0xc]
mov byte [esp + 0xb], 0x2b
call fcn.0042c141
push 0
push 0x300
lea ecx, [esp + 0xc]
call fcn.0042c18c
lea edx, [esp + 2]
push 1
push edx
lea ecx, [esp + 0xc]
mov byte [esp + 0xa], 0x3c
call fcn.0042c141
push 0
push 0x190
lea ecx, [esp + 0xc]
call fcn.0042c18c
lea eax, [esp]
push 1
push eax
lea ecx, [esp + 0xc]
mov byte [esp + 8], 0x7f
call fcn.0042c141
lea ecx, [esp + 4]
call fcn.0042c205
lea ecx, [esp + 0x94]
lea edx, [esp + 0x14]
push ecx
push edx
call fcn.0042bc46
test eax, eax
je 0x406ebc
lea eax, [esp + 0x94]
lea ecx, [esp + 0x14]
push eax
push ecx
mov byte [esp + 0xac], 3
call fcn.0042bdab
lea ecx, [esp + 4]
mov dword [esp + 0x1b4], 0xffffffff
call fcn.0042bf2d
mov ecx, dword [esp + 0x1ac]
mov dword fs:[0], ecx
add esp, 0x1b8
ret
Function at 0x407970
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x44429b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1ac
push ebx
push ebp
mov ebp, ecx
push esi
push edi
lea ecx, [esp + 0x14]
call fcn.0042bed8
lea eax, [esp + 0x24]
push 0x80
push eax
mov dword [esp + 0x1cc], 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edi, str.POEM302.DLL
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x24]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0xa4]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x28]
push ecx
call fcn.0042bc46
test eax, eax
je 0x407a13
lea edx, [esp + 0xa4]
lea eax, [esp + 0x24]
push edx
push eax
mov byte [esp + 0xbc], 0x20
call fcn.0042bdab
push 0
lea ecx, [esp + 0x28]
push 0x3002
push ecx
lea ecx, [esp + 0x20]
call fcn.0042bfea
test eax, eax
je 0x407b12
lea edx, [esp + 0xa4]
lea ecx, [esp + 0x14]
push edx
call fcn.0042bb6c
cmp dword [esp + 0xb0], 0x400
jne 0x407b09
push 0
push 0x100
lea ecx, [esp + 0x1c]
call fcn.0042c18c
lea eax, [esp + 0x13]
push 1
push eax
lea ecx, [esp + 0x1c]
call fcn.0042c107
push 0
push 0x200
lea ecx, [esp + 0x1c]
call fcn.0042c18c
lea ecx, [esp + 0x12]
push 1
push ecx
lea ecx, [esp + 0x1c]
call fcn.0042c107
push 0
push 0x300
lea ecx, [esp + 0x1c]
call fcn.0042c18c
lea edx, [esp + 0x11]
push 1
push edx
lea ecx, [esp + 0x1c]
call fcn.0042c107
push 0
push 0x190
lea ecx, [esp + 0x1c]
call fcn.0042c18c
lea eax, [esp + 0x10]
push 1
push eax
lea ecx, [esp + 0x1c]
call fcn.0042c107
mov al, byte [esp + 0x10]
cmp al, 0x60
jae 0x407b09
inc al
cmp al, 0x50
mov byte [esp + 0x10], al
jbe 0x407ae9
mov byte [esp + 0x10], 0x50
push 0
push 0x190
lea ecx, [esp + 0x1c]
call fcn.0042c18c
lea ecx, [esp + 0x10]
push 1
push ecx
lea ecx, [esp + 0x1c]
call fcn.0042c141
lea ecx, [esp + 0x14]
call fcn.0042c205
lea edx, [esp + 0xa4]
lea eax, [esp + 0x24]
push edx
push eax
call fcn.0042bc46
test eax, eax
je 0x407b42
lea ecx, [esp + 0xa4]
lea edx, [esp + 0x24]
push ecx
push edx
mov byte [esp + 0xbc], 3
call fcn.0042bdab
mov al, byte [esp + 0x10]
mov dl, 0x2a
cmp al, 0x60
mov byte [ebp + 0x2d4], dl
mov bl, 0x44
mov cl, 0x16
jae 0x407ba4
cmp al, 0x4a
jae 0x407b82
mov byte [ebp + 0x270], 0x17
mov byte [ebp + 0x271], bl
mov byte [ebp + 0x272], 0x3e
mov byte [ebp + 0x2d3], 0x20
mov byte [ebp + 0x2d2], cl
mov byte [ebp + 0x2d4], 0x29
jbe 0x407ba4
mov byte [ebp + 0x270], dl
mov byte [ebp + 0x271], 0x4f
mov byte [ebp + 0x272], 0x25
mov byte [ebp + 0x2d3], cl
mov byte [ebp + 0x2d4], dl
cmp byte [esp + 0x13], 0x1a
jne 0x407bda
cmp byte [esp + 0x12], 0x2b
jne 0x407bda
cmp byte [esp + 0x11], 0x3c
jne 0x407bda
mov byte [ebp + 0x2d2], cl
mov byte [ebp + 0x270], 0x22
mov byte [ebp + 0x271], bl
mov byte [ebp + 0x2d3], 0x20
mov byte [ebp + 0x272], 0x34
lea ecx, [esp + 0x14]
mov dword [esp + 0x1c4], 0xffffffff
call fcn.0042bf2d
mov ecx, dword [esp + 0x1bc]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1b8
ret
Function at 0x407c10
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4442bb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1ac
push ebx
push ebp
mov ebp, ecx
push esi
push edi
lea ecx, [esp + 0x14]
call fcn.0042bed8
lea eax, [esp + 0x24]
push 0x80
push eax
mov dword [esp + 0x1cc], 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edi, str.POEM302.DLL
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x24]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0xa4]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x28]
push ecx
call fcn.0042bc46
test eax, eax
je 0x407cb3
lea edx, [esp + 0xa4]
lea eax, [esp + 0x24]
push edx
push eax
mov byte [esp + 0xbc], 0x20
call fcn.0042bdab
push 0
lea ecx, [esp + 0x28]
push 0x3002
push ecx
lea ecx, [esp + 0x20]
call fcn.0042bfea
test eax, eax
je 0x407d7b
lea edx, [esp + 0xa4]
lea ecx, [esp + 0x14]
push edx
call fcn.0042bb6c
cmp dword [esp + 0xb0], 0x400
jne 0x407d72
push 0
push 0x100
lea ecx, [esp + 0x1c]
call fcn.0042c18c
lea eax, [esp + 0x13]
push 1
push eax
lea ecx, [esp + 0x1c]
call fcn.0042c107
push 0
push 0x200
lea ecx, [esp + 0x1c]
call fcn.0042c18c
lea ecx, [esp + 0x12]
push 1
push ecx
lea ecx, [esp + 0x1c]
call fcn.0042c107
push 0
push 0x300
lea ecx, [esp + 0x1c]
call fcn.0042c18c
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x1c]
call fcn.0042c107
push 0
push 0x190
lea ecx, [esp + 0x1c]
call fcn.0042c18c
lea eax, [esp + 0x11]
push 1
push eax
lea ecx, [esp + 0x1c]
call fcn.0042c107
lea ecx, [esp + 0x14]
call fcn.0042c205
lea ecx, [esp + 0xa4]
lea edx, [esp + 0x24]
push ecx
push edx
call fcn.0042bc46
test eax, eax
je 0x407dab
lea eax, [esp + 0xa4]
lea ecx, [esp + 0x24]
push eax
push ecx
mov byte [esp + 0xbc], 3
call fcn.0042bdab
mov al, byte [esp + 0x11]
mov dl, 0x2a
cmp al, 0x60
mov byte [ebp + 0x2d4], dl
mov bl, 0x44
mov cl, 0x16
jae 0x407e06
cmp al, 0x4a
jae 0x407de4
mov byte [ebp + 0x270], 0x17
mov byte [ebp + 0x271], bl
mov byte [ebp + 0x272], 0x3e
mov byte [ebp + 0x2d3], 0x15
mov byte [ebp + 0x2d2], cl
jbe 0x407e06
mov byte [ebp + 0x270], dl
mov byte [ebp + 0x271], 0x4f
mov byte [ebp + 0x272], 0x25
mov byte [ebp + 0x2d3], cl
mov byte [ebp + 0x2d4], dl
cmp byte [esp + 0x13], 0x1a
jne 0x407e3c
cmp byte [esp + 0x12], 0x2b
jne 0x407e3c
cmp byte [esp + 0x10], 0x3c
jne 0x407e3c
mov byte [ebp + 0x2d2], cl
mov byte [ebp + 0x270], 0x22
mov byte [ebp + 0x271], bl
mov byte [ebp + 0x2d3], 0x20
mov byte [ebp + 0x272], 0x34
lea ecx, [esp + 0x14]
mov dword [esp + 0x1c4], 0xffffffff
call fcn.0042bf2d
mov ecx, dword [esp + 0x1bc]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1b8
ret
Function at 0x407e70
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4442db
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x5ac
push ebx
push esi
push edi
lea ecx, [esp + 0xc]
call fcn.0042bed8
lea eax, [esp + 0x1c]
push 0x80
push eax
mov dword [esp + 0x5c8], 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edi, str.POEM302.DLL
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x1c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x9c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x20]
push ecx
call fcn.0042bc46
test eax, eax
je 0x407f10
lea edx, [esp + 0x9c]
lea eax, [esp + 0x1c]
push edx
push eax
mov byte [esp + 0xb4], 0x20
call fcn.0042bdab
push 0
lea ecx, [esp + 0x20]
push 0x3002
push ecx
lea ecx, [esp + 0x18]
call fcn.0042bfea
test eax, eax
je 0x407fbc
lea edx, [esp + 0x9c]
lea ecx, [esp + 0xc]
push edx
call fcn.0042bb6c
cmp dword [esp + 0xa8], 0x400
je 0x407fb3
mov ebx, 3
lea eax, [esp + 0x1b4]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetTickCount]
xor esi, esi
sub ebx, eax
lea edi, [esp + esi + 0x1b8]
call ebp
lea ecx, [ebx + edi]
xor edx, edx
imul eax, ecx
mov ecx, 0xff
div ecx
inc esi
cmp esi, 0x400
mov byte [edi], dl
jl 0x407f62
mov edx, dword [esp + 0x10]
push 0
push 0
lea ecx, [esp + 0x18]
mov byte [esp + 0x350], 0x40
call dword [edx + 0x28]
lea eax, [esp + 0x1b8]
push 0x400
push eax
lea ecx, [esp + 0x18]
call fcn.0042c141
pop ebp
lea ecx, [esp + 0xc]
call fcn.0042c205
lea ecx, [esp + 0x9c]
lea edx, [esp + 0x1c]
push ecx
push edx
call fcn.0042bc46
pop edi
pop esi
test eax, eax
pop ebx
je 0x407fef
lea eax, [esp + 0x90]
lea ecx, [esp + 0x10]
push eax
push ecx
mov byte [esp + 0xa8], 3
call fcn.0042bdab
lea ecx, [esp]
mov dword [esp + 0x5b4], 0xffffffff
call fcn.0042bf2d
mov ecx, dword [esp + 0x5ac]
mov dword fs:[0], ecx
add esp, 0x5b8
ret

Function at 0x408670
Capabilities:
Check os version

Disassembly:
sub esp, 0x98
push esi
mov esi, ecx
lea eax, [esp + 8]
mov dword [esp + 8], 0x94
push eax
mov dword [esi + 0x2ac], 0
mov dword [esi + 0x2b0], 0
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0xc]
cmp eax, 1
jne 0x408712
mov edx, dword [esp + 0x10]
neg edx
sbb edx, edx
and edx, 3
add edx, 0x5f
mov dword [esi + 0x2ac], edx
cmp ecx, 5
jb 0x4086d0
mov dword [esi + 0x2ac], 0x32
lea eax, [esp + 4]
push eax
push 0xf003f
push 0
push str.SoftwareMicrosoftSpeechVoicesTokensMSSimplifiedChineseVoiceAttributes
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4086fa
mov dword [esi + 0x2b0], 1
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
pop esi
add esp, 0x98
ret
cmp eax, 2
jne 0x4086c1
cmp ecx, 3
jne 0x408728
mov dword [esi + 0x2ac], 0x23
jmp 0x4086d0
cmp ecx, 4
jne 0x4086c1
mov dword [esi + 0x2ac], 0x28
jmp 0x4086d0
Function at 0x40a980
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ecx
push ebx
push esi
push edi
push 0x45a37c
push str.IDR_JPG_POEMBG
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x40a9af
push eax
push eax
push str.Find_Resource_Failure.
call fcn.004334e1
pop edi
pop esi
xor eax, eax
pop ebx
pop ecx
ret
push edi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x40a9cf
push eax
push eax
push str.Load_Resource_Failure.
call fcn.004334e1
pop edi
pop esi
xor eax, eax
pop ebx
pop ecx
ret
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push 0
push 0
push 2
push 0
push 0
push 0x40000000
push str.poembg.jpg
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
push 0
test esi, esi
jne 0x40aa0d
push 0
push str.Create_JPG_File_Failure.
call fcn.004334e1
pop edi
pop esi
xor eax, eax
pop ebx
pop ecx
ret
lea eax, [esp + 0x10]
push eax
push edi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, 1
pop ebx
pop ecx
ret