joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10012f2b
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x10012fc8
push ebx
push esi
call fcn.10012ef4
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.10012e88
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x10012f75
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10012fc7
push edi
push eax
call fcn.1000e6ee
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x10012f95
call fcn.1000e6b4
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10012fc6
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.10012e88
add esp, 0x20
test eax, eax
jne 0x10012fb4
push edi
call fcn.1000e6b4
jmp 0x10012fbc
push ebx
call fcn.1000e6b4
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret
Function at 0x100182a1
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.1001821d
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x10018410
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x10018410
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x100183c5
jg 0x100182fd
test eax, eax
je 0x100183bb
push 1
push 0x1000
call fcn.1000fb9a
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x10018320
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x100183b2
push 0x8000
push ebx
call fcn.1001814e
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x10018349
jg 0x10018344
cmp ecx, 0x1000
jb 0x10018349
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.10011413
add esp, 0x10
cmp eax, 0xffffffff
je 0x1001838e
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x10018344
jl 0x10018375
test ecx, ecx
jne 0x10018336
push dword [ebp - 0xc]
push ebx
call fcn.1001814e
push esi
call fcn.1000e6b4
add esp, 0xc
xor ebx, ebx
jmp 0x1001841e
cmp byte [edi + 0x24], 0
je 0x100183a5
cmp dword [edi + 0x20], 5
jne 0x100183a5
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x100183b0
mov ebx, dword [edi + 0x18]
jmp 0x100183b2
xor ebx, ebx
push esi
call fcn.1000e6b4
pop ecx
jmp 0x1001841e
test ecx, ecx
jg 0x10018387
jl 0x100183c5
test eax, eax
jae 0x10018387
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.1000d33f
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x100183e5
cmp byte [edi + 0x1c], 0
je 0x10018387
jmp 0x10018416
push ebx
call fcn.10013821
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x10018387
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x1001841e
cmp byte [edi + 0x1c], 0
je 0x1001841b
mov ebx, dword [edi + 0x18]
jmp 0x1001841e
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.1000d33f
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1001a490
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1001a4bd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1001a4bd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x40d5d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x14], 0
mov byte [ebp - 8], 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x40d611
xor al, al
jmp 0x40d6a3
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x40d62c
xor al, al
jmp 0x40d6a3
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x40d696
cmp dword [ebp + 0x10], 0
jne 0x40d65e
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, dword [ebp + 0x14]
mov dword [edx], eax
mov byte [ebp - 8], 1
jmp 0x40d68d
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, dword [ebp + 0x14]
cmp dword [edx], eax
jl 0x40d68d
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax]
push ecx
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp + 0x10]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
mov byte [ebp - 8], 1
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.0040d780
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov al, byte [ebp - 8]
mov esp, ebp
pop ebp
ret

Function at 0x4150a0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push 0x104
push 0x42dcd0
call sub.Ufxtwl.dll_Ordinal_170
add esp, 8
mov eax, dword [ebp + 8]
push eax
push str.Output_Setup_No_d
push 0x42dcb0
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 0x42dcd0
push 0
push str.SortArticle
push 0x42dcb0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 4
jle 0x4150f8
mov dword [ebp - 8], 4
jmp 0x4150fe
mov ecx, dword [ebp - 4]
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0
jge 0x41510d
mov dword [ebp - 0xc], 0
jmp 0x415128
cmp dword [ebp - 4], 4
jle 0x41511c
mov dword [ebp - 0x10], 4
jmp 0x415122
mov edx, dword [ebp - 4]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret

Function at 0x4242eb
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
lea eax, [ebp - 4]
push esi
xor esi, esi
push eax
push 0x20019
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push Ordinal_3
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x424343
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x104
push eax
push dword [ebp + 8]
push esi
push esi
push 0x429b1c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x424336
push 1
pop esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x424345
xor eax, eax
pop esi
leave
ret 4
Function at 0x10002674
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1001a078]
jne 0x1000267e
repz ret
jmp fcn.1000327f

Function at 0x10008bac
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x1001a078]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.10005612
and dword [ebp - 0x14], 0
cmp dword [0x1001bfc0], 0
mov dword [ebp - 0x18], eax
jne 0x10008c5f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x10008d07
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x10008d07
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x1001bfc0], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x1001bfc4], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x1001bfc8], eax
call edi
push eax
call esi
mov dword [0x1001bfd0], eax
test eax, eax
je 0x10008c5f
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x1001bfcc], eax
mov eax, dword [0x1001bfcc]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x10008cb8
cmp dword [0x1001bfd0], ecx
je 0x10008cb8
push eax
call esi
push dword [0x1001bfd0]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x10008cb8
test ebx, ebx
je 0x10008cb8
call edi
test eax, eax
je 0x10008caf
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x10008caf
test byte [ebp - 8], 1
jne 0x10008cb8
or dword [ebp + 0x10], 0x200000
jmp 0x10008ceb
mov eax, dword [0x1001bfc4]
cmp eax, dword [ebp - 0x18]
je 0x10008ceb
push eax
call esi
test eax, eax
je 0x10008ceb
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x10008ceb
mov eax, dword [0x1001bfc8]
cmp eax, dword [ebp - 0x18]
je 0x10008ceb
push eax
call esi
test eax, eax
je 0x10008ceb
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x1001bfc0]
call esi
test eax, eax
je 0x10008d07
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x10008d09
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10002674
leave
ret
Function at 0x401007
Capabilities:
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x43c
mov eax, dword [ebx]
mov dword [ebp - 0xc], eax
mov eax, dword [0x42a368]
mov dword [ebp - 0x38], eax
mov eax, dword [0x42a36c]
push esi
push edi
mov edi, dword [ebx + 4]
xor esi, esi
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], esi
call fcn.00401000
mov eax, dword [0x42a370]
add dword [ebp - 0x20], 0x23f
mov dword [ebp - 0x34], eax
mov eax, dword [0x42a374]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], 0x20
mov dword [ebp - 0x14], 2
add dword [ebp - 0x14], 3
mov eax, dword [ebp - 0xc]
shl eax, 4
cmp dword [0x1a24174], 0xc
mov dword [ebp - 4], eax
jne 0x401086
push esi
lea eax, [ebp - 0x3c]
push eax
push esi
lea eax, [ebp - 0x43c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadConsoleW]
mov eax, dword [ebp - 0x34]
add dword [ebp - 4], eax
mov eax, dword [0x1a24174]
cmp eax, 0xfa9
jne 0x4010a2
mov dword [0x1a24170], 0xedeb2e40
cmp eax, 0x3eb
jne 0x4010b6
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov dword [0x1a240c4], esi
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0xc]
add eax, ecx
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0xc]
shr eax, 5
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x2c]
add dword [ebp - 8], eax
mov eax, dword [ebp - 4]
mov dword [0x1a2416c], 0xf4ea3dee
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x24], esi
mov eax, dword [ebp - 0x18]
add dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
xor dword [ebp - 0x1c], eax
mov eax, dword [ebp - 8]
xor eax, dword [ebp - 0x1c]
sub edi, eax
mov dword [ebp - 8], eax
mov eax, edi
shl eax, 4
mov dword [ebp - 0x24], edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x38]
add dword [ebp - 4], eax
mov dword [ebp - 0x10], esi
mov eax, dword [ebp - 0x20]
add dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x24]
nop
add dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x14]
mov eax, edi
shr eax, cl
add eax, dword [ebp - 0x30]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x18]
xor dword [ebp - 4], eax
cmp dword [0x1a24174], 0xb03
jne 0x401154
push esi
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasesLengthW]
push str.soleyalidep
push esi
push esi
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
mov eax, dword [ebp - 4]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x1c], esi
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 8]
xor dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
sub dword [ebp - 0xc], eax
add dword [ebp - 0x20], 0x61c88647
dec dword [ebp - 0x28]
jne 0x401055
mov eax, dword [ebp - 0xc]
mov dword [ebx + 4], edi
pop edi
mov dword [ebx], eax
pop esi
leave
ret
Function at 0x404dd2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4296d0]
jne 0x404ddc
repz ret
jmp fcn.004097f5

Function at 0x409e1e
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00404edc
and dword [ebp - 4], 0
cmp dword [0x43c9ac], 0
mov ebx, eax
jne 0x409ecf
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x409f80
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x409f80
push eax
call fcn.00404e6a
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x43c9ac], eax
call esi
push eax
call fcn.00404e6a
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x43c9b0], eax
call esi
push eax
call fcn.00404e6a
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x43c9b4], eax
call esi
push eax
call fcn.00404e6a
pop ecx
mov dword [0x43c9bc], eax
test eax, eax
je 0x409ecf
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00404e6a
pop ecx
mov dword [0x43c9b8], eax
mov eax, dword [0x43c9b8]
cmp eax, ebx
je 0x409f27
cmp dword [0x43c9bc], ebx
je 0x409f27
push eax
call fcn.00404ee5
push dword [0x43c9bc]
mov esi, eax
call fcn.00404ee5
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x409f27
test edi, edi
je 0x409f27
call esi
test eax, eax
je 0x409f1e
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x409f1e
test byte [ebp - 0xc], 1
jne 0x409f27
or dword [ebp + 0x10], 0x200000
jmp 0x409f60
mov eax, dword [0x43c9b0]
cmp eax, ebx
je 0x409f60
push eax
call fcn.00404ee5
pop ecx
test eax, eax
je 0x409f60
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x409f60
mov eax, dword [0x43c9b4]
cmp eax, ebx
je 0x409f60
push eax
call fcn.00404ee5
pop ecx
test eax, eax
je 0x409f60
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x43c9ac]
call fcn.00404ee5
pop ecx
test eax, eax
je 0x409f80
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x409f82
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x425f00
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov eax, dword [ebp - 0x378]
mov ecx, dword [ebp - 4]
lea eax, [ecx + eax - 0x1d]
push eax
lea eax, [ebp - 0x394]
push eax
call fcn.00424a97
add esp, 0xc
and dword [ebp - 0x700], 0
jmp 0x425f33
invalid
invalid

Function at 0x42c13c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
mov eax, dword [esi]
cmp eax, 0x84
jg 0x42c16d
je 0x42c1c7
sub eax, 7
je 0x42c18e
dec eax
je 0x42c1b8
sub eax, 0x17
je 0x42c248
jmp 0x42c286
add eax, 0xffffff00
sub eax, 9
jb 0x42c234
add eax, 0xffffff09
sub eax, 0xb
jb 0x42c21e
jmp 0x42c286
mov eax, ebx
call fcn.0043c364
mov edi, eax
test edi, edi
je 0x42c2e6
mov edx, ebx
mov eax, edi
mov ecx, dword [eax]
call dword [ecx + 0xc8]
test al, al
je 0x42c2ef
jmp 0x42c2e6
test byte [ebx + 0x44], 0x20
jne 0x42c2ef
jmp 0x42c2e6
mov edx, esi
mov eax, ebx
call fcn.00429a28
cmp dword [esi + 0xc], 0xffffffff
jne 0x42c2ef
lea edx, [ebp - 0x120]
mov eax, dword [esi + 8]
call fcn.00407cdc
lea edx, [ebp - 0x120]
lea ecx, [ebp - 0x118]
mov eax, ebx
call fcn.004284d8
lea edx, [ebp - 0x118]
xor ecx, ecx
mov eax, ebx
call fcn.0042bfec
test eax, eax
je 0x42c2ef
mov dword [esi + 0xc], 1
jmp 0x42c2ef
mov edx, esi
mov eax, ebx
call fcn.0042c0b0
test al, al
jne 0x42c2ef
jmp 0x42c2e6
mov eax, ebx
call fcn.004290a0
test al, al
jne 0x42c2ef
jmp 0x42c2e6
mov eax, ebx
call fcn.0042e66c
mov edi, eax
call sub.user32.dll_GetCapture
cmp edi, eax
jne 0x42c2e6
cmp dword [0x46f788], 0
je 0x42c2e6
mov eax, dword [0x46f788]
cmp ebx, dword [eax + 0x24]
jne 0x42c2e6
push 0
xor ecx, ecx
mov edx, 0x1f
mov eax, dword [0x46f788]
call fcn.00429944
jmp 0x42c2e6
mov eax, dword [0x47172c]
cmp byte [eax + 0x20], 0
je 0x42c2e6
mov eax, dword [0x47172c]
cmp dword [eax + 0x1c], 0
je 0x42c2e6
mov eax, dword [esi]
mov edx, dword [0x47172c]
cmp eax, dword [edx + 0x1c]
jne 0x42c2e6
lea eax, [ebp - 0x110]
push eax
call sub.user32.dll_GetKeyboardState
mov eax, dword [esi]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x110]
call fcn.0043c278
mov byte [ebp - 0xc], al
mov ax, word [esi + 4]
mov word [ebp - 0xa], ax
mov eax, dword [esi + 8]
mov dword [ebp - 8], eax
lea edx, [ebp - 0x10]
mov eax, ebx
mov bx, 0xffb9
call fcn.00403138
jmp 0x42c2ef
mov edx, esi
mov eax, ebx
call fcn.00429a28
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x442918
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x442abd
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x40f698]
call fcn.00402f2c
mov edx, dword [ebp - 4]
mov dword [edx + 0x28], eax
mov eax, dword [ebp - 4]
add eax, 0x2c
call fcn.00403bac
push 0
call sub.user32.dll_GetKeyboardLayout
mov edx, dword [ebp - 4]
mov dword [edx + 0x30], eax
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x442a93
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.00432ccc
test al, al
je 0x442a86
lea eax, [ebp - 0xc]
push eax
push 0xf003f
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x442acc
lea eax, [ebp - 0x254]
call fcn.00409970
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x442a86
xor eax, eax
push ebp
push 0x442a7f
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x442b04
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x442a68
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00403dd8
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov ebx, dword [eax]
call dword [ebx + 0x38]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x30]
jne 0x442a68
mov eax, dword [ebp - 4]
add eax, 0x2c
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00403dd8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x442a86
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x442989
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov byte [eax + 0x19], 0
mov dl, 1
call fcn.00412e84
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x442ac4
lea eax, [ebp - 0x260]
call fcn.00403bac
ret
Function at 0x444278
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0x8c], 0
je 0x4442ad
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x24]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00403c90
jmp 0x4442b7
mov eax, esi
mov edx, dword [ebx + 0x74]
call fcn.00403c44
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x44518c
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x6c]
test esi, esi
je 0x4451c4
mov eax, esi
call fcn.0042ea94
test al, al
je 0x4451c4
mov eax, dword [ebx + 0x6c]
call fcn.0042e66c
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4451c4
push 0
mov eax, dword [ebx + 0x6c]
call fcn.0042e66c
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x451dab
Capabilities:
Terminate process

Disassembly:
jmp 0x4a53c8
push 0x17
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x4a53d9
push 5
pop ecx
int 0x29
push esi
push 1
mov esi, 0xc0000417
push esi
push 2
call fcn.0045073f
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop esi
ret

Function at 0x452d28
Capabilities:
Parse pe header

Disassembly:
jmp 0x496b5b
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x496b9b
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x496b9b
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x496b9b
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x496b9b
cmp dword [ecx + 0x74], 0xe
jbe 0x496b9b
cmp dword [ecx + 0xe8], 0
je 0x496b9b
mov al, 1
ret
xor al, al
ret

Function at 0x453c87
Capabilities:
Query environment variable

Disassembly:
jmp 0x4e542b
mov edi, edi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x4e543f
xor edi, edi
jmp 0x4e5476
push ebx
push esi
call fcn.004e5333
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.0045241d
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4e5466
push ebx
push esi
push edi
call fcn.00453df9
add esp, 0xc
push 0
call fcn.004508a2
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
pop ebx
mov eax, edi
pop edi
pop esi
ret
Function at 0x411b60
Capabilities:
Get hostname

Disassembly:
push esi
push edi
mov edi, dword [esp + 0x10]
test edi, edi
jle 0x411b84
mov esi, dword [esp + 0xc]
test esi, esi
je 0x411b84
push edi
push esi
mov byte [esi], 0
call sub.nutsock4.dll_gethostname
add esp, 8
mov byte [esi + edi - 1], 0
pop edi
pop esi
ret
Function at 0x700e370
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
pushal
call 0x700e37f
pop dword [ebp - 0x38]
mov eax, 0x737458e8
sub eax, 0x6c737569
sub dword [ebp - 0x38], eax
mov dword [ebp - 0x48], 0x6324b19
add dword [ebp - 0x48], 0x481ffa32
mov dword [ebp - 0x44], 0x4d80834c
add dword [ebp - 0x44], 0xe4b2c8f9
mov dword [ebp - 0x40], 0xa8a465b1
sub dword [ebp - 0x40], 0x5c582183
mov dword [ebp - 0x3c], 0x81543085
add dword [ebp - 0x3c], 0x7eabcf7b
lea eax, [ebp - 0x48]
push eax
mov eax, 0x3cc57a81
add eax, 0xca3ba5af
add eax, dword [ebp - 0x38]
call dword [eax]
mov dword [ebp - 0x48], 0xbee1e841
add dword [ebp - 0x48], 0xb5908115
mov dword [ebp - 0x44], 0x6d61fde7
add dword [ebp - 0x44], 0xd40a638e
mov dword [ebp - 0x40], 0x589b18b7
add dword [ebp - 0x40], 0xad453b5
mov dword [ebp - 0x3c], 0x36d6b99c
sub dword [ebp - 0x3c], 0x36d6b99c
lea ebx, [ebp - 0x48]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x38]
call dword [eax]
push 0x40
push 0x1000
push 0x36ba5
push 0
call eax
mov ecx, 0xb2b6e9f7
sub ecx, 0xb2b6b168
xor edx, edx
add edx, eax
mov ebx, 0x701e000
add ebx, dword [ebp - 0x38]
mov esi, 0xc571a769
sub esi, 0x7279dc45
sub dword [ebp - 0x30], edi
mov edi, dword [ebx]
mov dword [ebp - 0xc], 0x1bf641bc
xor edi, esi
add dword [ebp - 0x1c], 0x36febf18
mov dword [edx], edi
add dword [ebp - 0x28], 0x84a8f2d4
add edx, 4
add ebx, 4
loop 0x700e498
add eax, 0x9b7fce34
add eax, 0x648106db
mov ebx, eax
add eax, 0x213512ad
sub eax, 0x213512a8
mov ecx, 0x9707a981
add ecx, 0x6ff8567f
add ecx, dword [ebp - 0x38]
call ebx
leave
ret