joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100b6758
Capabilities:
Get hostname

Disassembly:
push 0x43c
mov eax, 0x100e513e
call fcn.100c745c
mov edi, dword [ebp + 8]
mov ecx, edi
push 0xf
push str.unknown_machine
call fcn.100426a0
push 0x200
lea eax, [ebp - 0x210]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x414], 0x100
lea eax, [ebp - 0x414]
mov esi, 0xff
push eax
lea eax, [ebp - 0x210]
push eax
push 5
call dword [sym.imp.kernel32.dll_GetComputerNameExW]
test eax, eax
je 0x100b688e
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x448]
call fcn.100426a0
and dword [ebp - 4], 0
cmp dword [ebp - 0x438], 0
je 0x100b67fe
cmp dword [ebp - 0x434], 8
lea eax, [ebp - 0x448]
push edi
cmovae eax, dword [ebp - 0x448]
push eax
call fcn.100426a0
pop ecx
pop ecx
xor esi, esi
jmp 0x100b6881
push 0x200
lea eax, [ebp - 0x410]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x418], 0x100
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 0x410]
push eax
push 1
call dword [sym.imp.kernel32.dll_GetComputerNameExW]
test eax, eax
je 0x100b6881
lea eax, [ebp - 0x410]
push eax
lea ecx, [ebp - 0x430]
call fcn.100426a0
cmp dword [ebp - 0x420], 0
mov byte [ebp - 4], 1
je 0x100b6876
cmp dword [ebp - 0x41c], 8
lea eax, [ebp - 0x430]
push edi
cmovae eax, dword [ebp - 0x430]
push eax
call fcn.100426a0
pop ecx
pop ecx
xor esi, esi
lea ecx, [ebp - 0x430]
call fcn.100227b7
lea ecx, [ebp - 0x448]
call fcn.100227b7
jmp 0x100b6891
xor esi, esi
inc esi
mov eax, esi
call fcn.100c7406
ret
Function at 0x100b79f4
Capabilities:
Get hostname

Disassembly:
push 0x224
mov eax, 0x100e540a
call fcn.100c745c
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x214]
push 0x202
push 0
xor ebx, ebx
push eax
inc ebx
mov byte [esi], 0
call sub.VCRUNTIME140.dll_memset
and dword [ebp - 0x220], 0
xor eax, eax
add esp, 0xc
mov dword [ebp - 0x218], 0x100
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
and dword [ebp - 4], eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x214]
push eax
push 2
call dword [sym.imp.kernel32.dll_GetComputerNameExW]
test eax, eax
je 0x100b7a82
lea eax, [ebp - 0x214]
push eax
lea ecx, [ebp - 0x230]
call fcn.100426a0
cmp dword [ebp - 0x220], 0
je 0x100b7a82
mov byte [esi], bl
xor ebx, ebx
mov ecx, dword [ebp - 0x21c]
cmp ecx, 8
jb 0x100b7aa2
lea ecx, [ecx*2 + 2]
push ecx
push dword [ebp - 0x230]
call fcn.100426a0
pop ecx
pop ecx
mov eax, ebx
call fcn.100c7406
ret

Function at 0x100b7b4c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100e543a
mov eax, dword fs:[0]
push eax
mov eax, 0x1010
call fcn.100c8430
mov eax, dword [0x1016a39c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor edi, edi
lea eax, [ebp - 0x810]
mov esi, 0x800
mov dword [ebp - 4], edi
push esi
push edi
push eax
mov dword [ebp - 0x1014], edi
call sub.VCRUNTIME140.dll_memset
push esi
lea eax, [ebp - 0x1010]
push edi
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x18
lea eax, [ebp + 8]
mov dword [ebp - 0x101c], eax
mov esi, 0x400
lea eax, [ebp - 0x1014]
mov dword [ebp - 0x1018], eax
lea eax, [ebp - 0x810]
push esi
push eax
call dword [sym.imp.kernel32.dll_GetSystemDirectoryW]
test eax, eax
je 0x100b7bee
lea eax, [ebp - 0x810]
push eax
lea ecx, [ebp - 0x101c]
call fcn.100b57ae
test eax, eax
jne 0x100b7c12
push esi
lea eax, [ebp - 0x1010]
push eax
call dword [sym.imp.kernel32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x100b7c12
lea eax, [ebp - 0x1010]
push eax
lea ecx, [ebp - 0x101c]
call fcn.100b57ae
mov esi, dword [ebp - 0x1014]
lea ecx, [ebp + 8]
call fcn.100227b7
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100c73e0
leave
ret
Function at 0x100b8335
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x58
mov eax, 0x100e54dd
call fcn.100c74ca
mov eax, dword [ebp + 0xc]
xor ebx, ebx
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x28], eax
mov eax, ebx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x18], ebx
lea edx, [ebp - 0x20]
push edx
push ebx
lea edx, [ebp - 0x18]
push edx
push ebx
lea edx, [ebp - 0x1c]
push edx
push ebx
push eax
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x100b8445
mov eax, dword [ebp - 0x1c]
xor ecx, ecx
push 2
inc eax
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.100426a0
pop ecx
push dword [ebp - 0x20]
mov esi, eax
call fcn.100426a0
pop ecx
mov edi, eax
lea eax, [ebp - 0x20]
push eax
push edi
lea eax, [ebp - 0x18]
push eax
push ebx
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x2c]
push esi
push dword [ebp - 0x24]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x100b8422
mov eax, dword [ebp - 0x1c]
xor ecx, ecx
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x30], edi
mov word [esi + eax*2], cx
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x64]
call fcn.10026c47
mov ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x64]
push eax
mov byte [ebp - 4], 1
call fcn.100426a0
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], bl
call fcn.100227b7
lea ecx, [ebp - 0x64]
call fcn.100227b7
push esi
call fcn.100c7651
push edi
call fcn.100c7651
mov eax, dword [ebp - 0x24]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x2c]
inc eax
mov dword [ebp - 0x24], eax
jmp 0x100b8360
xor ebx, ebx
push esi
inc ebx
call fcn.100c7651
push edi
call fcn.100c7651
pop ecx
pop ecx
jmp 0x100b8445
mov eax, ebx
call fcn.100c7417
ret

Function at 0x100b84f0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x14
mov eax, 0x100e5527
call fcn.100c74ca
mov esi, dword [ebp + 0xc]
xor edi, edi
mov eax, dword [ebp + 0x10]
inc edi
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x1c], eax
mov eax, esi
cmp dword [esi + 0x14], 8
mov dword [ebp - 0x20], ecx
jb 0x100b8518
mov eax, dword [esi]
lea edx, [ebp - 0x18]
xor ebx, ebx
push edx
push ebx
push ebx
push ebx
push eax
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x100b8591
mov eax, dword [ebp - 0x18]
xor ecx, ecx
push 2
inc eax
mov dword [ebp - 4], ebx
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.100426a0
cmp dword [esi + 0x14], 8
mov ebx, eax
pop ecx
jb 0x100b8554
mov esi, dword [esi]
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x20]
push ebx
push 0
push 0
push esi
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x100b8578
mov ecx, dword [ebp - 0x1c]
push ebx
call fcn.100426a0
xor edi, edi
push ebx
call fcn.100c7651
pop ecx
jmp 0x100b8591
mov eax, edi
call fcn.100c7417
ret
Function at 0x100bcb79
Capabilities:
Check if file exists

Disassembly:
push 0x38
mov eax, 0x100e5f38
call fcn.100c745c
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x40]
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
mov ebx, dword [ebp + 0x14]
and dword [ebp - 0x30], 0
and dword [ebp - 0x2c], 0
push eax
mov dword [ebp - 0x44], esi
call fcn.100426a0
and dword [ebp - 4], 0
lea ecx, [ebp - 0x40]
push 1
push 0x100f25f4
call fcn.100426a0
push 2
push 0x1013edec
lea ecx, [ebp - 0x40]
call fcn.100426a0
push 1
push 0x100f25f4
lea ecx, [ebp - 0x40]
call fcn.100426a0
cmp dword [edi + 0x14], 0x10
mov eax, edi
jb 0x100bcbe0
mov eax, dword [edi]
push dword [edi + 0x10]
lea ecx, [ebp - 0x40]
push eax
call fcn.100426a0
push 1
push 0x100eef5c
lea ecx, [ebp - 0x40]
call fcn.100426a0
cmp dword [ebx + 0x14], 0x10
mov eax, ebx
jb 0x100bcc05
mov eax, dword [ebx]
push dword [ebx + 0x10]
lea ecx, [ebp - 0x40]
push eax
call fcn.100426a0
push 7
xor ebx, ebx
xor eax, eax
pop edi
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], edi
mov word [ebp - 0x28], ax
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.100426a0
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
pop ecx
cmovae eax, dword [ebp - 0x28]
pop ecx
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov ecx, esi
test eax, eax
jne 0x100bcc89
push 0x100eadb0
call fcn.100426a0
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x100bcc71
lea eax, [eax*2 + 2]
push eax
push dword [ebp - 0x28]
call fcn.100426a0
pop ecx
pop ecx
xor eax, eax
mov dword [ebp - 0x18], ebx
mov word [ebp - 0x28], ax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x14], edi
cmp eax, 0x10
jb 0x100bcccc
inc eax
push eax
jmp 0x100bccc2
lea eax, [ebp - 0x40]
push eax
call fcn.100426a0
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x100bccac
lea eax, [eax*2 + 2]
push eax
push dword [ebp - 0x28]
call fcn.100426a0
pop ecx
pop ecx
mov ecx, dword [ebp - 0x2c]
xor eax, eax
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], edi
mov word [ebp - 0x28], ax
cmp ecx, 0x10
jb 0x100bcccc
inc ecx
push ecx
push dword [ebp - 0x40]
call fcn.100426a0
pop ecx
pop ecx
mov eax, esi
call fcn.100c7406
ret
Function at 0x100c687e
Capabilities:
Get file size

Disassembly:
push 0x74
mov eax, 0x100e79db
call fcn.100c745c
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x80]
mov edi, dword [ebp + 0xc]
xor ebx, ebx
push 0x50
push ebx
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x80]
call fcn.100419f1
push esi
lea eax, [ebp - 0x30]
mov dword [ebp - 4], ebx
push eax
lea ecx, [ebp - 0x80]
call fcn.100426a0
cmp dword [ebp - 0x1c], 8
lea eax, [ebp - 0x30]
push ebx
cmovae eax, dword [ebp - 0x30]
push 0x80
push 3
push ebx
push 3
push SysReAllocString
push eax
mov byte [ebp - 4], 1
call dword [sym.imp.kernel32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x100c6909
lea eax, [ebp - 0x18]
push eax
push esi
call dword [sym.imp.kernel32.dll_GetFileSizeEx]
test eax, eax
je 0x100c6902
mov eax, dword [ebp - 0x18]
mov bl, 1
mov dword [edi], eax
mov eax, dword [ebp - 0x14]
mov dword [edi + 4], eax
push esi
call dword [sym.imp.kernel32.dll_CloseHandle]
lea ecx, [ebp - 0x30]
call fcn.100227b7
lea ecx, [ebp - 0x80]
call fcn.10041ada
mov al, bl
call fcn.100c7406
ret

Function at 0x100c6921
Capabilities:
Check if file exists

Disassembly:
push 0x6c
mov eax, 0x100e7a13
call fcn.100c745c
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x78]
push 0x50
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x78]
call fcn.100419f1
and dword [ebp - 4], 0
lea eax, [ebp - 0x28]
push esi
push eax
lea ecx, [ebp - 0x78]
call fcn.100426a0
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 1
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
lea ecx, [ebp - 0x28]
setne bl
call fcn.100227b7
lea ecx, [ebp - 0x78]
call fcn.10041ada
mov al, bl
call fcn.100c7406
ret
Function at 0x40fa6e
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
pushal
call 0x40fa7d
pop dword [ebp - 0x40]
mov eax, 0xc0c6f7a0
add eax, 0x3f7a02dd
sub dword [ebp - 0x40], eax
push 0x40
push 0x1000
push 0x529a1
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x40]
call dword [eax]
mov ecx, 0x3d0691ed
add ecx, 0xc2f9bee7
xor edi, edi
add edi, eax
mov ebx, 0x661a81
sub ebx, 0x1d8c81
add ebx, dword [ebp - 0x40]
mov edx, 0x9bbbfa3
xor dword [ebp - 8], 0x9495aaca
mov esi, dword [ebx]
xor dword [ebp - 0xc], esi
add esi, edx
add dword [ebp - 8], ebx
mov dword [edi], esi
add dword [ebp - 0x2c], 0x844db4c9
add edi, 4
add ebx, 0x28991f24
add ebx, 0xd766e0e0
loop 0x40fad3
add eax, 0x13623
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x275e252c
sub ecx, 0x271e252c
add ecx, dword [ebp - 0x40]
call ebx
leave
ret

Function at 0x4400c9
Capabilities:
Encrypt data using dpapi

Disassembly:
push esi
push edi
push 0x46c6d0
push str.AdvApi32.dll
call main
mov edi, dword [sym.imp.kernel32.dll_GetProcAddress]
mov esi, eax
test esi, esi
js 0x44010c
push str.SystemFunction040
push dword [0x46c6d0]
call edi
push str.SystemFunction041
push dword [0x46c6d0]
mov dword [0x46c6c0], eax
call edi
mov dword [0x46c6c4], eax
jmp 0x440111
mov eax, dword [0x46c6c4]
cmp dword [0x46c6c0], 0
je 0x440122
test eax, eax
jne 0x4401c9
push 0x46c6d4
push str.Crypt32.dll
call main
mov esi, eax
test esi, esi
js 0x4401d3
push str.CryptProtectMemory
push dword [0x46c6d4]
call edi
cmp dword [0x46c6c0], 0
mov dword [0x46c6c8], eax
jne 0x440187
test eax, eax
jne 0x440187
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x440171
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x440178
mov esi, 0x80004005
push esi
push 0x28
push str.c:_agent_work138_s_srclibsdutilcryputil.cpp
call fcn.004038f5
jmp 0x4401d3
push str.CryptUnprotectMemory
push dword [0x46c6d4]
call edi
cmp dword [0x46c6c4], 0
mov dword [0x46c6cc], eax
jne 0x4401c9
test eax, eax
jne 0x4401c9
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x4401bd
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x4401c4
mov esi, 0x80004005
push esi
push 0x2d
jmp 0x44017b
mov dword [0x46c6d8], 1
pop edi
mov eax, esi
pop esi
ret
Function at 0x403059
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push ebx
push esi
xor esi, esi
cmp eax, esi
jl 0x403084
mov ecx, dword [0x424798]
push esi
add eax, ecx
push esi
push eax
mov dword [0x4178dc], eax
push dword [0x40a01c]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 4
call fcn.00403161
cmp eax, esi
jl 0x40315b
lea eax, [ebp + 8]
push 4
push eax
push dword [0x40a01c]
call fcn.00405ce5
test eax, eax
je 0x40314b
push dword [ebp + 8]
add dword [0x4178dc], 4
call fcn.00403161
mov ebx, eax
cmp ebx, esi
jl 0x403159
cmp dword [ebp + 0x10], esi
jne 0x403127
cmp dword [ebp + 8], esi
jle 0x403159
mov esi, 0x4138d8
cmp dword [ebp + 8], 0x4000
mov eax, dword [ebp + 8]
jl 0x4030e9
mov eax, 0x4000
push eax
push esi
push dword [0x40a01c]
mov dword [ebp - 4], eax
call fcn.00405ce5
test eax, eax
je 0x40314b
push dword [ebp - 4]
push esi
push dword [ebp + 0xc]
call fcn.00405d14
test eax, eax
je 0x403123
mov eax, dword [ebp - 4]
sub dword [ebp + 8], eax
add dword [0x4178dc], eax
add ebx, eax
cmp dword [ebp + 8], 0
jg 0x4030d8
jmp 0x403159
push 0xfffffffffffffffe
jmp 0x40314d
mov eax, dword [ebp + 8]
cmp eax, dword [ebp + 0x14]
jl 0x403132
mov eax, dword [ebp + 0x14]
lea ecx, [ebp - 4]
push esi
push ecx
push eax
push dword [ebp + 0x10]
push dword [0x40a01c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x403150
push 0xfffffffffffffffd
pop eax
jmp 0x40315b
mov ebx, dword [ebp - 4]
add dword [0x4178dc], ebx
mov eax, ebx
pop esi
pop ebx
leave
ret 0x10

Function at 0x405f5a
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push dword [ebp - 0x3a4]
push dword [ebp + 0x14]
call fcn.00403ea0
add esp, 0xc
mov dword [ebp - 0x37c], eax
cmp dword [ebp - 0x37c], 0
je 0x405f7c
jmp 0x405f81
jmp fcn.0040587d
cmp dword [ebp - 0x37c], 0

Function at 0x4063fe
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
push esi
mov esi, 0x104
lea eax, [ebp - 0x120]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
cmp eax, esi
pop esi
jbe 0x406422
xor eax, eax
test eax, eax
je 0x406434
cmp byte [ebp + eax - 0x121], 0x5c
je 0x406434
xor ecx, ecx
jmp 0x406437
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx + 0x40a014]
lea eax, [ebp + eax - 0x120]
push ecx
push str._s_s.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x120]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
leave
ret 4

Function at 0x406523
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x4232c4], 0
push esi
jne 0x40655a
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406534
mov dword [ecx*4 + 0x4232c0], eax
inc ecx
cmp ecx, 0x100
jl 0x40652f
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x40658b
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x4232c0]
xor eax, esi
inc ecx
dec edx
jne 0x40656d
pop edi
not eax
pop esi
ret 0xc
Function at 0x4015ad
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x82507c]
jne 0x4015b7
repz ret
jmp fcn.00401f40

Function at 0x406b6c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x82507c]
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.004044eb
and dword [ebp - 0x14], 0
cmp dword [0x827d58], 0
mov dword [ebp - 0x18], eax
jne 0x406c1f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x406cc7
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x406cc7
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x827d58], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x827d5c], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x827d60], eax
call edi
push eax
call esi
mov dword [0x827d68], eax
test eax, eax
je 0x406c1f
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x827d64], eax
mov eax, dword [0x827d64]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x406c78
cmp dword [0x827d68], ecx
je 0x406c78
push eax
call esi
push dword [0x827d68]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x406c78
test ebx, ebx
je 0x406c78
call edi
test eax, eax
je 0x406c6f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x406c6f
test byte [ebp - 8], 1
jne 0x406c78
or dword [ebp + 0x10], 0x200000
jmp 0x406cab
mov eax, dword [0x827d5c]
cmp eax, dword [ebp - 0x18]
je 0x406cab
push eax
call esi
test eax, eax
je 0x406cab
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x406cab
mov eax, dword [0x827d60]
cmp eax, dword [ebp - 0x18]
je 0x406cab
push eax
call esi
test eax, eax
je 0x406cab
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x827d58]
call esi
test eax, eax
je 0x406cc7
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x406cc9
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004015ad
leave
ret
Function at 0x100ec50
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xa000]
push edi
jmp 0x100ec6a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x100ec71
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x100ec60
mov eax, 1
add ebx, ebx
jne 0x100ec83
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x100ec78
jne 0x100ec94
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x100ec78
xor ecx, ecx
sub eax, 3
jb 0x100eca8
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x100ed1a
mov ebp, eax
add ebx, ebx
jne 0x100ecb3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x100ecc0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x100ece4
inc ecx
add ebx, ebx
jne 0x100ecd0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x100ecc5
jne 0x100ece1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x100ecc5
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x100ed04
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x100ecf5
jmp 0x100ec66
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x100ed04
add edi, ecx
jmp 0x100ec66
pop esi
mov edi, esi
mov ecx, 0x27f
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x100ed22
cmp byte [edi], 1
jne 0x100ed22
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 0x100ed27
lea edi, [esi + 0xc000]
mov eax, dword [edi]
or eax, eax
je 0x100ed9f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xfbfc]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xfcc0]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x100ed54
mov ecx, edi
jns 0x100ed83
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xfcc8]
or eax, eax
je 0x100ed99
mov dword [ebx], eax
add ebx, 4
jmp 0x100ed71
call dword [esi + 0xfcc4]
mov ebp, dword [esi + 0xfccc]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x207]
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 0x100edd3
sub esp, 0xffffff80
jmp 0x1005bc6
Function at 0x433002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
mov eax, section..text
nop
push 4
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x433072
nop
nop
nop
nop
nop
mov ebx, 0x40de38
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
pop eax
nop
nop
nop
nop
nop
nop
mov esi, 0x11a4573d
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x433060
nop
mov eax, section..data
nop
nop
cmp eax, 0
nop
nop
nop
je 0x4330d2
nop
nop
nop
mov ebx, 0x4304d8
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
nop
push eax
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x2bff0bd6
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x4330c0
nop
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x403324
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00404a84
test esi, esi
jne 0x40335a
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00404b74
jmp 0x403378
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004031c8
mov edi, eax
test esi, esi
je 0x403378
cmp dword [ebx], 0
je 0x403378
dec esi
jmp 0x403361
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x403a50
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x464020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403ae8
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403ac8
xor eax, eax
push ebp
push 0x403ac1
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 0x403b04
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403ac8
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
movzx eax, word [0x464020]
and ax, 0xffc0
movzx edx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x464020], ax
mov esp, ebp
pop ebp
ret

Function at 0x404904
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x46604c], 0
je 0x404965
cmp word [0x466220], 0xd7b2
jne 0x40492d
cmp dword [0x466228], 0
jbe 0x40492d
mov eax, 0x46621c
call dword [0x466238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40498c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x46402c], 0
jne 0x404981
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret