joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406bf4
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff94
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x6c], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 8], ecx
mov esi, edx
mov dword [ebp - 4], eax
mov edi, dword [ebp + 0x10]
xor eax, eax
push ebp
push 0x406d5e
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 9], 0
mov ebx, 0x10
test edi, edi
jne 0x406c31
or ebx, 0x8000000
lea eax, [ebp - 0x58]
xor ecx, ecx
mov edx, 0x44
call fcn.0040298c
mov dword [ebp - 0x58], 0x44
mov word [ebp - 0x28], di
mov dword [ebp - 0x2c], 1
cmp dword [ebp + 8], 0
je 0x406c5f
mov eax, dword [ebp + 8]
xor edx, edx
mov dword [eax], edx
xor eax, eax
mov dword [ebp - 0x10], eax
cmp dword [ebp - 8], 0
je 0x406c75
mov eax, dword [ebp - 8]
call fcn.00403720
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x14]
mov edx, dword [ebp - 4]
call fcn.00403434
mov edx, dword [ebp - 0x14]
mov eax, 0x406d7c
call fcn.00403800
test eax, eax
jle 0x406cbc
mov edx, dword [ebp - 0x14]
mov eax, 0x406d88
call fcn.00403800
test eax, eax
jg 0x406cbc
push 0x406d88
push dword [ebp - 0x14]
push 0x406d88
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.004035e0
cmp dword [ebp - 0x14], 0
je 0x406cd3
test esi, esi
je 0x406cd3
lea eax, [ebp - 0x14]
mov edx, 0x406d7c
call fcn.00403528
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x58]
push eax
mov eax, dword [ebp - 0x10]
push eax
push 0
push ebx
push 0
push 0
push 0
lea eax, [ebp - 0x6c]
mov ecx, esi
mov edx, dword [ebp - 0x14]
call fcn.0040356c
mov eax, dword [ebp - 0x6c]
call fcn.00403720
push eax
push 0
call sub.KERNEL32.DLL_CreateProcessA
test eax, eax
je 0x406d40
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 0x68]
push eax
call sub.KERNEL32.DLL_WaitForSingleObject
test eax, eax
jne 0x406d29
mov eax, dword [ebp - 0x68]
push eax
call sub.KERNEL32.DLL_CloseHandle
mov byte [ebp - 9], 1
jmp 0x406d37
cmp dword [ebp + 8], 0
je 0x406d37
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x68]
mov dword [eax], edx
mov eax, dword [ebp - 0x64]
push eax
call sub.KERNEL32.DLL_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406d65
lea eax, [ebp - 0x6c]
call fcn.0040339c
lea eax, [ebp - 0x14]
call fcn.0040339c
ret

Function at 0x407f9c
Capabilities:
Get file attributes

Disassembly:
call fcn.00404254
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
inc eax
je 0x407fb0
dec eax
and al, 0x10
sete al
ret

Function at 0x409338
Capabilities:
Hide graphical window

Disassembly:
and byte [eax + 0x37], 0xef
test dl, dl
je 0x409344
or byte [eax + 0x37], 0x10
mov byte [eax + 0x52], dl
mov ecx, dword [eax + 0x28]
jecxz 0x409360
push eax
je 0x409361
call dword [0x41c12c]
pop eax
push 5
push dword [eax + 0x28]
call sub.user32.dll_ShowWindow
ret
mov byte [eax + 0x177], dl
push 0
push ecx
call sub.user32.dll_ShowWindow
pop eax
call dword [0x41c12c]
ret
Function at 0x4143ec
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x1c], ebx
mov esi, ecx
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call fcn.00403710
xor eax, eax
push ebp
push 0x41450c
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
call fcn.00403720
mov ebx, eax
push ebx
call sub.version.dll_GetFileVersionInfoSizeA
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jbe 0x4144e9
mov eax, dword [ebp - 8]
call fcn.00407f1c
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push ebx
call sub.version.dll_GetFileVersionInfoA
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x18]
push eax
push 0x41451c
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
push 0x414540
lea ecx, [ebp - 0x20]
mov eax, dword [ebp - 0x18]
movzx eax, word [eax]
mov edx, 4
call fcn.00407d0c
push dword [ebp - 0x20]
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
call fcn.00404060
movzx eax, ax
lea ecx, [ebp - 0x24]
mov edx, 4
call fcn.00407d0c
push dword [ebp - 0x24]
push 0x41455c
lea eax, [ebp - 0x1c]
mov edx, 4
call fcn.004035e0
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x1c]
call fcn.00403720
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x4144de
mov eax, esi
mov edx, dword [ebp - 0x14]
call fcn.004034cc
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x10]
call fcn.004027d4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x414513
lea eax, [ebp - 0x24]
mov edx, 3
call fcn.004033c0
lea eax, [ebp - 4]
call fcn.0040339c
ret
Function at 0x4146b0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeec
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x114], ebx
mov dword [ebp - 0x110], ebx
mov dword [ebp - 0xc], ebx
mov esi, ecx
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call fcn.00403710
xor eax, eax
push ebp
push 0x4147ee
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
mov edx, dword [ebp - 4]
call fcn.004033f0
lea eax, [ebp - 0x110]
push eax
mov ecx, 1
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.00403778
mov eax, dword [ebp - 0x110]
mov edx, 0x414804
call fcn.0040366c
jne 0x4147c0
lea ecx, [ebp - 0x114]
mov edx, 2
mov eax, dword [ebp - 4]
call fcn.00407e8c
mov edx, dword [ebp - 0x114]
lea eax, [ebp - 4]
call fcn.00403434
lea ecx, [ebp - 0xc]
lea eax, [ebp - 4]
mov edx, 0x414810
call fcn.0040476c
mov eax, dword [ebp - 4]
call fcn.00407de0
mov edi, eax
neg edi
mov eax, 0x105
call fcn.00407f1c
mov dword [ebp - 8], eax
push 0x104
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 0xc]
call fcn.00403720
push eax
call sub.KERNEL32.DLL_ExpandEnvironmentStringsA
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_LoadLibraryA
mov ebx, eax
push 0xfe
lea eax, [ebp - 0x10b]
push eax
push edi
push ebx
call sub.user32.dll_LoadStringA
push ebx
call sub.KERNEL32.DLL_FreeLibrary
mov eax, dword [ebp - 8]
call fcn.004027d4
mov eax, esi
lea edx, [ebp - 0x10b]
mov ecx, 0xff
call fcn.00403508
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4147f5
lea eax, [ebp - 0x114]
mov edx, 2
call fcn.004033c0
lea eax, [ebp - 0xc]
call fcn.0040339c
lea eax, [ebp - 4]
call fcn.0040339c
ret
Function at 0x41b1fc
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeb8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x140], ecx
mov dword [ebp - 0x148], ecx
mov dword [ebp - 0x144], ecx
mov dword [ebp - 0x130], ecx
mov dword [ebp - 0x13c], ecx
mov dword [ebp - 0x134], ecx
mov dword [ebp - 0x138], ecx
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call fcn.00403710
lea edi, [ebp - 0x12c]
xor eax, eax
push ebp
push 0x41b36e
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
mov eax, 2
call fcn.0040ac2c
mov esi, eax
mov dword [edi], 0x128
mov edx, edi
mov eax, esi
call fcn.0040ac4c
cmp eax, 1
sbb ebx, ebx
inc ebx
jmp 0x41b340
lea eax, [ebp - 0x138]
lea edx, [edi + 0x24]
mov ecx, 0x104
call fcn.00403508
mov eax, dword [ebp - 0x138]
lea edx, [ebp - 0x134]
call fcn.00407fd0
mov eax, dword [ebp - 0x134]
lea edx, [ebp - 0x130]
call fcn.00407e64
mov eax, dword [ebp - 0x130]
push eax
lea edx, [ebp - 0x13c]
mov eax, 0x41b384
call fcn.00407e64
mov edx, dword [ebp - 0x13c]
pop eax
call fcn.0040366c
je 0x41b31c
lea eax, [ebp - 0x144]
lea edx, [edi + 0x24]
mov ecx, 0x104
call fcn.00403508
mov eax, dword [ebp - 0x144]
lea edx, [ebp - 0x140]
call fcn.00407e64
mov eax, dword [ebp - 0x140]
push eax
lea edx, [ebp - 0x148]
mov eax, dword [ebp - 4]
call fcn.00407e64
mov edx, dword [ebp - 0x148]
pop eax
call fcn.0040366c
jne 0x41b331
push 0
mov eax, dword [edi + 8]
push eax
push 0
push 1
call sub.KERNEL32.DLL_OpenProcess
push eax
call sub.KERNEL32.DLL_TerminateProcess
mov edx, edi
mov eax, esi
call fcn.0040ac6c
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
jne 0x41b27b
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41b375
lea eax, [ebp - 0x148]
mov edx, 7
call fcn.004033c0
lea eax, [ebp - 4]
call fcn.0040339c
ret
Function at 0x1001d230
Capabilities:
Encode data using xor

Disassembly:
in al, 0x52
rol byte [ecx], 1
adc dword [eax + 0x6387ec51], eax
inc esi
ror byte [eax + 7], 1
cmp dword [edi + 0x594c2c9f], ebx
push ss
adc ebx, ebx
add al, 0x41
jo 0x1001d26b
out dx, al
jbe 0x1001d28c
cld
xchg edi, eax
sbb byte [ebx], dl
xor dh, byte [edx]
loopne 0x1001d24f
invalid
out dx, al
cmpsd dword [esi], dword es:[edi]
xchg byte [ebx + edx*2], bh
and byte [ecx], bl
add byte [0xa085ed88], dh
xor byte [ebx + 0x7d470883], ah
invalid
jb 0x1001d2af
sub eax, 0x6b406041
rcl esp, 1
pop edx
jnp 0x1001d307
cld
hlt
mov cl, byte [edi - 0x77cf4ab5]
mov byte [eax - 0xda8de60], cl
sti
xchg esi, eax
rep insb byte es:[edi], dx
sahf
pop ecx
pop edx
lds ecx, [eax + 0x39fb84ac]
jecxz 0x1001d328
lodsb al, byte [esi]
mov edi, 0x8fce8847
retf
xor dword [bp + si], 0xffffffff
out dx, eax
stosd dword es:[edi], eax
xor eax, ebp
das
sub eax, 0x512632c1
push ecx
mov ch, 0xda
int3
xor dh, al
sub byte [ecx + 0x5bbdecf5], cl
lock sub byte [ecx + 0x5bbdecf5], cl
sub cl, ch
popal
jl 0x1001d388
aam 8
stosd dword es:[edi], eax
inc ebp
push 0xffffffffffffffee
mov eax, ebp
jl 0x1001d364
movsd dword es:[edi], dword [esi]
cmp ah, byte [0x7626e8de]
adc ecx, dword [eax - 0x6897d148]
mov ch, 0x8d
out 0x11, al
xor dl, byte [0x1bd84a36]
cld
js 0x1001d374
wait
xor dword [ebx], 0xffffffc0
mov bh, ch
cmc
push ebx
ret 0x1cde
sbb al, 3
sbb al, 0x77
jae 0x1001d327
out dx, al
push 0x3691f44c
fstp xword [eax + 0x1a]
jae 0x1001d362
dec esp
hlt
ror byte [edx - 0x4c], 1
jno 0x1001d313
dec edx
mov ah, 0x71
wait
mov dword ss:[edx + 0x43c5c0be], esp
ror ch, 1
and dword [esp + ebx - 0x8c23c89], 0xffffffae
scasb al, byte es:[edi]
jo 0x1001d35c
sbb dword [edi], ecx
and dword [edx - 0x6193cccd], esp
xchg edi, eax
push ebx
scasd eax, dword es:[edi]
pop ss
fisub word [edx - 0x1a]
jecxz 0x1001d36a
int 0x34
salc
mov ebp, 0x372a71b7

Function at 0x10021470
Capabilities:
Encode data using xor

Disassembly:
cmp al, 0xb
movsb byte es:[edi], byte [esi]
mov esi, 0x98e5c6af
sub ecx, dword [eax + 0x6385c2ca]
pop edx
fsubr dword [ebp - 0x62fcfe99]
add byte [eax + 0x3476a856], dl
aas
xor al, 0xd9
arpl word [ebx - 0x43], bx
xor edx, ecx
sub al, 0x48
xchg byte [esi + 0x24], bl
and al, 0xe8
push ds
fld dword [ebp + 0x24]
and al, 0xe8
push ds
fld dword [ebp + 0x24]
loope 0x10021449
bound esp, qword [eax - 0x430f5206]
mov esp, 0xe956892
invalid
Function at 0x10027310
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov edx, dword [esi + 0x3c]
sub esp, 0x14
push ebx
xor ebx, ebx
cmp dword [edx], ebx
push ebp
push edi
jne 0x10027343
mov eax, dword [esi + 0x78]
mov ecx, dword [esi]
or eax, 0x1e
push ebx
and eax, 0x87f3f
push eax
mov eax, dword [ecx + 0x18]
push edx
push ebx
push ecx
call eax
add esp, 0x14
test eax, eax
jne 0x1002741f
mov ebx, eax
mov ecx, dword [esi + 0x18]
cmp ecx, dword [esi + 0x24]
jbe 0x1002737f
mov eax, dword [esi + 0x80]
push 0
cdq
push ecx
push edx
push eax
call fcn.100815d0
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0x3c]
mov ecx, dword [eax]
lea edx, [esp + 0x10]
push edx
push 5
push eax
mov eax, dword [ecx + 0x28]
call eax
mov ecx, dword [esi + 0x18]
add esp, 0xc
mov dword [esi + 0x24], ecx
mov ebp, dword [esp + 0x24]
test ebp, ebp
je 0x1002741d
mov edi, dword [ebp + 0xc]
cmp edi, dword [esi + 0x18]
ja 0x1002740e
test byte [ebp + 0x14], 0x20
jne 0x1002740e
mov ebx, dword [esi + 0x80]
mov eax, ebx
cdq
push edx
push eax
lea ecx, [edi - 1]
push 0
push ecx
call fcn.100815d0
mov ecx, dword [esi + 0x3c]
mov ebp, dword [ebp]
push edx
mov dword [esp + 0x1c], eax
mov edx, dword [esp + 0x1c]
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
push edx
push ebx
push ebp
push ecx
call eax
add esp, 0x14
cmp edi, 1
mov dword [esp + 0x10], eax
jne 0x100273f0
mov ecx, dword [ebp + 0x18]
lea eax, [ebp + 0x18]
mov dword [esi + 0x64], ecx
mov edx, dword [eax + 4]
mov dword [esi + 0x68], edx
mov ecx, dword [eax + 8]
mov dword [esi + 0x6c], ecx
mov edx, dword [eax + 0xc]
mov dword [esi + 0x70], edx
cmp edi, dword [esi + 0x20]
jbe 0x100273f8
mov dword [esi + 0x20], edi
mov eax, dword [esp + 0x24]
mov ebx, dword [eax]
mov eax, dword [esi + 0x58]
call fcn.1004f160
mov ebp, dword [esp + 0x24]
mov ebx, dword [esp + 0x10]
test ebx, ebx
mov ecx, dword [ebp + 8]
mov dword [esp + 0x24], ecx
je 0x1002737f
mov eax, ebx
pop edi
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0x1003e9e0
Capabilities:
Encode data using xor

Disassembly:
mov dl, 0x3b
jle 0x1001df72
mov ch, 0xb2
add al, byte [eax + ecx]
push es
pop edi
jge 0x1001dfa3
jae 0x1001dfd1
dec ebp
aam 0x80
pop ebp
hlt
mov ebp, dword [edx]
rol esi, 1
mov dword [ecx + edi*8 + 0x1c], esi
pop ebx
cmc
test al, 0xf4
sbb eax, 0xea9c3cba
sti
loope 0x1001dfa0
xor byte [ebx], 0x73
inc ebp
xlatb
ret
mov eax, dword [0xbf4bcd42]
xchg dword [edx + 0x3c], edi
pop edi
dec ebx
mov edi, 0x5f3c7a87
scasb al, byte es:[edi]
movsd dword es:[edi], dword [esi]
adc eax, 0x615f5761
in eax, 0x6e
pop es
sbb esp, dword [esi]
pushal
cdq
ret 0xc3e8
cld
cli
dec ax
aaa
jg 0x1001dfef
movsb byte es:[edi], byte [esi]
in al, 0xf3
cdq
cdq
wait
mov bh, 0xb0
jb 0x1001e00e
push 0x8f5af6dd
test dword [eax - 0x58f3cc66], ebp
sbb byte [edx + edx - 0x4b], cl
adc edi, dword [edx]
dec esp
adc dh, byte [ebp - 0x1cf5c5ed]
or ah, bl
call 0x7b0ececf
mul dword [esp + ebx + 0x53]
mov bl, 0xd3
sbb dword [eax + eax + 0x2870b468], eax
pop ds
cmp al, 0x7a
invalid
mov edi, 0x7215d479
imul byte [edx - 0x2e]
jns 0x1001dff4
loop 0x1001e069
jle 0x1001dfab
pop ss
jge 0x1001e04e
push ebp
pop edx
mov edx, 0xa99a7f4f
cmpsb byte [esi], byte es:[edi]
inc edi
inc esp
lds ecx, [ebp + 0x45f45f1b]
push ebp
mov dword [eax], ebx
adc dword [esi], edx
scasb al, byte es:[edi]
sub al, 0x4a
push ebx
ror dword [ecx + 0x40], cl
sbb eax, 0x87ee7797
inc esi
pop edi
mov byte [0xa4ceb387], al
xor al, 0x6d
cdq
mov eax, dword [0x6315a139]
inc eax
arpl word [eax - 0x74], ax
push es
and cl, ah
movzx ecx, byte [eax]
cmp ecx, 0x74
jne 0x1003e9fa
mov eax, dword [eax + 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 0xc]
mov eax, dword [edx]
movzx ecx, byte [eax]
cmp ecx, 0x74
je 0x1003e9e8
cmp ecx, 0x25
jne 0x1003ea07
mov eax, dword [eax + 4]
jmp 0x1001df50
cmp ecx, 0x9a
je 0x1003ea1f
cmp ecx, 0x98
je 0x1003ea1f
cmp ecx, 0x84
jne 0x1003ea3c
mov ecx, dword [eax + 0x28]
test ecx, ecx
je 0x1003ea3c
movsx eax, word [eax + 0x1c]
test eax, eax
jge 0x1003ea31
mov al, 0x64
ret
mov ecx, dword [ecx + 0xc]
lea eax, [eax + eax*2]
mov al, byte [ecx + eax*8 + 0x16]
ret
mov al, byte [eax + 1]
ret
Function at 0x1003fd90
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
test ebx, ebx
push esi
push edi
jne 0x1003fdaa
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp + 8]
mov ecx, 0x44
call fcn.100059d0
mov edi, eax
test edi, edi
je 0x1003fda1
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebx]
push eax
push ecx
push esi
call fcn.1003f8b0
mov edx, dword [ebp + 0x10]
add esp, 0xc
mov dword [edi], eax
mov eax, dword [ebx + 8]
push edx
push eax
push esi
call fcn.1003fa30
mov ecx, dword [ebp + 0x10]
add esp, 0xc
push 0
mov dword [edi + 8], eax
mov eax, dword [ebx + 0xc]
push ecx
push eax
push esi
call fcn.1003f640
mov edx, dword [ebp + 0x10]
mov dword [edi + 0xc], eax
mov eax, dword [ebx + 0x10]
push edx
push eax
push esi
call fcn.1003f8b0
mov ecx, dword [ebp + 0x10]
add esp, 0x1c
push 0
mov dword [edi + 0x10], eax
mov eax, dword [ebx + 0x14]
push ecx
push eax
push esi
call fcn.1003f640
mov edx, dword [ebp + 0x10]
mov dword [edi + 0x14], eax
mov eax, dword [ebx + 0x18]
push edx
push eax
push esi
call fcn.1003f8b0
mov edx, dword [ebp + 0x10]
mov dword [edi + 0x18], eax
mov cl, byte [ebx + 4]
add esp, 0x1c
mov byte [edi + 4], cl
mov eax, dword [ebx + 0x1c]
push edx
push eax
push esi
call fcn.1003fd90
mov ecx, dword [ebp + 0x10]
add esp, 0xc
push 0
mov dword [edi + 0x1c], eax
mov eax, dword [ebx + 0x28]
push ecx
push eax
push esi
call fcn.1003f640
mov edx, dword [ebp + 0x10]
push 0
mov dword [edi + 0x28], eax
mov eax, dword [ebx + 0x2c]
push edx
push eax
push esi
call fcn.1003f640
mov dword [edi + 0x2c], eax
xor eax, eax
mov dword [edi + 0x30], eax
mov dword [edi + 0x34], eax
mov cx, word [ebx + 6]
add esp, 0x20
and cx, 0xfff7
mov word [edi + 6], cx
mov dword [edi + 0x24], eax
or eax, 0xffffffff
mov dword [edi + 0x38], eax
mov dword [edi + 0x3c], eax
mov dword [edi + 0x40], eax
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1004dbe0
Capabilities:
Encode data using xor

Disassembly:
push esp
fild dword [edi - 0x59]
push ebp
std
lodsb al, byte [esi]
add byte [eax], bh
add ah, dh
scasd eax, dword es:[edi]
inc eax
fbld tbyte [ebp - 0x74daf478]
jns 0x1004db88
mov al, byte [0x4f6f6961]
mov esp, 0x98370000
imul edx, dword [ecx], 0x33
sub ecx, esp
xchg dword [esi], ebp
cdq
adc eax, 0x4000000
inc edx
add byte [ecx], al
add byte [0xe7fb], bh
add byte [eax], al
add dword [esi], 0
add byte [ecx + edx*8 + 0x44], cl
sub eax, 0xf92e48c9
in eax, dx
sahf
and al, 0x44
jge 0x1004db84
and ah, byte [eax]
xor byte [edx], al
out 0xcb, eax
sbb byte [ebp + 0x2a], dl
sub eax, 0xfeff8783
add dword [0x73090801], ecx
or byte [ecx], cl
jae 0x1004dbb8
push ss
or byte [ecx], cl
jae 0x1004dbb8
push ss
fisub word [edi + 0x22fefdcc]
and ah, byte [edx]
inc ecx
xchg ebx, eax
xor esp, dword [ecx]
out dx, eax
adc edi, dword [ebx + 0x32928154]
movsd dword es:[edi], dword [esi]
jb 0x1004dbe4
aad 0x8c
add ebp, dword [eax - 0x7e1745c6]
xor ah, dh
int 0xbb
int 0xbd
loopne 0x1004dc52
dec edi
lea ebx, [0xba893daf]
fdivr qword fs:[0xf137f639]
mov esp, 0xbff81bbf
adc esi, edx
ljmp 0xcfe8
fsubrp st(6)
or bl, byte [ecx - 0x73]
scasb al, byte es:[edi]
inc ecx
pop ss
wait
xor dword [0x3ccecf47], edi
or ch, 8
inc eax
sub al, byte [eax]
rol byte [eax], 0x6d
adc dword [eax + eax], ebx
sbb al, byte [eax]
push ds
xchg ebx, eax
dec byte [eax + 0x39d19554]
add dword [eax], 0x40a38805
nop
inc esi
mov al, 0x19
fistp qword [edi - 0xe]
sub byte [0xa802fcbc], al
add dl, byte [eax + 0x2a]
and al, byte [0x8d190f50]
or byte [eax], 0xd6
push edx
invalid
Function at 0x1005d030
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 0x1005d049
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x1005d084
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x1005d080
lea ebx, [ebx]
cmp esi, eax
jae 0x1005d084
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x1005d070
cmp esi, eax
jb 0x1005d08a
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 0x1005d2e0
Capabilities:
Set registry value

Disassembly:
mov edx, dword [esp + 4]
push 4
lea eax, [esp + 0xc]
push eax
mov eax, dword [ecx]
push 4
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
ret 8

Function at 0x1005d300
Capabilities:
Set registry value

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
push edi
mov edi, ecx
jne 0x1005d316
push 0x80004005
call fcn.1005ce90
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
lea eax, [eax + eax + 2]
push eax
mov eax, dword [edi]
push esi
push ecx
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
ret 0xc

Function at 0x1005d340
Capabilities:
Set registry value

Disassembly:
push ecx
push ebp
mov ebp, dword [esp + 0x10]
test ebp, ebp
mov dword [esp + 4], ecx
jne 0x1005d358
push 0x80004005
call fcn.1005ce90
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
push edi
xor edi, edi
mov esi, ebp
push esi
call ebx
add eax, 1
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x1005d365
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx]
push edi
push ebp
push 7
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
pop ebp
pop ecx
ret 8
Function at 0x1005e280
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x21c
mov eax, dword [0x10099998]
xor eax, esp
mov dword [esp + 0x218], eax
push ebp
push esi
push edi
mov edi, dword [esp + 0x22c]
mov ebp, ecx
mov eax, dword [ebp]
lea ecx, [esp + 0x14]
push ecx
push 0x2001f
push 0
push edi
push eax
mov dword [esp + 0x2c], edi
mov dword [esp + 0x20], 0
mov dword [esp + 0x28], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, dword [esp + 0xc]
mov esi, eax
test esi, esi
jne 0x1005e2ee
test ecx, ecx
je 0x1005e2e0
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
mov ecx, dword [esp + 0x14]
mov esi, eax
mov dword [esp + 0xc], ecx
je 0x1005e2fc
test ecx, ecx
je 0x1005e3a1
push ecx
jmp 0x1005e39b
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea edx, [esp + 0x1c]
push edx
push 0
push 0
push 0
lea eax, [esp + 0x20]
push eax
lea edx, [esp + 0x38]
push edx
push 0
push ecx
mov dword [esp + 0x30], 0x100
call esi
test eax, eax
jne 0x1005e36e
jmp 0x1005e330
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x10]
call fcn.1005e280
mov edi, eax
test edi, edi
jne 0x1005e3bd
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x10]
push eax
push eax
push eax
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x38]
push eax
push edi
push ecx
mov dword [esp + 0x30], 0x100
call esi
test eax, eax
je 0x1005e330
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0xc]
test eax, eax
je 0x1005e385
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0xc], 0
mov edx, dword [ebp]
push edi
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov esi, eax
mov eax, dword [esp + 0xc]
test eax, eax
je 0x1005e3a1
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [esp + 0x224]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.10070538
add esp, 0x21c
ret 4
mov eax, dword [esp + 0xc]
test eax, eax
je 0x1005e3cc
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
jmp 0x1005e3a3
Function at 0x10064c70
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x10085c08
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x10099998]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov edi, dword [esp + 0x20]
mov ecx, dword [esp + 0x28]
push edi
mov dword [esp + 0x1c], 0
call fcn.10062e70
mov eax, dword [esp + 0x30]
mov esi, dword [esp + 0x2c]
push eax
push ecx
add esi, 0xfffffff0
mov dword [esp + 0x28], esp
mov ebx, esp
push esi
call fcn.1005df70
mov ecx, dword [esp + 0x30]
sub ecx, edi
add esp, 4
sar ecx, 2
push ecx
add eax, 0x10
push 0
push edi
mov dword [ebx], eax
call fcn.10064b30
add esp, 0x14
mov dword [esp + 0x18], 0xffffffff
lea edx, [esi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x10064d00
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0xc
ret