joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4687f0
Capabilities:
Set registry value

Disassembly:
push ecx
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x18]
lea ecx, [esp]
push eax
mov eax, dword [esp + 0x18]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push edx
push eax
mov dword [esp + 0x24], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x468849
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0xc]
push edx
mov edx, dword [esp + 8]
push eax
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x46885e
mov eax, dword [esp]
test eax, eax
je 0x468858
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop ecx
ret 0x18
mov eax, dword [esp]
test eax, eax
je 0x46886d
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
pop ecx
ret 0x18

Function at 0x468880
Capabilities:
Delete registry key
Delete registry value

Disassembly:
push ecx
mov ecx, dword [esp + 8]
push esi
test ecx, ecx
mov dword [esp + 4], 0
je 0x4688eb
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4688eb
mov esi, dword [esp + 0x14]
test esi, esi
jne 0x4688b4
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
neg eax
sbb eax, eax
pop esi
inc eax
pop ecx
ret 0xc
lea edx, [esp + 4]
push edx
push 0xf003f
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4688dc
mov eax, dword [esp + 4]
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
je 0x4688f2
mov eax, dword [esp + 4]
test eax, eax
je 0x4688eb
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop esi
pop ecx
ret 0xc
mov eax, dword [esp + 4]
test eax, eax
je 0x468901
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
pop esi
pop ecx
ret 0xc
Function at 0x468910
Capabilities:
Persist via windows service
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x398
mov eax, dword [esp + 0x39c]
push esi
test eax, eax
push edi
mov esi, ecx
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0x378
je 0x468a9b
mov ecx, dword [esp + 0x3a8]
test ecx, ecx
je 0x468a9b
mov edi, dword [esp + 0x3ac]
test edi, edi
je 0x468a9b
lea edx, [esp + 8]
push edx
push 0xf003f
push 0
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x468a9b
mov edx, dword [esp + 8]
lea eax, [esp + 0xc]
lea ecx, [esp + 0x28]
push eax
push ecx
push 0
push 0
push str.PackedCatalogItem
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x468a5c
cmp dword [esp + 0xc], 0x378
jne 0x468a5c
lea eax, [esp + 0x28]
push eax
push edi
call fcn.0047b1a0
add esp, 8
test eax, eax
je 0x468a7c
cmp dword [esp + 0x154], 1
jne 0x468a7c
cmp dword [esp + 0x178], 2
jne 0x468a7c
mov ecx, dword [esp + 0x150]
lea edx, [esp + 0x10]
push ecx
push 0x50017c
push edx
call fcn.0047ace3
mov eax, dword [esp + 0x18]
add esp, 0xc
lea ecx, [esp + 0x28]
lea edx, [esp + 0x10]
push 3
push str.SYSTEMCurrentControlSetServicesWinSock2ESPI11
push closesocket
push eax
push ecx
push edx
mov ecx, esi
call fcn.004687f0
test eax, eax
je 0x468a5c
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x28]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x28]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [esp + 8]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0xc]
push ecx
push edx
push 3
push 0
push str.PackedCatalogItem
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x468a6f
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 8]
test eax, eax
je 0x468a66
push eax
call esi
jmp 0x468a62
mov eax, dword [esp + 0x3b0]
test eax, eax
je 0x468a7c
inc dword [eax]
mov eax, dword [esp + 8]
test eax, eax
je 0x468a8b
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, 1
pop esi
add esp, 0x398
ret 0x10
pop edi
xor eax, eax
pop esi
add esp, 0x398
ret 0x10
Function at 0x468ab0
Capabilities:
Persist via windows service
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x39c
mov eax, dword [esp + 0x3a0]
push esi
push edi
mov edi, ecx
test eax, eax
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0x378
je 0x468c1c
mov ecx, dword [esp + 0x3ac]
test ecx, ecx
je 0x468c1c
mov edx, dword [esp + 0x3b0]
test edx, edx
je 0x468c1c
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea edx, [esp + 8]
push edx
push 0xf003f
push 0
push ecx
push eax
call esi
test eax, eax
jne 0x468c1c
mov edx, dword [esp + 8]
lea eax, [esp + 0x10]
lea ecx, [esp + 0x2c]
push eax
push ecx
push 0
push 0
push str.PackedCatalogItem
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x468c00
cmp dword [esp + 0x10], 0x378
jne 0x468c00
cmp dword [esp + 0x158], 1
jne 0x468c29
cmp dword [esp + 0x17c], 2
jne 0x468c29
mov eax, dword [esp + 0x154]
lea ecx, [esp + 0x14]
push eax
push 0x50017c
push ecx
call fcn.0047ace3
add esp, 0xc
lea edx, [esp + 0xc]
push edx
push 0x20019
push 0
push str.SYSTEMCurrentControlSetServicesWinSock2ESPI11
push closesocket
call esi
test eax, eax
jne 0x468c00
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x14]
push eax
push ecx
mov ecx, edi
call fcn.00468c60
test eax, eax
je 0x468c00
mov edx, dword [esp + 0x10]
push 3
push str.SYSTEMCurrentControlSetServicesWinSock2ESPI11
push closesocket
lea eax, [esp + 0x38]
push edx
lea ecx, [esp + 0x24]
push eax
push ecx
mov ecx, edi
call fcn.00468760
test eax, eax
je 0x468c00
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 8]
lea eax, [esp + 0x2c]
push edx
push eax
push 3
push 0
push str.PackedCatalogItem
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x468c29
mov eax, dword [esp + 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x468c11
push eax
call esi
mov eax, dword [esp + 8]
test eax, eax
je 0x468c1c
push eax
call esi
pop edi
xor eax, eax
pop esi
add esp, 0x39c
ret 0xc
mov eax, dword [esp + 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x468c3a
push eax
call esi
mov eax, dword [esp + 8]
test eax, eax
je 0x468c45
push eax
call esi
pop edi
mov eax, 1
pop esi
add esp, 0x39c
ret 0xc
Function at 0x468c60
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
sub esp, 0x480
mov ecx, dword [esp + 0x484]
mov dword [esp], 0x378
test ecx, ecx
je 0x468d21
mov eax, dword [esp + 0x488]
test eax, eax
je 0x468d21
lea edx, [esp]
push edx
lea edx, [esp + 0x10c]
push edx
push 0
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x468d21
cmp dword [esp], 0x378
jne 0x468d21
lea eax, [esp + 4]
push 0x104
lea ecx, [esp + 0x10c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
test eax, eax
je 0x468d21
lea edx, [esp + 4]
push edx
call fcn.004686f0
add esp, 4
test eax, eax
je 0x468d21
cmp dword [esp + 0x234], 1
jne 0x468d13
cmp dword [esp + 0x258], 2
jne 0x468d13
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
je 0x468d21
push str.WSPStartup
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x468d21
mov eax, 1
add esp, 0x480
ret 8
xor eax, eax
add esp, 0x480
ret 8

Function at 0x468d30
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x104
push esi
mov esi, dword [esp + 0x10c]
test esi, esi
je 0x468d8f
push esi
call fcn.004686f0
add esp, 4
test eax, eax
je 0x468d8f
lea eax, [esp + 4]
push 0x104
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
test eax, eax
je 0x468d8f
lea ecx, [esp + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
je 0x468d8f
push 0x5001a0
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
neg eax
sbb eax, eax
pop esi
neg eax
add esp, 0x104
ret 4
xor eax, eax
pop esi
add esp, 0x104
ret 4
Function at 0x468e20
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x110
push ebx
push ebp
mov ebp, dword [esp + 0x11c]
push esi
xor esi, esi
push edi
cmp ebp, esi
mov ebx, ecx
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], esi
jne 0x468e54
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x110
ret 4
push ebp
mov ecx, ebx
call fcn.00468d30
test eax, eax
jne 0x468e6d
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x110
ret 4
push ebp
mov ecx, ebx
call fcn.00468da0
cmp eax, 1
je 0x468ffa
lea eax, [esp + 0x10]
push eax
push str.SYSTEMCurrentControlSetServicesWinSock2ParametersProtocol_Catalog9Catalog_Entries
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x468ea6
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x110
ret 4
mov edx, dword [esp + 0x10]
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
lea ecx, [esp + 0x1c]
push 0x104
push ecx
push esi
push edx
call edi
test eax, eax
jne 0x468f22
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x1c]
push eax
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x468fa2
mov eax, dword [esp + 0x14]
push str.PackedCatalogItem
push eax
mov ecx, ebx
call fcn.00468c60
mov ecx, dword [esp + 0x14]
test eax, eax
push ecx
je 0x468fb9
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x1c]
inc esi
push 0x104
push edx
push esi
push eax
mov dword [esp + 0x24], 0
call edi
test eax, eax
je 0x468ec2
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x1c]
xor esi, esi
push 0x104
push edx
push esi
push eax
mov dword [esp + 0x28], esi
call edi
test eax, eax
jne 0x468f70
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x20]
push ebp
push edx
push eax
mov ecx, ebx
call fcn.00468910
test eax, eax
je 0x468fa2
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x1c]
inc esi
push 0x104
push ecx
push esi
push edx
call edi
test eax, eax
je 0x468f3e
cmp dword [esp + 0x18], 1
jb 0x468fa2
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
push str.SYSTEMCurrentControlSetServicesWinSock2ESPI11
dec ecx
push closesocket
push ecx
push ebp
push str.FileName
mov ecx, ebx
call fcn.004687f0
cmp eax, 1
je 0x468feb
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x468fc9
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x110
ret 4
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x14], 0
jmp 0x468fa2
push ebp
mov ecx, ebx
call fcn.00469010
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x110
ret 4
mov eax, dword [esp + 0x10]
test eax, eax
je 0x468ffa
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x110
ret 4
Function at 0x469010
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x10c
push ebp
mov ebp, dword [esp + 0x114]
push esi
xor esi, esi
push edi
cmp ebp, esi
mov edi, ecx
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], 1
jne 0x469042
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x10c
ret 4
push esi
mov ecx, edi
call fcn.00468da0
test eax, eax
jne 0x46905f
pop edi
pop esi
mov eax, 1
pop ebp
add esp, 0x10c
ret 4
lea eax, [esp + 0xc]
push eax
push str.SYSTEMCurrentControlSetServicesWinSock2ParametersProtocol_Catalog9Catalog_Entries
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x469086
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x10c
ret 4
mov edx, dword [esp + 0xc]
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
lea ecx, [esp + 0x18]
push 0x104
push ecx
push esi
push edx
call ebx
test eax, eax
jne 0x4690d4
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x18]
push ebp
push eax
push ecx
mov ecx, edi
call fcn.00468ab0
test eax, eax
jne 0x4690bd
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x18]
inc esi
push 0x104
push edx
push esi
push eax
call ebx
test eax, eax
je 0x4690a3
push 0
push str.SYSTEMCurrentControlSetServicesWinSock2ESPI11
push closesocket
mov ecx, edi
call fcn.00468880
mov eax, dword [esp + 0x10]
pop ebx
test eax, eax
je 0x4690f7
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
add esp, 0x10c
ret 4

Function at 0x475870
Capabilities:
Encrypt data using des

Disassembly:
sub esp, 0xf4
xor ecx, ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x104]
push edi
xor eax, eax
mov al, byte [ecx + str.80_]
mov edx, eax
and eax, 7
sar edx, 3
mov bl, byte [eax*2 + 0x50979c]
mov dl, byte [edx + esi]
test bl, dl
setne al
mov byte [esp + ecx + 0x4c], al
inc ecx
cmp ecx, 0x38
jl 0x475883
mov eax, 0x1e
xor edx, edx
mov dword [esp + 0x10], eax
cmp dword [esp + 0x10c], 1
je 0x4758c4
lea eax, [edx + edx]
lea edi, [esp + eax*4 + 0x88]
lea ebp, [esp + eax*4 + 0x84]
xor eax, eax
xor ecx, ecx
mov cl, byte [edx + 0x509844]
mov dword [edi], 0
mov dword [ebp], 0
mov esi, ecx
cmp ecx, 0x1c
jge 0x4758f6
mov bl, byte [esp + ecx + 0x4c]
jmp 0x4758fa
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x1c
jl 0x4758eb
mov eax, 0x1c
lea ecx, [esi + 0x1c]
cmp ecx, 0x38
jge 0x475918
mov bl, byte [esp + ecx + 0x4c]
jmp 0x47591c
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x38
jl 0x47590d
xor ecx, ecx
mov eax, 0x5097ac
xor ebx, ebx
mov bl, byte [ecx + 0x509854]
cmp byte [esp + ebx + 0x14], 0
je 0x475947
mov esi, dword [eax]
mov ebx, dword [ebp]
or ebx, esi
mov dword [ebp], ebx
xor ebx, ebx
mov bl, byte [ecx + 0x50986c]
cmp byte [esp + ebx + 0x14], 0
je 0x47595e
mov esi, dword [eax]
mov ebx, dword [edi]
or ebx, esi
mov dword [edi], ebx
add eax, 4
inc ecx
cmp eax, str.80_
jl 0x47592e
mov eax, dword [esp + 0x10]
inc edx
sub eax, 2
cmp eax, 0xfffffffe
mov dword [esp + 0x10], eax
jg 0x4758b7
lea edx, [esp + 0x84]
push edx
call fcn.004759a0
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xf4
ret
Function at 0x48b67a
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x48b6b2
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00489731
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00489709
jmp 0x48b6be
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x48cd68
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 0x48cdaa
call fcn.00492929
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x48cdaa
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x48cda1
xor eax, eax
jmp 0x48cdb2
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0048cdb8
pop edi
pop esi
pop ebx
ret 4

Function at 0x492e59
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 0x492e87
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x492ea5
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00492dbf
jmp 0x492ea5
mov eax, dword [esi + 0x14]
test eax, eax
je 0x492ea5
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00492dbf
test edi, edi
mov eax, edi
jne 0x492e8f
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401162
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40a000]
jne 0x40116c
repz ret
jmp fcn.00401449

Function at 0x4019ae
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 + 0x40a018]
je 0x4019c9
inc edi
cmp edi, 0x17
jb 0x4019ba
cmp edi, 0x17
jae 0x401b49
push ebp
push 3
call fcn.00403af0
cmp eax, 1
pop ecx
je 0x401b15
push 3
call fcn.00403af0
test eax, eax
pop ecx
jne 0x4019fd
cmp dword [0x40a010], 1
je 0x401b15
cmp ebx, 0xfc
je 0x401b48
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x40b040
push ebp
call fcn.00403a8b
add esp, 0xc
test eax, eax
je 0x401a33
push esi
push esi
push esi
push esi
push esi
call fcn.00402fea
add esp, 0x14
push 0x104
mov esi, 0x40b059
push esi
push 0
mov byte [0x40b15d], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x401a77
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.00403a8b
add esp, 0xc
test eax, eax
je 0x401a77
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00402fea
add esp, 0x14
push esi
call fcn.00403a00
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x401abc
push esi
call fcn.00403a00
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x40b354
push 0x408714
sub ecx, eax
push ecx
push eax
call fcn.00403942
add esp, 0x14
test eax, eax
je 0x401abc
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.00402fea
add esp, 0x14
jmp 0x401abe
xor esi, esi
push 0x408710
push ebx
push ebp
call fcn.004038d1
add esp, 0xc
test eax, eax
je 0x401ade
push esi
push esi
push esi
push esi
push esi
call fcn.00402fea
add esp, 0x14
push dword [edi*8 + 0x40a01c]
push ebx
push ebp
call fcn.004038d1
add esp, 0xc
test eax, eax
je 0x401b00
push esi
push esi
push esi
push esi
push esi
call fcn.00402fea
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.00403714
add esp, 0xc
jmp 0x401b48
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x401b48
cmp ebp, 0xffffffff
je 0x401b48
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x40a01c]
push dword [esi]
call fcn.00403a00
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 0x403714
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00402506
xor ebx, ebx
cmp dword [0x40b600], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x4037ea
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x4038ca
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x4038ca
push eax
call fcn.00402498
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x40b600], eax
call esi
push eax
call fcn.00402498
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x40b604], eax
call esi
push eax
call fcn.00402498
mov dword [0x40b608], eax
lea eax, [ebp - 0xc]
push eax
call fcn.0040173b
test eax, eax
pop ecx
pop ecx
je 0x4037b8
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00402fea
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x4037ea
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00402498
cmp eax, ebx
pop ecx
mov dword [0x40b610], eax
je 0x4037ea
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00402498
pop ecx
mov dword [0x40b60c], eax
mov eax, dword [0x40b60c]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x40386f
cmp dword [0x40b610], ecx
je 0x40386f
push eax
call fcn.0040250f
push dword [0x40b610]
mov esi, eax
call fcn.0040250f
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x40386f
cmp edi, ebx
je 0x40386f
call esi
cmp eax, ebx
je 0x40383c
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40383c
test byte [ebp - 0x18], 1
jne 0x40386f
lea eax, [ebp - 0x10]
push eax
call fcn.00401772
test eax, eax
pop ecx
je 0x403857
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00402fea
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x403866
or dword [ebp + 0x10], 0x200000
jmp 0x4038aa
or dword [ebp + 0x10], 0x40000
jmp 0x4038aa
mov eax, dword [0x40b604]
cmp eax, dword [ebp - 8]
je 0x4038aa
push eax
call fcn.0040250f
cmp eax, ebx
pop ecx
je 0x4038aa
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x4038aa
mov eax, dword [0x40b608]
cmp eax, dword [ebp - 8]
je 0x4038aa
push eax
call fcn.0040250f
cmp eax, ebx
pop ecx
je 0x4038aa
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x40b600]
call fcn.0040250f
cmp eax, ebx
pop ecx
je 0x4038ca
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4038cc
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x473a4b
Capabilities:
Encode data using xor

Disassembly:
mov al, 0x2e
cmpsb byte [esi], byte es:[edi]
dec ebp
sahf
imul esi, esi, 0x1f
adc ah, al
cmc
mov ah, bl
mov al, 0x69
mov bl, 0x9e
or al, 0x15
mov al, byte [0xb410eb8c]
sbb ebp, dword [ebp + 0x38]
int 0x9f
dec ebp
adc edx, dword [ebx + 0x3a884b9c]
mov eax, dword [0x2c0eda6e]
cmpsd dword [esi], dword es:[edi]
sbb al, 0x23
aam 0xa6
mov esi, 0x556158dc
mov eax, dword [0x7ce31b00]
xor al, 0xe6
jg 0x473a2e
sbb esp, ebx
jl 0x473a9b
out 0x7f, al
les ebp, [eax]
or dword [edi + 0x6f], esp
sub byte [ecx], cl
outsd dx, dword [si]
leave
test byte [ecx - 0x40], bl
imul esi, dword [esi + esi*4 - 0x1d], 0xffffffd6
out dx, eax
pop edx
jg 0x473a8b
cmc
jl 0x473a63
mov ebp, 0xa6526783
rcl dl, 1
invalid
mov cs, word [edi + 0x676199a2]
ret
sti
cmp al, 0xe6
in al, 0x87
inc ebx
insd dword es:[edi], dx
mov ecx, 0x51dcbbd5
inc edx
lahf
js 0x473b18
fnsave dword [edx - 0x6f0ae3a1]
or ebp, dword [eax + ebx*4]
fild word [0xe102b423]
pop ss
leave
fisub dword [ebx]
std
xchg ebx, eax
mov cl, 0xb6
sub byte [edi - 0x16], cl
mov eax, dword [0x26010e1c]
mov dword [ebx], 0x401e713d
in al, dx
push esi
dec ebp
je 0x473a6c
fdiv dword [ebx + 0x33c69371]
cmpsd dword [esi], dword es:[edi]
invalid
hlt
jg 0x473b54
sti
add eax, 0x3505e406
lodsb al, byte [esi]
lodsd eax, dword [esi]
xchg cl, bh
pop eax
clc
cmpsb byte [esi], byte es:[edi]
adc dword [ebx], ebp
mov bh, byte [edi]
and eax, 0xb6bf37a0
sub dword [0xc8773d7a], 0xffffffef
in eax, 0x74
xor eax, 0xaa716e9e
xor edi, eax
cmp dl, byte [eax + edx*8]
scasb al, byte es:[edi]
loopne 0x473b05
int1
stosb byte es:[edi], al
invalid
mov esp, 0x681aa0b8
adc esi, dword [esi]
fadd dword [edx - 0x68795eb4]
and dl, byte [ebp + 0x444c4ec7]
stosd dword es:[edi], eax
inc ebp
loope 0x473b9a
les edi, [edi]
not dword [ebp + 0x49948821]
dec ebx
jmp 0x473be3
clc
push cs
adc ebx, dword [ecx]
sbb byte [eax], ah
sbb eax, dword [ebp + 0x55]
imul ecx, dword [ebx + 0x45], 0x77
xchg ebp, eax
div byte [ecx - 0x36]
inc ebp
sub eax, 0x5908dd2
xchg ebp, eax
cmp esp, ecx
xor eax, 0x70948718
mov esp, 0x8d3872f7
push eax
cmp eax, 0x281fe06b
inc ecx
invalid
sub byte [eax - 0x10], ch
outsd dx, dword [esi]
adc dword [edi + 0x4f], esi
bound edi, qword [esi + edx - 0x63d0e009]
ja 0x473c49
int1
mov edx, 0x2cd01dd7
ljmp 0x37ab
xchg ecx, eax
push esi
sub byte [ebx + 0x43f2ec2], ah
clc
xchg dword [ecx], eax
or eax, 0x2ef75e5b
mov al, bl
invalid