joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402d10
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x42e4a0]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x18]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x402d56
lea ecx, [ebp - 0x20]
push ecx
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
jne 0x402d66
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00410127
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x1c]
push 0
push 0
push 0x10
lea edx, [ebp - 0x14]
push edx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x18]
push 0
push eax
mov dword [ebp - 0x14], 1
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x402db4
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00410127
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 1
call fcn.00410127
mov esp, ebp
pop ebp
ret
Function at 0x404190
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x423b68
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x42e4a0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov edi, ecx
cmp ebx, 0xffffffff
jne 0x4041cc
xor eax, eax
jmp 0x404351
mov eax, dword [edi + 0x24]
mov ecx, dword [eax]
test ecx, ecx
je 0x4041f5
mov eax, dword [edi + 0x34]
mov edx, dword [eax]
add edx, ecx
cmp ecx, edx
jae 0x4041f5
dec dword [eax]
mov edi, dword [edi + 0x24]
mov eax, dword [edi]
lea ecx, [eax + 1]
mov dword [edi], ecx
mov byte [eax], bl
mov eax, ebx
jmp 0x404351
cmp dword [edi + 0x54], 0
je 0x40434e
mov ecx, dword [edi + 0x10]
lea edx, [edi + 0x48]
cmp dword [ecx], edx
jne 0x40421d
mov edx, dword [edi + 0x3c]
mov eax, dword [edi + 0x40]
mov dword [ecx], edx
mov ecx, dword [edi + 0x20]
mov dword [ecx], eax
mov edx, dword [edi + 0x30]
sub eax, eax
mov dword [edx], eax
cmp dword [edi + 0x44], 0
jne 0x404243
mov edi, dword [edi + 0x54]
movsx eax, bl
push edi
push eax
call fcn.00410136
add esp, 8
cmp eax, 0xffffffff
je 0x40434e
mov eax, ebx
jmp 0x404351
lea esi, [ebp - 0x2c]
mov byte [ebp - 0x2d], bl
call fcn.00404b30
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x18]
jmp 0x404260
mov edx, eax
cmp ebx, 0x10
jae 0x40426c
lea edx, [ebp - 0x2c]
mov eax, edx
add edx, dword [ebp - 0x1c]
mov ecx, dword [edi + 0x44]
mov esi, dword [ecx]
lea ebx, [ebp - 0x34]
push ebx
push edx
push eax
lea edx, [ebp - 0x38]
push edx
lea eax, [ebp - 0x2c]
push eax
lea edx, [ebp - 0x2d]
push edx
lea eax, [edi + 0x4c]
push eax
mov eax, dword [esi + 0x14]
call eax
test eax, eax
js 0x404346
cmp eax, 1
jg 0x404300
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov ecx, eax
cmp ebx, 0x10
jae 0x4042ac
lea ecx, [ebp - 0x2c]
mov esi, dword [ebp - 0x34]
sub esi, ecx
je 0x4042d5
cmp ebx, 0x10
jae 0x4042bb
lea eax, [ebp - 0x2c]
mov ecx, dword [edi + 0x54]
push ecx
push esi
push 1
push eax
call fcn.00411321
add esp, 0x10
cmp esi, eax
jne 0x404346
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
lea edx, [ebp - 0x2d]
mov byte [edi + 0x49], 1
cmp dword [ebp - 0x38], edx
jne 0x404339
test esi, esi
jne 0x404260
cmp dword [ebp - 0x1c], 0x20
jae 0x404346
push esi
lea ebx, [esi + 8]
lea esi, [ebp - 0x2c]
call fcn.00404c00
jmp 0x404255
cmp eax, 3
jne 0x404346
mov edi, dword [edi + 0x54]
movsx eax, byte [ebp - 0x2d]
push edi
push eax
call fcn.00410136
add esp, 8
cmp eax, 0xffffffff
je 0x40432a
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
call fcn.004035c0
mov eax, esi
jmp 0x404351
lea ecx, [ebp - 0x2c]
or esi, 0xffffffff
call fcn.004035c0
mov eax, esi
jmp 0x404351
lea ecx, [ebp - 0x2c]
call fcn.004035c0
mov eax, dword [ebp + 8]
jmp 0x404351
lea ecx, [ebp - 0x2c]
call fcn.004035c0
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00410127
mov esp, ebp
pop ebp
ret 4
Function at 0x4053f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x423c78
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x42e4a0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [ebx + 0x44], 0
je 0x405581
cmp byte [ebx + 0x49], 0
je 0x405581
mov eax, dword [ebx]
mov edx, dword [eax + 0xc]
push 0xffffffffffffffff
mov ecx, ebx
call edx
cmp eax, 0xffffffff
je 0x405575
lea esi, [ebp - 0x2c]
call fcn.00404b30
mov dword [ebp - 4], 0
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov edx, eax
cmp edi, 0x10
jae 0x405463
lea edx, [ebp - 0x2c]
mov eax, edx
mov ecx, dword [ebx + 0x44]
mov esi, dword [ecx]
lea edi, [ebp - 0x30]
push edi
mov edi, dword [ebp - 0x1c]
add edi, edx
push edi
push eax
lea eax, [ebx + 0x4c]
push eax
mov eax, dword [esi + 0x18]
call eax
sub eax, 0
je 0x40549c
dec eax
je 0x4054a0
sub eax, 2
lea ecx, [ebp - 0x2c]
je 0x40557c
call fcn.004035c0
xor al, al
jmp 0x405583
mov byte [ebx + 0x49], 0
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov edx, eax
cmp edi, 0x10
jae 0x4054b0
lea edx, [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
sub esi, edx
je 0x4054dd
cmp edi, 0x10
jae 0x4054bf
lea eax, [ebp - 0x2c]
mov ecx, dword [ebx + 0x54]
push ecx
push esi
push 1
push eax
call fcn.00411321
add esp, 0x10
cmp esi, eax
jne 0x40556d
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
cmp byte [ebx + 0x49], 0
je 0x405579
test esi, esi
jne 0x405457
mov ecx, dword [ebp - 0x1c]
or edx, 0xffffffff
sub edx, ecx
cmp edx, 8
jbe 0x40559e
lea esi, [ecx + 8]
cmp esi, 0xfffffffe
ja 0x40559e
cmp edi, esi
jae 0x405556
push ecx
push esi
lea ecx, [ebp - 0x2c]
call fcn.00405e00
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
test esi, esi
je 0x405457
mov ecx, eax
cmp edi, 0x10
jae 0x405532
lea ecx, [ebp - 0x2c]
mov edx, dword [ebp - 0x1c]
xor eax, eax
mov dword [ecx + edx], eax
mov dword [ecx + edx + 4], eax
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x1c], esi
jae 0x40554d
lea eax, [ebp - 0x2c]
mov byte [eax + esi], 0
jmp 0x405451
test esi, esi
jne 0x405528
mov dword [ebp - 0x1c], esi
cmp edi, 0x10
jae 0x405565
lea eax, [ebp - 0x2c]
mov byte [eax], 0
jmp 0x405451
lea ecx, [ebp - 0x2c]
call fcn.004035c0
xor al, al
jmp 0x405583
lea ecx, [ebp - 0x2c]
call fcn.004035c0
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00410127
mov esp, ebp
pop ebp
ret
push str.string_too_long
call fcn.0040fb92
int3
Function at 0x405b70
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x423b0b
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x42e4a0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.0040fce6
push 4
mov dword [ebp - 4], 0
call fcn.004114cd
mov edi, eax
add esp, 4
test edi, edi
je 0x405bec
call fcn.0040fae1
mov dword [edi], eax
call fcn.0040f8a0
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.0040fca7
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x405be2
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.0040fccf
jmp 0x405bee
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4092b0
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp byte [esi + 8], 0
mov dword [esi], vtable.ArkThread.0
je 0x4092e2
cmp byte [esi + 9], 0
jne 0x4092e2
mov eax, dword [esi + 4]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, dword [esi + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [esi + 9], 1
test byte [ebp + 8], 1
je 0x4092f1
push esi
call fcn.0041114a
add esp, 4
mov eax, esi
pop esi
pop ebp
ret 4

Function at 0x409300
Capabilities:
Create thread

Disassembly:
cmp byte [esi + 8], 0
jne 0x409339
lea ecx, [esi + 0x10]
push ecx
push 0
push esi
push 0x409290
push 0
push 0
mov dword [esi + 0xc], eax
call fcn.00411612
add esp, 0x18
mov dword [esi + 4], eax
test eax, eax
je 0x409339
cmp byte [esi + 9], 0
je 0x409335
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [esi + 8], 1
movzx eax, byte [esi + 8]
ret

Function at 0x409340
Capabilities:
Terminate thread

Disassembly:
cmp byte [esi + 8], 0
je 0x409366
cmp byte [esi + 9], 0
jne 0x409366
mov eax, dword [esi + 4]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, dword [esi + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [esi + 9], 1
ret
Function at 0x409370
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x428
mov eax, dword [0x42e4a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x420], eax
lea eax, [ebp - 0x20c]
push 0x104
push eax
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x424], edx
call fcn.00420698
add esp, 8
lea ecx, [ebp - 0x418]
push ecx
push 0x42531c
push 1
push 0
push 0x42532c
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x4094d9
mov eax, dword [ebp - 0x418]
mov edx, dword [eax]
mov edx, dword [edx]
lea ecx, [ebp - 0x41c]
push ecx
push 0x42533c
push eax
call edx
test eax, eax
js 0x4094cb
mov eax, dword [ebp - 0x418]
mov ecx, dword [eax]
test ebx, ebx
jne 0x40940f
mov edx, dword [0x42f9cc]
push edx
push eax
mov eax, dword [ecx + 0x50]
call eax
jmp 0x409416
mov edx, dword [ecx + 0x50]
push ebx
push eax
call edx
mov eax, dword [ebp - 0x418]
mov ecx, dword [eax]
test esi, esi
je 0x40942b
mov edx, dword [ecx + 0x24]
push esi
push eax
call edx
jmp 0x409438
lea edx, [ebp - 0x20c]
push edx
push eax
mov eax, dword [ecx + 0x24]
call eax
test edi, edi
je 0x40944d
mov eax, dword [ebp - 0x418]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x44]
push 0
push edi
push eax
call edx
mov ecx, dword [ebp - 0x424]
test ecx, ecx
je 0x409466
mov eax, dword [ebp - 0x418]
mov edx, dword [eax]
push ecx
push eax
mov eax, dword [edx + 0x1c]
call eax
mov eax, dword [ebp - 0x418]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x3c]
push 1
push eax
call edx
mov eax, dword [ebp - 0x428]
test eax, eax
je 0x4094a1
push eax
mov eax, dword [ebp - 0x420]
push eax
lea ecx, [ebp - 0x108]
push str._s_s
push ecx
call fcn.004116dc
add esp, 0x10
jmp 0x40952b
push 0x5c
test ebx, ebx
je 0x4094aa
push ebx
jmp 0x4094b1
mov edx, dword [0x42f9cc]
push edx
call fcn.00411a50
add esp, 8
test eax, eax
jne 0x4094ec
mov eax, dword [ebp - 0x41c]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp - 0x418]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00410127
mov esp, ebp
pop ebp
ret 8
push eax
mov eax, dword [ebp - 0x420]
push eax
lea ecx, [ebp - 0x108]
push str._s_s
push ecx
call fcn.004116dc
lea eax, [ebp - 0x108]
add esp, 0x10
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x409511
sub eax, edx
lea eax, [ebp + eax - 0x108]
mov word [eax - 3], 0x6e6c
mov byte [eax - 1], 0x6b
push 0x104
lea edx, [ebp - 0x414]
push edx
push 0xffffffffffffffff
lea eax, [ebp - 0x108]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [ebp - 0x41c]
mov ecx, dword [eax]
push 1
lea edx, [ebp - 0x414]
push edx
push eax
mov eax, dword [ecx + 0x18]
call eax
mov esi, eax
mov eax, dword [ebp - 0x41c]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp - 0x418]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov ecx, dword [ebp - 4]
xor eax, eax
test esi, esi
setns al
xor ecx, ebp
pop esi
call fcn.00410127
mov esp, ebp
pop ebp
ret 8
Function at 0x409e00
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x164
mov eax, dword [0x42e4a0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, ecx
lea eax, [esi + 4]
push 0
push 0x429482
push eax
mov dword [esi], eax
mov byte [eax], 0
call fcn.00411bd7
mov eax, dword [esi]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
add esp, 0xc
lea ecx, [ebp - 0x160]
push ecx
push 0x20019
push 0
push 0x42ac68
push 0x80000002
mov byte [eax], 0
call ebx
test eax, eax
jne 0x409ec9
push 0x103
push eax
lea edx, [ebp - 0x107]
push edx
mov byte [ebp - 0x108], al
call fcn.004173c0
mov edx, dword [ebp - 0x160]
add esp, 0xc
lea eax, [ebp - 0x164]
push eax
lea ecx, [ebp - 0x108]
push ecx
push 0
push 0
push 0x42ac78
push edx
mov dword [ebp - 0x164], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x409ebc
lea eax, [ebp - 0x108]
push eax
push 0x42881c
mov edi, esi
call fcn.00409b50
add esp, 8
mov ecx, dword [ebp - 0x160]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esi]
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x409ed0
sub eax, edx
test eax, eax
jg 0x409fda
lea edx, [ebp - 0x164]
push edx
lea eax, [ebp - 0x160]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push 0x42ac68
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
lea ecx, [ebp - 0x160]
push ecx
push 0x20006
push 0
push 0x42ac68
push 0x80000002
call ebx
test eax, eax
jne 0x409fda
lea edx, [ebp - 0x118]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
movzx ecx, word [ebp - 0x112]
movzx edx, word [ebp - 0x116]
lea eax, [ebp - 0x158]
push ecx
mov dword [ebp - 0x15c], eax
movzx eax, word [ebp - 0x118]
push edx
push eax
push str.__d_d_d
lea edi, [ebp - 0x15c]
mov byte [ebp - 0x158], 0
call fcn.00409b50
mov edx, dword [ebp - 0x15c]
mov eax, edx
add esp, 0x10
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x409f84
mov ecx, dword [ebp - 0x160]
sub eax, edi
push eax
push edx
push 1
push 0
push 0x42ac78
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [ebp - 0x160]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x15c]
push eax
or eax, 0xffffffff
call fcn.004096f0
mov eax, dword [ebp - 0x15c]
lea ecx, [ebp - 0x158]
cmp eax, ecx
je 0x409fda
push eax
call fcn.00410721
add esp, 4
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.00410127
mov esp, ebp
pop ebp
ret
Function at 0x409ff0
Capabilities:
Check if file exists
Create directory
Extract resource via kernel32 functions
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x423f78
mov eax, dword fs:[0]
push eax
sub esp, 0x138
mov eax, dword [0x42e4a0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x140], eax
push 0x42ac88
push 0x66
push 0
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x40a12b
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
push esi
test ebx, ebx
jne 0x40a06a
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebp + 0xc]
lea edx, [ebp + 0x10]
cmp eax, edx
jmp 0x40a133
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test edi, edi
je 0x40a12b
push edi
call fcn.0040fe00
add esp, 4
mov dword [0x4306ec], eax
test eax, eax
je 0x40a0a6
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edx, dword [0x4306ec]
push eax
push edx
call fcn.00412480
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
push 0x12c
lea eax, [ebp - 0x13c]
push 0
push eax
call fcn.004173c0
push edi
call fcn.0040f580
mov edi, eax
add esp, 0x10
test edi, edi
je 0x40a126
push 0xffffffffffffffff
lea edx, [ebp - 0x13c]
call fcn.0040f5f0
add esp, 4
test eax, eax
jne 0x40a126
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x40a0fe
mov edx, dword [ebp + 0xc]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
sub esp, 0x44
lea ecx, [ebp + 0xc]
mov eax, esp
mov dword [ebp - 0x144], esp
push ecx
call fcn.004095a0
mov edx, dword [ebp - 0x13c]
mov ecx, dword [ebp - 0x140]
push edx
mov edx, edi
call fcn.0040a160
call fcn.0040f630
mov eax, dword [ebp + 0xc]
lea ecx, [ebp + 0x10]
cmp eax, ecx
je 0x40a13e
push eax
call fcn.00410721
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00410127
mov esp, ebp
pop ebp
ret 0x48
Function at 0x40a160
Capabilities:
Create directory
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x423f40
mov eax, dword fs:[0]
push eax
sub esp, 0x17c
mov eax, dword [0x42e4a0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, edx
mov dword [ebp - 0x184], edi
mov dword [ebp - 0x188], esi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword [edi + 0x98]
cmp eax, ebx
je 0x40a1be
mov ecx, dword [ebp + 8]
push ebx
push ecx
push 0x52c
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
cmp dword [ebp + 8], ebx
jle 0x40a347
jmp 0x40a1d6
mov esi, dword [ebp - 0x188]
push 0x12c
lea edx, [ebp - 0x180]
push 0
push edx
call fcn.004173c0
add esp, 0xc
test esi, esi
jne 0x40a1fc
mov dword [0x4306f4], 0x10000
jmp 0x40a221
cmp dword [esi], 1
je 0x40a20d
mov dword [0x4306f4], 0x80000
jmp 0x40a221
mov ecx, dword [esi + 4]
push ebx
lea edx, [ebp - 0x180]
call fcn.0040eb60
mov dword [0x4306f4], eax
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 0x50]
mov dword [ebp - 0x54], eax
mov byte [ebp - 0x50], 0
test edi, edi
jne 0x40a237
mov edi, 0x429482
mov ecx, edi
lea esi, [ecx + 1]
lea esp, [esp]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x40a240
sub ecx, esi
mov esi, ecx
cmp esi, 0x3f
jl 0x40a268
lea eax, [esi + 1]
push eax
push 0
mov dword [ebp - 0x54], 0
call fcn.00411e87
add esp, 8
mov dword [ebp - 0x54], eax
push esi
push edi
push eax
call fcn.00411bd7
mov ecx, dword [ebp - 0x54]
add esp, 0xc
mov byte [esi + ecx], 0
push 0x4285d8
lea eax, [ebp - 0x54]
mov byte [ebp - 4], 1
call fcn.004095f0
lea edx, [ebp - 0x17c]
push edx
lea eax, [ebp - 0x54]
call fcn.004095f0
test byte [ebp - 0x78], 0x10
je 0x40a2ac
mov eax, dword [ebp - 0x54]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov eax, dword [ebp - 0x188]
test eax, eax
jne 0x40a2c2
mov dword [0x4306f4], 0x10000
jmp 0x40a2e5
cmp dword [eax], 1
je 0x40a2d3
mov dword [0x4306f4], 0x80000
jmp 0x40a2e5
mov edx, dword [ebp - 0x54]
mov ecx, dword [eax + 4]
push edx
push ebx
call fcn.0040f250
mov dword [0x4306f4], eax
mov eax, dword [ebp - 0x54]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 1
je 0x40a301
mov ecx, dword [ebp - 0x54]
and eax, 0xfffffffe
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov edx, dword [ebp - 0x184]
mov eax, dword [edx + 0x98]
test eax, eax
je 0x40a320
push 0
push ebx
push 0x52d
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x54]
lea ecx, [ebp - 0x50]
cmp eax, ecx
je 0x40a337
push eax
call fcn.00410721
add esp, 4
inc ebx
cmp ebx, dword [ebp + 8]
jl 0x40a1d0
mov edi, dword [ebp - 0x184]
mov eax, dword [edi + 0x98]
test eax, eax
je 0x40a361
push 0
push 0
push 0x52e
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
mov eax, dword [ebp + 0xc]
lea edx, [ebp + 0x10]
cmp eax, edx
je 0x40a374
push eax
call fcn.00410721
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00410127
mov esp, ebp
pop ebp
ret 0x48
Function at 0x40aaa0
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x90
mov eax, dword [0x42e4a0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x90]
push eax
push 0x20006
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push 0x80000002
mov esi, ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40aba0
mov edx, dword [0x4306f8]
push edi
lea ecx, [ebp - 0x88]
mov byte [ebp - 0x88], al
mov eax, dword [edx + 4]
mov dword [ebp - 0x8c], ecx
mov ecx, dword [esi]
push eax
push ecx
push str._s_s__mini
lea edi, [ebp - 0x8c]
call fcn.00409b50
lea edx, [ebp - 0x44]
push 0xa
mov eax, edx
push str.WujiPlayer
push eax
mov dword [ebp - 0x48], edx
mov byte [ebp - 0x44], 0
call fcn.00411bd7
mov ecx, dword [ebp - 0x48]
mov byte [ecx + 0xa], 0
mov edx, dword [esi + 0x54]
add esp, 0x18
push edx
lea eax, [ebp - 0x48]
call fcn.004095f0
mov edx, dword [ebp - 0x8c]
mov eax, edx
lea esi, [eax + 1]
pop edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40ab47
mov ecx, dword [ebp - 0x90]
sub eax, esi
push eax
mov eax, dword [ebp - 0x48]
push edx
push 1
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [ebp - 0x90]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x48]
lea ecx, [ebp - 0x44]
cmp eax, ecx
je 0x40ab87
push eax
call fcn.00410721
add esp, 4
mov eax, dword [ebp - 0x8c]
lea edx, [ebp - 0x88]
cmp eax, edx
je 0x40aba0
push eax
call fcn.00410721
add esp, 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00410127
mov esp, ebp
pop ebp
ret
Function at 0x40abb0
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x90
mov eax, dword [0x42e4a0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x90]
push eax
push 0x20006
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push 0x80000002
mov esi, ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40acb0
mov edx, dword [0x4306f8]
push edi
lea ecx, [ebp - 0x88]
mov byte [ebp - 0x88], al
mov eax, dword [edx + 8]
mov dword [ebp - 0x8c], ecx
mov ecx, dword [esi]
push eax
push ecx
push str._s_s__mini
lea edi, [ebp - 0x8c]
call fcn.00409b50
lea edx, [ebp - 0x44]
push 6
mov eax, edx
push str.WJNews
push eax
mov dword [ebp - 0x48], edx
mov byte [ebp - 0x44], 0
call fcn.00411bd7
mov ecx, dword [ebp - 0x48]
mov byte [ecx + 6], 0
mov edx, dword [esi + 0x54]
add esp, 0x18
push edx
lea eax, [ebp - 0x48]
call fcn.004095f0
mov edx, dword [ebp - 0x8c]
mov eax, edx
lea esi, [eax + 1]
pop edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40ac57
mov ecx, dword [ebp - 0x90]
sub eax, esi
push eax
mov eax, dword [ebp - 0x48]
push edx
push 1
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [ebp - 0x90]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x48]
lea ecx, [ebp - 0x44]
cmp eax, ecx
je 0x40ac97
push eax
call fcn.00410721
add esp, 4
mov eax, dword [ebp - 0x8c]
lea edx, [ebp - 0x88]
cmp eax, edx
je 0x40acb0
push eax
call fcn.00410721
add esp, 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00410127
mov esp, ebp
pop ebp
ret