joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43b721
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x43b74f
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x43b76d
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0043b68b
jmp 0x43b76d
mov eax, dword [esi + 0x14]
test eax, eax
je 0x43b76d
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.0043b68b
test edi, edi
mov eax, edi
jne 0x43b757
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x4b453c]
test ecx, ecx
je 0x43b830
jmp 0x43b720
ret 8

Function at 0x43ec69
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x498f90]
jne 0x43ec73
repz ret
jmp fcn.0044aca9

Function at 0x44207a
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
jne 0x4420a7
call fcn.004415dc
mov dword [eax], esi
call fcn.004415c9
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.0043f490
add esp, 0x14
or eax, 0xffffffff
pop esi
ret
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4420c5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004415ef
pop ecx
jmp 0x4420a2
test byte [esp + 0xc], 0x80
je 0x4420d1
and eax, 0xfffffffe
jmp 0x4420d4
or eax, 1
push eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
je 0x4420b6
xor eax, eax
pop esi
ret
Function at 0x4420e7
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ebx
je 0x442124
cmp dword [ebp + 0x14], edi
je 0x442124
cmp ecx, edi
jne 0x44212b
call fcn.004415c9
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.0043f490
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x44213f
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x442160
cmp ebx, 0xffffffff
je 0x44214f
push ebx
push edi
push ecx
call fcn.0043f310
add esp, 0xc
cmp esi, edi
je 0x44210c
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x44210c
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x44217c
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x442183
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x442274
test word [esi + 0xc], 0x10c
je 0x4421d7
mov eax, dword [esi + 4]
test eax, eax
je 0x4421d7
jl 0x4422d5
cmp ebx, eax
mov edi, ebx
jb 0x4421a8
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x44227c
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.0043e427
sub dword [esi + 4], edi
add dword [esi], edi
add dword [ebp - 8], edi
sub ebx, edi
add esp, 0x10
sub dword [ebp - 4], edi
mov edi, dword [ebp - 0x10]
jmp 0x44226c
cmp ebx, dword [ebp - 0xc]
jb 0x442244
cmp dword [ebp - 0xc], 0
je 0x442201
mov ecx, bind
xor edx, edx
cmp ebx, ecx
jbe 0x4421f6
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x4421fd
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x44220c
mov eax, bind
cmp ebx, eax
ja 0x44220c
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x4422a8
push eax
push dword [ebp - 8]
push esi
call fcn.0044c858
pop ecx
push eax
call fcn.00451fc0
add esp, 0xc
test eax, eax
je 0x4422e7
cmp eax, 0xffffffff
je 0x4422d5
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x44226c
push esi
call fcn.0044c4f8
cmp eax, 0xffffffff
pop ecx
je 0x4422d9
cmp dword [ebp - 4], 0
je 0x4422a8
mov ecx, dword [ebp - 8]
inc dword [ebp - 8]
mov byte [ecx], al
mov eax, dword [esi + 0x18]
dec ebx
dec dword [ebp - 4]
mov dword [ebp - 0xc], eax
test ebx, ebx
jne 0x44218b
mov eax, dword [ebp + 0x14]
jmp 0x442126
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x442293
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.0043f310
add esp, 0xc
call fcn.004415c9
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x44211c
cmp dword [ebp + 0xc], 0xffffffff
je 0x4422be
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.0043f310
add esp, 0xc
call fcn.004415c9
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x44211c
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x442126
or dword [esi + 0xc], 0x10
jmp 0x4422d9
Function at 0x44955f
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x499c00]
je 0x44957a
inc edi
cmp edi, 0x17
jb 0x44956b
cmp edi, 0x17
jae 0x4496fa
push ebp
push 3
call fcn.00455dd7
cmp eax, 1
pop ecx
je 0x4496c6
push 3
call fcn.00455dd7
test eax, eax
pop ecx
jne 0x4495ae
cmp dword [0x499230], 1
je 0x4496c6
cmp ebx, 0xfc
je 0x4496f9
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x4b49e0
push ebp
call fcn.00447fe2
add esp, 0xc
test eax, eax
je 0x4495e4
push esi
push esi
push esi
push esi
push esi
call fcn.0043f394
add esp, 0x14
push 0x104
mov esi, 0x4b49f9
push esi
push 0
mov byte [0x4b4afd], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x449628
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.00447fe2
add esp, 0xc
test eax, eax
je 0x449628
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0043f394
add esp, 0x14
push esi
call fcn.00443200
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x44966d
push esi
call fcn.00443200
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x4b4cf4
push 0x46c4c8
sub ecx, eax
push ecx
push eax
call fcn.00447e07
add esp, 0x14
test eax, eax
je 0x44966d
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.0043f394
add esp, 0x14
jmp 0x44966f
xor esi, esi
push 0x46716c
push ebx
push ebp
call fcn.00448047
add esp, 0xc
test eax, eax
je 0x44968f
push esi
push esi
push esi
push esi
push esi
call fcn.0043f394
add esp, 0x14
push dword [edi*8 + 0x499c04]
push ebx
push ebp
call fcn.00448047
add esp, 0xc
test eax, eax
je 0x4496b1
push esi
push esi
push esi
push esi
push esi
call fcn.0043f394
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.00455c1a
add esp, 0xc
jmp 0x4496f9
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x4496f9
cmp ebp, 0xffffffff
je 0x4496f9
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x499c04]
push dword [esi]
call fcn.00443200
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x455c1a
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0044bdc2
xor ebx, ebx
cmp dword [0x4b52c0], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x455cf0
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x455dd0
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x46d668
push edi
call esi
cmp eax, ebx
je 0x455dd0
push eax
call fcn.0044bd54
mov dword [esp], 0x46d658
push edi
mov dword [0x4b52c0], eax
call esi
push eax
call fcn.0044bd54
mov dword [esp], 0x46d644
push edi
mov dword [0x4b52c4], eax
call esi
push eax
call fcn.0044bd54
mov dword [0x4b52c8], eax
lea eax, [ebp - 0xc]
push eax
call fcn.0044246a
test eax, eax
pop ecx
pop ecx
je 0x455cbe
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0043f394
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x455cf0
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.0044bd54
cmp eax, ebx
pop ecx
mov dword [0x4b52d0], eax
je 0x455cf0
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0044bd54
pop ecx
mov dword [0x4b52cc], eax
mov eax, dword [0x4b52cc]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x455d75
cmp dword [0x4b52d0], ecx
je 0x455d75
push eax
call fcn.0044bdcb
push dword [0x4b52d0]
mov esi, eax
call fcn.0044bdcb
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x455d75
cmp edi, ebx
je 0x455d75
call esi
cmp eax, ebx
je 0x455d42
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x455d42
test byte [ebp - 0x18], 1
jne 0x455d75
lea eax, [ebp - 0x10]
push eax
call fcn.004424a1
test eax, eax
pop ecx
je 0x455d5d
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0043f394
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x455d6c
or dword [ebp + 0x10], 0x200000
jmp 0x455db0
or dword [ebp + 0x10], 0x40000
jmp 0x455db0
mov eax, dword [0x4b52c4]
cmp eax, dword [ebp - 8]
je 0x455db0
push eax
call fcn.0044bdcb
cmp eax, ebx
pop ecx
je 0x455db0
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x455db0
mov eax, dword [0x4b52c8]
cmp eax, dword [ebp - 8]
je 0x455db0
push eax
call fcn.0044bdcb
cmp eax, ebx
pop ecx
je 0x455db0
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4b52c0]
call fcn.0044bdcb
cmp eax, ebx
pop ecx
je 0x455dd0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x455dd2
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x45abd8
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x498f90]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.0045ab6d
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.0043f310
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x45ac27
cmp dword [ebp - 0x1c], 5
jb 0x45ac3f
jmp 0x45ac3b
cmp dword [ebp - 0x10], 1
jne 0x45ac3f
cmp dword [ebp - 0x1c], 4
ja 0x45ac3b
jne 0x45ac3f
cmp dword [ebp - 0x18], 0
jbe 0x45ac3f
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x46d8e4
call fcn.0045aa41
test eax, eax
jge 0x45ac60
mov byte [0x49a680], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0043ec69
add ebp, 0x78
leave
ret
Function at 0x40e280
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x9000]
push edi
jmp 0x40e29a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x40e2a1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x40e290
mov eax, 1
add ebx, ebx
jne 0x40e2b3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x40e2a8
jne 0x40e2c4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40e2a8
xor ecx, ecx
sub eax, 3
jb 0x40e2d8
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x40e34a
mov ebp, eax
add ebx, ebx
jne 0x40e2e3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x40e2f0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40e314
inc ecx
add ebx, ebx
jne 0x40e300
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x40e2f5
jne 0x40e311
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40e2f5
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40e334
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40e325
jmp 0x40e296
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40e334
add edi, ecx
jmp 0x40e296
pop esi
mov edi, esi
mov ecx, 0xa8
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40e352
cmp byte [edi], 5
jne 0x40e352
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 0x40e357
lea edi, [esi + 0xc000]
mov eax, dword [edi]
or eax, eax
je 0x40e3c6
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x10810]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x10838]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40e384
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1083c]
or eax, eax
je 0x40e3c0
mov dword [ebx], eax
add ebx, 4
jmp 0x40e3a1
call dword [esi + 0x1084c]
mov ebp, dword [esi + 0x10840]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1ff]
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 0x40e3fa
sub esp, 0xffffff80
jmp 0x401d5b

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x438caa
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x438a14
and ecx, edx
call fcn.00438ce3
sub edx, 1
add edx, ecx
xor dword [ebx], eax
add edx, ecx
inc ebx
sub ecx, 0xd2179500
mov edx, 0xda659971
cmp ebx, edi
jne fcn.00438caa
sub ecx, 0xacc2cf30
mov edx, edx
ret
Function at 0x401ce0
Capabilities:
Get file system object information

Disassembly:
sub esp, 0x198
mov dword [esp + 0xc], ecx
push edi
mov edi, dword [esp + 0x1a0]
lea ecx, [esp + 8]
push ecx
push 0x20
mov eax, dword [edi]
push 0
push edi
mov dword [esp + 0x24], 0
call dword [eax + 0x10]
test eax, eax
jne 0x401e84
mov edx, dword [esp + 0x1a8]
push ebx
inc edx
push ebp
push esi
mov dword [esp + 0x18], edx
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x10]
push 0
push edx
mov ecx, dword [eax]
push 1
push eax
call dword [ecx + 0xc]
cmp eax, 1
je 0x401e77
mov eax, dword [esp + 0x10]
test eax, eax
je 0x401e77
mov ecx, dword [esp + 0x1c]
push eax
mov eax, dword [esp + 0x1b4]
add ecx, 0x40
push eax
call fcn.004996b0
mov ecx, dword [esp + 0x10]
mov edx, dword [edi]
mov esi, eax
lea eax, [esp + 0x20]
push eax
push 0x4c882c
push 0
push ecx
push edi
call dword [edx + 0x14]
mov ebx, eax
cmp ebx, 1
je 0x401e77
mov eax, dword [esp + 0x10]
test eax, eax
je 0x401e77
push 0x4209
lea edx, [esp + 0x4c]
push 0x160
push edx
push 0
push esi
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
push 0x104
call sub.MFC42.DLL_operatornew
add esp, 4
mov ebp, eax
push ebp
push esi
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
push 0x4e59d8
push ebp
call dword [sym.imp.MSVCRT.dll__stricmp]
add esp, 8
test eax, eax
jne 0x401ddd
push ebp
call sub.MFC42.DLL_operatordelete
add esp, 4
jmp 0x401e6f
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp byte [ecx + ebp - 1], 0x5c
je 0x401e1a
mov edi, 0x4df1d8
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x1c]
push ebp
lea ecx, [edi + 0x70]
call sub.MFC42.DLL_CPtrList::AddTail
mov esi, dword [esp + 0x18]
lea eax, [esp + 0x54]
lea ecx, [esp + 0x24]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x4c]
push ecx
mov ecx, edi
mov dword [esp + 0x28], 0x37
mov dword [esp + 0x2c], esi
mov dword [esp + 0x44], 2
mov dword [esp + 0x48], ebp
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
call sub.MFC42.DLL_CComboBoxEx::InsertItem
mov edi, dword [esp + 0x1ac]
inc esi
mov dword [esp + 0x18], esi
test ebx, ebx
je 0x401d20
mov eax, dword [esp + 0x14]
push eax
mov edx, dword [eax]
call dword [edx + 8]
pop esi
pop ebp
pop ebx
pop edi
add esp, 0x198
ret 0xc
Function at 0x404720
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4add08
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [0x4e5a08]
test eax, eax
jne 0x4047cb
push esi
lea ecx, [esp + 4]
call sub.MFC42.DLL_CString::CString_2
push 0x104
push 0x104
lea ecx, [esp + 0xc]
mov dword [esp + 0x18], 0
call sub.MFC42.DLL_CString::GetBuffer
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0xffffffffffffffff
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::ReleaseBuffer
push str.winhlp32.exe
lea ecx, [esp + 8]
call fcn.004ac79a
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x4047b2
push 0x6a
push esi
call dword [sym.imp.USER32.dll_LoadCursorA]
test eax, eax
je 0x4047b2
push eax
call dword [sym.imp.USER32.dll_CopyIcon]
mov dword [0x4e5a08], eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [esp + 4]
mov dword [esp + 0x10], 0xffffffff
call sub.MFC42.DLL_CString::CString
pop esi
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x4047e0
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x404842
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret

Function at 0x404a50
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x208
push ebp
mov ebp, dword [esp + 0x214]
push esi
push edi
push ebp
push 0
push 0
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x404b3d
lea ecx, [esp + 0xc]
push ecx
push str..htm
push bind
call fcn.004047e0
add esp, 0xc
test eax, eax
jne 0x404b3d
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [esp + 0xc]
push str._shellopencommand
push edx
call edi
lea eax, [esp + 0xc]
lea ecx, [esp + 0xc]
push eax
push ecx
push bind
call fcn.004047e0
add esp, 0xc
test eax, eax
jne 0x404b3d
push ebx
mov ebx, dword [sym.imp.MSVCRT.dll__mbsstr]
lea edx, [esp + 0x10]
push str.__1_
push edx
call ebx
mov esi, eax
add esp, 8
test esi, esi
jne 0x404b10
lea eax, [esp + 0x10]
push 0x4df688
push eax
call ebx
mov esi, eax
add esp, 8
test esi, esi
jne 0x404b10
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0xf]
jmp 0x404b13
mov byte [esi], 0
push 0x4df684
push esi
call edi
mov edx, dword [esp + 0x21c]
push edx
push esi
call edi
lea eax, [esp + 0x10]
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
pop ebx
pop edi
pop esi
pop ebp
add esp, 0x208
ret
mov eax, esi
pop edi
pop esi
pop ebp
add esp, 0x208
ret
Function at 0x408350
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4ae0f0
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebp
push esi
mov esi, dword [esp + 0x30]
xor ebp, ebp
push edi
cmp esi, ebp
mov edi, ecx
je 0x408527
cmp dword [edi + 0x2c], 1
jne 0x408527
mov eax, dword [edi + 4]
mov dword [esp + 0x10], ebp
mov dword [esp + 0x1c], eax
mov eax, dword [edi + 0x10]
shl esi, 5
mov dword [esp + 0x14], 0xffffffff
mov dword [esp + 0x18], ebp
mov byte [esp + 0x20], 0
mov eax, dword [esi + eax]
inc eax
push ebx
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c], eax
call sub.MFC42.DLL_CString::CString_2
mov ebx, dword [esp + 0x3c]
lea ecx, [esp + 0x14]
push ebx
push ecx
mov ecx, edi
mov dword [esp + 0x38], ebp
call fcn.00408130
test al, al
je 0x408412
mov edx, dword [esp + 0x40]
push 1
lea eax, [esp + 0x44]
push edx
push eax
mov ecx, edi
call fcn.004088d0
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x34], 1
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x40]
mov byte [esp + 0x30], 0
call sub.MFC42.DLL_CString::CString
mov ebx, dword [esp + 0x14]
mov ebp, dword [esp + 0x18]
sub ebp, ebx
inc ebp
jmp 0x4084b5
lea ecx, [esp + 0x3c]
call sub.MFC42.DLL_CString::CString_2
push 0x4df684
lea ecx, [esp + 0x40]
mov byte [esp + 0x34], 2
call sub.MFC42.DLL_CString::operator
push ebx
lea ecx, [esp + 0x40]
call fcn.004ac79a
push 0x4df94c
lea ecx, [esp + 0x40]
call fcn.004ac79a
mov ecx, dword [esp + 0x40]
push 1
lea edx, [esp + 0x44]
push ecx
push edx
mov ecx, edi
call fcn.004088d0
push eax
lea ecx, [esp + 0x40]
mov byte [esp + 0x34], 3
call sub.MFC42.DLL_CString::operator_2
lea ecx, [esp + 0x40]
mov byte [esp + 0x30], 2
call sub.MFC42.DLL_CString::CString
push 0x4df948
lea ecx, [esp + 0x40]
call fcn.004ac79a
lea eax, [esp + 0x3c]
lea ecx, [esp + 0x10]
push eax
call sub.MFC42.DLL_CString::operator_1
mov eax, dword [edi + 0x10]
xor edx, edx
mov byte [esp + 0x30], 0
mov ecx, dword [esi + eax + 8]
mov ebx, dword [esi + eax + 4]
inc ecx
cmp ebx, ecx
lea ecx, [esp + 0x3c]
sete dl
sub ebx, edx
call sub.MFC42.DLL_CString::CString
lea eax, [esp + 0x10]
mov ecx, edi
push eax
push ebp
push ebx
call fcn.00408b70
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x38]
push 0
mov eax, dword [ecx - 8]
mov ecx, dword [edi + 0x10]
sub eax, ebp
mov ebp, dword [esi + ecx + 4]
push eax
add ebp, eax
push edx
mov dword [esi + ecx + 4], ebp
mov ecx, dword [edi + 0x10]
mov ebx, dword [esi + ecx + 8]
add ebx, eax
mov dword [esi + ecx + 8], ebx
lea ecx, [esi + ecx + 0xc]
mov esi, dword [ecx]
add esi, eax
mov dword [ecx], esi
mov ecx, edi
call fcn.00408c40
lea ecx, [esp + 0x10]
mov dword [esp + 0x30], 0xffffffff
call sub.MFC42.DLL_CString::CString
pop ebx
pop edi
pop esi
mov al, 1
pop ebp
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret 0xc
mov ecx, dword [esp + 0x24]
pop edi
pop esi
xor al, al
pop ebp
mov dword fs:[0], ecx
add esp, 0x24
ret 0xc
Function at 0x40a3c0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4ae233
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
push edi
xor edi, edi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.004039c0
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov eax, 1
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], eax
mov dword [esi + 0x44], edi
mov dword [esi + 0x48], edi
mov dword [esi + 0x4c], edi
mov dword [esp + 0x14], edi
mov dword [esi + 0x58], edi
mov dword [esi + 0x54], vtable.CBitmap.0
mov byte [esp + 0x14], al
mov eax, dword [esp + 0x1c]
mov ecx, esi
mov dword [esi], vtable.CMinTrayBtn.0
mov dword [esi + 0x24], eax
mov dword [esi + 0x5c], edi
call fcn.0040a4f0
mov ecx, dword [esp + 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 4