joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10006900
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001fe76
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x1002b130]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x41c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x420], eax
mov dword [ebp - 0x430], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], 0
mov dword [ebp - 0x418], 0
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push 0x60
push 0
push esi
mov byte [ebp - 4], 1
call ebx
mov edi, eax
mov dword [ebp - 0x424], edi
test edi, edi
jne 0x100069ac
push 2
push eax
push esi
call ebx
mov edi, eax
mov dword [ebp - 0x424], eax
test edi, edi
jne 0x100069ac
call fcn.10005530
mov esi, eax
jmp 0x10006a9c
push dword [ebp - 0x420]
push dword [ebp - 0x41c]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x100069cf
call fcn.10005530
jmp 0x10006a8f
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x41c], ebx
test ebx, ebx
jne 0x100069ed
call fcn.10005530
jmp 0x10006a8f
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
mov dword [ebp - 0x420], esi
lea eax, [esi + 1]
cmp eax, esi
jae 0x10006a0e
mov esi, 0x8007000e
jmp 0x10006a91
push eax
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 2
call fcn.100050e0
jmp 0x10006a38
cmp dword [ebp - 0x418], 0
mov dword [ebp - 4], 1
jne 0x10006a4f
mov esi, 0x8007000e
jmp 0x10006a91
push esi
push dword [ebp - 0x418]
push esi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
jne 0x10006a6f
call fcn.10005530
jmp 0x10006a8f
mov eax, dword [ebp - 0x418]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x42c]
push dword [ebp - 0x418]
call fcn.100067a0
mov esi, eax
test edi, edi
je 0x10006a9c
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x10006ac0
lea ecx, [ebp - 0x418]
call fcn.10006120
jmp 0x10006ac0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1000ef8b
mov esp, ebp
pop ebp
ret 0x10
Function at 0x100072f0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
test ebx, ebx
jne 0x10007309
lea eax, [ebx + 0xd]
pop ebx
mov esp, ebp
pop ebp
ret 8
push esi
push edi
xor esi, esi
mov edx, ebx
nop
mov eax, edx
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10007315
sub eax, edi
sar eax, 1
lea ecx, [eax + 1]
lea edx, [edx + ecx*2]
lea esi, [esi + ecx*2]
cmp ecx, 1
jne 0x10007310
mov eax, dword [ebp - 4]
push esi
push ebx
push 7
push 0
push dword [ebp + 8]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x10007350
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
push esi
mov esi, ecx
test edx, edx
jne 0x10007365
lea eax, [edx + 0xd]
pop esi
pop ebp
ret 0xc
mov eax, edx
push edi
lea edi, [eax + 2]
jmp 0x10007370
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10007370
sub eax, edi
sar eax, 1
lea eax, [eax*2 + 2]
push eax
push edx
push dword [ebp + 0x10]
push 0
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x1000b6e0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x1002b130]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
xor ecx, ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
push ecx
mov word [ebp - 8], cx
mov ecx, esp
push eax
mov dword [ebp - 0x24], 0x630073
mov dword [ebp - 0x20], 0x690072
mov dword [ebp - 0x1c], 0x740070
mov dword [ebp - 0x18], 0x73005f
mov dword [ebp - 0x14], 0x6f0074
mov dword [ebp - 0x10], 0x610072
mov dword [ebp - 0xc], 0x650067
call fcn.10001490
push ecx
lea eax, [ebp - 0x24]
mov ecx, esp
push eax
call fcn.10001490
push ecx
mov ecx, esp
push esi
call fcn.10001490
call fcn.1000e100
mov ecx, dword [ebp - 4]
add esp, 0xc
xor ecx, ebp
xor eax, eax
pop edi
pop esi
pop ebx
call fcn.1000ef8b
mov esp, ebp
pop ebp
ret 0xc

Function at 0x1000c0c0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
sub esp, 0x2c
xor al, al
test ecx, ecx
je 0x1000c1d1
mov eax, dword [ecx]
lea edx, [ebp + 8]
push ebx
push esi
push edi
push edx
push ecx
mov dword [ebp + 8], 0
call dword [eax + 0x58]
mov esi, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0x14], 0x6f0063
mov edx, 0x74
mov dword [ebp - 0x10], 0x70006d
mov dword [ebp - 0xc], 0x65006c
mov dword [ebp - 8], 0x650074
mov word [ebp - 4], ax
mov dword [ebp - 0x2c], 0x6e0069
mov dword [ebp - 0x28], 0x650074
mov dword [ebp - 0x24], 0x610072
mov dword [ebp - 0x20], 0x740063
mov dword [ebp - 0x1c], 0x760069
mov dword [ebp - 0x18], 0x65
test esi, esi
je 0x1000c1c3
lea ecx, [ebp - 0x14]
mov eax, esi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x1000c16e
test dx, dx
je 0x1000c16a
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x1000c16e
add eax, 4
add ecx, 4
test dx, dx
jne 0x1000c148
xor eax, eax
jmp 0x1000c173
sbb eax, eax
or eax, 1
test eax, eax
je 0x1000c1b1
cmp byte [ebp + 0xc], 0
jne 0x1000c1c3
lea eax, [ebp - 0x2c]
mov ecx, esi
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x1000c1a8
test dx, dx
je 0x1000c1a4
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x1000c1a8
add ecx, 4
add eax, 4
test dx, dx
jne 0x1000c182
xor eax, eax
jmp 0x1000c1ad
sbb eax, eax
or eax, 1
test eax, eax
jne 0x1000c1c3
push esi
mov bl, 1
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
push esi
xor bl, bl
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1000c320
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
add eax, eax
mov dword [edi], 0
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0x10]
push eax
push esi
lea eax, [ebp + 0xc]
push eax
push 0
push dword [ebp + 8]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1000c391
mov eax, dword [ebp + 0xc]
cmp eax, 1
je 0x1000c35f
cmp eax, 2
jne 0x1000c37b
mov ecx, dword [ebp + 0x10]
test esi, esi
je 0x1000c38b
test ecx, ecx
je 0x1000c386
test cl, 1
jne 0x1000c37b
mov eax, ecx
shr eax, 1
cmp word [esi + eax*2 - 2], 0
je 0x1000c38b
pop edi
mov eax, 0xd
pop esi
pop ebp
ret 0xc
xor eax, eax
mov word [esi], ax
shr ecx, 1
xor eax, eax
mov dword [edi], ecx
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x1000d2a0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10020589
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x1002b130]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], 0
mov ebx, dword [ebp + 8]
mov ecx, ebx
push 0x10021a14
mov dword [ebp - 4], 1
call fcn.10001490
mov eax, dword [ebp + 0xc]
mov edx, 1
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 1
sub edx, dword [eax - 4]
mov ecx, dword [eax - 8]
or ecx, edx
jge 0x1000d312
push 0
lea ecx, [ebp + 0xc]
call fcn.100029c0
mov eax, dword [ebp + 0xc]
push 0x10021e90
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.100108a9
add esp, 0xc
or edi, 0xffffffff
test eax, eax
jne 0x1000d3db
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x1000d3db
push 2
push 0
push eax
call fcn.10010d9b
push dword [ebp - 0x10]
call fcn.100111ae
push 0
push 0
push dword [ebp - 0x10]
mov esi, eax
call fcn.10010d9b
xor ecx, ecx
lea eax, [esi + 1]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1000e5a7
mov ecx, eax
lea eax, [esi*2 + 2]
push eax
push 0
push ecx
mov dword [ebp - 0x18], ecx
call fcn.1000fa70
push dword [ebp - 0x10]
push esi
mov esi, dword [ebp - 0x18]
push 2
push esi
call fcn.10010c60
push dword [ebp - 0x10]
call fcn.10010a24
add esp, 0x40
test esi, esi
je 0x1000d3db
push esi
lea ecx, [ebp - 0x18]
call fcn.10001490
push eax
mov ecx, ebx
mov byte [ebp - 4], 2
call fcn.100084e0
mov edx, dword [ebp - 0x18]
mov ecx, edi
add edx, 0xfffffff0
mov byte [ebp - 4], 1
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x1000d3db
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp + 0xc]
add esi, 0xfffffff0
mov byte [ebp - 4], 0
lea eax, [esi + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x1000d3f9
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1000d7e0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
mov ebx, dword [ebp + 0x14]
lea ecx, [ebp - 0x14]
push esi
push edi
push 0x20019
push dword [ebp + 0xc]
mov dword [ebp - 0x14], 0
push dword [ebp + 8]
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov dword [ebp + 0x14], ebx
call fcn.100028a0
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [ebp - 0x14]
test eax, eax
jne 0x1000d859
lea eax, [ebp - 4]
mov dword [ebp - 4], 4
push eax
lea eax, [ebp + 0x14]
push eax
lea eax, [ebp - 8]
push eax
push 0
push dword [ebp + 0x10]
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1000d84d
cmp dword [ebp - 8], 4
je 0x1000d850
mov dword [ebp + 0x14], ebx
test esi, esi
je 0x1000d859
push esi
call edi
xor esi, esi
mov ebx, dword [ebp + 0x14]
test esi, esi
je 0x1000d863
push esi
call edi
mov edx, dword [ebp + 0xc]
or esi, 0xffffffff
add edx, 0xfffffff0
mov eax, esi
lea ecx, [edx + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x1000d882
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [ebp + 0x10]
add edi, 0xfffffff0
lea eax, [edi + 0xc]
lock xadd dword [eax], esi
dec esi
test esi, esi
jg 0x1000d89c
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1000d8b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10020689
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x1002b130]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 4], 1
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov eax, dword [ebp + 0x18]
add eax, 0xfffffff0
mov byte [ebp - 4], 4
push eax
call fcn.100021c0
mov edi, dword [ebp + 8]
add eax, 0x10
add esp, 4
mov dword [edi], eax
push 0x20019
push dword [ebp + 0x10]
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 1
push dword [ebp + 0xc]
call fcn.100028a0
test eax, eax
jne 0x1000d9eb
mov ebx, dword [ebp - 0x28]
xor esi, esi
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
push esi
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x14], esi
push eax
push esi
push dword [ebp + 0x14]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1000d970
mov eax, dword [ebp - 0x1c]
cmp eax, 1
je 0x1000d968
cmp eax, 2
jne 0x1000d970
mov esi, dword [ebp - 0x10]
shr esi, 1
mov dword [ebp - 0x14], esi
inc esi
jns 0x1000d97d
push 0x80070057
call fcn.10002190
mov eax, dword [edi]
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, esi
or eax, ecx
jge 0x1000d998
push esi
mov ecx, edi
call fcn.100029c0
lea eax, [ebp - 0x14]
push eax
push dword [edi]
lea ecx, [ebp - 0x28]
push dword [ebp + 0x14]
call fcn.1000c320
mov ecx, dword [edi]
mov esi, eax
test ecx, ecx
je 0x1000d9c3
push dword [ecx - 8]
push ecx
call fcn.1000eec0
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x1000d973
mov eax, dword [edi]
cmp ecx, dword [eax - 8]
jg 0x1000d973
mov dword [eax - 0xc], ecx
xor edx, edx
mov eax, dword [edi]
mov word [eax + ecx*2], dx
test esi, esi
je 0x1000d9e4
lea eax, [ebp + 0x18]
mov ecx, edi
push eax
call fcn.100084e0
test ebx, ebx
je 0x1000d9f9
push ebx
jmp 0x1000d9f3
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x1000d9f9
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp + 0x10]
or esi, 0xffffffff
add edx, 0xfffffff0
mov byte [ebp - 4], 2
mov eax, esi
lea ecx, [edx + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x1000da1c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp + 0x14]
mov ecx, esi
add edx, 0xfffffff0
mov byte [ebp - 4], 1
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x1000da3c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ebx, dword [ebp + 0x18]
add ebx, 0xfffffff0
mov byte [ebp - 4], 0
lea eax, [ebx + 0xc]
lock xadd dword [eax], esi
dec esi
test esi, esi
jg 0x1000da5a
mov ecx, dword [ebx]
push ebx
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1000df80
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x1002b130]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x11c
lea eax, [ebp - 0x120]
push 0
push eax
call fcn.1000fa70
add esp, 0xc
mov dword [ebp - 0x120], 0x11c
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x1000dfed
lea eax, [ebp - 0x120]
mov dword [ebp - 0x120], 0x114
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x1000dfed
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000ef8b
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x110]
dec eax
je 0x1000e0ab
dec eax
jne 0x1000e0e0
mov eax, dword [ebp - 0x11c]
cmp eax, 4
ja 0x1000e01f
mov eax, 0x401
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000ef8b
mov esp, ebp
pop ebp
ret
cmp eax, 5
jne 0x1000e071
mov eax, dword [ebp - 0x118]
test eax, eax
jne 0x1000e041
mov eax, 0x500
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000ef8b
mov esp, ebp
pop ebp
ret
cmp eax, 1
jne 0x1000e059
mov eax, 0x501
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000ef8b
mov esp, ebp
pop ebp
ret
cmp eax, 2
jne 0x1000e080
mov eax, 0x502
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000ef8b
mov esp, ebp
pop ebp
ret
cmp eax, 6
jne 0x1000e080
mov eax, dword [ebp - 0x118]
test eax, eax
jne 0x1000e093
mov eax, 0x600
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000ef8b
mov esp, ebp
pop ebp
ret
cmp eax, 1
jne 0x1000e080
mov eax, 0x601
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000ef8b
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x11c], 4
jne 0x1000e0e0
mov eax, dword [ebp - 0x118]
test eax, eax
je 0x1000e0e0
cmp eax, 0xa
jne 0x1000e0d6
mov eax, 0x40a
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000ef8b
mov esp, ebp
pop ebp
ret
cmp eax, 0x5a
mov eax, 0x45a
je 0x1000e0e5
mov eax, 0x400
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000ef8b
mov esp, ebp
pop ebp
ret
Function at 0x1000e100
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100207c0
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x1002b130]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov eax, dword [ebp + 0xc]
or esi, 0xffffffff
mov byte [ebp - 4], 3
cmp dword [eax - 0xc], 0
je 0x1000e196
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x10]
push 0x10021298
push eax
call fcn.1000b8c0
add esp, 0xc
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 4
call fcn.100084e0
mov edx, dword [ebp - 0x10]
mov ecx, esi
add edx, 0xfffffff0
mov byte [ebp - 4], 3
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x1000e196
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x14]
push eax
call fcn.1000da70
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 5
push ecx
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.10008770
add esp, 0x10
lea ecx, [ebp - 0x20]
push 0
push 0
push 0x2001f
push 0
push 0
push dword [eax]
push SysReAllocString
call fcn.10005df0
mov edi, dword [ebp - 0x10]
mov ebx, eax
add edi, 0xfffffff0
mov edx, esi
lea ecx, [edi + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1000e1ee
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x14]
mov ecx, esi
add edx, 0xfffffff0
mov byte [ebp - 4], 3
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x1000e20e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test ebx, ebx
jne 0x1000e25d
mov eax, dword [ebp + 0x10]
xor ecx, ecx
mov edi, dword [ebp - 0x20]
test eax, eax
setne cl
test ecx, ecx
je 0x1000e256
mov edx, eax
lea ebx, [edx + 2]
jmp 0x1000e230
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x1000e230
sub edx, ebx
sar edx, 1
lea ecx, [edx*2 + 2]
push ecx
push eax
push 1
push 0
push dword [ebp + 8]
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test edi, edi
je 0x1000e26b
push edi
jmp 0x1000e265
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x1000e26b
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp + 8]
mov ecx, esi
add edx, 0xfffffff0
mov byte [ebp - 4], 1
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x1000e28b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp + 0xc]
mov ecx, esi
add edx, 0xfffffff0
mov byte [ebp - 4], 0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x1000e2ab
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp + 0x10]
add edx, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [edx + 0xc]
lock xadd dword [eax], esi
dec esi
test esi, esi
jg 0x1000e2cc
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401407
Capabilities:
Terminate process

Disassembly:
push ebx
mov eax, 0xf804
mov ebx, 0x12345678
mov ecx, 0x12345678
mov edx, 0x12345678
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov dword [section..data], eax
jmp loc.0047b432
Function at 0x432003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
mov eax, section..rsrc
mov ebx, 0x40c7d0
nop
nop
mov ecx, 0x2a977585
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43204e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x432024
nop
mov eax, section..data
nop
nop
mov ebx, 0x42f314
nop
mov ecx, 0x4d5b2272
nop
nop
test eax, eax
nop
nop
je 0x432084
nop
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x43206c
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x405ca9
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push dword [esp + 0xc]
mov esi, eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x405cc0
pop esi
ret
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x405cf5
push dword [esp + 0x10]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, edi
and esi, 0xf
jbe 0x405cf1
cmp edi, eax
jae 0x405cf5
dec esi
movzx ecx, word [edi]
lea edi, [edi + ecx*2 + 2]
jne 0x405ce3
cmp edi, eax
jb 0x405cf9
xor eax, eax
jmp 0x405d03
mov ax, word [edi]
neg ax
sbb eax, eax
and eax, edi
pop edi
pop esi
ret

Function at 0x405efa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebx]
xor ecx, ecx
cmp eax, ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], ecx
je 0x405f88
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea edx, [ebp - 4]
push edx
push ecx
lea edx, [ebp - 8]
push edx
push ecx
push dword [ebp + 8]
push eax
call edi
cmp dword [ebp - 8], 1
je 0x405f31
cmp dword [ebp - 8], 2
jne 0x405f87
push esi
mov esi, dword [ebp + 0xc]
call fcn.00405b73
mov eax, dword [ebp - 4]
shr eax, 1
inc eax
push eax
call fcn.00405a74
mov esi, eax
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp - 8]
push eax
push 0
push dword [ebp + 8]
push dword [ebx]
call edi
test eax, eax
jne 0x405f6f
mov eax, dword [ebp - 4]
shr eax, 1
and word [esi + eax*2], 0
mov dword [ebp - 0xc], 1
mov esi, dword [ebp + 0xc]
mov eax, dword [esi]
test eax, eax
je 0x405f7f
push eax
call fcn.0048bf85
pop ecx
mov edx, esi
call fcn.00405a3b
pop esi
pop edi
mov eax, dword [ebp - 0xc]
leave
ret 8

Function at 0x406149
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
mov eax, 0x4a7e85
call fcn.004a5cc8
push ecx
push ebx
push esi
push edi
push dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
call fcn.00405bb3
push dword [ebp + 8]
and dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x406194
xor esi, esi
inc esi
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00405943
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0
push dword [ebp + 8]
call esi
test eax, eax
jne 0x406175
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
mov ebx, 0xb7
cmp eax, ebx
je 0x406175
lea ecx, [ebp - 0x10]
call fcn.0042839e
mov eax, dword [ebp - 0x10]
cmp dword [eax - 0xc], 0
jne 0x4061cb
xor esi, esi
jmp 0x406178
push eax
call fcn.00406149
test eax, eax
pop ecx
je 0x4061c7
push 0
push dword [ebp + 8]
call esi
test eax, eax
jne 0x406175
call edi
cmp eax, ebx
jne 0x4061c7
jmp 0x406175