joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4025e0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x419f98
push 0x405cb8
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 [0x422a78], edx
mov ecx, eax
and ecx, 0xff
mov dword [0x422a74], ecx
shl ecx, 8
add ecx, edx
mov dword [0x422a70], ecx
shr eax, 0x10
mov dword [0x422a6c], eax
call fcn.00405c70
test eax, eax
jne 0x40264a
push 0x1c
call fcn.00402790
add esp, 4
call fcn.00404d30
test eax, eax
jne 0x40265d
push 0x10
call fcn.00402790
add esp, 4
mov dword [ebp - 4], 0
call fcn.00405a60
call fcn.00403c50
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x424050], eax
call fcn.00405900
mov dword [0x422a5c], eax
test eax, eax
je 0x402690
mov eax, dword [0x424050]
test eax, eax
jne 0x40269a
push 0xffffffffffffffff
call fcn.00403230
add esp, 4
call fcn.00405650
call fcn.00405560
call fcn.00403200
mov esi, dword [0x424050]
mov dword [ebp - 0x64], esi
cmp byte [esi], 0x22
jne 0x402779
inc esi
mov dword [ebp - 0x64], esi
mov al, byte [esi]
cmp al, 0x22
je 0x4026e1
test al, al
je 0x4026e1
and eax, 0xff
push eax
call fcn.00405500
add esp, 4
test eax, eax
je 0x4026bb
inc esi
mov dword [ebp - 0x64], esi
jmp 0x4026bb
cmp byte [esi], 0x22
jne 0x4026ea
inc esi
mov dword [ebp - 0x64], esi
mov al, byte [esi]
test al, al
je 0x4026fa
cmp al, 0x20
ja 0x4026fa
inc esi
mov dword [ebp - 0x64], esi
jmp 0x4026ea
mov dword [ebp - 0x30], 0
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x30], 1
je 0x40271b
mov eax, dword [ebp - 0x2c]
and eax, 0xffff
jmp 0x402720
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.00403230
jmp 0x40275e
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 0x4026ea
inc esi
mov dword [ebp - 0x64], esi
jmp 0x402779

Function at 0x403270
Capabilities:
Terminate process

Disassembly:
push ebx
push ebp
push esi
call fcn.00403330
mov eax, dword [0x422aa8]
mov ebp, dword [esp + 0x10]
cmp eax, 1
jne 0x403294
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 [0x422aa4], 1
mov byte [0x422aa0], bl
jne 0x4032ee
mov ecx, dword [0x424048]
test ecx, ecx
je 0x4032dc
mov esi, dword [0x424044]
sub esi, 4
cmp esi, ecx
jb 0x4032dc
mov eax, dword [esi]
test eax, eax
je 0x4032d5
call eax
mov ecx, dword [0x424048]
sub esi, 4
cmp esi, ecx
jae 0x4032c7
push 0x41d074
push 0x41d06c
call fcn.00403350
add esp, 8
push 0x41d080
push 0x41d078
call fcn.00403350
add esp, 8
test ebx, ebx
je 0x40330d
call fcn.00403340
pop esi
pop ebp
pop ebx
ret
push ebp
mov dword [0x422aa8], 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x404d30
Capabilities:
Allocate thread local storage
Set thread local storage value

Disassembly:
push esi
call fcn.00405100
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [0x41d950], eax
je 0x404d88
push 0x74
push 1
call fcn.00406e10
mov esi, eax
add esp, 8
test esi, esi
je 0x404d88
mov eax, dword [0x41d950]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x404d88
push esi
call fcn.00404d90
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 0x404db0
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 [0x41d950]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x404e1e
push 0x74
push 1
call fcn.00406e10
mov esi, eax
add esp, 8
test esi, esi
je 0x404e14
mov ecx, dword [0x41d950]
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x404e14
push esi
call fcn.00404d90
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.00402790
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
pop edi
pop esi
ret
Function at 0x405900
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [0x422d80]
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 0x405942
call edi
mov esi, eax
test esi, esi
je 0x40592c
mov eax, 1
jmp 0x40593d
call ebp
mov ebx, eax
test ebx, ebx
je 0x405a4f
mov eax, 2
mov dword [0x422d80], eax
cmp eax, 1
jne 0x4059e2
test esi, esi
jne 0x40595b
call edi
mov esi, eax
test esi, esi
je 0x405a4f
cmp word [esi], 0
mov eax, esi
je 0x405975
add eax, 2
cmp word [eax], 0
jne 0x405963
add eax, 2
cmp word [eax], 0
jne 0x405963
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 0x4059d4
push edi
call fcn.00402e30
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x4059d4
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 0x4059c6
push ebx
call fcn.00402dc0
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 0x405a4f
test ebx, ebx
jne 0x4059f3
call ebp
mov ebx, eax
test ebx, ebx
je 0x405a4f
mov cl, byte [ebx]
mov eax, ebx
test cl, cl
je 0x405a0b
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x4059fb
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x4059fb
sub eax, ebx
inc eax
mov esi, eax
push esi
call fcn.00402e30
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x405a2d
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 0x405dd0
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x1a8
mov eax, 0x41dac8
push ebx
push ebp
push esi
push edi
xor ebp, ebp
cmp ecx, dword [eax]
je 0x405df4
add eax, 8
inc ebp
cmp eax, 0x41db58
jb 0x405de5
cmp ecx, dword [ebp*8 + 0x41dac8]
jne 0x405f9b
mov eax, dword [0x422a64]
cmp eax, 1
je 0x405f5d
test eax, eax
jne 0x405e20
cmp dword [0x41d604], 1
je 0x405f5d
cmp ecx, 0xfc
je 0x405f9b
lea eax, [esp + 0xb4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x405e5b
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 0x405ea4
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 0x41a444
add ebx, ecx
push ebx
call fcn.00407d10
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, 0x41a424
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 + 0x41dacc]
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.00407c80
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
mov eax, dword [0x423f40]
test eax, eax
je 0x405f6e
mov esi, dword [eax + 0x48]
cmp esi, 0xffffffff
jne 0x405f78
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
mov edx, dword [ebp*8 + 0x41dacc]
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 0x409f70
Capabilities:
Get geographical location

Disassembly:
mov eax, dword [0x422f08]
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
push edi
test eax, eax
jne 0x409fb8
push 0
push 0
push 1
push 0
call esi
test eax, eax
je 0x409f98
mov eax, 2
jmp 0x409fb3
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x40a098
mov eax, 1
mov dword [0x422f08], eax
cmp eax, 2
jne 0x409fd8
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 0x40a0aa
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x409ff3
mov ecx, dword [0x422dc0]
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 0x40a012
pop edi
pop esi
pop ebp
pop ebx
ret
lea edx, [edi + edi]
push edx
call fcn.00402e30
mov esi, eax
add esp, 4
test esi, esi
jne 0x40a029
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 0x40a08f
mov eax, dword [esp + 0x20]
push 0
test eax, eax
push 0
jne 0x40a070
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 0x40a08f
push esi
call fcn.00402dc0
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 0x40a09f
push esi
call fcn.00402dc0
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
call fcn.00402dc0
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x40a4d0
Capabilities:
Set environment variable

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x18]
test edi, edi
je 0x40a68e
push 0x3d
push edi
call fcn.00402cf0
mov esi, eax
add esp, 8
test esi, esi
je 0x40a68e
cmp edi, esi
je 0x40a68e
mov dl, byte [esi + 1]
mov ecx, dword [0x422a8c]
xor eax, eax
test dl, dl
sete al
mov ebp, eax
mov eax, dword [0x422a88]
cmp eax, ecx
jne 0x40a527
push eax
call fcn.0040a760
add esp, 4
mov dword [0x422a88], eax
test eax, eax
jne 0x40a5a2
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x40a54e
mov eax, dword [0x422a90]
test eax, eax
je 0x40a54e
call fcn.00409c10
test eax, eax
je 0x40a59d
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
test ebp, ebp
je 0x40a55a
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 4
call fcn.00402e30
add esp, 4
mov dword [0x422a88], eax
test eax, eax
je 0x40a68e
mov dword [eax], 0
mov eax, dword [0x422a90]
test eax, eax
jne 0x40a59d
push 4
call fcn.00402e30
add esp, 4
mov dword [0x422a90], eax
test eax, eax
je 0x40a68e
mov dword [eax], 0
mov eax, dword [0x422a88]
mov ebx, eax
mov eax, esi
sub eax, edi
push eax
push edi
mov dword [esp + 0x18], eax
call fcn.0040a6e0
mov esi, eax
add esp, 8
test esi, esi
jl 0x40a69f
cmp dword [ebx], 0
je 0x40a69f
test ebp, ebp
je 0x40a697
mov ecx, dword [ebx + esi*4]
lea edi, [ebx + esi*4]
push ecx
call fcn.00402dc0
mov eax, dword [edi]
add esp, 4
test eax, eax
je 0x40a5f9
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 0x40a5e8
lea eax, [esi*4]
push eax
push ebx
call fcn.00404f50
add esp, 8
test eax, eax
je 0x40a613
mov dword [0x422a88], eax
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x40a686
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
inc ecx
push ecx
call fcn.00402e30
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x40a686
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.00402dc0
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 0x40a617
test ebp, ebp
jne 0x40a686
test esi, esi
jge 0x40a6a9
neg esi
lea ecx, [esi*4 + 8]
push ecx
push ebx
call fcn.00404f50
add esp, 8
test eax, eax
je 0x40a68e
mov dword [eax + esi*4], edi
mov dword [eax + esi*4 + 4], 0
mov dword [0x422a88], eax
jmp 0x40a617
Function at 0x40b83e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x416bcc
call fcn.00402868
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.0041580b
cmp dword [esi + 0x40], 0
mov ebx, dword [eax + 0xc]
je 0x40b88c
call fcn.0041580b
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 0x40b89a
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x40b8a8
or eax, 0xffffffff
jmp 0x40b994
mov ecx, esi
call fcn.0040b7c9
mov edi, eax
mov dword [ebp - 0x20], edi
call fcn.0040c5e7
push edi
call fcn.0040c08a
and dword [ebp - 0x1c], 0
test edi, edi
je 0x40b8e2
push edi
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x40b8e2
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.0040c59b
push edi
call fcn.0040c08a
push ebx
push eax
push dword [ebp - 0x14]
mov ecx, esi
call fcn.0040b560
xor ebx, ebx
cmp eax, ebx
je 0x40b95b
test byte [esi + 0x24], 0x10
je 0x40b926
push 4
mov ecx, esi
pop ebx
call fcn.0040e9e5
test ah, 1
je 0x40b91c
push 5
pop ebx
push ebx
mov ecx, esi
call fcn.0040e618
xor ebx, ebx
cmp dword [esi + 0x1c], ebx
je 0x40b95b
push 0x97
push ebx
push ebx
push ebx
push ebx
push ebx
mov ecx, esi
call fcn.0040ea74
jmp 0x40b95b
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x1c], ebx
je 0x40b96d
push 1
push edi
call dword [sym.imp.USER32.dll_EnableWindow]
cmp edi, ebx
je 0x40b983
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x1c]
jne 0x40b983
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.0040b800
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 0x40e50e
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 0x40e550
call fcn.0041580b
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x40e550
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x40e547
xor eax, eax
jmp 0x40e558
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0040e55e
pop edi
pop esi
pop ebx
ret 4

Function at 0x4103ef
Capabilities:
Clear file content

Disassembly:
push esi
mov esi, ecx
push 0
mov eax, dword [esi]
push dword [esp + 0xc]
call dword [eax + 0x30]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x410417
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0041136f
pop esi
ret 4

Function at 0x41209b
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 0x4120b8
cmp dword [0x422a2c], edi
jne 0x41220a
cmp word [0x422a38], di
mov dword [0x422a2c], 1
jne 0x4120ea
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 [0x422a34], eax
mov word [0x422a38], cx
cmp word [0x422a38], 2
jne 0x412126
push str.Magellan_MSWHEEL
push str.MouseZ
call dword [sym.imp.USER32.dll_FindWindowA]
cmp eax, edi
je 0x412126
mov ecx, dword [0x422a34]
cmp ecx, edi
je 0x412126
push edi
push edi
push ecx
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov dword [0x422a30], eax
jmp 0x41220f
push 0x94
lea eax, [ebp - 0x9c]
push edi
push eax
call fcn.00402810
add esp, 0xc
lea eax, [ebp - 0x9c]
mov dword [ebp - 0x9c], 0x94
mov dword [0x422a30], 3
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x41220a
cmp dword [ebp - 0x8c], 1
je 0x41217a
cmp dword [ebp - 0x8c], 2
jne 0x41220a
cmp dword [ebp - 0x98], 4
jae 0x4121e9
lea eax, [ebp + 8]
push eax
push 1
push edi
push str.Control_PanelDesktop
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x41220a
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 [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4121de
push 0xa
lea eax, [ebp - 0x11c]
push edi
push eax
call fcn.00403190
add esp, 0xc
mov dword [0x422a30], eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x41220a
cmp dword [ebp - 0x8c], 2
jne 0x41220a
cmp dword [ebp - 0x98], 4
jb 0x41220a
push edi
push 0x422a30
push edi
push 0x68
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
mov eax, dword [0x422a30]
pop edi
leave
ret
Function at 0x4130df
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 0x413123
push dword [ebp + 8]
call fcn.00416673
mov esi, eax
test esi, esi
je 0x41314e
lea eax, [ebp + 0x10]
push 4
push eax
push 4
push 0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push esi
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test edi, edi
sete al
jmp 0x41314e
push dword [ebp + 0x10]
lea eax, [ebp - 0x10]
push 0x418a2c
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 0x415620
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x416d6e
call fcn.00402868
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.0040af4f
push 0xa
lea ecx, [esi + 0x4c]
mov byte [ebp - 4], 1
call fcn.0040af4f
push 0xa
lea ecx, [esi + 0x68]
mov byte [ebp - 4], 2
call fcn.0040adcc
mov ecx, dword [ebp - 0xc]
mov dword [esi], vtable.AFX_MODULE_THREAD_STATE.0
mov dword [esi + 0xc], 0x54
mov dword [esi + 0x28], 0x40f6a2
mov eax, esi
mov dword fs:[0], ecx
pop esi
leave
ret

Function at 0x415fda
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 0x41600a
mov eax, dword [esp + 0x10]
cmp eax, dword [esi + 8]
jl 0x416094
cmp dword [esp + 0x14], ebx
je 0x416094
cmp esi, ebx
jne 0x416030
push 0x10
call fcn.00415df7
cmp eax, ebx
je 0x41601f
mov dword [eax], vtable.CThreadData.0
mov esi, eax
jmp 0x416021
xor esi, esi
push esi
lea ecx, [edi + 0x14]
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
call fcn.00415d99
mov eax, dword [esi + 0xc]
cmp eax, ebx
jne 0x416047
mov eax, dword [edi + 0xc]
shl eax, 2
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
jmp 0x416057
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 0x416063
call fcn.0040acb2
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.00402810
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 0x4160ca
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 0x41611d
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x416100
mov ecx, dword [ebx + 0x10]
cmp dword [ecx + edi*8 + 4], eax
je 0x416100
mov eax, dword [esi + 0xc]
cmp dword [eax + edi*4], 0
je 0x416117
and dword [ebp - 4], 0
jmp 0x416117
mov eax, dword [esi + 0xc]
mov ecx, dword [eax + edi*4]
test ecx, ecx
je 0x416110
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 0x4160e1
cmp dword [ebp - 4], 0
je 0x41614b
push esi
lea ecx, [ebx + 0x14]
call fcn.00415dac
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_LocalFree]
test esi, esi
je 0x416141
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