joyce8/EMBER2024-capa huggingface dataset:
Function at 0x415d70
Capabilities:
Get common file path

Disassembly:
sub esp, 0x214
push esi
mov esi, dword [esp + 0x21c]
test esi, esi
je 0x415de8
push esi
call fcn.00418ea0
add esp, 4
test eax, eax
jne 0x415daf
call fcn.00411c10
mov dword [eax], 0xf
call fcn.00411c00
mov dword [eax], 0xd
xor eax, eax
pop esi
add esp, 0x214
ret
lea eax, [esp + 0xc]
lea ecx, [esp + 0x10]
push eax
push ecx
lea edx, [esp + 0xc]
add esi, 0x40
push 0x104
push edx
mov word [esp + 0x14], si
mov word [esp + 0x16], 0x3a
mov word [esp + 0x18], 0x2e
mov word [esp + 0x1a], 0
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
jmp 0x415df8
lea eax, [esp + 0x10]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x415e77
inc eax
cmp eax, 0x104
ja 0x415e77
mov ecx, dword [esp + 0x220]
test ecx, ecx
jne 0x415e43
mov ecx, dword [esp + 0x224]
cmp eax, ecx
jg 0x415e1c
mov eax, ecx
lea ecx, [eax + eax]
push ecx
call fcn.00410a10
mov ecx, eax
add esp, 4
test ecx, ecx
jne 0x415e61
call fcn.00411c00
mov dword [eax], 0xc
xor eax, eax
pop esi
add esp, 0x214
ret
cmp eax, dword [esp + 0x224]
jle 0x415e61
call fcn.00411c00
mov dword [eax], 0x22
xor eax, eax
pop esi
add esp, 0x214
ret
lea edx, [esp + 0x10]
push edx
push ecx
call fcn.0040fd10
add esp, 8
pop esi
add esp, 0x214
ret
xor eax, eax
pop esi
add esp, 0x214
ret
Function at 0x4186b0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x41c
push ebx
mov ebx, dword [esp + 0x42c]
push ebp
xor ebp, ebp
push esi
cmp ebx, ebp
push edi
mov dword [esp + 0x10], ebp
mov dword [esp + 0x20], ebp
jne 0x4186dc
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov ecx, dword [esp + 0x430]
mov eax, ecx
sar eax, 5
lea edi, [eax*4 + 0x43d960]
mov eax, ecx
and eax, 0x1f
mov dword [esp + 0x24], edi
mov edx, dword [edi]
lea esi, [eax + eax*8]
shl esi, 2
mov dword [esp + 0x14], esi
test byte [esi + edx + 4], 0x20
je 0x418717
push 2
push ebp
push ecx
call fcn.004185b0
add esp, 0xc
mov eax, dword [edi]
add eax, esi
test byte [eax + 4], 0x80
je 0x418879
mov ebp, dword [esp + 0x434]
mov dword [esp + 0x18], 0
test ebx, ebx
mov edi, ebp
jbe 0x4187c1
lea eax, [esp + 0x28]
mov ecx, edi
sub ecx, ebp
cmp ecx, ebx
jae 0x418772
mov cl, byte [edi]
inc edi
cmp cl, 0xa
jne 0x41875f
mov esi, dword [esp + 0x20]
mov byte [eax], 0xd
inc esi
inc eax
mov dword [esp + 0x20], esi
mov byte [eax], cl
inc eax
mov edx, eax
lea ecx, [esp + 0x28]
sub edx, ecx
cmp edx, 0x400
jl 0x418742
mov esi, eax
lea edx, [esp + 0x28]
lea eax, [esp + 0x1c]
sub esi, edx
mov edx, dword [esp + 0x24]
push 0
push eax
lea ecx, [esp + 0x30]
mov eax, dword [edx]
push esi
push ecx
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx + eax]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x41886a
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
add edx, eax
cmp eax, esi
mov dword [esp + 0x10], edx
jl 0x4187bd
mov eax, edi
sub eax, ebp
cmp eax, ebx
jb 0x41873e
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x418859
mov eax, dword [esp + 0x18]
test eax, eax
je 0x418815
cmp eax, 5
jne 0x4187fe
call fcn.00411c00
mov dword [eax], 9
call fcn.00411c10
mov dword [eax], 5
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
push eax
call fcn.00411b80
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx]
test byte [esi + edx + 4], 0x40
je 0x418835
cmp byte [ebp], 0x1a
jne 0x418835
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
call fcn.00411c00
mov dword [eax], 0x1c
call fcn.00411c10
mov dword [eax], 0
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
sub eax, ecx
pop ebx
add esp, 0x41c
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x18], eax
jmp 0x4187bd
mov edx, dword [eax]
lea ecx, [esp + 0x1c]
push ebp
mov ebp, dword [esp + 0x438]
push ecx
push ebx
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4188aa
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], eax
jmp 0x4187c1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x18], eax
jmp 0x4187c1
Function at 0x418ea0
Capabilities:
Get disk information

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
jne 0x418eae
mov eax, 1
ret
add al, 0x40
mov byte [esp + 5], 0x3a
mov byte [esp + 4], al
lea eax, [esp + 4]
push eax
mov byte [esp + 0xa], 0x5c
mov byte [esp + 0xb], 0
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
test eax, eax
je 0x418edd
cmp eax, 1
je 0x418edd
mov eax, 1
ret
xor eax, eax
ret

Function at 0x419700
Capabilities:
Get geographical location

Disassembly:
mov eax, dword [0x43c7e0]
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
push edi
test eax, eax
jne 0x419748
push 0
push 0
push 1
push 0
call esi
test eax, eax
je 0x419728
mov eax, 2
jmp 0x419743
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x419828
mov eax, 1
mov dword [0x43c7e0], eax
cmp eax, 2
jne 0x419768
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push eax
mov eax, dword [esp + 0x18]
push ecx
push edx
push eax
call esi
pop edi
pop esi
pop ebp
pop ebx
ret
cmp eax, 1
jne 0x41983a
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x419783
mov ecx, dword [0x43c680]
mov dword [esp + 0x24], ecx
mov ebx, dword [esp + 0x18]
mov ebp, dword [esp + 0x14]
push 0
push 0
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov edi, eax
test edi, edi
jne 0x4197a2
pop edi
pop esi
pop ebp
pop ebx
ret
lea edx, [edi + edi]
push edx
call fcn.00410a10
mov esi, eax
add esp, 4
test esi, esi
jne 0x4197b9
pop edi
pop esi
pop ebp
pop ebx
ret
push edi
push esi
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x41981f
mov eax, dword [esp + 0x20]
push 0
test eax, eax
push 0
jne 0x419800
mov eax, dword [esp + 0x2c]
push 0
push 0
push 0xffffffffffffffff
push esi
push 0x220
push eax
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
je 0x41981f
push esi
call fcn.0040fd40
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x2c]
push eax
push ecx
push 0xffffffffffffffff
push esi
push 0x220
push edx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
jne 0x41982f
push esi
call fcn.0040fd40
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
call fcn.0040fd40
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x41a230
Capabilities:
Set environment variable

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x18]
test edi, edi
je 0x41a3ee
push 0x3d
push edi
call fcn.0041a670
mov esi, eax
add esp, 8
test esi, esi
je 0x41a3ee
cmp edi, esi
je 0x41a3ee
mov dl, byte [esi + 1]
mov ecx, dword [0x43c394]
xor eax, eax
test dl, dl
sete al
mov ebp, eax
mov eax, dword [0x43c390]
cmp eax, ecx
jne 0x41a287
push eax
call fcn.0041a4c0
add esp, 4
mov dword [0x43c390], eax
test eax, eax
jne 0x41a302
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x41a2ae
mov eax, dword [0x43c398]
test eax, eax
je 0x41a2ae
call fcn.00419c60
test eax, eax
je 0x41a2fd
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
test ebp, ebp
je 0x41a2ba
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 4
call fcn.00410a10
add esp, 4
mov dword [0x43c390], eax
test eax, eax
je 0x41a3ee
mov dword [eax], 0
mov eax, dword [0x43c398]
test eax, eax
jne 0x41a2fd
push 4
call fcn.00410a10
add esp, 4
mov dword [0x43c398], eax
test eax, eax
je 0x41a3ee
mov dword [eax], 0
mov eax, dword [0x43c390]
mov ebx, eax
mov eax, esi
sub eax, edi
push eax
push edi
mov dword [esp + 0x18], eax
call fcn.0041a440
mov esi, eax
add esp, 8
test esi, esi
jl 0x41a3ff
cmp dword [ebx], 0
je 0x41a3ff
test ebp, ebp
je 0x41a3f7
mov ecx, dword [ebx + esi*4]
lea edi, [ebx + esi*4]
push ecx
call fcn.0040fd40
mov eax, dword [edi]
add esp, 4
test eax, eax
je 0x41a359
mov eax, edi
mov edx, dword [eax + 4]
add eax, 4
mov dword [edi], edx
inc esi
mov ecx, dword [eax]
mov edi, eax
test ecx, ecx
jne 0x41a348
lea eax, [esi*4]
push eax
push ebx
call fcn.00415670
add esp, 8
test eax, eax
je 0x41a373
mov dword [0x43c390], eax
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x41a3e6
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
inc ecx
push ecx
call fcn.00410a10
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x41a3e6
mov edi, dword [esp + 0x18]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, dword [esp + 0x10]
mov edx, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
neg ebp
rep movsb byte es:[edi], byte [esi]
sbb ebp, ebp
mov byte [ebx + eax], 0
lea eax, [ebx + eax + 1]
not ebp
and ebp, eax
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
push ebx
call fcn.0040fd40
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
pop ecx
ret
mov dword [ebx + esi*4], edi
jmp 0x41a377
test ebp, ebp
jne 0x41a3e6
test esi, esi
jge 0x41a409
neg esi
lea ecx, [esi*4 + 8]
push ecx
push ebx
call fcn.00415670
add esp, 8
test eax, eax
je 0x41a3ee
mov dword [eax + esi*4], edi
mov dword [eax + esi*4 + 4], 0
mov dword [0x43c390], eax
jmp 0x41a377
Function at 0x41d9b0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.004107f0
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x41da7b
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x41da7b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x41da2e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x41da39
or bh, 8
and edi, 0x8000000
je 0x41da54
mov eax, dword [0x43dadc]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x41da7b
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41de50
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x41de7b
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x41de9f
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x41deba
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
Function at 0x41ee8a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov eax, ebx
push edi
mov edi, ecx
shr eax, 0x10
test ax, ax
mov dword [edi + 0x40], ebx
jne 0x41eead
cmp dword [edi + 0x3c], 0
jne 0x41eead
movzx eax, word [edi + 0x40]
mov dword [edi + 0x3c], eax
call fcn.004288a3
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
mov ecx, edi
push dword [esp + 0x18]
push eax
call fcn.0041eeda
pop edi
pop esi
pop ebx
ret 8

Function at 0x41f20a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x42ac14
call fcn.004108e8
push ecx
sub esp, 0x14
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x18], esi
mov eax, dword [esi + 0x48]
mov edi, dword [esi + 0x44]
mov dword [ebp - 0x14], eax
call fcn.004288a3
cmp dword [esi + 0x40], 0
mov ebx, dword [eax + 0xc]
je 0x41f258
call fcn.004288a3
mov ebx, dword [eax + 0xc]
push 5
push dword [esi + 0x40]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x41f266
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x41f274
or eax, 0xffffffff
jmp 0x41f360
mov ecx, esi
call fcn.0041f195
mov edi, eax
mov dword [ebp - 0x20], edi
call fcn.0041ffb5
push edi
call fcn.0041fa58
and dword [ebp - 0x1c], 0
test edi, edi
je 0x41f2ae
push edi
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x41f2ae
push 0
push edi
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x1c], 1
and dword [ebp - 4], 0
push esi
call fcn.0041ff69
push edi
call fcn.0041fa58
push ebx
push eax
push dword [ebp - 0x14]
mov ecx, esi
call fcn.0041ef28
xor ebx, ebx
cmp eax, ebx
je 0x41f327
test byte [esi + 0x24], 0x10
je 0x41f2f2
push 4
mov ecx, esi
pop ebx
call fcn.0042242c
test ah, 1
je 0x41f2e8
push 5
pop ebx
push ebx
mov ecx, esi
call fcn.00421fe7
xor ebx, ebx
cmp dword [esi + 0x1c], ebx
je 0x41f327
push 0x97
push ebx
push ebx
push ebx
push ebx
push ebx
mov ecx, esi
call fcn.004224bb
jmp 0x41f327
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x1c], ebx
je 0x41f339
push 1
push edi
call dword [sym.imp.USER32.dll_EnableWindow]
cmp edi, ebx
je 0x41f34f
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x1c]
jne 0x41f34f
push edi
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x60]
mov ecx, esi
call fcn.0041f1cc
mov eax, dword [esi + 0x2c]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x421edd
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x421f1f
call fcn.004288a3
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
cmp eax, edi
je 0x421f1f
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x421f16
xor eax, eax
jmp 0x421f27
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00421f2d
pop edi
pop esi
pop ebx
ret 4

Function at 0x424f13
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
push edi
xor edi, edi
cmp dword [ebp + 8], edi
jne 0x424f30
cmp dword [0x43c31c], edi
jne 0x425082
cmp word [0x43c328], di
mov dword [0x43c31c], 1
jne 0x424f62
push str.MSH_SCROLL_LINES_MSG
call dword [sym.imp.USER32.dll_RegisterWindowMessageW]
xor ecx, ecx
cmp eax, edi
setne cl
inc ecx
mov dword [0x43c324], eax
mov word [0x43c328], cx
cmp word [0x43c328], 2
jne 0x424f9e
push str.Magellan_MSWHEEL
push str.MouseZ
call dword [sym.imp.USER32.dll_FindWindowW]
cmp eax, edi
je 0x424f9e
mov ecx, dword [0x43c324]
cmp ecx, edi
je 0x424f9e
push edi
push edi
push ecx
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [0x43c320], eax
jmp 0x425087
push 0x114
lea eax, [ebp - 0x11c]
push edi
push eax
call fcn.00410890
add esp, 0xc
lea eax, [ebp - 0x11c]
mov dword [ebp - 0x11c], 0x114
mov dword [0x43c320], 3
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x425082
cmp dword [ebp - 0x10c], 1
je 0x424ff2
cmp dword [ebp - 0x10c], 2
jne 0x425082
cmp dword [ebp - 0x118], 4
jae 0x425061
lea eax, [ebp + 8]
push eax
push 1
push edi
push str.Control_PanelDesktop
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x425082
lea eax, [ebp - 4]
mov dword [ebp - 4], pe_nt_image_headers32
push eax
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 8]
push eax
push edi
push str.WheelScrollLines
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x425056
push 0xa
lea eax, [ebp - 0x21c]
push edi
push eax
call fcn.004100b0
add esp, 0xc
mov dword [0x43c320], eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x425082
cmp dword [ebp - 0x10c], 2
jne 0x425082
cmp dword [ebp - 0x118], 4
jb 0x425082
push edi
push 0x43c320
push edi
push 0x68
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
mov eax, dword [0x43c320]
pop edi
leave
ret
Function at 0x425e6a
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x7c], 0
je 0x425eae
push dword [ebp + 8]
call fcn.00429706
mov esi, eax
test esi, esi
je 0x425ed9
lea eax, [ebp + 0x10]
push 4
push eax
push 4
push 0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push esi
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test edi, edi
sete al
jmp 0x425ed9
push dword [ebp + 0x10]
lea eax, [ebp - 0x20]
push 0x4353f0
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x20]
push dword [esi + 0x90]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
pop edi
pop esi
leave
ret 0xc

Function at 0x4286b8
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x42ae1a
call fcn.004108e8
push ecx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi], vtable.CNoTrackObject.0
xor eax, eax
push 0xa
lea ecx, [esi + 0x30]
mov dword [ebp - 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
call fcn.0041e874
push 0xa
lea ecx, [esi + 0x4c]
mov byte [ebp - 4], 1
call fcn.0041e874
push 0xa
lea ecx, [esi + 0x68]
mov byte [ebp - 4], 2
call fcn.0041e6f1
mov ecx, dword [ebp - 0xc]
mov dword [esi], vtable.AFX_MODULE_THREAD_STATE.0
mov dword [esi + 0xc], 0x54
mov dword [esi + 0x28], 0x422ba7
mov eax, esi
mov dword fs:[0], ecx
pop esi
leave
ret

Function at 0x42906d
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
xor ebx, ebx
cmp esi, ebx
je 0x42909d
mov eax, dword [esp + 0x10]
cmp eax, dword [esi + 8]
jl 0x429127
cmp dword [esp + 0x14], ebx
je 0x429127
cmp esi, ebx
jne 0x4290c3
push 0x10
call fcn.00428e8a
cmp eax, ebx
je 0x4290b2
mov dword [eax], vtable.CThreadData.0
mov esi, eax
jmp 0x4290b4
xor esi, esi
push esi
lea ecx, [edi + 0x14]
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
call fcn.00428e2c
mov eax, dword [esi + 0xc]
cmp eax, ebx
jne 0x4290da
mov eax, dword [edi + 0xc]
shl eax, 2
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
jmp 0x4290ea
mov ecx, dword [edi + 0xc]
push 2
shl ecx, 2
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
cmp eax, ebx
mov dword [esi + 0xc], eax
jne 0x4290f6
call fcn.0041e6bb
mov eax, dword [esi + 8]
mov ecx, eax
imul ecx, ecx, 0x3fffffff
add ecx, dword [edi + 0xc]
shl ecx, 2
push ecx
mov ecx, dword [esi + 0xc]
push ebx
lea eax, [ecx + eax*4]
push eax
call fcn.00410890
mov eax, dword [edi + 0xc]
add esp, 0xc
mov dword [esi + 8], eax
push esi
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [esi + 0xc]
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
pop edi
pop esi
mov dword [eax + edx*4], ecx
pop ebx
ret 8
Function at 0x42915d
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 1
mov ebx, ecx
pop edi
cmp dword [esi + 8], edi
mov dword [ebp - 4], edi
jle 0x4291b0
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x429193
mov ecx, dword [ebx + 0x10]
cmp dword [ecx + edi*8 + 4], eax
je 0x429193
mov eax, dword [esi + 0xc]
cmp dword [eax + edi*4], 0
je 0x4291aa
and dword [ebp - 4], 0
jmp 0x4291aa
mov eax, dword [esi + 0xc]
mov ecx, dword [eax + edi*4]
test ecx, ecx
je 0x4291a3
mov eax, dword [ecx]
push 1
call dword [eax]
mov eax, dword [esi + 0xc]
and dword [eax + edi*4], 0
inc edi
cmp edi, dword [esi + 8]
jl 0x429174
cmp dword [ebp - 4], 0
je 0x4291de
push esi
lea ecx, [ebx + 0x14]
call fcn.00428e3f
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_LocalFree]
test esi, esi
je 0x4291d4
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax]
push 0
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop edi
pop esi
pop ebx
leave
ret 8

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
nop
nop
nop
pop eax
nop
add eax, 0x403d7a
sub eax, 0x403d20
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
jl 0x430030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
popal
jmp fcn.00401219