joyce8/EMBER2024-capa huggingface dataset:
Function at 0x468ee5
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x468ffd
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x468ffd
mov eax, dword [esi + 0x3c]
push eax
call fcn.004a0238
mov esi, eax
test esi, esi
je 0x468ffd
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x468ffd
mov ecx, esi
call fcn.00468e70
cmp edi, eax
jge 0x468ffd
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x468f83
mov dword [esp + 0x34], 1
jmp 0x468fde
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x468ffd
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.00468430
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc

Function at 0x475c70
Capabilities:
Terminate process

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
test esi, esi
push edi
jne 0x475c80
mov esi, 1
push esi
call fcn.0048c1c7
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x475cd2
call fcn.0048cccd
mov edi, eax
call fcn.004787c0
mov ecx, dword [edi]
mov dword [eax], ecx
mov eax, dword [esp + 0x14]
mov edi, eax
and edi, 8
je 0x475cb6
mov edx, dword [0x5fee10]
mov dword [0x5fee0c], edx
test al, 0x18
je 0x475cc7
push esi
push 0x24
push 5
call fcn.00479010
add esp, 0xc
test edi, edi
je 0x475ced
push 1
call fcn.0048d875
test byte [esp + 0x14], 0x20
je 0x475ced
mov ecx, esi
mov edx, ecx
shr ecx, 2
xor eax, eax
mov edi, ebx
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
pop edi
pop esi
mov eax, ebx
pop ebx
ret
Function at 0x476df0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
mov edx, dword [ebp + 0x10]
test edx, edx
push ebx
push esi
push edi
je 0x476ee4
cmp byte [edx], 0
je 0x476ed7
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
add eax, 8
or ecx, 0xffffffff
mov dword [esp + 0xc], eax
xor eax, eax
mov edi, edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
lea ecx, [esp + 0x20]
push ecx
mov esi, ebx
call fcn.00476d70
mov edi, dword [ebp + 0xc]
push 8
lea edx, [esp + 0x20]
push edi
push edx
call fcn.00476d70
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
xor eax, edx
push eax
xor ecx, dword [esp + 0x34]
push ecx
lea edx, [esp + 0x40]
push edx
call fcn.00476ce0
mov eax, dword [esp + 0x30]
add esp, 0x24
cmp edi, eax
jae 0x476ea1
sub eax, edi
mov edi, eax
lea eax, [esp + 0x20]
push eax
call fcn.00476d20
fmul qword [0x5df330]
push ecx
fstp qword [esp]
call fcn.0048ab38
fadd qword [0x5df328]
add esp, 8
call fcn.0048ac08
mov byte [ebx], al
inc ebx
dec edi
jne 0x476e74
lea ecx, [esp + 0x20]
push ecx
call fcn.00476d20
fmul qword [0x5df330]
push ecx
fstp qword [esp]
call fcn.0048ab38
add esp, 8
call fcn.0048ac08
cmp esi, ebx
je 0x476ecd
xor byte [esi], al
inc esi
cmp esi, ebx
jne 0x476ec6
mov byte [ebx], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 8]
mov byte [edx], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
pop edi
pop esi
mov byte [eax], 0
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4772b0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
push esi
lea eax, [ebx + 0x134]
push edi
lea esi, [ebx + 0x34]
mov dword [esp + 0x14], eax
xor edi, edi
mov ecx, dword [ebx + 0x1c]
mov ebp, edi
and ebp, 0xff
mov al, byte [ecx + ebp + 1]
test al, 3
je 0x4772e0
mov byte [edi + esi], 2
jmp 0x477317
test al, 4
je 0x4772ea
mov byte [edi + esi], 0xd
jmp 0x477317
mov edx, dword [ebx + 0x240]
push edi
push ebx
call dword [edx + 4]
add esp, 8
cmp eax, 1
jle 0x477303
mov byte [edi + esi], 2
jmp 0x477317
mov eax, dword [ebx + 0x1c]
test byte [eax + ebp + 1], 0x17
jne 0x477313
mov byte [edi + esi], 0x19
jmp 0x477317
mov byte [edi + esi], 1
inc edi
cmp edi, 0x100
jb 0x4772c7
mov ecx, dword [esp + 0x14]
mov al, 7
mov byte [esi + 0x21], al
mov byte [esi + 0x3d], al
mov byte [esi + 0x3e], al
mov al, 0x10
mov byte [esi + 0x7c], al
mov byte [esi + 0x26], al
mov byte [esi + 0x24], 2
mov byte [esi + 0x5f], 2
mov byte [esi + 0x27], 9
mov byte [esi + 0x2e], 0xf
mov byte [esi + 0x3c], 8
mov byte [esi + 0x23], 0xa
mov byte [esi + 0x3b], 0x15
mov byte [esi + 0x3a], 0x16
mov byte [esi], 0x11
mov byte [esi + 0x5c], 0x12
mov byte [esi + 0x2f], 0x13
mov byte [esi + 0x2a], 0x14
mov byte [esi + 0x40], 0x17
mov byte [esi + 0x60], 0x1a
mov byte [esi + 0x22], 0x20
mov eax, esi
sub ecx, esi
mov edi, 0x100
mov dl, byte [eax]
cmp dl, 2
je 0x47738b
cmp dl, 0xd
je 0x47738b
xor edx, edx
jmp 0x477390
mov edx, 1
mov byte [ecx + eax], dl
inc eax
dec edi
jne 0x47737b
mov al, 0x1d
mov byte [esi + 0x58], al
mov byte [esi + 0x78], al
mov al, 0x1f
pop edi
mov byte [esi + 0x62], 0x1e
mov byte [esi + 0x4e], al
mov byte [esi + 0x6e], al
pop esi
pop ebp
pop ebx
ret

Function at 0x4773b0
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
push ebx
push 0x4000
call fcn.00475c70
mov esi, eax
add esp, 8
test esi, esi
jne 0x4773d1
pop edi
pop esi
xor al, al
pop ebx
ret
mov eax, dword [esp + 0x10]
push ebx
push 0
push eax
call fcn.00478a00
mov edi, eax
add esp, 0xc
test edi, edi
jge 0x4773f6
push esi
call fcn.00475d00
add esp, 4
pop edi
pop esi
mov al, 1
pop ebx
ret
push ebp
push 0x4000
push esi
push edi
call fcn.0048f070
push ebx
push edi
mov ebp, eax
call fcn.00478a70
push 0x477430
push ebp
push esi
call fcn.00479da0
push esi
call fcn.00475d00
add esp, 0x24
pop ebp
pop edi
pop esi
xor al, al
pop ebx
ret
Function at 0x478730
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebx
push esi
push 0x6d5360
xor bl, bl
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x6d528c]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
jne 0x4787ab
push 0x4c
push 1
call fcn.0048d0f5
mov esi, eax
add esp, 8
test esi, esi
jne 0x478773
push 0x6d5360
mov bl, 1
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
mov al, bl
pop ebx
ret
mov ecx, dword [0x6d528c]
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [0x6ca744]
inc eax
lea edx, [esi + 0xc]
mov dword [0x6ca744], eax
push edx
mov dword [esi + 0x30], eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea eax, [esi + 4]
push 0
push eax
call fcn.0047c240
add esp, 8
mov byte [esi + 0x3c], 1
push 0x6d5360
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
mov al, bl
pop ebx
ret

Function at 0x478c30
Capabilities:
Read file on windows

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x1c]
mov dword [esp + 0x1c], edi
call fcn.0048cccd
mov ebx, dword [esp + 0x14]
mov dword [eax], 0
mov eax, dword [esp + 0x18]
push edi
push eax
push ebx
call fcn.0048f070
mov esi, eax
add esp, 0xc
cmp esi, edi
je 0x478d2a
call fcn.0048cccd
cmp dword [eax], 0
je 0x478c77
call fcn.0048cccd
mov ebp, dword [eax]
jmp 0x478c7a
or ebp, 0xffffffff
call fcn.004787c0
test esi, esi
mov dword [eax], ebp
jne 0x478c8f
call fcn.0048cccd
cmp dword [eax], 4
je 0x478cdf
mov eax, dword [esp + 0x20]
test al, 0x1a
je 0x478cc2
cmp esi, 0xffffffff
je 0x478d04
test al, 6
je 0x478cc2
call fcn.004787c0
mov ecx, dword [eax]
push ecx
push ebx
call fcn.0047c270
add esp, 4
push eax
push 0x24
push 9
call fcn.00479010
mov eax, dword [esp + 0x30]
add esp, 0x10
cmp esi, 0xffffffff
je 0x478d22
test al, 6
je 0x478cd0
test ah, 2
je 0x478d22
test esi, esi
jbe 0x478d2e
test ah, 2
je 0x478d2e
add dword [esp + 0x18], esi
sub edi, esi
call fcn.0048cccd
mov edx, dword [esp + 0x18]
push edi
push edx
push ebx
mov dword [eax], 0
call fcn.0048f070
mov esi, eax
add esp, 0xc
cmp esi, edi
je 0x478d2a
jmp 0x478c64
call fcn.004787c0
mov eax, dword [eax]
push eax
push ebx
call fcn.0047c270
add esp, 4
push eax
push 0x24
push 2
call fcn.00479010
add esp, 0x10
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret
mov eax, dword [esp + 0x20]
test al, 6
je 0x478d3b
xor esi, esi
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret
test ah, 2
je 0x478d44
mov esi, dword [esp + 0x1c]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret
Function at 0x48a5d1
Capabilities:
Authenticate hmac

Disassembly:
mov cl, ah
test bh, dl
imul ecx, ebx
mov dl, ah
mov ebp, 0xc6230fc6
xchg ch, bl
mov dh, dl
add al, 0x36
xor edi, edi
test eax, 0x8bba392a
dec ebp
dec edx
dec eax
xor ah, cl
imul edi, ebp
dec dh
and ebx, ecx
call 0x48a621
sub eax, 0x7081f241
xchg edi, ecx
sbb al, 0x5c
mov ebp, eax
mov cl, 0
mov bl, ch
mov esi, esi
xor edx, 0x5ebf
imul ebx, esi
lea ebp, [0x4e61ddab]
imul edx, edx, 0
dec esi
adc esi, 0x4fbe6c60
mov edi, 0x1f40a1d6
xor al, 0xdf
movsx ebx, di
jb 0x48a63c
adc ch, cl
dec ah
test ebx, ebp
jno 0x48a64b
lea ebp, [0xf4cae0d4]
and eax, 0x2cf26946
test al, dh
mov ebx, 0x200da
jae 0x48a65d
imul edi, esi
imul edi, ecx, 0x2be08e02
add ebx, 0xdd7c
xchg al, ah
mov esi, ebx
cmp ecx, edi
ja 0x48a674
cmp eax, 0x1a539837
movsx ebp, dl
sub esi, 0x8ebb
test esi, edx
dec edi
add edx, esi
test ebx, eax
jo 0x48a687
xor bl, 0x27
sub edx, 0x24f9a
test ebx, edi
mov ebx, 0x2954bb67
adc edi, 0xb9560ffc
sub eax, 0x32c253c
cmp edx, 0x64f
jbe 0x48a624
pop esi
test edx, ebp
je 0x48a6b8
imul ecx, ebx, 0x1f147787
sub ah, 0x49
imul ebx, ebx
cmp edx, 0xe2ae
jbe 0x48a6ce
mov cl, 0x6d
imul ebx, eax, 0xe6f80f5a
test bl, 0x9f
adc bh, dh
sbb ch, 0xfd
invalid
invalid
invalid

Function at 0x48ecf4
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x48ed14
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0048cc5a
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x48ed37
test byte [esp + 8], 2
je 0x48ed37
call fcn.0048cccd
mov dword [eax], 0xd
call fcn.0048ccd6
mov dword [eax], 5
jmp 0x48ed10
xor eax, eax
ret

Function at 0x4a0bdb
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4a0c13
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0049ec92
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0049ec6a
jmp 0x4a0c1f
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4a22cc
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4a230e
call fcn.004a7d80
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4a230e
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4a2305
xor eax, eax
jmp 0x4a2316
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004a231c
pop edi
pop esi
pop ebx
ret 4
Function at 0x4a82b0
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4a82de
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4a82fc
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004a8216
jmp 0x4a82fc
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4a82fc
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004a8216
test edi, edi
mov eax, edi
jne 0x4a82e6
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..rdata
push 4
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop edi
cmp eax, 0
nop
nop
nop
je 0x42e072
nop
nop
nop
nop
nop
mov ebx, 0x407ef8
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x35057a2b
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
loop 0x42e060
nop
nop
nop
mov eax, section._RDATA
nop
nop
nop
nop
cmp eax, 0
nop
nop
je 0x42e0d2
nop
nop
mov ebx, 0x42cd70
nop
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x1fbd56ba
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x42e0c0
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x90174b
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push edi
mov edi, ecx
mov eax, dword [edi + 0x44]
xor ebx, ebx
cmp eax, ebx
je 0x9017a6
cmp eax, 0xffffffff
je 0x9017a6
cmp dword [ebp + 8], ebx
je 0x9017a6
push esi
push dword [ebp + 8]
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, dword [edi + 0x44]
push ebx
mov esi, eax
lea eax, [ebp - 4]
push eax
add esi, esi
push esi
push dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x90f302
cmp esi, dword [ebp - 4]
jne 0x90f31d
pop esi
pop edi
mov eax, ebx
pop ebx
leave
ret 4
mov ebx, 0x80070057
jmp 0x90179e

Function at 0x90227c
Capabilities:
Query environment variable

Disassembly:
push 0x20
mov eax, 0x91621c
call fcn.00901350
xor ebx, ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
push ebx
push 0x20019
push dword [0x91b458]
lea ecx, [ebp - 0x2c]
push 0x80000002
mov dword [ebp - 4], ebx
mov dword [ebp - 0x18], ebx
call fcn.00902097
test eax, eax
jne 0x9023c4
lea eax, [ebp - 0x20]
push eax
push dword [0x91b45c]
lea ecx, [ebp - 0x2c]
push ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x20], ebx
call fcn.009023dc
test eax, eax
jne 0x9023c4
mov eax, dword [ebp - 0x20]
xor ecx, ecx
push 2
add eax, eax
pop edx
mul edx
seto cl
mov byte [ebp - 4], 1
neg ecx
or ecx, eax
push ecx
call fcn.009013e0
mov esi, eax
pop ecx
mov dword [ebp - 0x1c], esi
cmp esi, ebx
je 0x9023c4
lea eax, [ebp - 0x20]
push eax
push dword [0x91b45c]
lea ecx, [ebp - 0x2c]
push esi
call fcn.009023dc
test eax, eax
jne 0x9023bb
push ebx
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
call esi
mov edi, eax
cmp edi, ebx
je 0x9023bb
xor ecx, ecx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.009013e0
pop ecx
mov dword [ebp - 0x14], eax
cmp eax, ebx
je 0x9023bb
push edi
push eax
push dword [ebp - 0x1c]
call esi
mov esi, eax
cmp esi, ebx
je 0x9023b2
cmp dword [ebp + 8], ebx
je 0x90ea08
push dword [0x91b460]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edi, [eax + esi + 1]
xor ecx, ecx
push 2
pop edx
mov eax, edi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.009013e0
pop ecx
mov dword [ebp - 0x18], eax
cmp eax, ebx
je 0x9023b2
push dword [ebp - 0x14]
push esi
push eax
call fcn.009021cb
push dword [0x91b460]
push edi
push dword [ebp - 0x18]
call fcn.00902436
push dword [ebp - 0x14]
call fcn.009013c0
pop ecx
push dword [ebp - 0x1c]
call fcn.009013c0
pop ecx
lea ecx, [ebp - 0x2c]
call fcn.00901f10
mov eax, dword [ebp - 0x18]
call fcn.00901390
ret 4
Function at 0x9023dc
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x10]
push edi
push esi
lea eax, [ebp - 4]
push eax
xor ebx, ebx
push ebx
push dword [ebp + 0xc]
mov dword [ebp - 4], ebx
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [ebp - 4], ebx
jbe 0x90242c
cmp dword [ebp - 4], 2
ja 0x90e965
mov ecx, dword [edi]
test cl, 1
jne 0x90242c
cmp esi, ebx
je 0x902425
shr ecx, 1
cmp word [esi + ecx*2 - 2], bx
jne 0x90242c
pop edi
pop esi
pop ebx
leave
ret 0xc
push 0xd
pop eax
jmp 0x902425

Function at 0x9024ed
Capabilities:
Delete file
Move file

Disassembly:
push 0x14
mov eax, 0x916b05
call fcn.00901350
mov esi, ecx
mov eax, dword [esi + 0x44]
xor edi, edi
mov ebx, 0x8007000e
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], edi
cmp eax, edi
je 0x902519
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x44], edi
cmp dword [ebp + 8], edi
je 0x90265b
cmp dword [ebp + 0xc], edi
je 0x90265b
push 1
call fcn.0090227c
mov dword [ebp - 0x1c], eax
cmp eax, edi
je 0x90264a
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
mov dword [ebp - 4], edi
call esi
push dword [ebp + 8]
mov edi, eax
call esi
lea eax, [eax + edi + 1]
xor ecx, ecx
push 2
pop edx
mov dword [ebp - 0x20], eax
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.009013e0
pop ecx
mov dword [ebp - 0x18], eax
test eax, eax
je 0x90259b
push dword [ebp - 0x1c]
inc edi
push edi
push eax
call fcn.009021cb
mov ebx, eax
test ebx, ebx
jl 0x90259b
push dword [ebp + 8]
push dword [ebp - 0x20]
push dword [ebp - 0x18]
call fcn.00902436
mov ebx, eax
test ebx, ebx
jl 0x90259b
xor ebx, ebx
inc ebx
or dword [ebp - 4], 0xffffffff
test ebx, ebx
jl 0x902632
push 2
pop ebx
push dword [ebp - 0x1c]
mov dword [ebp - 4], ebx
call esi
push dword [ebp + 0xc]
mov edi, eax
call esi
lea esi, [eax + edi + 1]
xor ecx, ecx
mov eax, esi
mul ebx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.009013e0
pop ecx
mov dword [ebp - 0x14], eax
test eax, eax
je 0x902654
push dword [ebp - 0x1c]
inc edi
push edi
push eax
call fcn.009021cb
mov ebx, eax
test ebx, ebx
jl 0x902623
push dword [ebp + 0xc]
push esi
push dword [ebp - 0x14]
call fcn.00902436
mov ebx, eax
test ebx, ebx
jl 0x902623
xor ebx, ebx
inc ebx
test ebx, ebx
jl 0x902623
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 1
push dword [ebp - 0x14]
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x90f3a2
xor ebx, ebx
cmp dword [ebp - 0x14], 0
je 0x902632
push dword [ebp - 0x14]
call fcn.009013c0
pop ecx
cmp dword [ebp - 0x18], 0
je 0x902641
push dword [ebp - 0x18]
call fcn.009013c0
pop ecx
push dword [ebp - 0x1c]
call fcn.009013c0
pop ecx
mov eax, ebx
call fcn.00901390
ret 8
mov ebx, 0x8007000e
jmp 0x9025fe
mov ebx, 0x80070057
jmp 0x90264a
Function at 0x903a67
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
and dword [ebp - 8], 0
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push 0x903ae4
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x903ac0
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push esi
push 0x903ad0
push dword [ebp - 4]
mov dword [ebp - 0xc], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, 0xffffffff
pop esi
je 0x90e30e
mov eax, dword [ebp - 8]
leave
ret
Function at 0x904267
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
xor esi, esi
cmp dword [0x91b00c], esi
jne 0x9042be
lea eax, [ebp - 4]
push eax
push esi
push esi
push 0x902c6f
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x91b00c], eax
cmp eax, esi
je 0x90e4ec
push 0xffffffffffffffff
push dword [0x91b014]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [0x91b014]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
cmp dword [0x91b018], esi
jl 0x90e50a
pop esi
leave
ret

Function at 0x904441
Capabilities:
Parse pe header

Disassembly:
push 0xc
push 0x904498
call fcn.00902712
xor eax, eax
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x904490
cmp ecx, 0xffffffff
je 0x904490
and dword [ebp - 4], eax
mov edx, 0x5a4d
cmp word [ecx], dx
jne 0x904489
mov edx, dword [ecx + 0x3c]
test edx, edx
jl 0x904489
cmp edx, 0x10000000
jae 0x904489
lea eax, [edx + ecx]
mov dword [ebp - 0x1c], eax
cmp dword [eax], 0x4550
jne 0x90e892
mov dword [ebp - 4], 0xfffffffe
call fcn.00902757
ret 4

Function at 0x90681f
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x91b004]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push esi
mov esi, ecx
inc eax
cmp dword [esi + 0x2c], 0
jne 0x906933
push edi
xor eax, eax
push 0x208
push eax
mov word [ebp - 0x41c], ax
lea eax, [ebp - 0x41a]
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov edi, 0x105
push edi
lea eax, [ebp - 0x41c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov dword [ebp - 0x420], eax
cmp eax, edi
ja 0x90ed16
lea eax, [ebp - 0x41c]
push eax
push edi
lea eax, [ebp - 0x210]
push eax
call fcn.009021cb
test eax, eax
jl 0x906932
mov ecx, dword [ebp - 0x420]
cmp word [ebp + ecx*2 - 0x210], 0x5c
je 0x9068c3
push 0x906994
push edi
lea eax, [ebp - 0x210]
push eax
call fcn.00902436
test eax, eax
jl 0x906932
push 0x906980
push edi
lea eax, [ebp - 0x210]
push eax
call fcn.00902436
test eax, eax
jl 0x906932
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [esi + 0x2c], eax
test eax, eax
je 0x90ed20
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x906970
push eax
call edi
push 0x90695c
push dword [esi + 0x2c]
mov dword [esi + 0x30], eax
call edi
push 0x906948
push dword [esi + 0x2c]
mov dword [esi + 0x34], eax
call edi
cmp dword [esi + 0x30], 0
mov dword [esi + 0x38], eax
je 0x906940
cmp dword [esi + 0x34], 0
je 0x906940
test eax, eax
je 0x906940
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.009020d4
leave
ret
mov eax, 0x8007007f
jmp 0x906932