joyce8/EMBER2024-capa huggingface dataset:
Function at 0x646232f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0xffffffffffffffff
push esi
mov esi, esp
xor dword [esp - 0x43], esi
xor dword [esp - 0x45], esi
and dword [esi + 4], eax
pop esi
push 0
ja 0x64623239
add ebx, 0
push ecx
call 0x6462324e
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
add esp, 8
xor dword [esp], ebx
sub esp, 0x6b
mov dword [esp + 0x67], edx
add esp, 0x67
push ecx
push 0
xor dword [esp - 0x56], edx
xor edi, 0
add dword [esp], edi
push esi
mov ebx, 0x7277114a
sub ebx, dword [0x72790989]
mov dword [ebp - 8], ebx
xchg esi, eax
push 0x72790979
call fcn.6461ed18
xchg esi, eax
add esi, ebx
mov edx, dword [ebp + 8]
sub edx, ebx
call fcn.6461e226
mov edi, eax
mov eax, dword [esi + 8]
xor dword [esp - 0x69], edx
xor ebx, 0
xor eax, edi
cmp edx, eax
jb 0x646233ac
mov eax, dword [esi + 0xc]
xor eax, edi
cmp edx, eax
ja 0x646233ac
mov ecx, dword [esi + 0x10]
sub dword [esp - 0x34], ebx
xor ecx, edi
mov edx, dword [esi + 0x14]
xor edx, edi
shl edx, 2
add edx, 0x18
mov eax, dword [esi]
xor eax, edi
cmp eax, 1
je 0x64623363
mov eax, 1
lock xchg dword [0x72790985], eax
push 0x3dd1fc71
call 0x646232f0
push esi
add esp, 8
cmp eax, 0
jne 0x646232d9
push edx
mov eax, edi
xor byte [esi + edx], al
inc edx
dec ecx
jne 0x646232ff
pop edx
mov eax, dword [esi + 0x14]
xor eax, edi
js 0x64623314
cmp ecx, edx
cmp eax, 0
je 0x64623339
mov dword [ebp - 4], eax
lea ecx, [esi + 0x18]
mov eax, dword [esi + ecx]
xor eax, edi
add eax, edx
add dword [esi + eax], ebx
add ecx, 4
dec dword [ebp - 4]
jne 0x64623323
mov eax, 1
mov dword [esp - 0x1a], eax
push 0x8ae1b7eb
call fcn.64623352
dec eax
loope 0x64623355
invalid
xor eax, edi
mov dword [esi], eax
mov dword [0x72790985], 0
add edx, esi
mov dword [ebp + 4], edx
xchg dword [esp], esi
push ecx
lea ecx, [edi - 0x72d1f741]
mov ecx, esp
mov dword [ecx - 0x15], ebx
pop ecx
push esi
xor esi, esi
mov esi, esp
and dword [esi - 0x1d], ecx
pop esi
mov dword [esp], esi
jb 0x64623389
xor edx, 0
add esp, 4
pop edi
pop ecx
pop edx
pop ebx
pop eax
leave
jmp 0x6462339e
jmp 0x646233a9
ret 4
mov eax, dword [esi + 4]
xor eax, edi
add esi, eax
jmp 0x64623297
Function at 0x6462a411
Capabilities:
Access peb ldr_data

Disassembly:
add esp, 8
and dword [esp], ebx
push ecx
push edx
push edi
push esi
or edi, 0xffffffff
not edi
add edi, dword [ebp + 8]
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov ecx, dword [eax + 0xc]
push ecx
xor edx, edx
mov ecx, dword [ecx]
cmp ecx, dword [esp]
je 0x6462a6e7
push ebp
push 0xffffffffffffffff
sub esp, 0x32
mov dword [esp + 0x2e], 0x7277d5fd
add esp, 0x2e
sub esp, 4
mov dword [esp], 0x727745c3
push 0xffffffffffffffff
call fcn.64621611
xchg edx, eax
and eax, 0
add eax, 0x75d46dc4
push ecx
and ecx, 0xcfb6d7ec
mov ecx, esp
mov dword [ecx - 0x54], esi
pop ecx
ja 0x6462a47b
and eax, eax
xchg edx, eax
mov edx, dword [ecx + edx - 0x75d46dac]
call fcn.6462a493
mov byte [0xee69f033], al
invalid
mov eax, ecx
pop esi
mov edi, dword [esp]
add esp, 4
pop edx
xor ecx, ecx
add ecx, 0xffffffff
and ecx, dword [esp]
xor ecx, 0
add esp, 4
pop ebx
mov esp, ebp
mov ebp, dword [esp]
add esp, 4
jno 0x6462a6db
xor eax, 0
ret 4
xor ecx, ecx
jmp 0x6462a6af
Function at 0x64639ee1
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push ecx
lea esp, [esp - 0x10]
mov dword [esp + 0xc], edx
lea esp, [esp + 0xc]
sub esp, 4
mov dword [esp], 0x8b92e34e
mov dword [esp], edi
push esi
mov eax, dword [ebp + 8]
and ax, 0xf001
dec eax
cmp word [eax], 0x5a4d
jne 0x64639f03
mov ebx, dword [eax + 0x3c]
cmp ebx, 0xf08
ja 0x64639f03
add ebx, eax
cmp dword [ebx], 0x4550
jne 0x64639f03
ret
cmp word [ebx + 4], 0x14c
jne 0x64639f03
test word [ebx + 0x16], 2
je 0x64639f03
test word [ebx + 0x16], 0x100
je 0x64639f03
cmp word [ebx + 0x18], 0x10b
jne 0x64639f03
mov edx, dword [ebx + 0x78]
cmp edx, 0
je 0x64639f03
lea edx, [eax + edx]
mov edx, dword [edx + 0xc]
push 0xe1641d81
call 0x64639f8f
adc al, 0xbd
mov dl, 3
cmp byte [ecx + 0x75ac5ffe], 0xa
jnp 0x64639f23
int1
salc
push edi
inc esp
add esp, 8
lea edx, [edx + eax]
mov ebx, eax
push edx
call fcn.64620e6e
xchg ebx, eax
cmp ebx, dword [ebp + 0xc]
jne 0x64639f03
sub esp, 0x3e
mov esi, dword [esp + 0x3e]
add esp, 0x42
pop edi
mov edx, dword [esp]
add esp, 4
pop ecx
pop ebx
leave
ret 8

Function at 0x64639f8f
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push ecx
lea esp, [esp - 0x10]
mov dword [esp + 0xc], edx
lea esp, [esp + 0xc]
sub esp, 4
mov dword [esp], 0x8b92e34e
mov dword [esp], edi
push esi
mov eax, dword [ebp + 8]
and ax, 0xf001
dec eax
cmp word [eax], 0x5a4d
jne 0x64639f03
mov ebx, dword [eax + 0x3c]
cmp ebx, 0xf08
ja 0x64639f03
add ebx, eax
cmp dword [ebx], 0x4550
jne 0x64639f03
ret
cmp word [ebx + 4], 0x14c
jne 0x64639f03
test word [ebx + 0x16], 2
je 0x64639f03
test word [ebx + 0x16], 0x100
je 0x64639f03
cmp word [ebx + 0x18], 0x10b
jne 0x64639f03
mov edx, dword [ebx + 0x78]
cmp edx, 0
je 0x64639f03
lea edx, [eax + edx]
mov edx, dword [edx + 0xc]
push 0xe1641d81
call 0x64639f8f
adc al, 0xbd
mov dl, 3
cmp byte [ecx + 0x75ac5ffe], 0xa
jnp 0x64639f23
int1
salc
push edi
inc esp
add esp, 8
lea edx, [edx + eax]
mov ebx, eax
push edx
call fcn.64620e6e
xchg ebx, eax
cmp ebx, dword [ebp + 0xc]
jne 0x64639f03
sub esp, 0x3e
mov esi, dword [esp + 0x3e]
add esp, 0x42
pop edi
mov edx, dword [esp]
add esp, 4
pop ecx
pop ebx
leave
ret 8
Function at 0x6463a046
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0
push ecx
xor ecx, ecx
jne 0x6463a09f
mov ecx, esp
xor dword [ecx - 0x55], edi
pop ecx
call 0x6463a046
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
call 0x6463a055
cld
test edx, ebx
or ebp, eax
add dword [esi - 0x7cc26b19], esp
les ecx, [eax]
or dword [esp], ebp
mov ebp, esp
sub esp, 0x100
push ebx
push edx
push ecx
push edi
push esi
mov ebx, dword [ebp + 8]
mov edx, ebx
add ebx, dword [ebx + 0x3c]
mov ebx, dword [ebx + 0x78]
lea ebx, [ebx + edx]
mov eax, dword [ebx + 0x24]
add eax, edx
xor edi, edi
jne 0x64a3fcf8
or edi, dword [ebx + 0x20]
add edi, edx
mov ecx, dword [ebx + 0x18]
mov esi, dword [edi]
add esi, edx
push 0
push ecx
mov ecx, esp
push 0x55d34c8a
call 0x6463a0a6
sti
sbb byte [ecx + 0x56], dh
xlatb
les ebp, [ebp + 0x8c483e2]
xchg dword [ecx + 4], eax
xor eax, edx
shl eax, 3
xor ecx, 0
shl eax, 0x1d
add eax, dword [ecx + 4]
pop ecx
push esi
call fcn.64620f1c
cmp eax, dword [ebp + 0xc]
pop eax
je 0x6463a145
add edi, 4
add eax, 2
dec ecx
jne 0x6463a08b
call 0x6463a0f2
loope 0x6463a0e8
invalid
sbb esi, ebx
mov edi, 0xdbead58c
js 0x6463a142
mov dh, 0xe8
or byte [eax], al
add byte [eax], al
mov bh, 0x24
lea eax, [edx + 0x53]
nop
mov dword [esi + 0x2308c483], ecx
sal byte [ecx], 0xc0
fsub st(7)
int 0xf
mov bh, 0
movzx eax, word [eax]
jmp 0x6463a153
shl eax, 2
add eax, dword [ebx + 0x1c]
add eax, edx
mov eax, dword [eax]
add eax, edx
mov ebx, edx
add ebx, dword [edx + 0x3c]
mov ecx, dword [ebx + 0x7c]
mov ebx, dword [ebx + 0x78]
add ebx, edx
add ecx, ebx
cmp eax, ebx
jb 0x6463a106
cmp eax, ecx
ja 0x6463a106
mov esi, eax
lea edi, [ebp - 0x100]
mov al, byte [esi]
mov byte [edi], al
inc edi
inc esi
js 0x6463a190
or ecx, ecx
xor dword [esp - 0x6b], eax
cmp al, 0x2e
jne 0x6463a186
lea edi, [ebp - 0x100]
push 0x100
push edi
push esi
call fcn.646213fb
lea esp, [esp - 0x60]
mov dword [esp + 0x5c], edi
lea esp, [esp + 0x5c]
Function at 0x6463a055
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0
push ecx
xor ecx, ecx
jne 0x6463a09f
mov ecx, esp
xor dword [ecx - 0x55], edi
pop ecx
call 0x6463a046
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
call 0x6463a055
cld
test edx, ebx
or ebp, eax
add dword [esi - 0x7cc26b19], esp
les ecx, [eax]
or dword [esp], ebp
mov ebp, esp
sub esp, 0x100
push ebx
push edx
push ecx
push edi
push esi
mov ebx, dword [ebp + 8]
mov edx, ebx
add ebx, dword [ebx + 0x3c]
mov ebx, dword [ebx + 0x78]
lea ebx, [ebx + edx]
mov eax, dword [ebx + 0x24]
add eax, edx
xor edi, edi
jne 0x64a3fcf8
or edi, dword [ebx + 0x20]
add edi, edx
mov ecx, dword [ebx + 0x18]
mov esi, dword [edi]
add esi, edx
push 0
push ecx
mov ecx, esp
push 0x55d34c8a
call 0x6463a0a6
sti
sbb byte [ecx + 0x56], dh
xlatb
les ebp, [ebp + 0x8c483e2]
xchg dword [ecx + 4], eax
xor eax, edx
shl eax, 3
xor ecx, 0
shl eax, 0x1d
add eax, dword [ecx + 4]
pop ecx
push esi
call fcn.64620f1c
cmp eax, dword [ebp + 0xc]
pop eax
je 0x6463a145
add edi, 4
add eax, 2
dec ecx
jne 0x6463a08b
call 0x6463a0f2
loope 0x6463a0e8
invalid
sbb esi, ebx
mov edi, 0xdbead58c
js 0x6463a142
mov dh, 0xe8
or byte [eax], al
add byte [eax], al
mov bh, 0x24
lea eax, [edx + 0x53]
nop
mov dword [esi + 0x2308c483], ecx
sal byte [ecx], 0xc0
fsub st(7)
int 0xf
mov bh, 0
movzx eax, word [eax]
jmp 0x6463a153
shl eax, 2
add eax, dword [ebx + 0x1c]
add eax, edx
mov eax, dword [eax]
add eax, edx
mov ebx, edx
add ebx, dword [edx + 0x3c]
mov ecx, dword [ebx + 0x7c]
mov ebx, dword [ebx + 0x78]
add ebx, edx
add ecx, ebx
cmp eax, ebx
jb 0x6463a106
cmp eax, ecx
ja 0x6463a106
mov esi, eax
lea edi, [ebp - 0x100]
mov al, byte [esi]
mov byte [edi], al
inc edi
inc esi
js 0x6463a190
or ecx, ecx
xor dword [esp - 0x6b], eax
cmp al, 0x2e
jne 0x6463a186
lea edi, [ebp - 0x100]
push 0x100
push edi
push esi
call fcn.646213fb
lea esp, [esp - 0x60]
mov dword [esp + 0x5c], edi
lea esp, [esp + 0x5c]
Function at 0x4012d0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov esi, dword [edi + 0x2c]
lea ebx, [ebx]
mov eax, dword [edi + 0x2c]
mov edx, dword [edi + 0x3c]
add eax, 0xfffffefa
sub edx, dword [edi + 0x74]
add eax, esi
sub edx, dword [edi + 0x6c]
mov dword [esp + 0x10], edx
cmp dword [edi + 0x6c], eax
jb 0x40135d
mov ecx, dword [edi + 0x38]
push esi
lea eax, [ecx + esi]
push eax
push ecx
call fcn.0040cf00
mov edx, dword [edi + 0x4c]
add esp, 0xc
mov eax, dword [edi + 0x44]
sub dword [edi + 0x70], esi
sub dword [edi + 0x6c], esi
sub dword [edi + 0x5c], esi
lea ecx, [eax + edx*2]
nop
movzx eax, word [ecx - 2]
lea ecx, [ecx - 2]
cmp eax, esi
jb 0x40132f
sub eax, esi
jmp 0x401331
xor eax, eax
mov word [ecx], ax
dec edx
jne 0x401320
mov eax, dword [edi + 0x40]
mov edx, esi
lea ecx, [eax + esi*2]
nop
movzx eax, word [ecx - 2]
lea ecx, [ecx - 2]
cmp eax, esi
jb 0x40134f
sub eax, esi
jmp 0x401351
xor eax, eax
mov word [ecx], ax
dec edx
jne 0x401340
mov edx, dword [esp + 0x10]
add edx, esi
mov ebx, dword [edi]
cmp dword [ebx + 4], 0
je 0x401481
mov eax, dword [edi + 0x74]
add eax, dword [edi + 0x6c]
add eax, dword [edi + 0x38]
mov dword [esp + 0x10], eax
mov eax, dword [ebx + 4]
cmp eax, edx
mov ebp, eax
cmova ebp, edx
test ebp, ebp
je 0x4013d3
sub eax, ebp
mov dword [ebx + 4], eax
mov eax, dword [ebx + 0x1c]
mov eax, dword [eax + 0x18]
cmp eax, 1
jne 0x4013a1
mov edx, dword [ebx]
mov ecx, dword [ebx + 0x30]
push ebp
call fcn.00403620
jmp 0x4013b9
cmp eax, 2
jne 0x4013bf
mov edx, dword [ebx]
test edx, edx
jne 0x4013b0
xor eax, eax
jmp 0x4013bc
mov ecx, dword [ebx + 0x30]
push ebp
call fcn.00403880
add esp, 4
mov dword [ebx + 0x30], eax
push ebp
push dword [ebx]
push dword [esp + 0x18]
call fcn.0040cf00
add dword [ebx], ebp
add esp, 0xc
add dword [ebx + 8], ebp
add dword [edi + 0x74], ebp
mov ebx, dword [edi + 0x74]
cmp ebx, 3
jb 0x4013fb
mov eax, dword [edi + 0x38]
add eax, dword [edi + 0x6c]
mov ecx, dword [edi + 0x58]
movzx edx, byte [eax]
mov dword [edi + 0x48], edx
movzx eax, byte [eax + 1]
shl edx, cl
xor edx, eax
and edx, dword [edi + 0x54]
mov dword [edi + 0x48], edx
cmp ebx, 0x106
jae 0x40140f
mov eax, dword [edi]
cmp dword [eax + 4], 0
jne 0x4012e0
mov ecx, dword [edi + 0x16c0]
mov ebp, dword [edi + 0x3c]
cmp ecx, ebp
jae 0x401481
mov esi, dword [edi + 0x6c]
add esi, ebx
cmp ecx, esi
jae 0x401451
mov eax, 0x102
sub ebp, esi
cmp ebp, eax
cmova ebp, eax
mov eax, dword [edi + 0x38]
push ebp
add eax, esi
push 0
push eax
call fcn.0040d550
add esp, 0xc
lea eax, [esi + ebp]
mov dword [edi + 0x16c0], eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
lea eax, [esi + 0x102]
cmp ecx, eax
jae 0x401481
mov eax, dword [edi + 0x38]
sub esi, ecx
sub ebp, ecx
add esi, 0x102
cmp esi, ebp
cmova esi, ebp
add eax, ecx
push esi
push 0
push eax
call fcn.0040d550
add esp, 0xc
add dword [edi + 0x16c0], esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x406390
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41f036
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x42c110]
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 0x40643c
push 2
push eax
push esi
call ebx
mov edi, eax
mov dword [ebp - 0x424], eax
test edi, edi
jne 0x40643c
call fcn.00404c20
mov esi, eax
jmp 0x40652c
push dword [ebp - 0x420]
push dword [ebp - 0x41c]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x40645f
call fcn.00404c20
jmp 0x40651f
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x41c], ebx
test ebx, ebx
jne 0x40647d
call fcn.00404c20
jmp 0x40651f
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 0x40649e
mov esi, 0x8007000e
jmp 0x406521
push eax
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 2
call fcn.00404820
jmp 0x4064c8
cmp dword [ebp - 0x418], 0
mov dword [ebp - 4], 1
jne 0x4064df
mov esi, 0x8007000e
jmp 0x406521
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 0x4064ff
call fcn.00404c20
jmp 0x40651f
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.00406230
mov esi, eax
test edi, edi
je 0x40652c
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x406550
lea ecx, [ebp - 0x418]
call fcn.00405150
jmp 0x406550
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.0040b815
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4070c0
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 0x4070d9
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 0x4070e5
sub eax, edi
sar eax, 1
lea ecx, [eax + 1]
lea edx, [edx + ecx*2]
lea esi, [esi + ecx*2]
cmp ecx, 1
jne 0x4070e0
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 0x4071e0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
push esi
mov esi, ecx
test edx, edx
jne 0x4071f5
lea eax, [edx + 0xd]
pop esi
pop ebp
ret 0xc
mov eax, edx
push edi
lea edi, [eax + 2]
jmp 0x407200
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x407200
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 0x407ba0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x407bb5
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x407bf4
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x407bf0
lea ebx, [ebx]
cmp esi, edx
jae 0x407bf4
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
dec ecx
jne 0x407be0
cmp esi, edx
jb 0x407bf9
xor eax, eax
pop esi
pop ebp
ret
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop ebp
ret
Function at 0x408cc0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x42c110]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push eax
call fcn.0040d550
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.0040d550
add esp, 0x18
lea eax, [ebp - 0x414]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x418]
mov dword [ebp - 0x418], 0
push eax
lea eax, [ebp - 0x414]
push 0x420540
push eax
call fcn.0040d823
add esp, 0xc
test eax, eax
je 0x408dd5
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push eax
lea eax, [ebp - 0x20c]
push eax
call esi
push 0x420540
lea eax, [ebp - 0x20c]
push eax
call esi
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.0040d914
add esp, 8
test eax, eax
je 0x408d94
push 0
lea eax, [ebp - 0x20c]
push eax
call edi
test eax, eax
je 0x408dc3
lea eax, [ebp - 0x418]
push eax
push 0x420540
push 0
call fcn.0040d823
add esp, 0xc
test eax, eax
jne 0x408d58
pop edi
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040b815
mov esp, ebp
pop ebp
ret
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040b815
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 1
xor ecx, ebp
pop esi
call fcn.0040b815
mov esp, ebp
pop ebp
ret

Function at 0x408df0
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 8]
xor esi, esi
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test ebx, ebx
je 0x408e7c
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x408e7c
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push dword [ebp - 4]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
push esi
push 2
push esi
push 3
push 0x40000000
push dword [ebp + 0x14]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x408e7c
push esi
lea eax, [ebp - 8]
mov dword [ebp - 8], esi
push eax
push ebx
push dword [ebp - 4]
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
mov ecx, 1
push edi
cmovne esi, ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40b1a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
xor esi, esi
push eax
push 0xf003f
push esi
push dword [ebp + 8]
mov dword [ebp - 4], esi
push dword [ebp + 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40b1e4
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0x18]
push eax
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
mov ecx, 1
cmove esi, ecx
mov eax, dword [ebp - 4]
test eax, eax
je 0x40b1f2
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x40b200
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
xor esi, esi
mov dword [ebp - 4], esi
lea ebx, [eax*2 + 2]
lea eax, [ebp - 4]
push eax
push 0xf003f
push esi
push dword [ebp + 8]
push dword [ebp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40b252
push ebx
push dword [ebp + 0x10]
push 1
push eax
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
mov ecx, 1
cmove esi, ecx
mov eax, dword [ebp - 4]
test eax, eax
je 0x40b260
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40b270
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
xor esi, esi
push eax
push 0xf003f
push esi
push dword [ebp + 8]
mov dword [ebp - 4], esi
push dword [ebp + 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40b2b4
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0x18]
push eax
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
mov ecx, 1
cmove esi, ecx
mov eax, dword [ebp - 4]
test eax, eax
je 0x40b2c2
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40b2d0
Capabilities:
Create new key via cryptacquirecontext
Encrypt or decrypt via wincrypt
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0x10]
push esi
xor esi, esi
mov dword [ebp + 0x10], eax
push esi
push 1
push esi
push 0x421068
lea eax, [ebp - 4]
mov dword [ebp - 4], esi
push eax
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], esi
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x40b328
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x80090016
jne 0x40b392
push 8
push 1
push esi
push 0x421068
lea eax, [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x40b392
lea eax, [ebp - 8]
push eax
push 0
push 0
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x40b392
push 0
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x40b392
lea eax, [ebp - 0xc]
push eax
push 0x800000
push dword [ebp - 8]
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptDeriveKey]
test eax, eax
je 0x40b392
push 0
lea eax, [ebp + 0x10]
push eax
push 0
push 0
push 1
push 0
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
test eax, eax
mov ecx, 1
cmovne esi, ecx
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x40b3a0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov eax, dword [ebp - 8]
test eax, eax
je 0x40b3ae
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, dword [ebp - 4]
test eax, eax
je 0x40b3be
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor eax, eax
test esi, esi
pop esi
cmovne eax, dword [ebp + 0x10]
mov esp, ebp
pop ebp
ret