joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4029d0
Capabilities:
Print debug messages

Disassembly:
mov eax, dword [0x41bd50]
sub esp, 0x400
test eax, eax
je 0x402a0e
cmp dword [esp + 0x408], eax
jb 0x402a0e
mov eax, dword [esp + 0x404]
lea ecx, [esp]
push eax
push 0x4182b8
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea edx, [esp]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
add esp, 0x400
ret

Function at 0x402a20
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x768
push ebx
push ebp
push esi
mov esi, dword [esp + 0x77c]
xor ebp, ebp
push edi
mov edi, dword [esp + 0x77c]
push ebp
lea eax, [esp + 0xa8]
push 0x1ec
push eax
push ebp
push ebp
push esi
push edi
call dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceRegistryPropertyA]
push 0x20019
push 1
push ebp
push 1
push esi
push edi
call dword [sym.imp.SETUPAPI.dll_SetupDiOpenDevRegKey]
mov ebx, eax
cmp ebx, ebp
mov dword [esp + 0x10], ebx
je 0x402b6c
push ebp
push ebp
push ebp
push ebp
push ebp
push ebp
push ebp
push ebp
lea ecx, [esp + 0x38]
push ebp
lea edx, [esp + 0x2b4]
push ecx
push edx
push ebx
mov dword [esp + 0x4c], 0x80
mov dword [esp + 0x48], ebp
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x402aab
mov eax, dword [esp + 0x18]
mov byte [esp + eax + 0x290], 0
mov edi, dword [esp + 0x788]
mov edx, dword [esp + 0x784]
lea ecx, [esp + 0x14]
push ecx
lea eax, [esp + 0x24]
push edx
push eax
lea ecx, [esp + 0x28]
push 0
lea edx, [esp + 0x34]
push ecx
push edx
push ebp
push ebx
mov dword [esp + 0x34], 0x400
mov dword [edi], 0
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
mov esi, eax
test esi, esi
jne 0x402b0f
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x24]
push str.EDID
push ecx
mov dword [edi], eax
xor bl, bl
call dword [sym.imp.MSVCRT.dll__mbsicmp]
add esp, 8
test eax, eax
je 0x402b2c
mov ebx, dword [esp + 0x10]
inc ebp
cmp esi, 0x103
jne 0x402ab2
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x768
ret
mov ecx, dword [esp + 0x14]
xor eax, eax
test ecx, ecx
jbe 0x402b49
mov edx, dword [esp + 0x784]
add bl, byte [eax + edx]
inc eax
cmp eax, ecx
jb 0x402b36
test bl, bl
jne 0x402b61
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x768
ret
mov ebx, dword [esp + 0x10]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x768
ret
Function at 0x403820
Capabilities:
Get session user name
Get user security identifier

Disassembly:
mov eax, 0x12a4
call fcn.00412f10
mov edx, dword [esp + 0x12a8]
push ebx
push esi
mov esi, ecx
mov ecx, dword [esp + 0x12b4]
xor ebx, ebx
cmp ecx, ebx
push edi
mov dword [esi + 4], edx
jne 0x403848
mov ecx, edx
mov eax, dword [esp + 0x12bc]
mov dword [esi + 8], ecx
cmp eax, ebx
jne 0x403858
mov eax, edx
mov dword [esi + 0xc], eax
lea eax, [esp + 0x1c]
mov edi, 1
push eax
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x38], ebx
mov dword [esi + 0x40], edi
mov dword [esi + 0x44], ebx
mov dword [esi + 0x4c], ebx
mov dword [esi + 0x50], 0xf01ff
mov dword [esi + 0x54], 0x10
mov dword [esi + 0x58], 2
mov dword [esi + 0x5c], edi
mov dword [esi + 0x60], ebx
mov dword [esi + 0x64], ebx
mov dword [esi + 0x68], ebx
mov dword [esi + 0x6c], ebx
mov dword [esi + 0x70], ebx
mov dword [esi], vtable.CNTService.0
mov dword [esp + 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov edx, dword [esp + 0x2c]
xor ecx, ecx
cmp edx, 2
sete cl
mov dword [esi + 0x48], ecx
mov dword [0x41bd54], edi
mov dword [0x41bd58], esi
mov eax, dword [esi + 0x48]
cmp eax, ebx
mov dword [esi + 0x1c], 0x10
mov dword [esi + 0x2c], ebx
je 0x4039a9
mov eax, 0xff
mov ecx, 0x40
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], eax
xor eax, eax
lea edi, [esp + 0xb0]
rep stosd dword es:[edi], eax
mov ecx, 0x40
lea edi, [esp + 0x1b0]
rep stosd dword es:[edi], eax
mov ecx, 0x400
lea edi, [esp + 0x2b0]
rep stosd dword es:[edi], eax
lea edx, [esp + 0x10]
lea eax, [esp + 0xb0]
push edx
push eax
mov dword [esp + 0x1c], 0x1000
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
lea ecx, [esp + 0x18]
lea edx, [esp + 0xc]
push ecx
lea eax, [esp + 0x1b4]
push edx
lea ecx, [esp + 0x1c]
push eax
lea edx, [esp + 0x2bc]
push ecx
lea eax, [esp + 0xc0]
push edx
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameA]
test eax, eax
je 0x4039a9
lea ecx, [esp + 0x2b0]
push ecx
call dword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
je 0x4039a9
lea edx, [esp + 0x2b0]
push edx
call dword [sym.imp.ADVAPI32.dll_GetLengthSid]
mov edi, eax
push edi
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
lea ecx, [esp + 0x2b0]
mov dword [esi + 0x44], eax
push ecx
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_CopySid]
mov eax, esi
pop edi
pop esi
pop ebx
add esp, 0x12a4
ret 0xc
Function at 0x404420
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x70
push edi
mov ecx, 8
xor eax, eax
lea edi, [esp + 4]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x80]
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x84]
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x88]
test eax, eax
mov edx, 1
mov dword [esp + 4], 0x20
mov dword [esp + 8], 5
mov dword [esp + 0x10], eax
mov dword [esp + 0x1c], ecx
pop edi
jne 0x404479
mov edx, 5
mov eax, dword [esp + 0x74]
push edx
lea edx, [esp + 4]
push edx
push eax
call dword [sym.imp.USER32.dll_RegisterDeviceNotificationA]
mov ecx, dword [esp + 0x88]
test eax, eax
mov dword [ecx], eax
jne 0x4044c2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea edx, [esp + 0x24]
push str.RegisterDeviceNotification_failed:__d_n
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
xor eax, eax
add esp, 0x70
ret
mov eax, 1
add esp, 0x70
ret
Function at 0x404e00
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x11c
push esi
push edi
mov edi, str.SoftwareSigmaTel
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x20]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x18], vtable.CRegistry.0
mov eax, ecx
mov esi, edi
mov edi, edx
mov byte [esp + 0x20], 0
shr ecx, 2
mov dword [esp + 0x1c], reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x10], 0
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, str.STSysTray1.0
test ecx, ecx
je 0x404eb0
mov edi, 0x4185b8
or ecx, 0xffffffff
xor eax, eax
push ebp
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x24]
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea edx, [esp + 0x24]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.STSysTray1.0
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
pop ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edx, dword [esp + 0x1c]
lea eax, [esp + 8]
push eax
push 0x20019
lea ecx, [esp + 0x28]
push 0
push ecx
push edx
mov dword [esp + 0x20], 4
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x404f03
mov edx, dword [esp + 8]
lea eax, [esp + 0xc]
lea ecx, [esp + 0x10]
push eax
push ecx
push 0
push 0
push str.RetryInstall
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov eax, dword [esp + 8]
push eax
call esi
mov ecx, dword [esp + 0x10]
lea edx, [esp + 8]
push 0
push edx
push 0
push 0xf003f
push 0
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x30]
push 0x41bd4c
lea eax, [esp + 0x38]
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x404f57
lea edx, [esp + 0xc]
push 4
push edx
push 4
push eax
mov eax, dword [esp + 0x18]
push str.RetryInstall
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [esp + 8]
push ecx
call esi
mov eax, dword [esp + 0x10]
pop edi
test eax, eax
pop esi
je 0x404f6c
push 3
lea edx, [esp + 0x10]
push 0
push edx
jmp 0x404f75
push 1
lea eax, [esp + 0x10]
push 0
push eax
call dword [sym.imp.SETUPAPI.dll_CM_Locate_DevNodeA]
test eax, eax
je 0x404f88
xor al, al
add esp, 0x11c
ret
mov ecx, dword [esp + 0xc]
push 0
push ecx
call dword [sym.imp.SETUPAPI.dll_CM_Reenumerate_DevNode]
test eax, eax
sete al
add esp, 0x11c
ret

Function at 0x405440
Capabilities:
Connect pipe
Read pipe
Write pipe

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x404
or ecx, 0xffffffff
xor eax, eax
push edi
mov edi, edx
repne scasb al, byte es:[edi]
push eax
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x10]
not ecx
push 0x400
push eax
push ecx
mov ecx, dword [esp + 0x424]
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_CallNamedPipeA]
pop edi
add esp, 0x404
ret
Function at 0x410ca0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 0x418
push ebx
push edi
mov edi, ecx
xor bl, bl
xor ecx, ecx
mov dword [esp + 0x18], edi
mov eax, dword [edi + 0x118]
mov byte [esp + 0x10], bl
test eax, eax
mov byte [esp + 0x14], bl
mov dword [esp + 8], ecx
je 0x410e50
mov eax, dword [eax + 0x1ac]
test eax, eax
je 0x410e50
mov ecx, dword [eax]
push ebp
mov ebp, dword [esp + 0x428]
lea edx, [esp + 0x20]
push esi
mov esi, dword [esp + 0x434]
push edx
lea edx, [esp + 0x18]
push esi
push edx
push ebp
push 0
push eax
call dword [ecx + 0x10]
test eax, eax
jl 0x410e1c
mov eax, dword [edi + 0x118]
mov edx, dword [eax + 0x1f4]
test edx, edx
jle 0x410d48
lea ecx, [eax + 0x368]
add eax, 0x378
mov edi, edx
cmp ebp, dword [eax - 0x180]
jne 0x410d3d
cmp byte [ecx], 0
mov ebx, dword [eax]
setne dl
shr ebx, 0x10
mov byte [esp + 0x1c], dl
and bl, 1
add eax, 4
inc ecx
dec edi
jne 0x410d23
mov byte [esp + 0x18], bl
mov eax, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
and eax, 0xff
and edi, 0xff
push eax
push edi
push esi
mov esi, dword [esp + 0x43c]
lea edx, [esp + 0x34]
push esi
push ecx
push ebp
push str.SetDeviceType:_port0x_04x_curdev_d_newdev_d_flag_d_isslave_d_slavable_d
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [esp + 0x48]
push 1
push eax
call fcn.004029d0
mov eax, dword [esp + 0x3c]
add esp, 0x28
cmp eax, esi
jne 0x410dbb
test bl, bl
je 0x410daa
mov edx, dword [esp + 0x434]
xor ecx, ecx
cmp edx, 1
sete cl
xor ecx, edi
jne 0x410dbb
push esi
push ebp
mov dword [esp + 0x18], 1
push str.Port_0x_04x_already_type_0x_04x_n
jmp 0x410df5
mov eax, dword [esp + 0x20]
mov ecx, dword [eax + 0x118]
mov eax, dword [ecx + 0x1ac]
lea ecx, [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x438]
mov edx, dword [eax]
push ecx
push esi
push ebp
push 0
push eax
call dword [edx + 0xc]
test eax, eax
jl 0x410e05
push esi
push ebp
mov dword [esp + 0x18], 1
push str.Reconfigured_Port_0x_04x_to_type_0x_04x_n
lea edx, [esp + 0x34]
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
jmp 0x410e30
push esi
push ebp
lea eax, [esp + 0x30]
push str.Failed_to_reconfigure_Port_0x_04x_to_type_0x_04x_n
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
jmp 0x410e30
push ebp
lea ecx, [esp + 0x2c]
push str.GetPortDeviceType_Port_0x_04x_failed__n
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea edx, [esp + 0x28]
push 1
push edx
call fcn.004029d0
mov eax, dword [esp + 0x18]
add esp, 8
pop esi
pop ebp
pop edi
pop ebx
add esp, 0x418
ret 0xc
pop edi
mov eax, ecx
pop ebx
add esp, 0x418
ret 0xc
Function at 0x411da4
Capabilities:
Check os version

Disassembly:
mov eax, 0x41427e
call fcn.00413134
sub esp, 0x9c
push ebx
push esi
push edi
mov esi, ecx
push fcn.00411d7d
push 0x411d50
push 0x19
lea eax, [esi + 0x20]
push 0x10
push eax
mov dword [ebp - 0x14], esi
call fcn.00412f9c
mov edi, 0x94
xor ebx, ebx
push edi
lea eax, [ebp - 0xa8]
push ebx
push eax
mov dword [ebp - 4], ebx
mov dword [esi], 0x4153c0
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0xa8]
mov dword [ebp - 0xa8], edi
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
lea edi, [esi + 8]
xor eax, eax
mov dword [esi + 4], ebx
mov ecx, esi
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.00411efd
cmp eax, ebx
mov dword [esi + 0x1c], ebx
je 0x411e64
mov ecx, esi
call fcn.00412004
cmp dword [esi + 0x1c], ebx
jbe 0x411e64
lea edi, [esi + 0x2c]
cmp dword [ebp - 0xa4], 6
je 0x411e58
lea eax, [ebp - 0x10]
mov ecx, esi
push eax
push dword [edi - 8]
call fcn.004121c6
test eax, eax
je 0x411e51
mov eax, dword [ebp - 0x10]
jmp 0x411e54
or eax, 0xffffffff
mov dword [edi], eax
jmp 0x411e5b
or dword [edi], 0xffffffff
inc ebx
add edi, 0x10
cmp ebx, dword [esi + 0x1c]
jb 0x411e31
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x412353
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
lea eax, [ebp - 0x210]
push esi
push eax
mov dword [ebp - 8], 4
push dword [ebp + 8]
xor esi, esi
call fcn.00412270
lea eax, [ebp + 8]
push eax
push 0x20019
lea eax, [ebp - 0x210]
push esi
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4123c1
lea eax, [ebp - 8]
push edi
push eax
lea eax, [ebp - 4]
push eax
push esi
push esi
push str.Speaker_Configuration
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp + 8]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, esi
pop edi
jne 0x4123c1
mov esi, dword [ebp - 4]
mov eax, esi
pop esi
leave
ret 4

Function at 0x4123c8
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
lea eax, [ebp - 0x208]
push esi
push eax
xor esi, esi
push dword [ebp + 8]
call fcn.00412270
lea eax, [ebp + 8]
push esi
push eax
push esi
push 0xf003f
push esi
push 0x41bd64
lea eax, [ebp - 0x208]
push esi
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x412438
push edi
lea eax, [ebp + 0xc]
push 4
push eax
push 4
push esi
push str.Speaker_Configuration
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp + 8]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
cmp edi, esi
sete al
mov esi, eax
pop edi
mov eax, esi
pop esi
leave
ret 8
Function at 0x412759
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
push 0x94
lea eax, [ebp - 0x94]
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0x94]
mov dword [ebp - 0x94], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x84], 0
je 0x4127dd
mov ecx, dword [ebp - 0x90]
cmp ecx, 4
jb 0x4127dd
push 2
pop eax
cmp dword [ebp - 0x84], eax
jne 0x4127d0
cmp ecx, 4
ja 0x4127b7
push 1
jmp 0x4127df
cmp dword [ebp - 0x84], eax
jne 0x4127d0
cmp ecx, 5
jne 0x4127c7
push 3
pop eax
cmp ecx, 6
jne 0x4127e0
push 4
jmp 0x4127df
cmp dword [ebp - 0x8c], 0xa
jae 0x4127e0
xor eax, eax
leave
ret
push 5
pop eax
leave
ret

Function at 0x4128a4
Capabilities:
Link many functions at runtime

Disassembly:
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0x81c]
cmp eax, 2
je 0x4128c8
cmp eax, 3
je 0x4128c8
cmp eax, 4
je 0x4128c8
call fcn.00412d38
push 1
pop eax
pop esi
pop ebx
ret
xor ebx, ebx
cmp dword [esi + 0x818], ebx
jne 0x4128e3
push str.setupapi.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [esi + 0x818], eax
mov eax, dword [esi + 0x818]
cmp eax, ebx
jne 0x4128f9
or dword [esi + 0x820], 0xffffffff
jmp 0x412a33
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.SetupDiGetClassDevsA
push eax
call edi
push str.SetupDiGetDeviceRegistryPropertyA
mov dword [esi], eax
push dword [esi + 0x818]
call edi
push str.SetupDiGetDeviceInterfaceDetailA
mov dword [esi + 0x10], eax
push dword [esi + 0x818]
call edi
push str.SetupDiEnumDeviceInfo
mov dword [esi + 8], eax
push dword [esi + 0x818]
call edi
push str.SetupDiDestroyDeviceInfoList
mov dword [esi + 0x14], eax
push dword [esi + 0x818]
call edi
push str.SetupDiEnumDeviceInterfaces
mov dword [esi + 0xc], eax
push dword [esi + 0x818]
call edi
cmp dword [esi], ebx
mov dword [esi + 4], eax
pop edi
jne 0x412980
push dword [esi + 0x818]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [esi + 0x818], ebx
mov dword [esi + 0x820], 0xfffffffe
jmp 0x412a33
cmp dword [esi + 0xc], ebx
jne 0x4129a6
push dword [esi + 0x818]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [esi + 0x818], ebx
mov dword [esi + 0x820], 0xfffffffd
jmp 0x412a33
cmp dword [esi + 0x10], ebx
jne 0x4129c9
push dword [esi + 0x818]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [esi + 0x818], ebx
mov dword [esi + 0x820], 0xfffffffc
jmp 0x412a33
cmp dword [esi + 0x14], ebx
jne 0x4129ec
push dword [esi + 0x818]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [esi + 0x818], ebx
mov dword [esi + 0x820], 0xfffffffb
jmp 0x412a33
cmp dword [esi + 8], ebx
jne 0x412a0f
push dword [esi + 0x818]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [esi + 0x818], ebx
mov dword [esi + 0x820], 0xfffffffa
jmp 0x412a33
cmp eax, ebx
jne 0x4128c2
push dword [esi + 0x818]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [esi + 0x818], ebx
mov dword [esi + 0x820], 0xfffffff9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x824], eax
xor eax, eax
jmp 0x4128c5
Function at 0x41301e
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x415410
push 0x413172
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
and dword [ebp - 4], 0
push 1
call dword [sym.imp.MSVCRT.dll___set_app_type]
pop ecx
or dword [0x41bf3c], 0xffffffff
or dword [0x41bf40], 0xffffffff
call dword [sym.imp.MSVCRT.dll___p__fmode]
mov ecx, dword [0x41bf24]
mov dword [eax], ecx
call dword [sym.imp.MSVCRT.dll___p__commode]
mov ecx, dword [0x41bf20]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCRT.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x41bf38], eax
call fcn.004131a5
cmp dword [0x41bd20], 0
jne 0x4130a1
push 0x4131a2
call dword [sym.imp.MSVCRT.dll___setusermatherr]
pop ecx
call fcn.00413190
push 0x418018
push 0x418014
call sub.MSVCRT.dll__initterm
mov eax, dword [0x41bf1c]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push dword [0x41bf18]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.MSVCRT.dll___getmainargs]
push 0x418010
push section..data
call sub.MSVCRT.dll__initterm
call dword [sym.imp.MSVCRT.dll___p___initenv]
mov ecx, dword [ebp - 0x20]
mov dword [eax], ecx
push dword [ebp - 0x20]
push dword [ebp - 0x2c]
push dword [ebp - 0x1c]
call fcn.00402dd0
add esp, 0x30
mov dword [ebp - 0x24], eax
push eax
call dword [sym.imp.MSVCRT.dll_exit]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x30], ecx
push eax
push ecx
call sub.MSVCRT.dll__XcptFilter
pop ecx
pop ecx
ret
Function at 0x40279c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x41b00c]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x402834
push 0x80000002
call fcn.00401068
test eax, eax
jne 0x402814
xor eax, eax
push ebp
push 0x40280d
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x402850
mov eax, dword [ebp - 4]
push eax
call fcn.00401070
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x402814
mov eax, dword [ebp - 4]
push eax
call fcn.00401060
ret
mov ax, word [0x41b00c]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x41b00c], ax
mov esp, ebp
pop ebp
ret

Function at 0x4044a0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x110], ecx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x4045aa
push dword fs:[eax]
mov dword fs:[eax], esp
test esi, esi
jne 0x4044f3
push 0x105
lea eax, [ebp - 0x109]
push eax
push 0
call fcn.004039a8
mov ecx, eax
lea edx, [ebp - 0x109]
mov eax, dword [ebp - 4]
call fcn.004030e8
jmp 0x404591
call fcn.00403988
mov ebx, eax
mov eax, ebx
call fcn.00404454
mov ebx, eax
mov edi, ebx
mov eax, ebx
call fcn.00404474
mov ebx, eax
test esi, esi
je 0x40451b
dec esi
test esi, esi
jl 0x40451b
cmp edi, ebx
jne 0x4044fa
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x110]
mov edx, edi
call fcn.00403128
mov eax, dword [ebp - 0x110]
mov ecx, ebx
sub ecx, edi
mov edx, 1
call fcn.004033d4
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.0040317c
cmp eax, 2
jl 0x404591
mov eax, dword [ebp - 4]
mov eax, dword [eax]
cmp byte [eax], 0x22
jne 0x404591
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.0040317c
mov edx, dword [ebp - 4]
mov edx, dword [edx]
cmp byte [edx + eax - 1], 0x22
jne 0x404591
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.0040317c
mov ecx, eax
sub ecx, 2
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov edx, 2
call fcn.004033d4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4045b1
lea eax, [ebp - 0x110]
call fcn.00402ff8
ret

Function at 0x404658
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef4
push ebx
xor edx, edx
mov dword [ebp - 0x10c], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4046c2
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x105
lea eax, [ebp - 0x105]
push eax
call fcn.004039c8
lea eax, [ebp - 0x10c]
lea edx, [ebp - 0x105]
call fcn.00403128
mov eax, dword [ebp - 0x10c]
mov edx, ebx
call fcn.00404640
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4046c9
lea eax, [ebp - 0x10c]
call fcn.00402ff8
ret