joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5e2340
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
mov ebp, edx
push esi
push edi
mov esi, ebp
xor edi, edi
and esi, 3
mov eax, ecx
jle 0x5e2361
mov dl, byte [eax]
inc eax
cmp dl, bl
je 0x5e23bb
inc edi
cmp edi, esi
jl 0x5e2355
mov edi, ebx
and edi, 0xff
mov esi, edi
shl esi, 8
or esi, edi
shl esi, 8
or esi, edi
shl esi, 8
or esi, edi
lea edi, [ecx + ebp]
cmp eax, edi
jae 0x5e23f0
mov edx, dword [eax]
xor edx, esi
lea ebp, [edx - 0x1010101]
not edx
and ebp, edx
test ebp, 0x80808080
je 0x5e23aa
cmp byte [eax], bl
je 0x5e23c5
cmp byte [eax + 1], bl
je 0x5e23ce
cmp byte [eax + 2], bl
je 0x5e23d8
cmp byte [eax + 3], bl
je 0x5e23e4
add eax, 4
cmp eax, edi
jb 0x5e2381
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret 4
pop edi
sub eax, ecx
pop esi
pop ebp
dec eax
pop ebx
ret 4
pop edi
pop esi
pop ebp
sub eax, ecx
pop ebx
ret 4
pop edi
sub eax, ecx
pop esi
pop ebp
inc eax
pop ebx
ret 4
pop edi
sub eax, ecx
pop esi
pop ebp
add eax, 2
pop ebx
ret 4
pop edi
sub eax, ecx
pop esi
pop ebp
add eax, 3
pop ebx
ret 4
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret 4

Function at 0x5f0e90
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0xb13b24]
xor edx, edx
cmp eax, edx
jne 0x5f0eb6
xor eax, eax
mov byte [eax + 0xb13a24], al
inc eax
cmp eax, 0x100
jl 0x5f0e9e
mov dword [0xb13b24], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0xb13a24
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x5f0f47
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x5f0f1a
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x5f0ee8
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x5f0fc0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x5f1013
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x5f0ffa
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x5f7990
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x62b20e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x10], edi
call fcn.005f82b0
push 0x10
mov dword [esp + 0x18], 0
mov dword [edi], 0xa641cc
call fcn.00619e7d
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov al, 1
test esi, esi
mov byte [esp + 0x14], al
je 0x5f7a23
push 4
mov byte [esi + 8], al
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.00619e7d
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 2
je 0x5f7a1c
push 0
mov ecx, eax
call fcn.005eeac0
mov dword [esi + 0xc], eax
jmp 0x5f7a25
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x5f7a25
xor esi, esi
mov ecx, dword [esp + 0xc]
mov dword [edi + 0x30], esi
mov dword [edi + 0x34], 0
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8

Function at 0x61c4f2
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x61c52a
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.0061a597
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA_1]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0061a56f
jmp 0x61c536
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x61dcec
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 0x61dd2e
call fcn.00623f22
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA_1]
cmp eax, edi
je 0x61dd2e
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource_1]
cmp eax, edi
jne 0x61dd25
xor eax, eax
jmp 0x61dd36
push eax
call dword [sym.imp.KERNEL32.dll_LockResource_1]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0061dd3c
pop edi
pop esi
pop ebx
ret 4

Function at 0x624452
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_1]
cmp dword [esp + 0x10], 0
jne 0x624480
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue_1]
test eax, eax
je 0x62449e
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.006243b8
jmp 0x62449e
mov eax, dword [esi + 0x14]
test eax, eax
je 0x62449e
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.006243b8
test edi, edi
mov eax, edi
jne 0x624488
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection_1]
pop esi
pop ebx
ret 8
Function at 0x4799f0
Capabilities:
Encode data using xor

Disassembly:
push esi
je 0x479ab0
jne 0x479ab0
mov ecx, dword [0x1153d864]
mov dword [0x111d42e4], ecx
push 0xbdaa5c
push 0x45e650
push 0xb63258
cmp cl, 0xa
add byte [eax + 0x50], ch
out 0x45, al
add byte [eax + 0x58], ch
xor dh, byte [esi + 0xaf98000]
mov dword [esi + 0x20], 0x11417ad0
call dword [0x69972a4c]
mov esi, 0xd2345e07
push esi
pop esi
sbb byte [edx + 0x6ad88b3], ch
xchg ebx, eax
push esp
dec ecx
jno 0x479a0d
add esp, 8
cmp esi, dword [eax - 8]
jg 0x479ec0
mov dword [eax - 0xc], esi
mov edx, dword [edi]
sub eax, eax
jmp 0x479ba8
push edi
push ecx
pop edi
push 0x479dc9
ret
sub edx, esi
or ecx, edx
jmp 0x479d67
ret
mov word [edx + esi*2], ax
je 0x479c02
jne 0x479c02
mov dword [0x69998354], eax
mov dword [0xcfa5fc], edx
mov eax, 0x102bfd18
jmp dword [esi*4 + 0x89d170]
mov eax, edi
pop edi
pop esi
je 0x479b5b
jne 0x479b5b
push 0x114cbc0c
mov dword [0x462dbc], eax
push 0x44c220
mov dword [0x456730], edx
cmp eax, dword [0x1000c0f0]
jmp dword [0x43b1b8]
push eax
push ecx
call 0x483304
mov eax, dword [edi]
push 0x479a3a
ret
sub ecx, dword [eax - 4]
jmp 0x479af5
jge 0x479e05
jmp 0x479e69
mov ecx, dword [edi]
lea eax, [esi + 1]
je 0x479c83
jne 0x479c83
mov byte [edx + 0x50], 0
add ecx, 0xee8
or ecx, dword [0xd37bfc]
push 0x1004f888
fldenv [ecx - 0x6c]
call dword [0x44b088]
push 0x9c6934
mov edx, 0x1869f
mov dword [esi], 0xedfcbc
sub ecx, dword [ebp - 0x758]
jmp dword [ecx*4 + 0x101ea650]
xchg byte [ecx], al
add bh, al
push es
mov esp, 0x2b00edfc
lea ebp, [eax - 8]
and al, 0x8d
push eax
cmpsb byte [esi], byte es:[edi]
push ds
adc bh, bh
adc eax, 0x507568
fstp dword [esi + 0x114]
retf
push esi
mov ecx, edi
je 0x479f08
jne 0x479f08
div dword [0x69a76750]
mov byte [ebp - 0x107], dl
push 0xa154e8
mov dword [0xdeef3c], 0x60e910
mov eax, dword [0x1153faec]
mov dword [0x423f64], 9
fst qword [esi - 0x68f4ff75]
push 0xa11f20
mov eax, dword [0x10120230]
sub dword [edx + 0x67], ebp
and ecx, dword [eax]
ja 0x479e3b
dec ebp
jns 0x479eca
push 0x80070057
call fcn.004374e0
mov edx, dword [eax - 8]
pushfd
xor ecx, ecx
inc ecx
popfd
je 0x479cfe
jne 0x479cfe
cmp edi, 0x42
push 0x102a9180
push 0x105095fc
cmp dword [0x100a103c], edi
mov esi, dword [0xeaf890]
cmp eax, 0xb1111a4e
push ss
adc dl, dl
ljmp 0x6cb7
call fcn.0043b1d0
je 0x479e05
jne 0x479e05
push 0x449c20
push 0x697de5e8
push 0x4063cc
push 0x1026f634
jmp dword [ecx*4 + 0x496090]

Function at 0x4819d9
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x5976c0]
jne 0x4819e3
repz ret
jmp fcn.00485094
Function at 0x484821
Capabilities:
Query environment variable

Disassembly:
push edi
pop edi
push esi
call dword [sym.imp.KERNEL32.DLL_GetEnvironmentStringsW]
push eax
pop esi
xor ecx, ecx
cmp esi, ecx
jne 0x484836
sub eax, eax
pop esi
ret
cmp word [esi], cx
je 0x48484b
add eax, 2
cmp word [eax], cx
jne 0x48483b
add eax, 2
cmp word [eax], cx
jne 0x48483b
push ebx
sub eax, esi
lea ebx, [eax + 2]
push edi
push ebx
call fcn.004884b5
mov edi, eax
pop ecx
test edi, edi
jne 0x48486c
push esi
call dword [sym.imp.KERNEL32.DLL_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret
push ebx
push esi
push edi
call fcn.004819f0
add esp, 0xc
jmp 0x48485f

Function at 0x485410
Capabilities:
Parse pe header

Disassembly:
push edi
pop edi
push ebp
push esp
pop ebp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
je 0x485426
xor eax, eax
pop ebp
ret
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x485422
xor edx, edx
mov ecx, 0x10b
cmp word [eax + 0x18], cx
sete dl
mov eax, edx
pop ebp
ret

Function at 0x485450
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
push esp
pop ebp
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
push ebx
push esi
movzx esi, word [ecx + 6]
xor edx, edx
push edi
lea eax, [eax + ecx + 0x18]
or esi, esi
je 0x48548d
mov edi, dword [ebp + 0xc]
mov ecx, dword [eax + 0xc]
cmp edi, ecx
jb 0x485485
mov ebx, dword [eax + 8]
add ebx, ecx
cmp edi, ebx
jb 0x48548f
inc edx
add eax, 0x28
cmp edx, esi
jb 0x485475
sub eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x48574e
Capabilities:
Terminate process

Disassembly:
push edi
pop edi
push esi
push 1
mov esi, 0xc0000417
push esi
push 2
call fcn.00485625
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.DLL_TerminateProcess]
pop esi
ret
Function at 0x48ab79
Capabilities:
Link many functions at runtime

Disassembly:
push edi
pop edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x5976c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00484b0a
and dword [ebp - 0x14], 0
cmp dword [0x59941c], 0
mov dword [ebp - 0x18], eax
jne 0x48ac2c
push 0x402af0
call dword [sym.imp.KERNEL32.DLL_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x48acd4
mov edi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push 0x402ae4
push ebx
call edi
test eax, eax
je 0x48acd4
mov esi, dword [sym.imp.KERNEL32.DLL_EncodePointer]
push eax
call esi
push 0x402ad4
push ebx
mov dword [0x59941c], eax
call edi
push eax
call esi
push 0x402ac0
push ebx
mov dword [0x599420], eax
call edi
push eax
call esi
push 0x402aa4
push ebx
mov dword [0x599424], eax
call edi
push eax
call esi
mov dword [0x59942c], eax
or eax, eax
je 0x48ac2c
push 0x402a8c
push ebx
call edi
push eax
call esi
mov dword [0x599428], eax
mov eax, dword [0x599428]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.DLL_DecodePointer]
cmp eax, ecx
je 0x48ac85
cmp dword [0x59942c], ecx
je 0x48ac85
push eax
call esi
push dword [0x59942c]
mov edi, eax
call esi
mov ebx, eax
or edi, edi
je 0x48ac85
or ebx, ebx
je 0x48ac85
call edi
or eax, eax
je 0x48ac7c
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x48ac7c
test byte [ebp - 8], 1
jne 0x48ac85
or dword [ebp + 0x10], 0x200000
jmp 0x48acb8
mov eax, dword [0x599420]
cmp eax, dword [ebp - 0x18]
je 0x48acb8
push eax
call esi
test eax, eax
je 0x48acb8
call eax
mov dword [ebp - 0x14], eax
or eax, eax
je 0x48acb8
mov eax, dword [0x599424]
cmp eax, dword [ebp - 0x18]
je 0x48acb8
push eax
call esi
or eax, eax
je 0x48acb8
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x59941c]
call esi
test eax, eax
je 0x48acd4
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x48acd6
sub eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004819d9
leave
ret
Function at 0x48d0ef
Capabilities:
Clear file content

Disassembly:
push edi
pop edi
push ebp
push esp
pop ebp
sub esp, 0x18
push ebx
push esi
push edi
sub ebx, ebx
push 1
push ebx
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ebx
call fcn.0048afc7
mov dword [ebp - 0x18], eax
and eax, edx
add esp, 0x10
mov dword [ebp - 0x14], edx
cmp eax, 0xffffffff
je 0x48d177
push 2
push ebx
push ebx
push dword [ebp + 8]
call fcn.0048afc7
mov ecx, eax
and ecx, edx
add esp, 0x10
cmp ecx, 0xffffffff
je 0x48d177
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
sub esi, eax
sbb edi, edx
js 0x48d20c
jg 0x48d150
cmp esi, ebx
jbe 0x48d20c
mov ebx, 0x1000
push ebx
push 8
call dword [sym.imp.KERNEL32.DLL_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.DLL_HeapAlloc]
mov dword [ebp - 4], eax
or eax, eax
jne 0x48d183
call fcn.004857f2
mov dword [eax], 0xc
call fcn.004857f2
mov eax, dword [eax]
pop edi
pop esi
pop ebx
leave
ret
push 0x8000
push dword [ebp + 8]
call fcn.0048d85c
pop ecx
pop ecx
mov dword [ebp - 8], eax
test edi, edi
jl 0x48d1a3
jg 0x48d19f
cmp esi, ebx
jb 0x48d1a3
mov eax, ebx
jmp 0x48d1a5
push esi
pop eax
push eax
push dword [ebp - 4]
push dword [ebp + 8]
call fcn.00489733
add esp, 0xc
cmp eax, 0xffffffff
je 0x48d1ef
cdq
sub esi, eax
sbb edi, edx
js 0x48d1c6
jg 0x48d195
test esi, esi
jne 0x48d195
mov esi, dword [ebp - 0x10]
push dword [ebp - 8]
push dword [ebp + 8]
call fcn.0048d85c
pop ecx
pop ecx
push dword [ebp - 4]
push 0
call dword [sym.imp.KERNEL32.DLL_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.DLL_HeapFree]
xor ebx, ebx
jmp 0x48d275
call fcn.00485805
cmp dword [eax], 5
jne 0x48d204
call fcn.004857f2
mov dword [eax], 0xd
or esi, 0xffffffff
mov dword [ebp - 0xc], esi
jmp 0x48d1c9
cmp edi, ebx
jg 0x48d281
jl 0x48d216
cmp esi, ebx
jae 0x48d281
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0048afc7
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
je 0x48d177
push dword [ebp + 8]
call fcn.0048bf97
pop ecx
push eax
call dword [sym.imp.KERNEL32.DLL_SetEndOfFile]
neg eax
sbb eax, eax
neg eax
dec eax
cdq
mov dword [ebp - 0x10], eax
and eax, edx
mov dword [ebp - 0xc], edx
cmp eax, 0xffffffff
jne 0x48d281
call fcn.004857f2
mov dword [eax], 0xd
call fcn.00485805
mov esi, eax
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [esi], eax
mov esi, dword [ebp - 0x10]
and esi, dword [ebp - 0xc]
cmp esi, 0xffffffff
je 0x48d177
push ebx
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push dword [ebp + 8]
call fcn.0048afc7
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
je 0x48d177
sub eax, eax
jmp 0x48d17e
Function at 0x490420
Capabilities:
Set registry value

Disassembly:
push ebp
push esp
pop ebp
push 0xffffffffffffffff
push 0x491ef0
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x5976c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
lea eax, [ebp - 0x18]
push 0x596ea8
sub ebx, ebx
push eax
sub esi, esi
mov dword [ebp - 4], ebx
call fcn.00471760
mov ecx, dword [ebp - 0x18]
add esp, 8
cmp dword [ecx - 0xc], ebx
je 0x4904f6
mov edi, dword [ebp + 8]
cmp ebx, 2
jge 0x4904f6
lea edx, [ebp - 0x1c]
push edx
lea edx, [ebp - 0x14]
push edx
push 0
sub eax, eax
push 2
test ebx, ebx
push 0
setne al
push 0
push 0
push ecx
mov dword [ebp - 0x14], 0
add eax, 0x80000001
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x4904ed
mov esi, dword [ebp - 0x14]
mov ecx, esi
mov dword [ebp - 0x28], ecx
test edi, edi
jne 0x4904b9
lea eax, [edi + 0xd]
jmp 0x4904d9
push edi
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
lea eax, [eax + eax + 2]
push eax
push edi
push 1
push 0
push 0x4019bc
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [ebp - 0x28]
xor edx, edx
test eax, eax
sete dl
mov esi, edx
test ecx, ecx
je 0x4904ed
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x18]
inc ebx
jmp 0x490472
lea eax, [ecx - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
or edx, edx
jg 0x490536
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push esi
pop eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x490550
Capabilities:
Delete file
Get common file path
Move file

Disassembly:
push ebp
push esp
pop ebp
push 0xffffffffffffffff
push 0x491f1b
mov eax, dword fs:[0]
push eax
sub esp, 0x224
mov eax, dword [0x5976c0]
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 esi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
xor edi, edi
sub ebx, ebx
mov dword [ebp - 4], edi
mov dword [ebp - 0x230], edi
mov dword [ebp - 0x22c], edi
mov dword [ebp - 0x228], edi
mov edx, dword [ebp + 0x10]
lea ecx, [ebp - 0x230]
push ecx
push edx
push eax
mov byte [ebp - 4], 1
call fcn.0044a250
add esp, 0xc
cmp eax, edi
je 0x4906f8
mov eax, dword [ebp - 0x230]
cmp eax, dword [ebp - 0x22c]
je 0x4906f8
lea ecx, [ebp - 0x230]
push 0x4019f0
push ecx
call fcn.0044b5b0
add esp, 8
push 0x4019e0
push 0x4019c8
call dword [sym.imp.KERNEL32.DLL_LoadLibraryW]
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
cmp eax, edi
je 0x4906f8
push esi
call eax
cmp eax, edi
je 0x49067d
push esi
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
test eax, eax
jne 0x49067d
push 0x206
lea eax, [ebp - 0x21a]
xor edx, edx
push edi
push eax
mov word [ebp - 0x21c], dx
call fcn.00481ef0
add esp, 0xc
lea ecx, [ebp - 0x21c]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.DLL_GetTempPathW]
test eax, eax
je 0x4906f8
lea edx, [ebp - 0x21c]
push edx
push edi
push edi
push edx
pop eax
push eax
call dword [sym.imp.KERNEL32.DLL_GetTempFileNameW]
or eax, eax
je 0x4906f8
push 1
lea ecx, [ebp - 0x21c]
push ecx
push esi
call dword [sym.imp.KERNEL32.DLL_MoveFileExW]
test eax, eax
je 0x4906f8
push 0x4019c0
lea edx, [ebp - 0x220]
push esi
push edx
mov dword [ebp - 0x220], edi
call fcn.00483b18
add esp, 0xc
or eax, eax
jne 0x4906f8
mov eax, dword [ebp - 0x220]
cmp eax, edi
je 0x4906f8
mov ecx, dword [ebp - 0x22c]
push eax
mov eax, dword [ebp - 0x230]
sub ecx, eax
push ecx
push 1
push eax
call fcn.004839e0
mov edx, dword [ebp - 0x220]
push edx
call fcn.0048382d
mov eax, dword [ebp - 0x220]
mov esi, dword [ebp - 0x22c]
sub esi, dword [ebp - 0x230]
push eax
call fcn.0048363e
mov ecx, dword [ebp - 0x220]
xor ebx, ebx
cmp esi, eax
push ecx
sete bl
call fcn.00483436
add esp, 0x1c
mov eax, dword [ebp - 0x230]
cmp eax, edi
je 0x490723
push eax
call fcn.00481d51
add esp, 4
jmp 0x490723
mov eax, ebx
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.004819d9
push ebp
pop esp
pop ebp
ret
Function at 0x4908b0
Capabilities:
Check if file exists
Create process on windows
Delete file
Extract resource via kernel32 functions
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x491f98
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x5976c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], ebx
cmp edi, ebx
je 0x490a97
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4908f3
sub eax, edx
sar eax, 1
je 0x490a97
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
or eax, eax
je 0x490a97
push 0x409
push 0x65
push ebx
call dword [sym.imp.KERNEL32.DLL_FindResourceW]
push eax
pop esi
cmp esi, ebx
je 0x490a89
push esi
push ebx
call dword [sym.imp.KERNEL32.DLL_SizeofResource]
push eax
pop edi
cmp edi, ebx
je 0x490a97
push esi
push ebx
call dword [sym.imp.KERNEL32.DLL_LoadResource]
cmp eax, ebx
je 0x490a97
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
cmp eax, ebx
je 0x490a97
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
lea ecx, [ebp - 0x2c]
push ecx
push edi
push eax
mov byte [ebp - 4], 1
call fcn.0044a250
add esp, 0xc
cmp eax, ebx
je 0x490a70
mov edx, dword [ebp - 0x2c]
cmp edx, dword [ebp - 0x28]
je 0x490a70
mov edi, dword [ebp + 8]
push 0x4019c0
lea eax, [ebp - 0x18]
push edi
push eax
mov dword [ebp - 0x18], ebx
call fcn.00483b18
add esp, 0xc
or eax, eax
jne 0x490a70
mov ecx, dword [ebp - 0x18]
cmp ecx, ebx
je 0x490a70
mov eax, dword [ebp - 0x2c]
mov esi, dword [ebp - 0x28]
push ecx
sub esi, eax
push esi
push 1
push eax
call fcn.004839e0
mov edx, dword [ebp - 0x18]
sub ecx, ecx
cmp esi, eax
sete cl
push edx
mov esi, ecx
call fcn.00483436
add esp, 0x14
cmp esi, ebx
je 0x490a70
mov eax, dword [0x5985c0]
mov edx, dword [eax + 0xc]
mov ecx, 0x5985c0
call edx
add eax, 0x10
mov dword [ebp - 0x1c], eax
push 0x6b
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 2
call fcn.0043eed0
cmp eax, ebx
je 0x490a68
mov esi, dword [ebp - 0x1c]
cmp dword [esi - 0xc], ebx
je 0x490a68
push edi
lea ecx, [ebp + 8]
call fcn.0043fbd0
lea ecx, [ebp + 8]
mov byte [ebp - 4], 3
call fcn.0047afe0
push esi
lea ecx, [ebp + 8]
call fcn.00479f60
cmp eax, ebx
je 0x490a60
mov eax, dword [ebp + 8]
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_MoveFileW]
or eax, eax
je 0x490a60
mov ecx, dword [ebp + 8]
push 1
push ebx
push ebx
push ecx
push ebx
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov dword [ebp - 0x14], 1
lea ecx, [ebp + 8]
call fcn.00478340
lea ecx, [ebp - 0x1c]
call fcn.0043a480
lea ecx, [ebp - 0x2c]
call fcn.00446d10
jmp 0x490a97
push edi
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
mov dword [ebp - 0x14], 1
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
push ebp
pop esp
pop ebp
ret