joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42d968
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push edi
xor edi, edi
mov dword [ecx + 0x9c], edi
cmp dword [str.SoftwareMicrosoftWindowsCurrentVersionPoliciesExplorer], edi
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], 4
mov dword [ebp - 0xc], edi
mov ebx, 0x440364
je 0x42da24
push esi
lea eax, [ebp - 4]
push eax
push 1
push edi
push dword [ebx]
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x42da0c
mov esi, dword [ebx + 4]
jmp 0x42da06
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 0xc]
push ecx
push edi
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x42d9f6
cmp dword [ebp - 0xc], 4
jne 0x42d9f6
cmp dword [ebp - 8], edi
mov eax, dword [ebp - 0x10]
mov ecx, dword [esi + 4]
je 0x42d9ee
or dword [eax + 0x9c], ecx
jmp 0x42d9f6
not ecx
and dword [eax + 0x9c], ecx
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], 4
mov dword [ebp - 0xc], edi
add esi, 8
mov eax, dword [esi]
cmp eax, edi
jne 0x42d9ba
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add ebx, 8
cmp dword [ebx], edi
mov dword [ebp - 4], edi
jne 0x42d99d
pop esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
inc eax
pop ebx
leave
ret

Function at 0x42df1c
Capabilities:
Query or enumerate registry key

Disassembly:
mov eax, 0x432167
call fcn.0041599c
sub esp, 0x11c
mov eax, dword [0x441304]
push ebx
push esi
push edi
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov dword [ebp - 0x10], esp
lea ecx, [ebp - 0x124]
push ecx
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov esi, eax
test esi, esi
jne 0x42e015
push 0x104
lea eax, [ebp - 0x11c]
push eax
push 0
push dword [ebp - 0x124]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov esi, eax
test esi, esi
jne 0x42dfe9
and dword [ebp - 4], eax
lea eax, [ebp - 0x11c]
push eax
lea ecx, [ebp - 0x120]
call fcn.00402740
lea eax, [ebp - 0x120]
push eax
push dword [ebp - 0x124]
mov byte [ebp - 4], 1
call fcn.0042df1c
mov ecx, dword [ebp - 0x120]
mov esi, eax
test esi, esi
setne bl
add ecx, 0xfffffff0
mov byte [ebp - 4], 0
call fcn.004016e0
test bl, bl
jne 0x42dfe9
or dword [ebp - 4], 0xffffffff
jmp 0x42df5a
cmp esi, 0x103
je 0x42dff9
cmp esi, 0x3f2
jne 0x42e009
mov eax, dword [ebp + 0xc]
push dword [eax]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov esi, eax
push dword [ebp - 0x124]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
mov eax, esi
call fcn.00413d31
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x42f208
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [esp + 0x10]
test edi, edi
jle 0x42f23d
cmp edi, dword [esi + 0xc]
jge 0x42f23d
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x42f23d
cmp edi, dword [eax + 8]
jge 0x42f23d
mov eax, dword [eax + 0xc]
mov edi, dword [eax + edi*4]
jmp 0x42f23f
xor edi, edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
pop edi
pop esi
pop ebx
ret 4

Function at 0x42f343
Capabilities:
Allocate thread local storage

Disassembly:
xor eax, eax
push esi
mov esi, ecx
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x18], 4
mov dword [esi + 4], eax
mov dword [esi + 8], 1
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [esi], eax
jne 0x42f377
jmp fcn.00421eff
lea eax, [esi + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov eax, esi
pop esi
ret

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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
lea esi, [edi + 0x1c]
push esi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp + 8]
xor ebx, ebx
cmp eax, ebx
jle 0x42f4e1
cmp eax, dword [edi + 0xc]
jge 0x42f4e1
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
cmp esi, ebx
je 0x42f439
mov ecx, dword [ebp + 8]
cmp ecx, dword [esi + 8]
jl 0x42f4ca
cmp dword [ebp + 0xc], ebx
je 0x42f4ca
jmp 0x42f463
push 0x10
call fcn.0042f0d4
cmp eax, ebx
je 0x42f44f
mov ecx, eax
call fcn.0042f33a
mov esi, eax
jmp 0x42f451
xor esi, esi
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov ecx, dword [edi + 0x14]
mov eax, dword [edi + 0x18]
mov dword [esi + eax], ecx
mov dword [edi + 0x14], esi
mov eax, dword [esi + 0xc]
cmp eax, ebx
jne 0x42f47a
mov eax, dword [edi + 0xc]
shl eax, 2
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
jmp 0x42f48a
mov ecx, dword [edi + 0xc]
push 2
shl ecx, 2
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
cmp eax, ebx
jne 0x42f49c
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.00421eff
mov ecx, dword [esi + 8]
mov dword [esi + 0xc], eax
mov edx, dword [edi + 0xc]
sub edx, ecx
shl edx, 2
push edx
lea eax, [eax + ecx*4]
push ebx
push eax
call fcn.00415bd0
mov eax, dword [edi + 0xc]
add esp, 0xc
push esi
mov dword [esi + 8], eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [ebp + 8]
mov eax, dword [esi + 0xc]
cmp eax, ebx
je 0x42f4dc
cmp ecx, dword [esi + 8]
jge 0x42f4dc
mov edx, dword [ebp + 0xc]
mov dword [eax + ecx*4], edx
push dword [ebp - 4]
jmp 0x42f4e2
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x438ca7
Capabilities:
Encode data using xor

Disassembly:
mov edx, 0x438a14
dec eax
add eax, eax
sub eax, 1
call fcn.00438cf6
mov ecx, 0x2ad31530
sub ecx, ecx
sub esp, 4
mov dword [esp], 0x399f7e1b
mov ecx, dword [esp]
add esp, 4
xor dword [edi], edx
dec ecx
add edi, 1
add eax, 0x87d2c8d
add ecx, ecx
cmp edi, ebx
jne fcn.00438ca7
sub eax, 0x99fd7b77
dec eax
ret
Function at 0x402160
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x416f78
push 0x405138
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffffa8
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
call dword [sym.imp.KERNEL32.dll_GetVersion]
xor edx, edx
mov dl, ah
mov dword [0x41f990], edx
mov ecx, eax
and ecx, 0xff
mov dword [0x41f98c], ecx
shl ecx, 8
add ecx, edx
mov dword [0x41f988], ecx
shr eax, 0x10
mov dword [0x41f984], eax
call fcn.004050f0
test eax, eax
jne 0x4021ca
push 0x1c
call fcn.00402310
add esp, 4
call fcn.00404510
test eax, eax
jne 0x4021dd
push 0x10
call fcn.00402310
add esp, 4
mov dword [ebp - 4], 0
call fcn.00404ee0
call fcn.00402e30
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x420f70], eax
call fcn.00404d80
mov dword [0x41f974], eax
test eax, eax
je 0x402210
mov eax, dword [0x420f70]
test eax, eax
jne 0x40221a
push 0xffffffffffffffff
call fcn.00402430
add esp, 4
call fcn.00404ad0
call fcn.004049e0
call fcn.00402400
mov esi, dword [0x420f70]
mov dword [ebp - 0x64], esi
cmp byte [esi], 0x22
jne 0x4022f9
inc esi
mov dword [ebp - 0x64], esi
mov al, byte [esi]
cmp al, 0x22
je 0x402261
test al, al
je 0x402261
and eax, 0xff
push eax
call fcn.00404980
add esp, 4
test eax, eax
je 0x40223b
inc esi
mov dword [ebp - 0x64], esi
jmp 0x40223b
cmp byte [esi], 0x22
jne 0x40226a
inc esi
mov dword [ebp - 0x64], esi
mov al, byte [esi]
test al, al
je 0x40227a
cmp al, 0x20
ja 0x40227a
inc esi
mov dword [ebp - 0x64], esi
jmp 0x40226a
mov dword [ebp - 0x30], 0
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x30], 1
je 0x40229b
mov eax, dword [ebp - 0x2c]
and eax, 0xffff
jmp 0x4022a0
mov eax, 0xa
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov dword [ebp - 0x60], eax
push eax
call fcn.00402430
jmp 0x4022de
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [esi], 0x20
jbe 0x40226a
inc esi
mov dword [ebp - 0x64], esi
jmp 0x4022f9

Function at 0x402470
Capabilities:
Terminate process

Disassembly:
push ebx
push ebp
push esi
call fcn.00402530
mov eax, dword [0x41f9c0]
mov ebp, dword [esp + 0x10]
cmp eax, 1
jne 0x402494
push ebp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
test eax, eax
mov dword [0x41f9bc], 1
mov byte [0x41f9b8], bl
jne 0x4024ee
mov ecx, dword [0x420f68]
test ecx, ecx
je 0x4024dc
mov esi, dword [0x420f64]
sub esi, 4
cmp esi, ecx
jb 0x4024dc
mov eax, dword [esi]
test eax, eax
je 0x4024d5
call eax
mov ecx, dword [0x420f68]
sub esi, 4
cmp esi, ecx
jae 0x4024c7
push 0x41a074
push 0x41a06c
call fcn.00402550
add esp, 8
push 0x41a080
push 0x41a078
call fcn.00402550
add esp, 8
test ebx, ebx
je 0x40250d
call fcn.00402540
pop esi
pop ebp
pop ebx
ret
push ebp
mov dword [0x41f9c0], 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x404510
Capabilities:
Allocate thread local storage
Set thread local storage value

Disassembly:
push esi
call fcn.00405430
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [0x41a8a0], eax
je 0x404568
push 0x74
push 1
call fcn.00405dd0
mov esi, eax
add esp, 8
test esi, esi
je 0x404568
mov eax, dword [0x41a8a0]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x404568
push esi
call fcn.00404570
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esi], eax
mov dword [esi + 4], 0xffffffff
mov eax, 1
pop esi
ret
xor eax, eax
pop esi
ret

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

Disassembly:
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [0x41a8a0]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x4045fe
push 0x74
push 1
call fcn.00405dd0
mov esi, eax
add esp, 8
test esi, esi
je 0x4045f4
mov ecx, dword [0x41a8a0]
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x4045f4
push esi
call fcn.00404570
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push edi
mov dword [esi], eax
mov dword [esi + 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
pop edi
pop esi
ret
push 0x10
call fcn.00402310
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
pop edi
pop esi
ret
Function at 0x404d80
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [0x41fc38]
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
push esi
xor esi, esi
xor ebx, ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test eax, eax
jne 0x404dc2
call edi
mov esi, eax
test esi, esi
je 0x404dac
mov eax, 1
jmp 0x404dbd
call ebp
mov ebx, eax
test ebx, ebx
je 0x404ecf
mov eax, 2
mov dword [0x41fc38], eax
cmp eax, 1
jne 0x404e62
test esi, esi
jne 0x404ddb
call edi
mov esi, eax
test esi, esi
je 0x404ecf
cmp word [esi], 0
mov eax, esi
je 0x404df5
add eax, 2
cmp word [eax], 0
jne 0x404de3
add eax, 2
cmp word [eax], 0
jne 0x404de3
sub eax, esi
push 0
sar eax, 1
inc eax
push 0
mov ebp, eax
push 0
push 0
push ebp
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
je 0x404e54
push edi
call fcn.004026f0
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x404e54
push 0
push 0
push edi
push ebx
push ebp
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x404e46
push ebx
call fcn.00402570
add esp, 4
xor ebx, ebx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
cmp eax, 2
jne 0x404ecf
test ebx, ebx
jne 0x404e73
call ebp
mov ebx, eax
test ebx, ebx
je 0x404ecf
mov cl, byte [ebx]
mov eax, ebx
test cl, cl
je 0x404e8b
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x404e7b
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x404e7b
sub eax, ebx
inc eax
mov esi, eax
push esi
call fcn.004026f0
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x404ead
push ebx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov ecx, esi
mov esi, ebx
mov eax, ecx
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
Function at 0x405250
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x1a8
mov eax, 0x41a958
push ebx
push ebp
push esi
push edi
xor ebp, ebp
cmp ecx, dword [eax]
je 0x405274
add eax, 8
inc ebp
cmp eax, 0x41a9e8
jb 0x405265
cmp ecx, dword [ebp*8 + 0x41a958]
jne 0x40541b
mov eax, dword [0x41f97c]
cmp eax, 1
je 0x4053dd
test eax, eax
jne 0x4052a0
cmp dword [0x41a548], 1
je 0x4053dd
cmp ecx, 0xfc
je 0x40541b
lea eax, [esp + 0xb4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4052db
mov ecx, 5
mov esi, str._program_name_unknown_
lea edi, [esp + 0xb4]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
xor eax, eax
lea ebx, [esp + 0xb4]
repne scasb al, byte es:[edi]
not ecx
cmp ecx, 0x3c
jbe 0x405324
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 3
mov ebx, ecx
lea ecx, [esp + 0xb8]
sub ecx, 0x3b
push 0x417424
add ebx, ecx
push ebx
call fcn.00406740
add esp, 0xc
mov ecx, 6
mov esi, str.Runtime_Error__n_nProgram:
lea edi, [esp + 0x14]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
or ecx, 0xffffffff
mov edi, ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x14]
mov ebx, ecx
mov esi, edi
or ecx, 0xffffffff
mov edi, edx
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 edx, [esp + 0x14]
and ecx, 3
push 0x12010
rep movsb byte es:[edi], byte [esi]
mov edi, 0x417404
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push str.Microsoft_Visual_C_Runtime_Library
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 edx, [esp + 0x1c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp*8 + 0x41a95c]
or ecx, 0xffffffff
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 + 0x1c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.004066b0
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
mov eax, dword [0x420e60]
test eax, eax
je 0x4053ee
mov esi, dword [eax + 0x48]
cmp esi, 0xffffffff
jne 0x4053f8
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
mov edx, dword [ebp*8 + 0x41a95c]
lea ecx, [esp + 0x10]
push 0
push ecx
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
Function at 0x4083e0
Capabilities:
Get geographical location

Disassembly:
mov eax, dword [0x41fe20]
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
push edi
test eax, eax
jne 0x408428
push 0
push 0
push 1
push 0
call esi
test eax, eax
je 0x408408
mov eax, 2
jmp 0x408423
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x408508
mov eax, 1
mov dword [0x41fe20], eax
cmp eax, 2
jne 0x408448
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 0x40851a
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x408463
mov ecx, dword [0x41fcc8]
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 0x408482
pop edi
pop esi
pop ebp
pop ebx
ret
lea edx, [edi + edi]
push edx
call fcn.004026f0
mov esi, eax
add esp, 4
test esi, esi
jne 0x408499
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 0x4084ff
mov eax, dword [esp + 0x20]
push 0
test eax, eax
push 0
jne 0x4084e0
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 0x4084ff
push esi
call fcn.00402570
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 0x40850f
push esi
call fcn.00402570
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
call fcn.00402570
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x40a82a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x413da8
call fcn.00402390
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.00412d7f
cmp dword [esi + 0x40], 0
mov ebx, dword [eax + 0xc]
je 0x40a869
call fcn.00412d7f
mov ebx, dword [eax + 0xc]
push 5
push dword [esi + 0x40]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x40a877
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x40a885
or eax, 0xffffffff
jmp 0x40a971
mov ecx, esi
call fcn.0040a7a6
mov edi, eax
mov dword [ebp - 0x20], edi
call fcn.0040b5c4
push edi
call fcn.0040b067
and dword [ebp - 0x1c], 0
test edi, edi
je 0x40a8bf
push edi
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x40a8bf
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.0040b578
push edi
call fcn.0040b067
push ebx
push eax
push dword [ebp - 0x14]
mov ecx, esi
call fcn.0040a53d
xor ebx, ebx
cmp eax, ebx
je 0x40a938
test byte [esi + 0x24], 0x10
je 0x40a903
push 4
mov ecx, esi
pop ebx
call fcn.0040d994
test ah, 1
je 0x40a8f9
push 5
pop ebx
push ebx
mov ecx, esi
call fcn.0040d5f5
xor ebx, ebx
cmp dword [esi + 0x1c], ebx
je 0x40a938
push 0x97
push ebx
push ebx
push ebx
push ebx
push ebx
mov ecx, esi
call fcn.0040da23
jmp 0x40a938
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x1c], ebx
je 0x40a94a
push 1
push edi
call dword [sym.imp.USER32.dll_EnableWindow]
cmp edi, ebx
je 0x40a960
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x1c]
jne 0x40a960
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.0040a7dd
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 0x40d4eb
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 0x40d52d
call fcn.00412d7f
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x40d52d
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x40d524
xor eax, eax
jmp 0x40d535
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0040d53b
pop edi
pop esi
pop ebx
ret 4

Function at 0x40f3ae
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
push edi
xor edi, edi
cmp dword [ebp + 8], edi
jne 0x40f3cb
cmp dword [0x41f944], edi
jne 0x40f51d
cmp word [0x41f950], di
mov dword [0x41f944], 1
jne 0x40f3fd
push str.MSH_SCROLL_LINES_MSG
call dword [sym.imp.USER32.dll_RegisterWindowMessageA]
xor ecx, ecx
cmp eax, edi
setne cl
inc ecx
mov dword [0x41f94c], eax
mov word [0x41f950], cx
cmp word [0x41f950], 2
jne 0x40f439
push str.Magellan_MSWHEEL
push str.MouseZ
call dword [sym.imp.USER32.dll_FindWindowA]
cmp eax, edi
je 0x40f439
mov ecx, dword [0x41f94c]
cmp ecx, edi
je 0x40f439
push edi
push edi
push ecx
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov dword [0x41f948], eax
jmp 0x40f522
push 0x94
lea eax, [ebp - 0x9c]
push edi
push eax
call fcn.004025e0
add esp, 0xc
lea eax, [ebp - 0x9c]
mov dword [ebp - 0x9c], 0x94
mov dword [0x41f948], 3
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x40f51d
cmp dword [ebp - 0x8c], 1
je 0x40f48d
cmp dword [ebp - 0x8c], 2
jne 0x40f51d
cmp dword [ebp - 0x98], 4
jae 0x40f4fc
lea eax, [ebp + 8]
push eax
push 1
push edi
push str.Control_PanelDesktop
push 0x80000001
call dword [0x4214dc]
test eax, eax
jne 0x40f51d
lea eax, [ebp - 4]
mov dword [ebp - 4], pe_nt_image_headers32
push eax
lea eax, [ebp - 0x11c]
push eax
lea eax, [ebp - 8]
push eax
push edi
push str.WheelScrollLines
push dword [ebp + 8]
call dword [0x4214d8]
test eax, eax
jne 0x40f4f1
push 0xa
lea eax, [ebp - 0x11c]
push edi
push eax
call fcn.00403790
add esp, 0xc
mov dword [0x41f948], eax
push dword [ebp + 8]
call dword [0x4214d0]
jmp 0x40f51d
cmp dword [ebp - 0x8c], 2
jne 0x40f51d
cmp dword [ebp - 0x98], 4
jb 0x40f51d
push edi
push 0x41f948
push edi
push 0x68
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
mov eax, dword [0x41f948]
pop edi
leave
ret