joyce8/EMBER2024-capa huggingface dataset:
Function at 0x459040
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x43a00d
lea edi, [esi - 0x3900d]
push edi
or ebp, 0xffffffff
jmp 0x459062
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x459069
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x459058
mov eax, 1
add ebx, ebx
jne 0x45907b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x45908c
jne 0x4590ab
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4590ab
dec eax
add ebx, ebx
jne 0x459098
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x459070
add ebx, ebx
jne 0x4590a7
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4590fd
xor ecx, ecx
sub eax, 3
jb 0x4590c3
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x459132
sar eax, 1
mov ebp, eax
jmp 0x4590ce
add ebx, ebx
jne 0x4590ce
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x45909c
inc ecx
add ebx, ebx
jne 0x4590dc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x45909c
add ebx, ebx
jne 0x4590e9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4590de
jne 0x4590fa
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4590de
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x45911c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x45910e
jmp 0x45905e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x45911c
add edi, ecx
jmp 0x45905e
pop esi
mov edi, esi
mov ecx, 0x62a
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x45913a
cmp byte [edi], 0x11
jne 0x45913a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x45913f
lea edi, [esi + 0x55000]
mov eax, dword [edi]
or eax, eax
je 0x4591b7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x59000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x59080]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x45916c
mov ecx, edi
jns 0x45919b
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x59088]
or eax, eax
je 0x4591b1
mov dword [ebx], eax
add ebx, 4
jmp 0x459189
call dword [esi + 0x59084]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x4591e8
cmp al, 0xef
ja 0x4591db
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x4591bd
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x4591ca
mov ebp, dword [esi + 0x5908c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x197]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x45921c
sub esp, 0xffffff80
jmp 0x409160
Function at 0xa85f40
Capabilities:
Hash data using md4
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0xf0000040
push 1
push 0
push 0
lea edi, [esi + 4]
mov dword [esi], 0
push esi
mov dword [edi], 0
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0xa85f7f
push edi
push 0
push 0
push 0x8002
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
pop edi
pop esi
pop ebp
ret

Function at 0xa9dd93
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00a9da53

Function at 0xaa416c
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00aa3feb

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

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
nop
push 4
nop
nop
nop
nop
nop
pop edi
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x42e072
nop
nop
mov ebx, 0x407ef8
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x4ea43cfe
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
nop
loop 0x42e060
mov eax, section..data
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x42e0d2
nop
mov ebx, 0x42cd70
nop
nop
nop
nop
mov ecx, ebx
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0xb0243b0
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
loop 0x42e0c0
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x402400
Capabilities:
Accept command line arguments

Disassembly:
push ebp
call 0x402406
pop ebx
add dword [ecx], 0x4053d868
add byte [ecx], ah
add byte [eax], al
add byte [eax + 0x64], dl
mov dword [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 [0x41f9c8], edx
mov ecx, eax
and ecx, 0xff
mov dword [0x41f9c4], ecx
shl ecx, 8
add ecx, edx
mov dword [0x41f9c0], ecx
shr eax, 0x10
mov dword [0x41f9bc], eax
call fcn.00405390
test eax, eax
jne 0x40246a
push 0x1c
call fcn.004025b0
add esp, 4
call fcn.00404600
test eax, eax
jne 0x40247d
push 0x10
call fcn.004025b0
add esp, 4
mov dword [ebp - 4], 0
call fcn.00405180
call fcn.00403a20
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x420fb0], eax
call fcn.00405020
mov dword [0x41f9ac], eax
test eax, eax
je 0x4024b0
mov eax, dword [0x420fb0]
test eax, eax
jne 0x4024ba
push 0xffffffffffffffff
call fcn.00402ea0
add esp, 4
call fcn.00404d70
call fcn.00404c80
call fcn.00402e70
mov esi, dword [0x420fb0]
mov dword [ebp - 0x64], esi
cmp byte [esi], 0x22
jne 0x402599
inc esi
mov dword [ebp - 0x64], esi
mov al, byte [esi]
cmp al, 0x22
je 0x402501
test al, al
je 0x402501
and eax, 0xff
push eax
call fcn.00404c20
add esp, 4
test eax, eax
je 0x4024db
inc esi
mov dword [ebp - 0x64], esi
jmp 0x4024db
cmp byte [esi], 0x22
jne 0x40250a
inc esi
mov dword [ebp - 0x64], esi
mov al, byte [esi]
test al, al
je 0x40251a
cmp al, 0x20
ja 0x40251a
inc esi
mov dword [ebp - 0x64], esi
jmp 0x40250a
mov dword [ebp - 0x30], 0
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x30], 1
je 0x40253b
mov eax, dword [ebp - 0x2c]
and eax, 0xffff
jmp 0x402540
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.00402ea0
jmp 0x40257e
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 0x40250a
inc esi
mov dword [ebp - 0x64], esi
jmp 0x402599

Function at 0x402ee0
Capabilities:
Terminate process

Disassembly:
push ebx
push ebp
push esi
call fcn.00402fa0
mov eax, dword [0x41f9f8]
mov ebp, dword [esp + 0x10]
cmp eax, 1
jne 0x402f04
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 [0x41f9f4], 1
mov byte [0x41f9f0], bl
jne 0x402f5e
mov ecx, dword [0x420fa8]
test ecx, ecx
je 0x402f4c
mov esi, dword [0x420fa4]
sub esi, 4
cmp esi, ecx
jb 0x402f4c
mov eax, dword [esi]
test eax, eax
je 0x402f45
call eax
mov ecx, dword [0x420fa8]
sub esi, 4
cmp esi, ecx
jae 0x402f37
push 0x41a074
push 0x41a06c
call fcn.00402fc0
add esp, 8
push 0x41a080
push 0x41a078
call fcn.00402fc0
add esp, 8
test ebx, ebx
je 0x402f7d
call fcn.00402fb0
pop esi
pop ebp
pop ebx
ret
push ebp
mov dword [0x41f9f8], 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x404600
Capabilities:
Allocate thread local storage
Set thread local storage value

Disassembly:
push esi
call fcn.004056d0
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [0x41a8c0], eax
je 0x404658
push 0x74
push 1
call fcn.004064b0
mov esi, eax
add esp, 8
test esi, esi
je 0x404658
mov eax, dword [0x41a8c0]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x404658
push esi
call fcn.00404660
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 0x404680
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 [0x41a8c0]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x4046ee
push 0x74
push 1
call fcn.004064b0
mov esi, eax
add esp, 8
test esi, esi
je 0x4046e4
mov ecx, dword [0x41a8c0]
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x4046e4
push esi
call fcn.00404660
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.004025b0
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
pop edi
pop esi
ret
Function at 0x405020
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [0x41fc70]
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 0x405062
call edi
mov esi, eax
test esi, esi
je 0x40504c
mov eax, 1
jmp 0x40505d
call ebp
mov ebx, eax
test ebx, ebx
je 0x40516f
mov eax, 2
mov dword [0x41fc70], eax
cmp eax, 1
jne 0x405102
test esi, esi
jne 0x40507b
call edi
mov esi, eax
test esi, esi
je 0x40516f
cmp word [esi], 0
mov eax, esi
je 0x405095
add eax, 2
cmp word [eax], 0
jne 0x405083
add eax, 2
cmp word [eax], 0
jne 0x405083
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 0x4050f4
push edi
call fcn.00402d50
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x4050f4
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 0x4050e6
push ebx
call fcn.00402ce0
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 0x40516f
test ebx, ebx
jne 0x405113
call ebp
mov ebx, eax
test ebx, ebx
je 0x40516f
mov cl, byte [ebx]
mov eax, ebx
test cl, cl
je 0x40512b
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x40511b
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x40511b
sub eax, ebx
inc eax
mov esi, eax
push esi
call fcn.00402d50
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x40514d
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 0x4054f0
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x1a8
mov eax, 0x41a978
push ebx
push ebp
push esi
push edi
xor ebp, ebp
cmp ecx, dword [eax]
je 0x405514
add eax, 8
inc ebp
cmp eax, 0x41aa08
jb 0x405505
cmp ecx, dword [ebp*8 + 0x41a978]
jne 0x4056bb
mov eax, dword [0x41f9b4]
cmp eax, 1
je 0x40567d
test eax, eax
jne 0x405540
cmp dword [0x41a56c], 1
je 0x40567d
cmp ecx, 0xfc
je 0x4056bb
lea eax, [esp + 0xb4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40557b
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 0x4055c4
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 0x4173ec
add ebx, ecx
push ebx
call fcn.004069f0
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, 0x4173cc
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 + 0x41a97c]
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.00406960
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
mov eax, dword [0x420ea0]
test eax, eax
je 0x40568e
mov esi, dword [eax + 0x48]
cmp esi, 0xffffffff
jne 0x405698
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
mov edx, dword [ebp*8 + 0x41a97c]
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 0x408680
Capabilities:
Get geographical location

Disassembly:
mov eax, dword [0x41fe58]
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
push edi
test eax, eax
jne 0x4086c8
push 0
push 0
push 1
push 0
call esi
test eax, eax
je 0x4086a8
mov eax, 2
jmp 0x4086c3
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4087a8
mov eax, 1
mov dword [0x41fe58], eax
cmp eax, 2
jne 0x4086e8
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 0x4087ba
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x408703
mov ecx, dword [0x41fd08]
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 0x408722
pop edi
pop esi
pop ebp
pop ebx
ret
lea edx, [edi + edi]
push edx
call fcn.00402d50
mov esi, eax
add esp, 4
test esi, esi
jne 0x408739
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 0x40879f
mov eax, dword [esp + 0x20]
push 0
test eax, eax
push 0
jne 0x408780
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 0x40879f
push esi
call fcn.00402ce0
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 0x4087af
push esi
call fcn.00402ce0
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
call fcn.00402ce0
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x409ca1
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x41404c
call fcn.00402688
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.00412b92
cmp dword [esi + 0x40], 0
mov ebx, dword [eax + 0xc]
je 0x409ce0
call fcn.00412b92
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 0x409cee
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x409cfc
or eax, 0xffffffff
jmp 0x409de8
mov ecx, esi
call fcn.00409c1d
mov edi, eax
mov dword [ebp - 0x20], edi
call fcn.0040aa3b
push edi
call fcn.0040a4de
and dword [ebp - 0x1c], 0
test edi, edi
je 0x409d36
push edi
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x409d36
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.0040a9ef
push edi
call fcn.0040a4de
push ebx
push eax
push dword [ebp - 0x14]
mov ecx, esi
call fcn.004099b4
xor ebx, ebx
cmp eax, ebx
je 0x409daf
test byte [esi + 0x24], 0x10
je 0x409d7a
push 4
mov ecx, esi
pop ebx
call fcn.0040ce0b
test ah, 1
je 0x409d70
push 5
pop ebx
push ebx
mov ecx, esi
call fcn.0040ca6c
xor ebx, ebx
cmp dword [esi + 0x1c], ebx
je 0x409daf
push 0x97
push ebx
push ebx
push ebx
push ebx
push ebx
mov ecx, esi
call fcn.0040ce9a
jmp 0x409daf
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x1c], ebx
je 0x409dc1
push 1
push edi
call dword [sym.imp.USER32.dll_EnableWindow]
cmp edi, ebx
je 0x409dd7
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x1c]
jne 0x409dd7
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.00409c54
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 0x40c962
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 0x40c9a4
call fcn.00412b92
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x40c9a4
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x40c99b
xor eax, eax
jmp 0x40c9ac
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0040c9b2
pop edi
pop esi
pop ebx
ret 4

Function at 0x40f60a
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 0x40f627
cmp dword [0x41f97c], edi
jne 0x40f779
cmp word [0x41f988], di
mov dword [0x41f97c], 1
jne 0x40f659
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 [0x41f984], eax
mov word [0x41f988], cx
cmp word [0x41f988], 2
jne 0x40f695
push str.Magellan_MSWHEEL
push str.MouseZ
call dword [sym.imp.USER32.dll_FindWindowA]
cmp eax, edi
je 0x40f695
mov ecx, dword [0x41f984]
cmp ecx, edi
je 0x40f695
push edi
push edi
push ecx
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov dword [0x41f980], eax
jmp 0x40f77e
push 0x94
lea eax, [ebp - 0x9c]
push edi
push eax
call fcn.00402630
add esp, 0xc
lea eax, [ebp - 0x9c]
mov dword [ebp - 0x9c], 0x94
mov dword [0x41f980], 3
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x40f779
cmp dword [ebp - 0x8c], 1
je 0x40f6e9
cmp dword [ebp - 0x8c], 2
jne 0x40f779
cmp dword [ebp - 0x98], 4
jae 0x40f758
lea eax, [ebp + 8]
push eax
push 1
push edi
push str.Control_PanelDesktop
push 0x80000001
call dword [0x4214dc]
test eax, eax
jne 0x40f779
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 [0x4214e0]
test eax, eax
jne 0x40f74d
push 0xa
lea eax, [ebp - 0x11c]
push edi
push eax
call fcn.004036d0
add esp, 0xc
mov dword [0x41f980], eax
push dword [ebp + 8]
call dword [0x4214d0]
jmp 0x40f779
cmp dword [ebp - 0x8c], 2
jne 0x40f779
cmp dword [ebp - 0x98], 4
jb 0x40f779
push edi
push 0x41f980
push edi
push 0x68
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
mov eax, dword [0x41f980]
pop edi
leave
ret
Function at 0x410466
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x7c], 0
je 0x4104aa
push dword [ebp + 8]
call fcn.00413b06
mov esi, eax
test esi, esi
je 0x4104d5
lea eax, [ebp + 0x10]
push 4
push eax
push 4
push 0
push dword [ebp + 0xc]
push esi
call dword [0x4214d4]
push esi
mov edi, eax
call dword [0x4214d0]
xor eax, eax
test edi, edi
sete al
jmp 0x4104d5
push dword [ebp + 0x10]
lea eax, [ebp - 0x10]
push 0x4162a4
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x10]
push dword [esi + 0x90]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
pop edi
pop esi
leave
ret 0xc

Function at 0x4129a7
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x41419e
call fcn.00402688
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.004093a3
push 0xa
lea ecx, [esi + 0x4c]
mov byte [ebp - 4], 1
call fcn.004093a3
push 0xa
lea ecx, [esi + 0x68]
mov byte [ebp - 4], 2
call fcn.00409220
mov ecx, dword [ebp - 0xc]
mov dword [esi], vtable.AFX_MODULE_THREAD_STATE.0
mov dword [esi + 0xc], 0x54
mov dword [esi + 0x28], 0x40d7e9
mov eax, esi
mov dword fs:[0], ecx
pop esi
leave
ret

Function at 0x413540
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 0x413570
mov eax, dword [esp + 0x10]
cmp eax, dword [esi + 8]
jl 0x4135fa
cmp dword [esp + 0x14], ebx
je 0x4135fa
cmp esi, ebx
jne 0x413596
push 0x10
call fcn.0041335d
cmp eax, ebx
je 0x413585
mov dword [eax], vtable.CThreadData.0
mov esi, eax
jmp 0x413587
xor esi, esi
push esi
lea ecx, [edi + 0x14]
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
call fcn.004132ff
mov eax, dword [esi + 0xc]
cmp eax, ebx
jne 0x4135ad
mov eax, dword [edi + 0xc]
shl eax, 2
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
jmp 0x4135bd
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 0x4135c9
call fcn.00409205
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.00402630
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