joyce8/EMBER2024-capa huggingface dataset:
Function at 0x495300
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x50c
mov eax, dword [0x4f2be0]
xor eax, esp
mov dword [esp + 0x508], eax
push ebp
mov ebp, dword [esp + 0x514]
test edi, edi
je 0x49547d
cmp ebp, 0x20
jb 0x49547d
push 0x400
lea eax, [esp + 0x110]
push 0
push eax
mov dword [esp + 0x14], 1
mov dword [esp + 0x10], 0x400
call fcn.00474a10
add esp, 0xc
lea ecx, [esp + 4]
push ecx
lea edx, [esp + 0x110]
push edx
lea eax, [esp + 0x10]
push eax
push 0x4cbe6c
push str.Software360SafeLiveup
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
test eax, eax
jne 0x49547d
lea eax, [esp + 0x10c]
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x495390
sub eax, edx
cmp eax, 0x40
jne 0x49547d
push ebx
lea edx, [eax + 0x40]
push esi
lea eax, [esp + 0x14]
lea esi, [esp + 0x114]
mov ecx, eax
sub esi, ecx
lea ecx, [edx - 0x60]
test ecx, ecx
je 0x4953ce
mov cl, byte [esi + eax]
test cl, cl
je 0x4953ce
mov byte [eax], cl
inc eax
sub edx, 1
jne 0x4953b6
jmp 0x4953d2
test edx, edx
jne 0x4953d3
dec eax
mov byte [eax], 0
lea eax, [esp + 0x94]
lea edx, [esp + 0x134]
mov ecx, eax
mov esi, 0x80
sub edx, ecx
lea ecx, [ecx]
lea ecx, [esi + 0x7fffff7e]
test ecx, ecx
je 0x49540b
mov cl, byte [edx + eax]
test cl, cl
je 0x49540b
mov byte [eax], cl
inc eax
sub esi, 1
jne 0x4953f0
jmp 0x49540f
test esi, esi
jne 0x495410
dec eax
push 0x400
lea edx, [esp + 0x118]
push 0
push edx
mov byte [eax], 0
call fcn.00474a10
push 0x400
lea ebx, [esp + 0x124]
lea ecx, [esp + 0x24]
call fcn.004943d0
add esp, 0x10
lea eax, [esp + 0x94]
push eax
mov ecx, ebx
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
pop esi
pop ebx
test eax, eax
jne 0x49547d
lea edx, [esp + 0xc]
push edx
push ebp
push edi
call fcn.0040b43a
neg eax
sbb eax, eax
inc eax
pop ebp
mov ecx, dword [esp + 0x508]
xor ecx, esp
call fcn.00474a8a
add esp, 0x50c
ret
mov ecx, dword [esp + 0x50c]
pop ebp
xor ecx, esp
xor eax, eax
call fcn.00474a8a
add esp, 0x50c
ret
Function at 0x4954a0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x290
mov eax, dword [0x4f2be0]
xor eax, esp
mov dword [esp + 0x28c], eax
push ebx
push esi
push 0x80
lea eax, [esp + 0x14]
push 0
push eax
call fcn.00474a10
push 0x80
lea ebx, [esp + 0x20]
mov ecx, edi
call fcn.004943d0
lea eax, [esp + 0x1a0]
mov edx, edi
mov ecx, eax
add esp, 0x10
mov esi, 0x104
sub edx, ecx
lea esp, [esp]
lea ecx, [esi + 0x7ffffefa]
test ecx, ecx
je 0x49550b
mov cl, byte [edx + eax]
test cl, cl
je 0x49550b
mov byte [eax], cl
inc eax
sub esi, 1
jne 0x4954f0
jmp 0x49550f
test esi, esi
jne 0x495510
dec eax
lea edx, [esp + 0x10]
push edx
mov byte [eax], 0
push 0x104
lea eax, [esp + 0x198]
push eax
call fcn.0042f9e0
push 0xff
lea ecx, [esp + 0x95]
push 0
push ecx
mov dword [esp + 0x18], 1
mov byte [esp + 0x9c], 0
call fcn.00474a10
add esp, 0xc
lea edx, [esp + 8]
push edx
lea eax, [esp + 0x94]
push eax
lea ecx, [esp + 0x14]
push ecx
push 0x4cbe6c
push str.Software360SafeLiveup
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x20], pe_nt_image_headers32
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
mov esi, dword [sym.imp.SHLWAPI.dll_SHSetValueA]
test eax, eax
jne 0x4955eb
mov ecx, edi
lea eax, [esp + 0x90]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4955b3
test dl, dl
je 0x4955af
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4955b3
add eax, 2
add ecx, 2
test dl, dl
jne 0x495593
xor eax, eax
jmp 0x4955b8
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4955eb
lea eax, [esp + 0x90]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4955c6
sub eax, edx
push eax
lea edx, [esp + 0x94]
push edx
push 1
push str.mid_old
push str.Software360SafeLiveup
push reloc.OLEAUT32.dll_SysReAllocString
call esi
lea eax, [esp + 0x190]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4955f5
sub eax, edx
push eax
lea eax, [esp + 0x194]
push eax
push 1
push 0x4cbe6c
push str.Software360SafeLiveup
push reloc.OLEAUT32.dll_SysReAllocString
call esi
mov ecx, dword [esp + 0x294]
pop esi
pop ebx
xor ecx, esp
call fcn.00474a8a
add esp, 0x290
ret
Function at 0x498390
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
push 0
push eax
push ecx
push edx
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
jne 0x4983c2
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
sub eax, 0x2733
neg eax
sbb eax, eax
and eax, 0xffffffe7
add eax, 0x51
ret
mov ecx, dword [esp + 0x10]
mov dword [ecx], eax
xor eax, eax
ret

Function at 0x4984f0
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
xor edi, edi
cmp dword [esi + 0x1e0], edi
je 0x498539
push 1
push esi
call fcn.00498140
mov eax, dword [esi + 0x16c]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
push eax
mov eax, dword [esp + 0x1c]
push ecx
mov ecx, dword [esi + 0x1e0]
push edx
push eax
push esi
call ecx
push 0
push esi
mov edi, eax
call fcn.00498140
add esp, 0x24
mov eax, edi
pop edi
pop esi
ret
mov eax, dword [esp + 0x10]
test eax, eax
jl 0x498579
cmp eax, 2
jg 0x498579
mov edx, dword [esi + 0x168]
push edx
push 1
lea eax, [eax + eax*2 + 0x4cc374]
push 2
push eax
call fcn.0047696f
mov ecx, dword [esi + 0x168]
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
push ecx
push 1
push edx
push eax
call fcn.0047696f
add esp, 0x20
mov eax, edi
pop edi
pop esi
ret

Function at 0x498980
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov ecx, dword [ebx + 0x350]
push ebp
mov ebp, dword [ebx + eax*4 + 0x1a8]
push esi
lea esi, [eax + 0x1d]
shl esi, 4
add esi, ebx
push edi
mov edi, dword [esi + 4]
sub edi, dword [esi + 8]
test byte [ecx + 0x40], 3
je 0x498a1f
cmp dword [ebx + eax*4 + 0x1c0], 0x4986f0
jne 0x498a1f
cmp dword [esi], 0
je 0x4989ba
test edi, edi
je 0x498a1f
push 0
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push ebp
call fcn.004966e0
add esp, 0x14
cmp eax, 0xffffffff
je 0x498a1f
test al, 1
je 0x498a1f
cmp dword [esi], 0
jne 0x498a01
mov edx, dword [ebx]
mov eax, dword [edx + 0x508]
add eax, eax
push eax
mov dword [esi + 4], eax
call dword [0x4f4160]
mov edi, dword [esi + 4]
xor ecx, ecx
add esp, 4
mov dword [esi], eax
mov dword [esi + 8], ecx
mov dword [esi + 0xc], ecx
cmp eax, ecx
je 0x498a1c
mov eax, dword [esi]
add eax, dword [esi + 8]
push 0
push edi
push eax
push ebp
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x498a1f
add dword [esi + 8], eax
pop edi
pop esi
pop ebp
ret
mov dword [esi + 4], ecx
pop edi
pop esi
pop ebp
ret
Function at 0x498a30
Capabilities:
Send data
Send data on socket

Disassembly:
mov eax, dword [esp + 8]
push ebx
mov ebx, dword [esp + 8]
push esi
mov esi, dword [ebx + eax*4 + 0x1a8]
push edi
call fcn.00498980
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
push 0
push eax
push ecx
push esi
call dword [sym.imp.WS2_32.dll_send]
mov edi, dword [esp + 0x20]
mov esi, eax
mov dword [edi], 0
cmp esi, 0xffffffff
jne 0x498ab2
push ebp
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebp, eax
cmp ebp, 0x2733
jne 0x498a89
pop ebp
mov dword [edi], 0x51
pop edi
pop esi
xor eax, eax
pop ebx
ret
push ebp
push ebx
call fcn.004a68b0
mov edx, dword [ebx]
push eax
push str.Send_failure:__s
push edx
call fcn.00498610
mov eax, dword [ebx]
mov dword [eax + 0x998], ebp
add esp, 0x14
mov dword [edi], 0x37
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x49a7a0
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
lea edi, [esi + eax]
mov ebx, 0x1505
cmp esi, edi
jae 0x49a790
movzx eax, byte [esi]
push eax
call fcn.0049b090
mov edx, ebx
shl edx, 5
movsx ecx, al
add edx, ebx
xor ecx, edx
inc esi
add esp, 4
mov ebx, ecx
cmp esi, edi
jb 0x49a771
pop edi
pop esi
movzx eax, bl
pop ebx
ret
push ecx
push esi
mov esi, eax
test esi, esi
je 0x49a7cf
mov ecx, esi
call fcn.0049a5f0
test eax, eax
jne 0x49a7cf
lea eax, [esp + 4]
push eax
call fcn.0049a700
add esp, 4
mov ecx, eax
mov eax, dword [esp + 4]
pop esi
add esp, 4
jmp 0x49a760
xor eax, eax
pop esi
pop ecx
ret
Function at 0x49b5d0
Capabilities:
Get common file path

Disassembly:
push ecx
push ebp
push esi
push str.kernel32
xor ebp, ebp
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov esi, eax
test esi, esi
jne 0x49b5ea
pop esi
pop ebp
pop ecx
ret
push ebx
push edi
push str.LoadLibraryExA
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, dword [esp + 0x18]
mov edi, eax
push 0x4cc978
push ebx
mov dword [esp + 0x18], edi
call fcn.004abdea
add esp, 8
test eax, eax
je 0x49b636
test edi, edi
je 0x49b627
push 8
push 0
push ebx
call edi
pop edi
pop ebx
pop esi
mov ebp, eax
pop ebp
pop ecx
ret
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
pop edi
pop ebx
pop esi
mov ebp, eax
pop ebp
pop ecx
ret
test edi, edi
je 0x49b65c
push str.AddDllDirectory
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x49b65c
push 0x800
push 0
push ebx
call edi
pop edi
pop ebx
pop esi
mov ebp, eax
pop ebp
pop ecx
ret
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edi, eax
test edi, edi
je 0x49b710
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x49b675
sub eax, edx
lea eax, [eax + edi + 1]
push eax
call dword [0x4f4160]
mov esi, eax
add esp, 4
test esi, esi
je 0x49b706
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x49b706
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x49b6a3
sub eax, edx
mov ecx, 0x5c
mov word [eax + esi], cx
mov eax, esi
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x49b6c0
sub eax, edx
lea edx, [eax + esi]
mov ecx, ebx
sub edx, ebx
mov al, byte [ecx]
mov byte [edx + ecx], al
inc ecx
test al, al
jne 0x49b6d0
mov eax, dword [esp + 0x10]
test eax, eax
je 0x49b6fd
push 8
push 0
push esi
call eax
push esi
mov ebp, eax
call dword [0x4f4164]
add esp, 4
pop edi
pop ebx
pop esi
mov eax, ebp
pop ebp
pop ecx
ret
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebp, eax
push esi
call dword [0x4f4164]
add esp, 4
pop edi
pop ebx
pop esi
mov eax, ebp
pop ebp
pop ecx
ret
Function at 0x49f480
Capabilities:
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
sub esp, 0x14
push esi
push 0
push ebx
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 4
mov dword [esp + 0x1c], esi
call fcn.00474a10
mov eax, dword [esp + 0x2c]
add esp, 0xc
push 0xf0000000
push eax
push 0
push 0
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x49f560
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 4]
lea edx, [esp]
push edx
push 0
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x49f541
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp]
push 0
push edx
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x49f541
mov ecx, dword [esp]
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
push 0
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x14]
push eax
push 4
push ecx
call ebp
test eax, eax
je 0x49f540
cmp esi, dword [esp + 0xc]
jb 0x49f540
mov eax, dword [esp + 4]
push 0
lea edx, [esp + 0x18]
push edx
push ebx
push 2
push eax
call ebp
pop ebp
mov eax, dword [esp]
test eax, eax
je 0x49f54f
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, dword [esp + 4]
test eax, eax
je 0x49f560
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
add esp, 0x14
ret
Function at 0x4a11d0
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x108
mov eax, dword [0x4f2be0]
xor eax, esp
mov dword [esp + 0x104], eax
mov eax, dword [esp + 0x10c]
push eax
call fcn.0048fc32
add esp, 4
mov byte [esp], 0
test eax, eax
je 0x4a1235
push 0x104
lea ecx, [esp + 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [esp], 0
je 0x4a1235
lea edx, [esp]
push edx
call dword [0x4f416c]
add esp, 4
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.00474a8a
add esp, 0x108
ret
mov ecx, dword [esp + 0x104]
xor ecx, esp
xor eax, eax
call fcn.00474a8a
add esp, 0x108
ret
jmp 0x4a11d0

Function at 0x4a1250
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x108
mov eax, dword [0x4f2be0]
xor eax, esp
mov dword [esp + 0x104], eax
mov eax, dword [esp + 0x10c]
push eax
call fcn.0048fc32
add esp, 4
mov byte [esp], 0
test eax, eax
je 0x4a1235
push 0x104
lea ecx, [esp + 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [esp], 0
je 0x4a1235
lea edx, [esp]
push edx
call dword [0x4f416c]
add esp, 4
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.00474a8a
add esp, 0x108
ret
mov ecx, dword [esp + 0x104]
xor ecx, esp
xor eax, eax
call fcn.00474a8a
add esp, 0x108
ret
jmp 0x4a11d0
Function at 0x4ae7b0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x4ae7e1
call fcn.0047e12f
mov dword [eax], esi
call fcn.0047e11c
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.00475ca0
add esp, 0x14
push 0x16
pop eax
jmp 0x4ae836
test dword [ebp + 0xc], 0xfffffff9
jne 0x4ae7bd
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4ae80e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0047e142
pop ecx
call fcn.0047e11c
mov eax, dword [eax]
jmp 0x4ae836
test al, 0x10
jne 0x4ae834
test al, 1
je 0x4ae834
test byte [ebp + 0xc], 2
je 0x4ae834
call fcn.0047e12f
mov dword [eax], 5
call fcn.0047e11c
mov dword [eax], 0xd
jmp 0x4ae805
xor eax, eax
pop esi
pop ebp
ret
Function at 0x100011f0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov dword [ebp - 8], 1
push ax
push cx
push edi
and al, dl
or ch, 0x3a
dec edi
inc edi
cmp ah, bl
xor ax, ax
cmp cl, dl
dec cl
pop edi
pop cx
pop ax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push 0xf003f
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x10001240
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pushal
sub dl, 0x33
and dh, 0x12
popal
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp + 0x14]
push eax
mov eax, dword [ebp + 0x10]
push ecx
mov ecx, dword [ebp - 4]
push edx
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x1000126c
xor esi, esi
jmp 0x1000126f
mov esi, dword [ebp - 8]
push eax
test eax, 0x7cbd
sub ah, bl
cmp eax, 0x2aed
add ah, 0x4d
and eax, 0x26ae
dec ax
pop eax
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10001f80
Capabilities:
Encode data using base64
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 8]
push ebx
push esi
push edi
test ecx, ecx
je 0x10002179
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x10002179
mov edi, dword [ebp + 0x10]
test edi, edi
jle 0x10002179
push eax
push bx
test ax, 0x826
sub bl, 0x12
test bx, 0x3c13
test ah, 0x56
cmp bx, dx
pop bx
pop eax
cmp edi, 3
jl 0x1000209b
mov eax, 0xaaaaaaab
mul edi
shr edx, 1
mov dword [ebp - 4], edx
lea eax, [edx*4]
sub eax, edx
neg eax
add edi, eax
mov dword [ebp + 0x10], edi
xor edx, edx
mov dl, byte [esi]
shr edx, 2
inc ecx
mov al, byte [edx + 0x100063dc]
mov byte [ecx - 1], al
push ebx
add bx, ax
mov bx, 0x6602
and bh, dl
pop ebx
mov dl, byte [esi]
xor eax, eax
mov al, byte [esi + 1]
and edx, 3
shl edx, 4
shr eax, 4
or edx, eax
inc ecx
mov dl, byte [edx + 0x100063dc]
mov byte [ecx - 1], dl
jle 0x10002029
push si
mov si, 0xf280
pop si
jg 0x10002029
mov al, byte [esi + 1]
xor edx, edx
mov dl, byte [esi + 2]
and eax, 0xf
shl eax, 2
shr edx, 6
or eax, edx
inc ecx
mov dword [ebp + 8], ecx
mov al, byte [eax + 0x100063dc]
mov byte [ecx - 1], al
pushal
test cx, ax
inc ax
popal
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov dl, byte [ecx + 2]
and edx, 0x3f
inc eax
mov dword [ebp + 8], eax
mov dl, byte [edx + 0x100063dc]
mov byte [eax - 1], dl
jo 0x10002080
mov dx, dx
nop
xchg cx, cx
jno 0x10002080
mov al, 0x98
and ecx, dword [ecx - 0x7834e8a9]
mov ecx, 0x458b5d21
cld
mov eax, dword [ebp - 4]
add ecx, 3
dec eax
mov dword [ebp + 0xc], ecx
mov esi, ecx
mov ecx, dword [ebp + 8]
mov dword [ebp - 4], eax
jne 0x10001fe5
mov edi, dword [ebp + 0x10]
test edi, edi
jle 0x1000216b
xor eax, eax
mov al, byte [esi]
shr eax, 2
inc ecx
mov dl, byte [eax + 0x100063dc]
mov byte [ecx - 1], dl
jp 0x100020be
push cx
mov cl, 0x21
pop cx
jnp 0x100020be
mov al, byte [esi]
and al, 3
shl al, 4
mov byte [ebp + 8], al
push edx
push edi
sub dx, dx
cmp edx, ecx
cmp dx, ax
test edx, 0x4d5b
sub di, 0x50f1
mov di, 0x11cb
and di, ax
pop edi
pop edx
mov edx, dword [ebp + 0x10]
cmp edx, 1
jle 0x100020f9
mov bl, byte [esi + 1]
shr bl, 4
or al, bl
mov byte [ebp + 8], al
jle 0x10002107
mov si, si
mov si, si
jg 0x10002107
fsub qword [ebp + 0x458b92c9]
or byte [0xff], ah
mov eax, dword [ebp + 8]
and eax, 0xff
inc ecx
mov al, byte [eax + 0x100063dc]
mov byte [ecx - 1], al
push eax
push edi
test edi, 0x6e34
dec ax
dec ah
or eax, ecx
xor al, dh
or eax, 0x24ad
cmp ax, cx
test eax, eax
dec ah
and di, di
pop edi
pop eax
cmp edx, 2
jge 0x10002155
mov al, 0x3d
mov byte [ecx], al
inc ecx
mov byte [ecx], al
inc ecx
mov al, 1
mov byte [ecx], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov dl, byte [esi + 1]
and edx, 0xf
inc ecx
inc ecx
mov al, byte [edx*4 + 0x100063dc]
mov byte [ecx - 2], al
mov byte [ecx - 1], 0x3d
mov byte [ecx], 0
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x100029d0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push ebx
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x107]
mov byte [ebp - 0x108], 0
rep stosd dword es:[edi], eax
mov ecx, dword [0x1000659c]
push 0x104
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x108]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push ebx
push cx
push dx
xor ch, bl
pop dx
pop cx
pop ebx
lea edx, [ebp - 0x108]
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
je 0x10002a65
push ebx
and bx, cx
pop ebx
lea ecx, [ebp - 4]
push ecx
push 0
push eax
push 0x10001e60
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x10002a65
push ebx
push cx
test dx, cx
test bl, ch
test cl, 0x43
and ch, bh
or cl, bl
and cx, di
pop cx
pop ebx
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10003220
Capabilities:
Packed with generic packer

Disassembly:
add byte [eax], dl
add byte [eax], al
push ecx
call dword [sym.imp.USER32.dll_SetTimer]
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
push edx
mov edx, dword [ebp + 8]
push eax
push ecx
push edx
call dword [sym.imp.USER32.dll_DefWindowProcA]
pop edi
pop esi
pop ebx
pop ebp
ret 0x10
push ebp
mov ebp, esp
sub esp, 0x410
push ebx
push esi
push edi
pushal
test si, 0x3660
add si, 0x20c2
test edi, eax
popal
call fcn.10001660
test eax, eax
jne 0x1000324a
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
jp 0x1000326e
push eax
mov ax, 0xea42
pop eax
jnp 0x1000326e
pop eax
mov edx, 0xb7bc9ea5
jb 0x1000328f
jp 0x100031f5
test cl, 0x87
xor esp, esi
cwde
push edx
push 0
lea eax, [ebp - 0x410]
push 0x10
push eax
push 0
call dword [0x10006568]
test eax, eax
jne 0x1000328c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edx
push edi
or edx, edx
mov dl, ch
cmp edx, ecx
and edx, eax
pop edi
pop edx
ror byte [edx + 0x23d13bd5], cl
rcr byte [edi + 0x5a], 1
lea ecx, [ebp - 0x410]
lea edx, [ebp - 0x208]
push ecx
push 0x10006538
push edx
call dword [sym.imp.MSVCRT.dll_sprintf]
jle 0x100032c3
jg 0x100032c3
inc ebx
xor byte [eax - 0x72c625aa], cl
test eax, edi
std
invalid
lea eax, [ebp - 0x208]
push 0
push eax
call dword [sym.imp.MSVCRT.dll__access]
add esp, 0x14
cmp eax, 0xffffffff
jne 0x100032e3
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push ecx
push esi
and ecx, 0x4ed
dec esi
xor ecx, 0x19e7
add si, 0x438f
xor cx, 0x2688
add ch, dh
test ch, 0x5b
pop esi
pop ecx
lea ecx, [ebp - 0x208]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10003880
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, 1
je 0x100038a3
mov si, si
xchg bx, bx
jne 0x100038a3
mov al, byte [0x4bb148d3]
outsb dx, byte [esi]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push 0xf003f
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x100038c8
xor eax, eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push dx
push eax
or ax, 0x4297
and ax, 0x45c0
test esi, eax
test dh, al
cmp dl, 0x51
pop eax
pop dx
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp + 0x14]
push eax
mov eax, dword [ebp + 0x10]
push ecx
mov ecx, dword [ebp - 4]
push edx
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x100038ff
xor esi, esi
push ebx
test ebx, 0x2fbf
cmp bh, ch
add bh, 0x30
pop ebx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10003fc0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x514
push ebx
push esi
push edi
xor dl, dl
mov ecx, 0xc2
xor eax, eax
lea edi, [ebp - 0x513]
mov byte [ebp - 0x514], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x103]
mov byte [ebp - 0x104], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x207]
mov byte [ebp - 0x208], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push eax
push edi
test edi, 0x6e34
dec ax
dec ah
or eax, ecx
xor al, dh
or eax, 0x24ad
cmp ax, cx
test eax, eax
dec ah
and di, di
pop edi
pop eax
lea eax, [ebp - 0x104]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push edi
or edi, 0x693
or di, 0xd76
or edi, 0x291a
sub di, bx
test di, 0x481d
xor di, 0x7174
and di, di
pop edi
mov edx, dword [0x1000659c]
lea ecx, [ebp - 0x208]
push 0x104
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push eax
push ecx
push edx
cmp dh, dl
or ecx, ecx
test ah, al
xor ecx, 0xc4
test dh, al
cmp ch, bl
or cx, 0x7720
xor ecx, 0x4eb4
and ecx, 0x218b
and dl, bl
pop edx
pop ecx
pop eax
call fcn.100049b0
jbe 0x100040c3
mov dx, dx
mov esi, esi
ja 0x100040c3
sub ch, byte [ebx]
cmp byte [edx - 0xb], dl
sub dword [edi - 0x73], esp
test eax, edi
std
invalid
lea eax, [ebp - 0x208]
lea ecx, [ebp - 0x104]
push eax
push ecx
lea edx, [ebp - 0x514]
push 0x1000622c
push edx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x10
push bx
push dx
push eax
cmp dh, 0x43
dec bl
dec bl
or bl, dh
cmp bl, 0x68
add bl, 0x3c
dec dl
dec bh
cmp eax, 0x6e32
pop eax
pop dx
pop bx
call fcn.10002860
test eax, eax
jne 0x10004118
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
jle 0x1000412a
jg 0x1000412a
inc ebx
xor byte [eax - 0x72c625aa], cl
test esp, ebp
cli
invalid
lea eax, [ebp - 0x514]
push 5
push eax
call dword [0x10006594]
push bx
push si
push edi
or edi, 0x3f3c
and si, cx
pop edi
pop si
pop bx
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret