joyce8/EMBER2024-capa huggingface dataset:
Function at 0x454d85
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
push 0x80000301
push 0
push 0x20
push 1
mov ebx, 0x1bc
call fcn.0046d800
add esp, 0x10
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x454de6
push ebx
call fcn.0046cc7d
add esp, 4
pop eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
call fcn.0040122a
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], esp
mov ebx, dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.WSOCK32.dll_gethostbyname]
nop
nop
nop
nop
cmp dword [ebp - 0x10], esp
je 0x454e1a
push 6
call fcn.0046cc8f
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x454f49
push edi
push edx
push esi
mov eax, dword [ebp - 8]
movsx ecx, word [eax + 0xa]
mov eax, dword [eax + 0xc]
mov edx, ecx
mov edi, dword [ebp - 4]
mov esi, dword [eax]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop esi
pop edx
pop edi
push 0x80000301
push 0
push 4
push 0x80000301
push 0
push dword [ebp - 4]
push 2
mov ebx, 0x910
call fcn.0046d910
add esp, 0x1c
mov dword [ebp - 0x10], eax
push 0
push 0
push 0
push 0x80000301
push 0
push 3
push getsockname
push 0
mov eax, dword [ebp - 0x10]
test eax, eax
jne 0x454ea9
mov eax, 0x4996d7
push eax
push 3
mov ebx, 0x19c
call fcn.0046e6a0
add esp, 0x28
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], ecx
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x454ed5
push ebx
call fcn.0046cc7d
add esp, 4
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
cmp ecx, 0x80000101
jne 0x454eed
and eax, 0xff
jmp 0x454f38
cmp ecx, 0x80000201
jne 0x454ef8
cwde
jmp 0x454f38
cmp ecx, 0x80000301
je 0x454f38
cmp ecx, 0x80000401
je 0x454f38
mov dword [ebp - 0x24], eax
cmp ecx, 0x80000501
je 0x454f28
cmp ecx, 0x80000601
je 0x454f2d
push 2
call fcn.0046cc8f
add esp, 4
fld dword [ebp - 0x24]
jmp 0x454f33
mov dword [ebp - 0x20], edx
fld qword [ebp - 0x24]
call fcn.00401925
push eax
call fcn.00454f6b
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
jmp 0x454f53
mov eax, 0x4992db
jmp 0x454f53
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x454f64
push ebx
call fcn.0046cc7d
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 4
Function at 0x455fe6
Capabilities:
Create service
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
push 0x80000101
push 0
push 0
push 1
mov ebx, 0x140
call fcn.0046fae0
add esp, 0x10
mov dword [ebp - 0x10], eax
push 0x80000101
push 0
push 0
push 1
mov ebx, 0x140
call fcn.0046fae0
add esp, 0x10
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], esp
push 2
push dword [ebp - 0x14]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
nop
nop
nop
nop
cmp dword [ebp - 0x18], esp
je 0x456070
push 6
call fcn.0046cc8f
add esp, 4
mov dword [ebp - 0x1c], eax
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x456083
push ebx
call fcn.0046cc7d
add esp, 4
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x456093
push ebx
call fcn.0046cc7d
add esp, 4
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4560ad
mov eax, 0
jmp 0x456238
push 0x80000301
push 0
push 0x10000
push 0x80000301
push 0
push 0x20
push 0x80000301
push 0
push 0x10
push 3
mov ebx, 0xc8
call fcn.0046d8a0
add esp, 0x28
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], esp
push 0
push 0
push 0
push 0
push 0
mov ebx, dword [ebp + 8]
push dword [ebx]
push 0
push 3
push 1
push dword [ebp - 0x10]
mov ebx, dword [ebp + 0x10]
push dword [ebx]
mov ebx, dword [ebp + 0xc]
push dword [ebx]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
nop
nop
nop
nop
cmp dword [ebp - 0x14], esp
je 0x456142
push 6
call fcn.0046cc8f
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x4561b4
mov dword [ebp - 0x10], esp
push 0xf003f
mov ebx, dword [ebp + 0xc]
push dword [ebx]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
nop
nop
nop
nop
cmp dword [ebp - 0x10], esp
je 0x45617b
push 6
call fcn.0046cc8f
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x4561b4
mov dword [ebp - 0x10], esp
push dword [ebp - 4]
call dword [0x5f5ff6]
nop
nop
nop
nop
cmp dword [ebp - 0x10], esp
je 0x4561aa
push 6
call fcn.0046cc8f
add esp, 4
mov eax, 0
jmp 0x456238
mov dword [ebp - 0x10], esp
push 0
push 0
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
nop
nop
nop
nop
cmp dword [ebp - 0x10], esp
je 0x4561e0
push 6
call fcn.0046cc8f
add esp, 4
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], esp
push dword [ebp - 8]
call dword [0x5f5ff6]
nop
nop
nop
nop
cmp dword [ebp - 0x10], esp
je 0x456205
push 6
call fcn.0046cc8f
add esp, 4
mov dword [ebp - 0x10], esp
push dword [ebp - 4]
call dword [0x5f5ff6]
nop
nop
nop
nop
cmp dword [ebp - 0x10], esp
je 0x456227
push 6
call fcn.0046cc8f
add esp, 4
cmp dword [ebp - 0xc], 0
mov eax, 0
setg al
jmp 0x456238
mov esp, ebp
pop ebp
ret 0xc

Function at 0x45adc5
Capabilities:
64-bit execution via heavens gate

Disassembly:
push ebp
mov ebp, esp
push 0x33
call 0x45adcf
add dword [esp], 5
retf
Function at 0x45ae5a
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
xor eax, eax
cmp word [ecx], 0x5a4d
jne 0x45aeda
dec esp
arpl word [ecx + 0x3c], ax
dec ecx
add eax, ecx
inc ecx
cmp dword [eax], 0x4550
jne 0x45aeda
inc ebp
mov eax, dword [eax + 0x88]
inc ebp
test eax, eax
je 0x45aeda
dec edx
lea edi, [ecx + eax]
inc esp
mov eax, dword [edi + 0x20]
mov esi, dword [edi + 0x14]
test esi, esi
dec esi
lea edx, [ecx + eax]
je 0x45aeda
movzx ebx, byte [edx]
inc ebp
xor ebx, ebx
inc ebp
mov ecx, dword [edx]
dec ecx
add ecx, ecx
inc ecx
cmp byte [ecx], bl
jne 0x45aecb
test bl, bl
je 0x45aede
dec eax
mov eax, edx
jmp 0x45aeb7
inc ebp
test al, al
je 0x45aede
dec eax
add eax, 1
dec ecx
mov eax, eax
dec ecx
sub eax, edx
inc edi
movzx eax, byte [eax + ecx]
inc esp
cmp al, byte [eax]
je 0x45aeb2
inc ecx
add ebx, 1
dec ecx
add edx, 4
inc ecx
cmp ebx, esi
jne 0x45ae9e
xor eax, eax
pop ebx
pop esi
pop edi
ret
inc esp
cmp esi, ebx
je 0x45aed8
mov edx, dword [edi + 0x24]
dec esi
lea eax, [ecx + ebx*2]
mov eax, dword [edi + 0x1c]
inc ecx
movzx edx, word [eax + edx]
dec eax
lea edx, [ecx + edx*4]
mov eax, dword [edx + eax]
dec eax
add eax, ecx
pop ebx
pop esi
pop edi
ret

Function at 0x46e070
Capabilities:
Read .ini file

Disassembly:
push ebx
push ebp
push esi
push edi
push 0x400
call fcn.0048627a
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x40]
mov ecx, dword [esp + 0x28]
add esp, 4
mov esi, eax
mov eax, dword [esp + 0x30]
push ebx
push 0x400
push esi
push ebp
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp eax, 0x3ff
jl 0x46e0da
push esi
lea edi, [eax + 0x400]
call fcn.004862a3
push edi
call fcn.0048627a
mov edx, dword [esp + 0x38]
add esp, 8
mov esi, eax
mov eax, dword [esp + 0x24]
push ebx
push edi
push esi
push ebp
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
dec edi
cmp eax, edi
jge 0x46e0aa
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
xor ebx, ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x46e0f6
push ecx
push esi
call fcn.004711a0
add esp, 8
mov ebx, eax
push esi
call fcn.004862a3
add esp, 4
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x46e830
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
mov eax, dword [esp + 0x10]
push edi
push 0
push 0x20
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
je 0x46e8c2
mov eax, dword [esp + 0x10]
push ebx
mov ebx, 1
push ebp
cmp eax, ebx
push esi
mov dword [esp + 0x10], ebx
jle 0x46e8b4
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
lea esi, [esp + 0x2c]
mov eax, dword [esi]
lea edx, [esp + 0x14]
push 0
push edx
lea ecx, [eax + 8]
mov eax, dword [eax + 4]
push eax
push ecx
push edi
call ebp
test eax, eax
je 0x46e8ac
mov eax, dword [esp + 0x1c]
inc ebx
add esi, 0xc
cmp ebx, eax
jl 0x46e875
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret
mov dword [esp + 0x10], 0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret
Function at 0x46f040
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
mov eax, dword [esp + 8]
cmp edx, 1
jle 0x46f05e
push esi
lea ecx, [esp + 0x18]
dec edx
mov esi, dword [ecx]
add ecx, 0xc
xor eax, esi
dec edx
jne 0x46f053
pop esi
ret
Function at 0x4702d0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x54
push esi
lea eax, [esp + 0x14]
push edi
push eax
mov dword [esp + 0x1c], 0x44
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov eax, dword [esp + 0x84]
xor edi, edi
cmp eax, edi
mov dword [esp + 0x54], edi
mov dword [esp + 0x58], edi
mov dword [esp + 0x44], 1
je case.0x470311.2
mov ecx, dword [esp + 0x7c]
lea eax, [ecx - 1]
cmp eax, 5
ja case.0x470311.2
jmp dword [eax*4 + 0x47039c]
mov word [esp + 0x48], di
jmp 0x47034a
mov word [esp + 0x48], 2
jmp 0x47034a
mov word [esp + 0x48], 3
jmp 0x47034a
mov word [esp + 0x48], 4
jmp 0x47034a
mov word [esp + 0x48], 7
jmp 0x47034a
mov word [esp + 0x48], 5
lea edx, [esp + 8]
mov ecx, dword [esp + 0x64]
lea eax, [esp + 0x18]
push edx
push eax
push edi
push edi
push edi
push 1
push edi
push edi
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov esi, eax
cmp esi, edi
je 0x470394
cmp dword [esp + 0x70], edi
je 0x470380
mov edx, dword [esp + 8]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 8]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call edi
mov ecx, dword [esp + 0xc]
push ecx
call edi
mov eax, esi
pop edi
pop esi
add esp, 0x54
ret

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

Disassembly:
push ecx
mov eax, dword [esp + 0xc]
push ebp
push esi
push edi
push eax
call fcn.00471c50
mov esi, dword [esp + 0x28]
mov ebp, eax
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
add esp, 4
xor edx, edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
test ebp, ebp
je 0x470731
test ecx, ecx
je 0x470731
inc ecx
push ebx
push ecx
call fcn.0048627a
mov ebx, eax
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x5c
mov edx, ecx
mov esi, edi
mov edi, ebx
push ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.00479500
mov esi, eax
add esp, 0xc
test esi, esi
je 0x4706d3
mov byte [esi], 0
inc esi
lea eax, [esp + 0x10]
push eax
push 0xf003f
push 0
push ebx
push ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x47070d
mov ecx, dword [esp + 0x10]
push esi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov edx, dword [esp + 0x10]
mov esi, eax
neg esi
sbb esi, esi
push edx
inc esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x470720
mov eax, dword [esp + 0x28]
push eax
push ebp
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov esi, eax
neg esi
sbb esi, esi
inc esi
push ebx
call fcn.004862a3
add esp, 4
mov eax, esi
pop ebx
pop edi
pop esi
pop ebp
pop ecx
ret
pop edi
pop esi
mov eax, edx
pop ebp
pop ecx
ret

Function at 0x470740
Capabilities:
Create directory

Disassembly:
sub esp, 0xc
mov ecx, dword [esp + 0x14]
xor eax, eax
mov dword [esp + 4], eax
mov dword [esp + 8], eax
lea eax, [esp]
mov dword [esp], 0xc
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
add esp, 0xc
ret
Function at 0x4731e0
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 + 0x5f6524]
mov dl, byte [edx + esi]
test bl, dl
setne al
mov byte [esp + ecx + 0x4c], al
inc ecx
cmp ecx, 0x38
jl 0x4731f3
mov eax, 0x1e
xor edx, edx
mov dword [esp + 0x10], eax
cmp dword [esp + 0x10c], 1
je 0x473234
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 + 0x5f65cc]
mov dword [edi], 0
mov dword [ebp], 0
mov esi, ecx
cmp ecx, 0x1c
jge 0x473266
mov bl, byte [esp + ecx + 0x4c]
jmp 0x47326a
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x1c
jl 0x47325b
mov eax, 0x1c
lea ecx, [esi + 0x1c]
cmp ecx, 0x38
jge 0x473288
mov bl, byte [esp + ecx + 0x4c]
jmp 0x47328c
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x38
jl 0x47327d
xor ecx, ecx
mov eax, 0x5f6534
xor ebx, ebx
mov bl, byte [ecx + 0x5f65dc]
cmp byte [esp + ebx + 0x14], 0
je 0x4732b7
mov esi, dword [eax]
mov ebx, dword [ebp]
or ebx, esi
mov dword [ebp], ebx
xor ebx, ebx
mov bl, byte [ecx + 0x5f65f4]
cmp byte [esp + ebx + 0x14], 0
je 0x4732ce
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 0x47329e
mov eax, dword [esp + 0x10]
inc edx
sub eax, 2
cmp eax, 0xfffffffe
mov dword [esp + 0x10], eax
jg 0x473227
lea edx, [esp + 0x84]
push edx
call fcn.00473310
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xf4
ret
Function at 0x4763f0
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
mov eax, dword [ecx]
lea ecx, [esp]
push ecx
push 0
lea edx, [esp + 0x10]
push 0
push edx
push 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 1
call sub.WSOCK32.dll_select
cmp eax, 0xffffffff
jne 0x476439
xor eax, eax
add esp, 0x10c
ret 4
mov edx, dword [esp + 0x110]
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx], ecx
mov eax, 1
add esp, 0x10c
ret 4

Function at 0x4768b0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x48e5e0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.00476460
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.004764e0
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.004764e0
lea ecx, [esi + 0xc]
call fcn.004864c4
lea ecx, [esi + 0x10]
call fcn.004864c4
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.00477a80
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.00477a80
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.00477a80
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.00486539
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.00486539
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x488f61
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 0x488fa3
call fcn.0048cd68
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x488fa3
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x488f9a
xor eax, eax
jmp 0x488fab
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00488fb1
pop edi
pop esi
pop ebx
ret 4

Function at 0x489f44
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x48ecd8
call fcn.0047a300
sub esp, 0x18
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], esi
mov eax, dword [esi + 0x48]
mov edi, dword [esi + 0x44]
mov dword [ebp - 0x18], eax
call fcn.0048cd68
cmp dword [esi + 0x40], 0
mov ebx, dword [eax + 0xc]
je 0x489f83
call fcn.0048cd68
mov ebx, dword [eax + 0xc]
push 5
push dword [esi + 0x40]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x489f91
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x489f9f
or eax, 0xffffffff
jmp 0x48a087
mov ecx, esi
call fcn.00489eba
mov dword [ebp - 0x14], eax
call fcn.004875ab
xor edi, edi
cmp dword [ebp - 0x14], edi
mov dword [ebp - 0x20], edi
je 0x489fd6
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x489fd6
push edi
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x20], 1
push esi
mov dword [ebp - 4], edi
call fcn.0048755f
push dword [ebp - 0x14]
call fcn.00487091
push ebx
push eax
push dword [ebp - 0x18]
mov ecx, esi
call fcn.00489c52
cmp eax, edi
je 0x48a049
test byte [esi + 0x24], 0x10
je 0x48a017
push 4
mov ecx, esi
pop ebx
call fcn.00486a91
test ah, 1
je 0x48a00f
push 5
pop ebx
push ebx
mov ecx, esi
call fcn.004890b3
cmp dword [esi + 0x1c], edi
je 0x48a049
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.00486ac5
jmp 0x48a049
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x20], edi
je 0x48a05d
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x48a076
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x1c]
jne 0x48a076
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x58]
mov ecx, esi
call fcn.00489ef4
mov eax, dword [esi + 0x2c]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x48c8da
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 0x48c908
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x48c926
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0048c840
jmp 0x48c926
mov eax, dword [esi + 0x14]
test eax, eax
je 0x48c926
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0048c840
test edi, edi
mov eax, edi
jne 0x48c910
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8

Function at 0x432004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
mov eax, section..rsrc
mov ebx, 0x40c7d0
nop
nop
mov ecx, 0x54a3601a
nop
nop
nop
nop
test eax, eax
je 0x43204e
nop
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x432024
nop
nop
mov eax, section..data
mov ebx, 0x42f314
nop
mov ecx, 0xf7c0efd
nop
test eax, eax
nop
nop
nop
nop
je 0x432084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x43206c
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x401e80
Capabilities:
Get geographical location

Disassembly:
sub esp, 0x20c
mov ecx, 0x5839a0
call fcn.004023a0
mov edx, eax
test dx, dx
jne 0x401e9e
call fcn.0044c8f0
mov edx, eax
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0xa]
mov word [esp + 8], 0
push 0x103
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0xc]
and edx, 0xffff
push eax
push 0x1004
push edx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
lea ecx, [esp + 4]
lea edx, [esp + 8]
push ecx
push 0x569618
push edx
mov dword [esp + 0x10], 0xffffffff
call fcn.00422e3e
mov eax, dword [esp + 0x10]
add esp, 0xc
pop edi
add esp, 0x20c
ret

Function at 0x402b40
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x208
push esi
mov esi, dword [esp + 0x210]
mov ecx, esi
call fcn.0043d110
mov ecx, esi
call fcn.0043fb10
mov ecx, esi
call fcn.0043f7f0
push 0x22
mov ecx, esi
call fcn.0043dfd0
mov eax, dword [esi]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x402c33
push edi
push 0
push str..dll
mov ecx, esi
call fcn.0043d000
push 0
push 0x569804
mov ecx, esi
mov edi, eax
call fcn.0043d000
cmp edi, 0xffffffff
je 0x402bae
mov ecx, dword [esi]
mov edx, dword [ecx - 8]
sub edx, edi
sub edx, 4
add edi, 4
push edx
push edi
jmp 0x402bc2
cmp eax, 0xffffffff
je 0x402bc9
mov ecx, dword [esi]
mov edx, dword [ecx - 8]
sub edx, eax
sub edx, 4
add eax, 4
push edx
push eax
mov ecx, esi
call fcn.0043d790
push 0x25
mov ecx, esi
call fcn.0043cee0
cmp eax, 0xffffffff
je 0x402c15
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0xa]
mov word [esp + 8], 0
rep stosd dword es:[edi], eax
mov ecx, dword [esi]
push 0x104
stosw word es:[edi], ax
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov ecx, esi
call fcn.0043bb50
lea edx, [esp + 8]
mov ecx, esi
push edx
push 0
call fcn.0043da50
push 0x3a
mov ecx, esi
call fcn.0043cf90
test eax, eax
pop edi
jl 0x402c33
cmp eax, 1
je 0x402c33
dec eax
mov ecx, esi
push eax
push 0
call fcn.0043d790
mov eax, 1
pop esi
add esp, 0x208
ret 4
Function at 0x405530
Capabilities:
Create process on windows
Get common file path
Terminate process

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x539886
push eax
mov eax, dword [0x5839b8]
mov dword fs:[0], esp
sub esp, 0x264
push ebx
xor ebx, ebx
push ebp
cmp eax, ebx
push esi
mov ebp, ecx
jne 0x40569d
push ebx
push 0x10000000
push ebx
push ebx
push ebx
push str.MyDesktop
mov dword [0x5839b8], 1
call dword [sym.imp.USER32.dll_CreateDesktopW]
mov esi, eax
cmp esi, ebx
je 0x40569d
push edi
push str.Winsta0mydesktop
lea ecx, [esp + 0x18]
call fcn.0043b640
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x2c]
mov dword [esp + 0x28], 0x44
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x14]
xor ecx, ecx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x20], ecx
xor eax, eax
mov dword [esp + 0x24], ecx
mov ecx, 0x81
lea edi, [esp + 0x6e]
mov word [esp + 0x6c], bx
rep stosd dword es:[edi], eax
lea edx, [esp + 0x6c]
push 0x103
push edx
mov dword [esp + 0x284], ebx
mov dword [esp + 0x20], ebx
stosw word es:[edi], ax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov eax, dword [0x54a4b4]
mov dword [esp + 0x10], eax
mov ecx, dword [ebp + 0x64]
lea edx, [esp + 0x6c]
push ecx
lea eax, [esp + 0x70]
push edx
push eax
lea ecx, [esp + 0x1c]
push str.__s_rundll32.exe___s_shell32.dll_OpenAs_RunDLL__s
push ecx
mov byte [esp + 0x290], 1
call fcn.0043ed60
add esp, 0x14
lea edx, [esp + 0x18]
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x28]
push edx
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
cmp eax, ebx
je 0x405671
mov edx, dword [esp + 0x1c]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call edi
mov eax, dword [esp + 0x18]
push 0x7d0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [esp + 0x18]
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov edx, dword [esp + 0x18]
push edx
call edi
push esi
call dword [sym.imp.USER32.dll_CloseDesktop]
lea ecx, [esp + 0x10]
mov byte [esp + 0x27c], bl
call fcn.0043bde0
lea ecx, [esp + 0x14]
mov dword [esp + 0x27c], 0xffffffff
call fcn.0043bde0
pop edi
mov ecx, dword [esp + 0x270]
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x270
ret
Function at 0x40b6c0
Capabilities:
Check mutex on windows

Disassembly:
sub esp, 0x208
mov edx, ecx
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 6]
mov word [esp + 4], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 4]
push 0x104
push eax
push str.TEC_OCULAR__AGENT_V3_MUTEX_AGENT
mov ecx, edx
call fcn.0040b4e0
lea ecx, [esp + 4]
push ecx
push 0
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
test eax, eax
pop edi
jne 0x40b723
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor edx, edx
cmp eax, 5
sete dl
mov eax, edx
add esp, 0x208
ret
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
add esp, 0x208
ret