joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406b30
Capabilities:
Persist via windows service
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x427f80
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebp
push esi
mov eax, dword [0x432ac0]
xor eax, esp
push eax
lea eax, [esp + 0x34]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x18], 7
xor ebp, ebp
call fcn.00409465
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x406b7b
push 0x80004005
call fcn.00401210
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
mov ecx, dword [esp + 0x44]
push ecx
lea edx, [esp + 0x18]
push str.SYSTEMCurrentControlSetServicesEventLog_s
push edx
mov dword [esp + 0x48], 0
call fcn.00402630
mov ecx, dword [esp + 0x20]
add esp, 0xc
lea eax, [esp + 0xc]
push eax
push 0x2001f
push 0
push ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x406d04
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x14]
push eax
push 0
push 0x2001f
push 0
push 0
push 0
push edi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x406cf9
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edx, dword [esp + 0x10]
add eax, 1
push eax
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 1
push 0
push str.EventMessageFile
push edx
call esi
test eax, eax
jne 0x406c3f
mov ecx, dword [esp + 0x10]
push 4
lea eax, [esp + 0x1c]
push eax
push 4
push 0
push str.TypesSupported
push ecx
call esi
test eax, eax
jne 0x406c3f
lea ebp, [eax + 1]
jmp 0x406c41
xor ebp, ebp
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x20]
call fcn.0040a725
lea eax, [esp + 0x20]
mov byte [esp + 0x3c], 1
mov ecx, dword [esp + 0xc]
push eax
mov eax, str.Sources
call fcn.00406f60
add esp, 4
test eax, eax
je 0x406ceb
mov ecx, dword [esp + 0x28]
xor eax, eax
xor esi, esi
test ecx, ecx
jle 0x406cc9
test eax, eax
jne 0x406ceb
test esi, esi
jl 0x406d40
cmp esi, ecx
jge 0x406d40
test edi, edi
setne al
test eax, eax
je 0x406b71
mov ecx, dword [esp + 0x24]
mov eax, dword [ecx + esi*4]
push edi
push eax
call fcn.00414cc9
mov ecx, dword [esp + 0x30]
add esp, 8
test eax, eax
sete al
add esi, 1
cmp esi, ecx
movzx eax, al
jl 0x406c80
test eax, eax
jne 0x406ceb
push edi
push ecx
lea ecx, [esp + 0x28]
call fcn.0040aa81
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x20]
push edx
push str.Sources
push eax
call fcn.00407030
add esp, 0xc
lea ecx, [esp + 0x20]
mov byte [esp + 0x3c], 0
call fcn.0040a96a
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x3c], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x406d2c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebp
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
add esp, 0x34
ret
jmp fcn.0040938c
Function at 0x406d50
Capabilities:
Delete registry key

Disassembly:
push 0xffffffffffffffff
push 0x427f50
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebp
push esi
push edi
mov eax, dword [0x432ac0]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x3c]
mov esi, ecx
call fcn.00409465
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x406d96
push 0x80004005
call fcn.00401210
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x10], eax
push ebp
push esi
lea ecx, [esp + 0x18]
push str.SYSTEMCurrentControlSetServicesEventLog_s_s
push ecx
mov dword [esp + 0x44], 0
call fcn.00402630
mov edi, dword [esp + 0x20]
add esp, 0x10
push edi
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
je 0x406e16
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea eax, [edi - 0x10]
mov dword [esp + 0x34], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x406e01
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x28
ret
push esi
lea ecx, [esp + 0x14]
push str.SYSTEMCurrentControlSetServicesEventLog_s
push ecx
call fcn.00402630
mov eax, dword [esp + 0x1c]
add esp, 0xc
lea edx, [esp + 0x14]
push edx
push 0x2001f
push 0
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x406f0c
lea ecx, [esp + 0x18]
call fcn.0040a725
lea ecx, [esp + 0x18]
mov byte [esp + 0x34], 1
push ecx
mov ecx, dword [esp + 0x18]
mov eax, str.Sources
call fcn.00406f60
add esp, 4
test eax, eax
je 0x406ef3
mov eax, dword [esp + 0x20]
xor edi, edi
xor esi, esi
test eax, eax
jle 0x406ef3
test edi, edi
jne 0x406edc
test esi, esi
jl 0x406f4c
cmp esi, eax
jge 0x406f4c
xor eax, eax
test ebp, ebp
setne al
test eax, eax
je 0x406d8c
mov edx, dword [esp + 0x1c]
mov eax, dword [edx + esi*4]
push ebp
push eax
call fcn.00414cc9
add esp, 8
test eax, eax
sete al
movzx edi, al
test edi, edi
je 0x406ecd
push 1
push esi
lea ecx, [esp + 0x20]
call fcn.0040a8f7
mov eax, dword [esp + 0x20]
add esi, 1
cmp esi, eax
jl 0x406e81
test edi, edi
je 0x406ef3
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x18]
push eax
push str.Sources
push ecx
call fcn.00407030
add esp, 0xc
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x18]
mov byte [esp + 0x34], 0
call fcn.0040a96a
mov dword [esp + 0x34], 0xffffffff
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406f34
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x28
ret
jmp fcn.0040938c
Function at 0x406f60
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
push edi
push 0xffffffffffffffff
mov edi, ecx
mov ecx, dword [esp + 0x24]
xor ebp, ebp
push ebp
mov esi, eax
call fcn.0040a7c3
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [esp + 0x10]
push eax
push ebp
lea ecx, [esp + 0x1c]
push ecx
push ebp
push esi
push edi
call ebx
test eax, eax
jne 0x407018
cmp dword [esp + 0x14], 7
jne 0x407010
mov edx, dword [esp + 0x10]
push edx
call fcn.00407501
add esp, 4
lea ecx, [esp + 0x10]
push ecx
push eax
lea edx, [esp + 0x1c]
push edx
push ebp
push esi
push edi
mov dword [esp + 0x30], eax
call ebx
test eax, eax
mov edi, dword [esp + 0x18]
jne 0x406ffd
cmp byte [edi], al
mov esi, edi
je 0x406ff8
lea ecx, [ecx]
mov ecx, dword [esp + 0x20]
mov eax, dword [ecx + 8]
push esi
push eax
call fcn.0040aa81
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x406fe3
sub eax, edx
cmp byte [esi + eax + 1], cl
lea esi, [esi + eax + 1]
jne 0x406fd0
mov ebp, 1
push edi
call fcn.00407506
add esp, 4
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0xc
ret
push 0xd
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x407030
Capabilities:
Set registry value

Disassembly:
sub esp, 0xc
mov ecx, dword [esp + 0x18]
push esi
push edi
mov edi, dword [ecx + 8]
xor esi, esi
xor eax, eax
test edi, edi
mov dword [esp + 0x10], edi
jle 0x40706a
test eax, eax
jl 0x4070c9
cmp eax, edi
jge 0x4070c9
mov edx, dword [ecx + 4]
mov edx, dword [edx + eax*4]
mov edx, dword [edx - 0xc]
lea edx, [esi + edx + 1]
add eax, 1
cmp eax, edi
mov dword [esp + 8], edx
mov esi, edx
jl 0x407048
push ebx
add esi, 1
push ebp
push esi
mov dword [esp + 0x14], esi
call fcn.00407501
push esi
mov ebp, eax
push 0
push ebp
call fcn.00415d60
xor eax, eax
add esp, 0x10
xor ebx, ebx
test edi, edi
mov dword [esp + 0x14], eax
jg 0x4070d4
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
push esi
push ebp
push 7
push 0
push ecx
push edx
mov byte [ebx + ebp], 0
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
xor ecx, ecx
test eax, eax
sete cl
push ebp
mov esi, ecx
call fcn.00407506
add esp, 4
pop ebp
pop ebx
pop edi
mov eax, esi
pop esi
add esp, 0xc
ret
jmp fcn.0040938c
mov eax, dword [esp + 0x14]
test eax, eax
jl 0x4070c9
mov ecx, dword [esp + 0x28]
cmp eax, dword [ecx + 8]
jge 0x4070c9
mov ecx, dword [ecx + 4]
mov esi, dword [ecx + eax*4]
mov ecx, dword [esi - 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
sub esi, 0x10
call eax
cmp dword [esi + 0xc], 0
lea ecx, [esi + 0xc]
jl 0x40710e
cmp eax, dword [esi]
jne 0x40710e
mov edi, esi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x407140
mov ecx, dword [esi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 1
push ecx
mov ecx, eax
call edx
mov edi, eax
test edi, edi
je 0x407195
mov eax, dword [esi + 4]
mov dword [edi + 4], eax
mov eax, dword [esi + 4]
add eax, 1
push eax
add esi, 0x10
push esi
push eax
lea ecx, [edi + 0x10]
push ecx
call fcn.00413415
add esp, 0x10
lea esi, [edi + 0x10]
mov edi, dword [esi - 0xc]
push esi
lea edx, [edi + 1]
push edx
lea eax, [ebx + ebp]
push eax
call fcn.00415000
lea eax, [esi - 0x10]
add esp, 0xc
lea ebx, [ebx + edi + 1]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407177
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
add eax, 1
cmp eax, dword [esp + 0x18]
mov dword [esp + 0x14], eax
jl 0x4070d0
mov esi, dword [esp + 0x10]
jmp 0x407093
jmp fcn.00402180
Function at 0x4071c0
Capabilities:
Check for time delay via gettickcount
Query service status

Disassembly:
sub esp, 0x1c
push ebx
push ebp
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
mov ecx, dword [esp + 0x2c]
mov edx, dword [ecx]
mov ebx, eax
lea eax, [esp + 0xc]
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x407246
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
lea esp, [esp]
mov eax, dword [esp + 0x30]
cmp dword [esp + 0x10], eax
je 0x40722d
mov ecx, dword [esp + 0x34]
push ecx
call ebp
cmp esi, 0xffffffff
je 0x40720e
call edi
sub eax, ebx
cmp eax, esi
ja 0x40723b
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax]
lea edx, [esp + 0xc]
push edx
push ecx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x4071f0
pop edi
pop ebp
pop ebx
add esp, 0x1c
ret 0xc
pop edi
pop ebp
mov eax, 1
pop ebx
add esp, 0x1c
ret 0xc
push 0x5b4
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 0x1c
ret 0xc

Function at 0x407260
Capabilities:
Query service configuration

Disassembly:
mov ecx, dword [edi]
sub esp, 8
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_QueryServiceConfigA]
push esi
lea eax, [esp + 8]
push eax
push 0
push 0
push ecx
call ebx
mov esi, eax
test esi, esi
jne 0x4072b7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x4072b5
mov edx, dword [esp + 8]
push edx
call fcn.00407501
mov ecx, dword [esp + 0x18]
add esp, 4
mov dword [ecx], eax
mov ecx, dword [esp + 8]
lea edx, [esp + 0xc]
push edx
mov edx, dword [edi]
push ecx
push eax
push edx
call ebx
pop esi
pop ebx
add esp, 8
ret 4
mov eax, esi
pop esi
pop ebx
add esp, 8
ret 4

Function at 0x407400
Capabilities:
Enumerate services

Disassembly:
sub esp, 0x10
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_EnumServicesStatusA]
push esi
push edi
mov edi, eax
lea eax, [esp + 0x10]
push eax
mov eax, dword [edi]
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x1c]
push edx
push 0
push 0
push 3
push 0x30
push eax
mov dword [esp + 0x30], 0
call ebx
mov esi, eax
test esi, esi
jne 0x4074b6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x4074b4
mov ecx, dword [esp + 0x14]
push ebp
push ecx
call fcn.00407501
add esp, 4
mov ebp, eax
lea edx, [esp + 0x14]
push edx
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x14]
push eax
mov eax, dword [edi]
lea ecx, [esp + 0x24]
push ecx
push edx
push ebp
push 3
push 0x30
push eax
call ebx
mov ebx, eax
test ebx, ebx
je 0x40749f
cmp dword [esp + 0x10], esi
lea eax, [esi + 1]
jbe 0x40749f
mov edi, ebp
test eax, eax
je 0x40749f
mov ecx, dword [esp + 0x24]
push edi
push ecx
call fcn.00404dd0
add esi, 1
add edi, 0x24
cmp esi, dword [esp + 0x10]
jb 0x407484
push ebp
call fcn.00407506
add esp, 4
pop ebp
pop edi
pop esi
mov eax, ebx
pop ebx
add esp, 0x10
ret 4
mov eax, esi
pop edi
pop esi
pop ebx
add esp, 0x10
ret 4
Function at 0x4085b4
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x432ac0]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0x800
push ebx
push esi
mov esi, ecx
mov ebx, edx
lea eax, [ebp - 0x11c]
jne 0x4085f4
push 0x429800
push 4
push eax
call fcn.00415000
push eax
call fcn.00402300
add esp, 0x10
jmp 0x408606
push 4
push eax
push 3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x408674
push edi
call fcn.00415ea6
mov edi, dword [eax]
call fcn.00415ea6
and dword [eax], 0
lea eax, [ebp - 0x11c]
push eax
push ebx
push esi
push 0x111
mov esi, 0x112
lea eax, [ebp - 0x118]
push esi
push eax
call fcn.00414b8e
add esp, 0x18
mov ebx, eax
call fcn.00415ea6
cmp dword [eax], 0
je 0x408654
call fcn.00415ea6
push dword [eax]
call fcn.00408542
pop ecx
jmp 0x40865b
call fcn.00415ea6
mov dword [eax], edi
cmp ebx, 0xffffffff
pop edi
je 0x408674
cmp ebx, esi
jae 0x408674
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
jmp 0x408676
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00412a2f
leave
ret
Function at 0x40b4e6
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 0x40b514
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x40b532
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0040b450
jmp 0x40b532
mov eax, dword [esi + 0x14]
test eax, eax
je 0x40b532
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.0040b450
test edi, edi
mov eax, edi
jne 0x40b51c
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x434038]
test ecx, ecx
je 0x40b5f5
jmp 0x40b4e5
ret 8

Function at 0x4184c5
Capabilities:
Resolve function by parsing pe exports

Disassembly:
jne 0x4184a3
fdivp st(7)
push dword [eax + 0x64c7c36a]
mov eax, dword [0x30]
mov eax, dword [eax + 0xc]
mov esi, dword [eax + 0x1c]
lodsd eax, dword [esi]
cmp byte [eax + 0x1c], 0x18
je 0x4184e1
xchg esi, eax
lodsd eax, dword [esi]
mov eax, dword [eax + 8]
push eax
call fcn.0041631d
fmul qword [edi]
jo 0x4184a5
mov edi, eax
mov eax, dword [edi + 0x3c]
mov edx, dword [edi + eax + 0x78]
add edx, edi
mov ecx, dword [edx + 0x18]
mov ebx, dword [edx + 0x20]
add ebx, edi
call fcn.0041631d
ror edx, cl
invalid
Function at 0x41cfbd
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x433468]
je 0x41cfd8
inc edi
cmp edi, 0x17
jb 0x41cfc9
cmp edi, 0x17
jae 0x41d158
push ebp
push 3
call fcn.004228dd
cmp eax, 1
pop ecx
je 0x41d124
push 3
call fcn.004228dd
test eax, eax
pop ecx
jne 0x41d00c
cmp dword [0x432ab0], 1
je 0x41d124
cmp ebx, 0xfc
je 0x41d157
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x4363b0
push ebp
call fcn.00415000
add esp, 0xc
test eax, eax
je 0x41d042
push esi
push esi
push esi
push esi
push esi
call fcn.004198fe
add esp, 0x14
push 0x104
mov esi, 0x4363c9
push esi
push 0
mov byte [0x4364cd], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x41d086
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.00415000
add esp, 0xc
test eax, eax
je 0x41d086
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.004198fe
add esp, 0x14
push esi
call fcn.00415de0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x41d0cb
push esi
call fcn.00415de0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x4366c4
push 0x42b38c
sub ecx, eax
push ecx
push eax
call fcn.00417a68
add esp, 0x14
test eax, eax
je 0x41d0cb
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.004198fe
add esp, 0x14
jmp 0x41d0cd
xor esi, esi
push 0x42b388
push ebx
push ebp
call fcn.00415f71
add esp, 0xc
test eax, eax
je 0x41d0ed
push esi
push esi
push esi
push esi
push esi
call fcn.004198fe
add esp, 0x14
push dword [edi*8 + 0x43346c]
push ebx
push ebp
call fcn.00415f71
add esp, 0xc
test eax, eax
je 0x41d10f
push esi
push esi
push esi
push esi
push esi
call fcn.004198fe
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.00422720
add esp, 0xc
jmp 0x41d157
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x41d157
cmp ebp, 0xffffffff
je 0x41d157
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x43346c]
push dword [esi]
call fcn.00415de0
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x427276
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x432ac0]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.0042720b
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.00415d60
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x4272c5
cmp dword [ebp - 0x1c], 5
jb 0x4272dd
jmp 0x4272d9
cmp dword [ebp - 0x10], 1
jne 0x4272dd
cmp dword [ebp - 0x1c], 4
ja 0x4272d9
jne 0x4272dd
cmp dword [ebp - 0x18], 0
jbe 0x4272dd
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x42c448
call fcn.004270fc
test eax, eax
jge 0x4272fe
mov byte [0x4369b0], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00412a2f
add ebp, 0x78
leave
ret
Function at 0x11bb80b0
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.11bb8200
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x11bb80d6
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x11bb80c2
add dl, dl
jne 0x11bb80e1
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x11bb8134
xor eax, eax
add dl, dl
jne 0x11bb80ee
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x11bb81d5
add dl, dl
jne 0x11bb80fd
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x11bb8108
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x11bb8113
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x11bb811e
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x11bb812a
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x11bb80cd
mov eax, 1
add dl, dl
jne 0x11bb8142
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x11bb814d
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x11bb8139
sub eax, ebx
mov ebx, 1
jne 0x11bb8180
mov ecx, 1
add dl, dl
jne 0x11bb8166
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x11bb8171
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x11bb815d
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x11bb80cd
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x11bb8197
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x11bb81a2
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x11bb818e
cmp eax, 0x7d00
jae 0x11bb81c5
cmp eax, 0x500
jb 0x11bb81c0
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x11bb80cd
cmp eax, 0x7f
ja 0x11bb81c8
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x11bb80cd
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x11bb81f6
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x11bb80cd
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x430002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..idata
push 4
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x430072
nop
mov ebx, 0x408ecc
nop
nop
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
div edi
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
mov esi, 0x3e6279bc
nop
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
loop 0x430060
nop
nop
nop
nop
mov eax, section..data
nop
nop
nop
cmp eax, 0
nop
nop
je 0x4300d2
nop
nop
nop
mov ebx, 0x42e1d0
nop
nop
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x50cb52ec
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
loop 0x4300c0
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x412328
Capabilities:
Create thread

Disassembly:
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi], ebx
jbe 0x4123a3
push ebp
push edi
lea edi, [esi + 4]
lea eax, [esp + 0x10]
push eax
push 0
push esi
push 0x412460
push 0x10000
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ebp, eax
test ebp, ebp
jne 0x41237f
push str.CreateThread_failed
push 0x4430c4
call fcn.004076c9
pop ecx
pop ecx
mov ecx, 0x4430c4
call fcn.00407851
push 2
mov ecx, 0x4430c4
call fcn.004076c4
mov dword [edi], ebp
inc dword [esi + 0x104]
mov eax, dword [0x44a208]
test eax, eax
je 0x412399
push eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
inc ebx
add edi, 4
cmp ebx, dword [esi]
jb 0x412338
pop edi
pop ebp
pop esi
pop ebx
pop ecx
ret

Function at 0x41a0b7
Capabilities:
Contain obfuscated stackstrings

Disassembly:
dec ebp
cld
lea eax, [ecx + eax - 0x1d]
push eax
lea eax, [ebp - 0x394]
push eax
call fcn.00418c47
add esp, 0xc
and dword [ebp - 0x700], 0
jmp 0x41a0e3
mov eax, dword [ebp - 0x700]
inc eax
mov dword [ebp - 0x700], eax
cmp dword [ebp - 0x700], 5
jge 0x41a12c
mov eax, dword [ebp - 0x700]
movsx eax, byte [ebp + eax - 0x394]
movsx ecx, byte [ebp - 0x24]
xor eax, ecx
mov ecx, dword [ebp - 0x700]
mov byte [ebp + ecx - 0x394], al
mov eax, dword [ebp - 0x700]
movsx eax, byte [ebp + eax - 0x394]
not eax
mov ecx, dword [ebp - 0x700]
mov byte [ebp + ecx - 0x394], al
jmp 0x41a0d6
invalid
call fcn.00418cd6
insd dword es:[edi], dx
jae 0x41a128
xlatb
and byte [ebp - 0x72c], 0
and byte [ebp - 0x72b], 0
mov byte [ebp - 0x72a], 0xc2
and byte [ebp - 0x729], 0
mov byte [ebp - 0x728], 0x6b
mov byte [ebp - 0x727], 0x54
mov byte [ebp - 0x726], 0x4f
mov byte [ebp - 0x725], 0x49
mov byte [ebp - 0x724], 0x48
mov byte [ebp - 0x723], 0x5c

Function at 0x41a17b
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0x722], 0x51
mov byte [ebp - 0x721], 0x6d
mov byte [ebp - 0x720], 0x4f
mov byte [ebp - 0x71f], 0x52
mov byte [ebp - 0x71e], 0x49
mov byte [ebp - 0x71d], 0x58
mov byte [ebp - 0x71c], 0x5e
mov byte [ebp - 0x71b], 0x49
mov byte [ebp - 0x71a], 0x3d
call fcn.00418cd6
invalid
Function at 0x431110
Capabilities:
Create pipe
Get thread local storage value
Query environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x200c
call fcn.0043c960
mov eax, dword [0x47856c]
mov ecx, dword [0x477ff8]
push ebx
shr eax, 3
push esi
push edi
test eax, eax
je 0x431235
mov edi, dword [sym.imp.KERNEL32.dll_GetNumberFormatW]
mov ebx, dword [sym.imp.KERNEL32.dll_CreateJobObjectW]
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov dword [ebp - 4], ecx
mov dword [ebp - 8], eax