joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000ce30
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
cmp eax, 1
jne 0x1000d069
push 0
push 0
push dword [ebp + 8]
push 0x1000c700
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push dword [ebp + 8]
mov ecx, 0x1002a9f0
call fcn.1000c510
mov dword [0x1002a9f0], 0x3f800000
mov eax, 1
mov dword [0x1002a9f4], 0x3f800000
mov dword [0x1002aa7c], 0x3f800000
mov dword [0x1002aa08], 0x3f800000
mov dword [0x1002aa0c], 0x3f800000
mov dword [0x1002aa04], 0x3f800000
mov dword [0x1002aa50], 0x41300000
mov dword [0x1002aa48], 0x40800000
mov dword [0x1002aa4c], 0x40e00000
mov dword [0x1002abbc], 0x41f80000
mov dword [0x1002aa40], 0x3f800000
mov dword [0x1002aa30], 0
mov dword [0x1002aa60], 0
mov dword [0x1002aa38], 0x3f800000
mov dword [0x1002aa80], 0x3f800000
mov dword [0x1002aa58], 0x41400000
mov dword [0x1002aa00], 0x3f800000
mov dword [0x1002a9fc], 0x3f800000
mov dword [0x1002aad0], 0x3f800000
mov dword [0x1002aac4], 0x437f0000
mov dword [0x1002aac8], 0x3f800000
mov dword [0x1002aac0], 0x3f800000
mov dword [0x1002aa14], 0x3f800000
mov dword [0x1002aaa8], 0x3f800000
mov dword [0x1002aa20], 0x43b40000
mov dword [0x1002ab74], 0x437f0000
mov dword [0x1002aa88], 0x3f800000
mov dword [0x1002aaa0], 0
mov dword [0x1002aa8c], 0x3f800000
mov dword [0x1002aa90], 0x428a0000
mov dword [0x1002abb8], 0x3f800000
mov dword [0x1002aae0], 0x437f0000
mov dword [0x1002ab00], 0x437f0000
mov dword [0x1002aad4], 0x437f0000
mov dword [0x1002aad8], 0x437f0000
mov dword [0x1002aaf0], 0x437f0000
mov dword [0x1002ab44], 0x437f0000
mov dword [0x1002ab48], 0x437f0000
mov dword [0x1002ab68], 0x437f0000
mov dword [0x1002ab34], 0x437f0000
mov dword [0x1002ab5c], 0x437f0000
mov dword [0x1002ab60], 0x437f0000
mov dword [0x1002ab70], 0x437f0000
mov dword [0x1002ab40], 0x437f0000
mov dword [0x1002ab50], 0x437f0000
mov dword [0x1002ab10], 0x437f0000
mov dword [0x1002ab30], 0x437f0000
mov dword [0x1002ab04], 0x437f0000
mov dword [0x1002ab08], 0x437f0000
mov dword [0x1002ab20], 0x437f0000
mov dword [0x1002aa2c], 0
pop ebp
ret 0xc
cmp eax, 6
jne 0x1000d07a
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x1000d07a
mov eax, dword [ebp + 8]
mov dword [ecx], eax
mov eax, 1
pop ebp
ret 0xc
Function at 0x1000d710
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [0x10029bc0]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x40
lea eax, [ebp - 0x44]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x44]
mov ecx, 0x20
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x4c], ecx
mov eax, 0x3f
shr ecx, 3
add esp, 0xc
and ecx, 0x3f
mov dword [ebp - 0x5c], 0x67452301
add edx, ecx
mov dword [ebp - 0x58], 0xefcdab89
mov dword [ebp - 0x54], 0x98badcfe
sub eax, ecx
mov dword [ebp - 0x50], 0x10325476
mov dword [ebp - 0x48], 0
mov byte [edx], 0x80
inc edx
cmp eax, 8
jae 0x1000d7a4
push eax
push 0
push edx
call sub.VCRUNTIME140.dll_memset
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x5c]
push eax
call fcn.1000d090
push 0x38
lea eax, [ebp - 0x44]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x20
jmp 0x1000d7b3
add eax, 0xfffffff8
push eax
push 0
push edx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 8], eax
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x5c]
push eax
call fcn.1000d090
mov ecx, dword [ebp - 4]
add esp, 8
mov eax, dword [ebp - 0x56]
xor ecx, ebp
call fcn.1001c2d0
mov esp, ebp
pop ebp
ret
Function at 0x430006
Capabilities:
Encode data using xor

Disassembly:
mov eax, section..text
nop
mov ebx, 0x408f6c
nop
mov ecx, 0x2b263492
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
cmp eax, ebx
nop
nop
nop
jne 0x430024
nop
nop
nop
nop
nop
mov eax, section..data
mov ebx, 0x42e3d0
nop
nop
mov ecx, 0x68433d13
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x430084
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x4028a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4028b9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4028f4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x4028f0
lea ebx, [ebx]
cmp esi, eax
jae 0x4028f4
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x4028e0
cmp esi, eax
jb 0x4028fa
pop esi
pop edi
xor eax, eax
pop ebx
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x402971
Capabilities:
Create thread

Disassembly:
push ecx
push esi
mov esi, ecx
cmp byte [esi + 0x10], 0
je 0x40297f
xor al, al
pop esi
pop ecx
ret
mov eax, dword [esi + 0xc]
push eax
mov byte [esi + 0x10], 1
call dword [sym.imp.KERNEL32.dll_ResetEvent]
lea ecx, [esp + 4]
push ecx
push 0
push esi
push 0x403370
push 0
push 0
mov dword [esi + 4], 0xffffffff
mov dword [esp + 0x1c], 0
call fcn.00415010
add esp, 0x18
mov dword [esi + 4], eax
mov al, 1
pop esi
pop ecx
ret
Function at 0x406ad0
Capabilities:
Persist via windows service
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x4280b0
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.0040938c
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x406b1b
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.00402640
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 0x406ca4
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 0x406c99
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 0x406bdf
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 0x406bdf
lea ebp, [eax + 1]
jmp 0x406be1
xor ebp, ebp
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x20]
call fcn.0040a801
lea eax, [esp + 0x20]
mov byte [esp + 0x3c], 1
mov ecx, dword [esp + 0xc]
push eax
mov eax, str.Sources
call fcn.00406f00
add esp, 4
test eax, eax
je 0x406c8b
mov ecx, dword [esp + 0x28]
xor eax, eax
xor esi, esi
test ecx, ecx
jle 0x406c69
test eax, eax
jne 0x406c8b
test esi, esi
jl 0x406ce0
cmp esi, ecx
jge 0x406ce0
test edi, edi
setne al
test eax, eax
je 0x406b11
mov ecx, dword [esp + 0x24]
mov eax, dword [ecx + esi*4]
push edi
push eax
call fcn.00414cba
mov ecx, dword [esp + 0x30]
add esp, 8
test eax, eax
sete al
add esi, 1
cmp esi, ecx
movzx eax, al
jl 0x406c20
test eax, eax
jne 0x406c8b
push edi
push ecx
lea ecx, [esp + 0x28]
call fcn.0040ab5d
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x20]
push edx
push str.Sources
push eax
call fcn.00406fd0
add esp, 0xc
lea ecx, [esp + 0x20]
mov byte [esp + 0x3c], 0
call fcn.0040aa46
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 0x406ccc
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.00409775
Function at 0x406cf0
Capabilities:
Delete registry key

Disassembly:
push 0xffffffffffffffff
push 0x428080
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.0040938c
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x406d36
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.00402640
mov edi, dword [esp + 0x20]
add esp, 0x10
push edi
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
je 0x406db6
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 0x406da1
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.00402640
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 0x406eac
lea ecx, [esp + 0x18]
call fcn.0040a801
lea ecx, [esp + 0x18]
mov byte [esp + 0x34], 1
push ecx
mov ecx, dword [esp + 0x18]
mov eax, str.Sources
call fcn.00406f00
add esp, 4
test eax, eax
je 0x406e93
mov eax, dword [esp + 0x20]
xor edi, edi
xor esi, esi
test eax, eax
jle 0x406e93
test edi, edi
jne 0x406e7c
test esi, esi
jl 0x406eec
cmp esi, eax
jge 0x406eec
xor eax, eax
test ebp, ebp
setne al
test eax, eax
je 0x406d2c
mov edx, dword [esp + 0x1c]
mov eax, dword [edx + esi*4]
push ebp
push eax
call fcn.00414cba
add esp, 8
test eax, eax
sete al
movzx edi, al
test edi, edi
je 0x406e6d
push 1
push esi
lea ecx, [esp + 0x20]
call fcn.0040a9d3
mov eax, dword [esp + 0x20]
add esi, 1
cmp esi, eax
jl 0x406e21
test edi, edi
je 0x406e93
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x18]
push eax
push str.Sources
push ecx
call fcn.00406fd0
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.0040aa46
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 0x406ed4
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.00409775
Function at 0x406fd0
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 0x40700a
test eax, eax
jl 0x407069
cmp eax, edi
jge 0x407069
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 0x406fe8
push ebx
add esi, 1
push ebp
push esi
mov dword [esp + 0x14], esi
call fcn.00407561
push esi
mov ebp, eax
push 0
push ebp
call fcn.00415e10
xor eax, eax
add esp, 0x10
xor ebx, ebx
test edi, edi
mov dword [esp + 0x14], eax
jg 0x407074
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.00407566
add esp, 4
pop ebp
pop ebx
pop edi
mov eax, esi
pop esi
add esp, 0xc
ret
jmp fcn.00409775
mov eax, dword [esp + 0x14]
test eax, eax
jl 0x407069
mov ecx, dword [esp + 0x28]
cmp eax, dword [ecx + 8]
jge 0x407069
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 0x4070ae
cmp eax, dword [esi]
jne 0x4070ae
mov edi, esi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x4070e0
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 0x407135
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.004134d3
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.004155a6
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 0x407117
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 0x407070
mov esi, dword [esp + 0x10]
jmp 0x407033
jmp fcn.00402190
Function at 0x4071b0
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 0x407236
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
lea esp, [esp]
mov eax, dword [esp + 0x30]
cmp dword [esp + 0x10], eax
je 0x40721d
mov ecx, dword [esp + 0x34]
push ecx
call ebp
cmp esi, 0xffffffff
je 0x4071fe
call edi
sub eax, ebx
cmp eax, esi
ja 0x40722b
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 0x4071e0
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 0x407250
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 0x4072a7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x4072a5
mov edx, dword [esp + 8]
push edx
call fcn.00407561
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 0x4072b0
Capabilities:
Create service

Disassembly:
mov eax, dword [esi]
test eax, eax
je 0x4072c3
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov dword [esi], 0
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x28]
push edx
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0xc]
mov eax, dword [eax]
push ecx
mov ecx, dword [esp + 0x28]
push 0
push edx
mov edx, dword [esp + 0x2c]
push ecx
mov ecx, dword [esp + 0x2c]
push edx
mov edx, dword [esp + 0x2c]
push ecx
mov ecx, dword [esp + 0x2c]
push edx
mov edx, dword [esp + 0x2c]
push 0xf01ff
push ecx
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
xor ecx, ecx
test eax, eax
setne cl
mov dword [esi], eax
mov eax, ecx
ret 0x2c
Function at 0x407460
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 0x407516
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x407514
mov ecx, dword [esp + 0x14]
push ebp
push ecx
call fcn.00407561
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 0x4074ff
cmp dword [esp + 0x10], esi
lea eax, [esi + 1]
jbe 0x4074ff
mov edi, ebp
test eax, eax
je 0x4074ff
mov ecx, dword [esp + 0x24]
push edi
push ecx
call fcn.00404d70
add esi, 1
add edi, 0x24
cmp esi, dword [esp + 0x10]
jb 0x4074e4
push ebp
call fcn.00407566
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 0x408617
Capabilities:
Get geographical location

Disassembly:
push ebp
lea ebp, [esp - 0xe0]
sub esp, 0x160
mov eax, dword [0x432ac0]
xor eax, ebp
mov dword [ebp + 0xdc], eax
cmp dword [ebp + 0xec], 0x800
mov eax, dword [ebp + 0xe8]
push esi
mov dword [ebp - 0x3c], eax
mov esi, ecx
lea eax, [ebp - 0x40]
jne 0x4086af
push 0x42981c
push 4
push eax
call fcn.004155a6
push eax
call fcn.00402310
add esp, 0x10
push ebx
push edi
call fcn.00415f56
mov edi, dword [eax]
call fcn.00415f56
xor ebx, ebx
mov dword [eax], ebx
lea eax, [ebp - 0x40]
push eax
push dword [ebp - 0x3c]
lea eax, [ebp - 0x38]
push esi
push 0x111
mov esi, 0x112
push esi
push eax
call fcn.00414b7f
add esp, 0x18
mov dword [ebp - 0x3c], eax
call fcn.00415f56
cmp dword [eax], ebx
je 0x4086c6
call fcn.00415f56
push dword [eax]
call fcn.004085a5
pop ecx
jmp 0x4086cd
push 4
push eax
push 3
push dword [ebp + 0xec]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x408663
jmp 0x40873f
call fcn.00415f56
mov dword [eax], edi
cmp dword [ebp - 0x3c], 0xffffffff
je 0x40873b
cmp dword [ebp - 0x3c], esi
jae 0x40873b
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameA]
push 0x3c
mov esi, eax
lea eax, [ebp - 0x7c]
push ebx
push eax
mov dword [ebp - 0x80], 0x40
call fcn.00415e10
add esp, 0xc
push str.KERNEL32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp eax, ebx
je 0x40872d
push str.FindActCtxSectionStringA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x40872d
lea ecx, [ebp - 0x80]
push ecx
push esi
push 2
push ebx
push ebx
call eax
test eax, eax
je 0x40872d
push ebx
push ebx
push esi
jmp 0x408733
push ebx
push ebx
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
jmp 0x40873d
xor eax, eax
pop edi
pop ebx
mov ecx, dword [ebp + 0xdc]
xor ecx, ebp
pop esi
call fcn.00412aed
add ebp, 0xe0
leave
ret
Function at 0x40969b
Capabilities:
Contain obfuscated stackstrings

Disassembly:
inc eax
mov byte [ebp - 0x15], bl
mov byte [ebp - 0x14], 0xe9
mov byte [ebp - 0x13], 0xd6
mov byte [ebp - 0x12], 0xcd
out dx, al
int 0xc6
inc ebp
out dx, eax
retf
mov byte [ebp - 0x10], 0xca
mov byte [ebp - 0xf], 0xde
mov byte [ebp - 0xe], 0xd3
mov byte [ebp - 0xd], 0xf9
mov byte [ebp - 0xc], 0xcd
mov byte [ebp - 0xb], 0xda
mov byte [ebp - 0xa], 0xda
mov byte [ebp - 9], 0xbf
call fcn.00409337
push eax
push esi
push dword [ebp + 8]
call fcn.004092ec
mov dword [ebp - 8], eax
lea eax, [ebp - 0x6c]
push eax
mov byte [ebp - 0x6c], bl
mov byte [ebp - 0x6b], bl
mov byte [ebp - 0x6a], 0xbe
mov byte [ebp - 0x69], bl
mov byte [ebp - 0x68], 0x17
mov byte [ebp - 0x67], 0x28
mov byte [ebp - 0x66], 0x33
mov byte [ebp - 0x65], 0x35
mov byte [ebp - 0x64], 0x34
mov byte [ebp - 0x63], 0x20
mov byte [ebp - 0x62], 0x2d
mov byte [ebp - 0x61], 0x11
mov byte [ebp - 0x60], 0x33
mov byte [ebp - 0x5f], 0x2e
mov byte [ebp - 0x5e], 0x35
mov byte [ebp - 0x5d], 0x24
mov dword [0xa445c624], eax
and al, dh
mov byte [ebp - 0x5b], 0x35
mov byte [ebp - 0x5a], 0x41
cmpsb byte [esi], byte es:[edi]
inc ecx
call fcn.00409337
push eax
push esi
push dword [ebp + 8]
call fcn.004092ec
mov dword [ebp - 0xbc], eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x2c], bl
push eax
mov byte [ebp - 0x2b], bl
mov byte [ebp - 0x2a], 0xd4
mov byte [ebp - 0x29], bl
mov byte [ebp - 0x28], 0x67
mov byte [ebp - 0x27], 0x44
inc esp

Function at 0x40975b
Capabilities:
Contain obfuscated stackstrings

Disassembly:
inc esp
mov byte [ebp - 0x26], 0x4a
mov byte [ebp - 0x25], 0x4f
mov byte [ebp - 0x24], 0x67
mov byte [ebp - 0x23], 0x42
mov byte [ebp - 0x22], 0x49
mov byte [ebp - 0x21], 0x59
mov byte [ebp - 0x20], 0x4a
inc ebp
loopne 0x4097c2
Function at 0x40999e
Capabilities:
Inspect section memory permissions

Disassembly:
cmp dword [eax], ebx
je 0x4099db
mov edx, dword [eax + 4]
lea ecx, [eax + 8]
add edx, eax
mov dword [ebp + 8], ecx
cmp ecx, edx
jae 0x4099d6
mov ecx, dword [ebp + 8]
movzx ecx, word [ecx]
mov edx, ecx
rol dword [ecx + 0xf000e2], 1
add byte [ecx + 0x3000fa], al
add byte [ebp + 0x13], dh
rol dword [ecx + 0xf000e2], 1
add byte [ecx + 0x3000fa], al
add byte [ebp + 0x13], dh
and ecx, 0xfff
mov edx, esi
sub edx, dword [edi + 0x34]
add ecx, esi
add ecx, dword [eax]
add dword [ecx], edx
jmp 0x4099c8
cmp edx, ebx
jne 0x409b16
mov ecx, dword [eax + 4]
add dword [ebp + 8], 2
add ecx, eax
cmp dword [ebp + 8], ecx
jb 0x409997
add eax, dword [eax + 4]
jmp 0x409984
mov dword [ebp + 0xc], ebx
jmp 0x4099e6
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x4099fe
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x409a1c
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x409a7a
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x409a61
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x409a6a
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x409a74
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x409a56
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x4099e0
mov dword [ebp + 8], esi
xor edi, edi
mov eax, dword [ebp + 0x18]
push 2
pop ecx
movzx eax, byte [edi + eax]
sub eax, ecx
je 0x409ac7
dec eax
je method.CWinThread.virtual_36
sub eax, 3
je 0x409ab5
mov dword [ebp - 4], 0x40
jmp 0x409ae4
mov dword [ebp - 4], 4
jmp 0x409aca
mov dword [ebp - 4], 0x20
jmp 0x409aca
invalid
mov dword [ebp - 4], ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 0xac]
mov ch, 0x54
invalid
invalid
invalid
push dword [ebp + 8]
jne 0x409ae2
call dword [ebp - 0xbc]
test eax, eax
je 0x409b16
mov eax, dword [ebp - 0xac]
add dword [ebp + 8], eax
inc edi
cmp edi, dword [ebp - 0x8c]
jbe 0x409a96
mov eax, dword [ebp - 0x88]
mov edi, dword [eax + 0x28]
add edi, esi
call fcn.00409327
pushal
test eax, 0x75ffe687
adc al, 0x6a
add dword [esi - 1], edx
xlatb
mov eax, esi
jmp 0x409b22
push 0x8000
push ebx
push esi