joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5910d100
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x5915be78
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.59110b20
xor ebx, ebx
lea ecx, [esi + 0x60]
mov dword [esp + 0x18], ebx
call fcn.59110d00
mov eax, dword [0x591638bc]
or edx, 0xffffffff
mov dword [esi + 0x7c], eax
mov ecx, 8
xor eax, eax
lea edi, [esi + 0x88]
mov dword [esi + 0x50], 0x5916a770
mov dword [esi + 0x5c], ebx
mov dword [esi + 0x54], ebx
mov dword [esi + 0x58], ebx
mov dword [esi + 0x78], ebx
mov dword [esi + 0x80], ebx
mov dword [esi + 0x84], ebx
mov dword [esi + 0xac], edx
rep stosd dword es:[edi], eax
mov dword [esi + 0xa8], ebx
mov ecx, 8
lea edi, [esi + 0x10]
mov dword [esi], 0x5916a714
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x40], ebx
mov word [esi + 0x44], bx
mov dword [esi + 0x48], ebx
mov word [esi + 0x4c], bx
mov dword [esi + 4], edx
mov dword [esi + 8], edx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x34], edx
mov dword [esi + 0x38], edx
mov dword [esi + 0xb0], ebx
mov dword [esi + 0xb4], ebx
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x10]
mov dword [esi + 0x30], ebx
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x5910dca0
Capabilities:
Check os version

Disassembly:
push 0xffffffffffffffff
push 0x5915c025
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x49c
push esi
push edi
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0xa5]
mov byte [esp + 0xa4], 0
rep stosd dword es:[edi], eax
mov esi, dword [esp + 0x4b8]
mov dword [esp + 0xc], 0
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [0x591b39d8]
test esi, esi
je 0x5910dd8b
test eax, eax
jne 0x5910dd4a
mov ecx, 0x24
xor eax, eax
lea edi, [esp + 0x14]
mov dword [0x591b39d8], 1
rep stosd dword es:[edi], eax
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [esp + 0x20], 2
jne 0x5910dd3e
cmp dword [esp + 0x14], 5
jb 0x5910dd3e
mov ecx, dword [str.GlobalOCULAR_]
mov dword [0x591b39dc], ecx
jmp 0x5910dd4a
mov edx, dword [0x591a8690]
mov dword [0x591b39dc], edx
mov eax, dword [esp + 0x4bc]
test eax, eax
mov eax, dword [0x591a8690]
jne 0x5910dd5f
mov eax, dword [0x591b39dc]
mov ecx, dword [esp + 0x4c4]
mov edx, dword [esp + 0x4c0]
push ecx
push edx
push esi
push eax
lea eax, [esp + 0xb4]
push str._s__s__08x__08x
push eax
call fcn.59089600
add esp, 0x18
jmp 0x5910de1a
test eax, eax
jne 0x5910dddf
mov ecx, 0x24
xor eax, eax
lea edi, [esp + 0x14]
mov dword [0x591b39d8], 1
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], 0x94
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [esp + 0x20], 2
jne 0x5910ddd5
cmp dword [esp + 0x14], 5
jb 0x5910ddd5
mov edx, dword [str.GlobalOCULAR_]
mov dword [0x591b39dc], edx
jmp 0x5910dddf
mov eax, dword [0x591a8690]
mov dword [0x591b39dc], eax
mov eax, dword [esp + 0x4bc]
test eax, eax
mov eax, dword [0x591a8690]
jne 0x5910ddf4
mov eax, dword [0x591b39dc]
mov ecx, dword [esp + 0x4c4]
mov edx, dword [esp + 0x4c0]
push ecx
push edx
push eax
lea eax, [esp + 0xb0]
push str._s___08x__08x
push eax
call fcn.59089600
add esp, 0x14
lea ecx, [esp + 0xa4]
push ecx
lea ecx, [esp + 0xc]
call fcn.590a19b0
mov esi, dword [esp + 0x4b4]
lea edx, [esp + 8]
push edx
mov ecx, esi
mov dword [esp + 0x4b0], 1
call fcn.590a18b0
mov dword [esp + 0xc], 1
lea ecx, [esp + 8]
mov byte [esp + 0x4ac], 0
call fcn.590a22e0
mov ecx, dword [esp + 0x4a4]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x4a8
ret
Function at 0x59111a10
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5915c4bf
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
mov ecx, dword [0x591638c0]
push ebx
xor eax, eax
push esi
push edi
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], ecx
mov ecx, 9
lea edi, [esp + 0x16]
mov ebx, dword [esp + 0x50]
mov word [esp + 0x14], ax
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, ebx
lea edx, [esp + 0x14]
push 0xa
push edx
shr eax, 0x18
push eax
mov dword [esp + 0x50], 1
call fcn.591339a8
add esp, 0xc
lea ecx, [esp + 0xc]
push eax
call fcn.590a82b0
push 0x5918e838
lea ecx, [esp + 0x10]
call fcn.590a82b0
xor edx, edx
lea ecx, [esp + 0x14]
mov dl, byte [esp + 0x52]
push 0xa
push ecx
push edx
call fcn.591339a8
add esp, 0xc
lea ecx, [esp + 0xc]
push eax
call fcn.590a82b0
push 0x5918e838
lea ecx, [esp + 0x10]
call fcn.590a82b0
xor ecx, ecx
lea eax, [esp + 0x14]
push 0xa
mov cl, bh
push eax
push ecx
call fcn.591339a8
add esp, 0xc
lea ecx, [esp + 0xc]
push eax
call fcn.590a82b0
push 0x5918e838
lea ecx, [esp + 0x10]
call fcn.590a82b0
lea edx, [esp + 0x14]
push 0xa
and ebx, 0xff
push edx
push ebx
call fcn.591339a8
add esp, 0xc
lea ecx, [esp + 0xc]
push eax
call fcn.590a82b0
mov esi, dword [esp + 0x4c]
lea eax, [esp + 0xc]
push eax
mov ecx, esi
call fcn.590a6c60
mov dword [esp + 0x10], 1
lea ecx, [esp + 0xc]
mov byte [esp + 0x44], 0
call fcn.590a7660
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
add esp, 0x3c
ret

Function at 0x59114080
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x5915c8bb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x210
mov eax, dword [0x5916a8d0]
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
mov dword [esi], eax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x12]
mov word [esp + 0x10], 0
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x10]
push 0x104
push ecx
mov dword [esp + 0x228], 0
stosw word es:[edi], ax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea edx, [esp + 0x10]
mov ecx, esi
push edx
call fcn.591232a0
lea eax, [esp + 8]
push 1
push eax
mov ecx, esi
call fcn.59125580
mov ecx, dword [eax]
push 0x59191164
push ecx
call fcn.59089e1c
add esp, 8
lea ecx, [esp + 8]
mov edi, eax
call fcn.59122fc0
test edi, edi
je 0x59114120
push 0x59191164
mov ecx, esi
call fcn.59123c00
mov ecx, dword [esp + 0x218]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x21c
ret
Function at 0x59114260
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x5915c8fb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x210
mov eax, dword [0x5916a8d0]
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
mov dword [esi], eax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x12]
mov word [esp + 0x10], 0
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x10]
push 0x104
push ecx
mov dword [esp + 0x228], 0
stosw word es:[edi], ax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea edx, [esp + 0x10]
mov ecx, esi
push edx
call fcn.591232a0
lea eax, [esp + 8]
push 1
push eax
mov ecx, esi
call fcn.59125580
mov ecx, dword [eax]
push 0x59191164
push ecx
call fcn.59089e1c
add esp, 8
lea ecx, [esp + 8]
mov edi, eax
call fcn.59122fc0
test edi, edi
je 0x59114300
push 0x59191164
mov ecx, esi
call fcn.59123c00
mov ecx, dword [esp + 0x218]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x21c
ret
Function at 0x591214b0
Capabilities:
Extract resource via kernel32 functions
Print debug messages

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
push ebx
push ebp
mov ebp, eax
push esi
mov esi, dword [esp + 0x10]
and ebp, 0xf
shr eax, 4
inc eax
push edi
and eax, 0xffff
push ecx
push eax
push 6
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceExA]
test eax, eax
je 0x59121509
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x59121509
xor edi, edi
xor ebx, ebx
mov bx, word [esi]
add esi, 2
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp ebp, edi
je 0x59121510
inc edi
lea esi, [esi + ebx*2]
cmp edi, 0x10
jl 0x591214ed
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov ecx, dword [esp + 0x24]
mov ebp, dword [esp + 0x20]
mov edx, ecx
xor eax, eax
mov edi, ebp
push 0
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push 0
and ecx, 3
rep stosb byte es:[edi], al
mov eax, edx
dec eax
push eax
push ebp
push ebx
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x5912150b
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
pop edi
dec ecx
pop esi
pop ebp
mov eax, ecx
pop ebx
ret

Function at 0x59126fe0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
push esi
push edi
mov esi, dword [esp + 0xc]
mov edi, eax
shr eax, 4
and edi, 0xf
inc eax
and eax, 0xffff
push ecx
push eax
push 6
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceExA]
test eax, eax
je 0x59127030
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x59127030
xor ecx, ecx
xor eax, eax
mov ax, word [esi]
add esi, 2
cmp edi, ecx
je 0x59127035
inc ecx
lea esi, [esi + eax*2]
cmp ecx, 0x10
jl 0x5912701b
pop edi
xor eax, eax
pop esi
ret
mov edx, dword [esp + 0x1c]
lea ecx, [edx - 1]
cmp eax, ecx
jle 0x59127042
mov eax, ecx
lea edx, [eax + eax]
push ebx
mov ebx, dword [esp + 0x1c]
mov ecx, edx
push ebp
mov ebp, ecx
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
pop ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov word [edx + ebx], 0
pop ebx
pop edi
pop esi
ret
Function at 0x59136c74
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov eax, 0x80
call fcn.5908b730
push ebx
push ebp
push esi
mov esi, dword [esp + 0x9c]
xor eax, eax
push edi
test esi, esi
je 0x59136c3b
mov ebx, dword [esp + 0x94]
mov eax, 1
mov dword [ebx], esi
jmp 0x59136c4d
mov ebx, dword [esp + 0x94]
mov ecx, dword [ebx]
mov dword [esp + 0xa0], ecx
mov esi, ecx
mov ecx, dword [esp + 0x98]
test ecx, ecx
je 0x59136db9
push esi
call fcn.59138dc0
mov edi, eax
add esp, 4
cmp edi, 0x80
jle 0x59136c83
push str.j____int_sizeof_ctx__key_
push 0x54
push str..cryptohmachmac.c
call fcn.590e0980
add esp, 0xc
mov ebp, dword [esp + 0x9c]
cmp edi, ebp
jge 0x59136cc2
mov edx, dword [esp + 0xa4]
lea edi, [ebx + 4]
push edx
push esi
push edi
call fcn.590dea30
mov eax, dword [esp + 0xa4]
push ebp
push eax
push edi
call fcn.590deba0
lea esi, [ebx + 0x34]
lea ecx, [ebx + 0x38]
push esi
push ecx
push edi
call fcn.590deca0
add esp, 0x24
jmp 0x59136d01
test ebp, ebp
jl 0x59136cce
cmp ebp, 0x80
jle 0x59136ce2
push str.len_0__len__int_sizeof_ctx__key_
push 0x5e
push str..cryptohmachmac.c
call fcn.590e0980
add esp, 0xc
mov esi, dword [esp + 0x98]
mov ecx, ebp
mov edx, ecx
lea edi, [ebx + 0x38]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea esi, [ebx + 0x34]
mov dword [esi], ebp
mov esi, dword [esi]
cmp esi, 0x80
je 0x59136d26
mov ecx, 0x80
xor eax, eax
sub ecx, esi
lea edi, [esi + ebx + 0x38]
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov esi, dword [esp + 0xa0]
xor eax, eax
mov cl, byte [ebx + eax + 0x38]
xor cl, 0x36
mov byte [esp + eax + 0x10], cl
inc eax
cmp eax, 0x80
jl 0x59136d2f
mov ebp, dword [esp + 0xa4]
lea edi, [ebx + 0x14]
push ebp
push esi
push edi
call fcn.590dea30
push esi
call fcn.59138dc0
lea edx, [esp + 0x20]
push eax
push edx
push edi
call fcn.590deba0
add esp, 0x1c
xor eax, eax
mov cl, byte [ebx + eax + 0x38]
xor cl, 0x5c
mov byte [esp + eax + 0x10], cl
inc eax
cmp eax, 0x80
jl 0x59136d6b
lea edi, [ebx + 0x24]
push ebp
push esi
push edi
call fcn.590dea30
push esi
call fcn.59138dc0
lea edx, [esp + 0x20]
push eax
push edx
push edi
call fcn.590deba0
add esp, 0x1c
lea eax, [ebx + 0x14]
add ebx, 4
push eax
push ebx
call fcn.590ded50
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x80
ret
test eax, eax
je 0x59136d9e
jmp 0x59136d2d
Function at 0x591375d0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x20
call fcn.5908b730
push ebx
mov ebx, dword [esp + 0x30]
push ebp
push esi
test ebx, ebx
push edi
jle 0x59137724
cmp ebx, 0x80
jg 0x59137724
mov edi, dword [esp + 0x44]
mov eax, edi
mov ecx, dword [eax]
mov dword [esp + 0x10], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x14], edx
mov ecx, dword [eax + 8]
mov dword [esp + 0x18], ecx
mov edx, dword [eax + 0xc]
mov eax, dword [esp + 0x40]
push eax
push edi
push edi
mov dword [esp + 0x28], edx
call fcn.59137ee0
lea eax, [ebx + 7]
add esp, 0xc
cdq
and edx, 7
add eax, edx
mov ebp, eax
mov eax, dword [esp + 0x48]
sar ebp, 3
test eax, eax
je 0x59137667
test ebp, ebp
jle 0x591376b5
mov edx, dword [esp + 0x34]
mov ebx, dword [esp + 0x38]
lea esi, [esp + 0x20]
sub edx, edi
sub esi, edi
mov ecx, edi
sub ebx, edi
mov al, byte [edx + ecx]
xor al, byte [ecx]
inc ecx
dec ebp
mov byte [esi + ecx - 1], al
mov byte [ebx + ecx - 1], al
jne 0x59137654
jmp 0x591376b1
xor esi, esi
test ebp, ebp
jle 0x591376b5
mov eax, dword [esp + 0x34]
lea ecx, [esp + 0x20]
mov ebx, edi
lea edx, [esp + 0x20]
sub eax, ecx
mov ecx, dword [esp + 0x38]
sub ebx, edx
lea edx, [esp + 0x20]
sub ecx, edx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ecx
jmp 0x59137697
mov ebx, dword [esp + 0x34]
lea ecx, [esp + esi + 0x20]
mov dl, byte [eax + ecx]
mov bl, byte [ebx + ecx]
mov byte [ecx], dl
xor bl, dl
mov edx, dword [esp + 0x38]
inc esi
cmp esi, ebp
mov byte [edx + ecx], bl
jl 0x59137693
mov ebx, dword [esp + 0x3c]
mov ebp, ebx
and ebp, 0x80000007
jns 0x591376c4
dec ebp
or ebp, 0xfffffff8
inc ebp
mov eax, ebx
cdq
and edx, 7
add eax, edx
sar eax, 3
test ebp, ebp
jne 0x591376f5
lea eax, [esp + eax + 0x10]
mov ecx, dword [eax]
mov dword [edi], ecx
mov edx, dword [eax + 4]
mov dword [edi + 4], edx
mov ecx, dword [eax + 8]
mov dword [edi + 8], ecx
mov edx, dword [eax + 0xc]
mov dword [edi + 0xc], edx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
mov ecx, 8
xor esi, esi
sub ecx, ebp
lea eax, [esp + eax + 0x10]
mov dword [esp + 0x3c], ecx
jmp 0x5913770c
mov ecx, dword [esp + 0x3c]
mov dl, byte [eax + esi + 1]
mov bl, byte [eax + esi]
shr dl, cl
mov ecx, ebp
shl bl, cl
or dl, bl
mov byte [esi + edi], dl
inc esi
cmp esi, 0x10
jl 0x59137708
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
Function at 0x4011c0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
mov eax, dword [0x435090]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 0x10
mov ecx, dword [eax + 0x10]
push esi
mov dword [ebp - 0x84], 0x33323156
mov dword [ebp - 0x80], 0x37363534
mov dword [ebp - 0x7c], 0x62613938
mov dword [ebp - 0x78], 0x66656463
mov dword [ebp - 0x74], 0x6a696867
mov dword [ebp - 0x70], 0x6e6d6c6b
mov dword [ebp - 0x6c], 0x7271706f
mov dword [ebp - 0x68], 0x76757473
mov dword [ebp - 0x64], 0x7a797877
mov dword [ebp - 0x60], 0x44434641
mov dword [ebp - 0x5c], 0x48474245
mov dword [ebp - 0x58], 0x4c494a4b
mov dword [ebp - 0x54], 0x504f4e4d
mov dword [ebp - 0x50], 0x54535251
mov dword [ebp - 0x4c], 0x58573055
mov word [ebp - 0x48], 0x5a59
mov byte [ebp - 0x46], 0
mov dword [ebp - 0x44], 0x6f666442
mov dword [ebp - 0x40], 0x53707773
mov dword [ebp - 0x3c], 0x4d377846
mov dword [ebp - 0x38], 0x365a304b
mov dword [ebp - 0x34], 0x3868546b
mov dword [ebp - 0x30], 0x3472474f
mov dword [ebp - 0x2c], 0x31694a48
mov dword [ebp - 0x28], 0x43744e55
mov dword [ebp - 0x24], 0x587a5035
mov dword [ebp - 0x20], 0x6a443351
mov dword [ebp - 0x1c], 0x7579626e
mov dword [ebp - 0x18], 0x71325756
mov dword [ebp - 0x14], 0x616c4c76
mov dword [ebp - 0x10], 0x63675965
mov dword [ebp - 0xc], 0x39416d52
mov word [ebp - 8], 0x4945
mov byte [ebp - 6], 0
jb 0x4012cd
mov esi, dword [eax]
jmp 0x4012cf
mov esi, eax
test ecx, ecx
je 0x401317
push edi
mov edi, ecx
mov al, byte [esi]
cmp al, 0x30
jl 0x4012e0
cmp al, 0x39
jle 0x4012f0
cmp al, 0x61
jl 0x4012e8
cmp al, 0x7a
jle 0x4012f0
cmp al, 0x41
jl 0x401312
cmp al, 0x5a
jg 0x401312
movsx eax, al
push eax
lea ecx, [ebp - 0x44]
push ecx
call fcn.00411520
add esp, 8
test eax, eax
je 0x401312
lea edx, [ebp - 0x44]
sub eax, edx
mov al, byte [ebp + eax - 0x84]
mov byte [esi], al
inc esi
dec edi
jne 0x4012d6
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00411016
mov esp, ebp
pop ebp
ret
Function at 0x402560
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42c748
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x435090]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0x430350
mov esi, eax
push 0x65
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x402651
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push ebx
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, dword [ebp + 8]
lea esi, [ebp - 0x10]
mov dword [ebp - 0x18], eax
call fcn.004018c0
push str.minidownload.exe
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, esi
push str.minidownload.exe
push ecx
mov esi, eax
call fcn.00402350
mov ebx, dword [ebp - 0x10]
push 0
push 0x20
push 2
push 0
push 7
push 0xc0000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x40262f
mov ecx, dword [ebp - 0x18]
push 0
lea eax, [ebp - 0x14]
push eax
push edi
push ecx
push esi
mov dword [ebp - 0x14], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
test eax, eax
jne 0x402665
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [ebx - 0xc]
cmp edx, 0x4362a4
je 0x402651
lea esi, [ebx - 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x402651
push esi
call fcn.004115de
add esp, 4
xor eax, 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
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 0x2710
xor edi, edi
mov ecx, ebx
call fcn.00403e80
add esp, 8
test eax, eax
jne 0x40269e
lea esi, [ebp - 0x10]
call fcn.00402160
xor eax, 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
push 3
call fcn.004026d0
add esp, 4
lea esi, [ebp - 0x10]
mov edi, eax
call fcn.00402160
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x402b60
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x435090]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x20a]
push ecx
mov word [ebp - 0x20c], ax
call fcn.00411db0
add esp, 0xc
lea edx, [ebp - 0x224]
push edx
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x228]
push ecx
push str.LaunchAppPath
push str.SOFTWARESogouSoftware
push 0x80000002
mov dword [ebp - 0x224], 0x208
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x402c3b
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x402c3b
push 0
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0xd1871d0a
mov dword [ebp - 0x218], 0x4a3c4929
mov dword [ebp - 0x214], 0x4268e5aa
mov dword [ebp - 0x210], 0x4422e635
call dword [sym.imp.ole32.dll_CoInitialize]
lea edx, [ebp - 0x220]
push edx
push 0x42d34c
push 0
push 1
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.ole32.dll_CoGetClassObject]
test eax, eax
jns 0x402c4b
call dword [sym.imp.ole32.dll_CoUninitialize]
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00411016
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x220]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
call dword [sym.imp.ole32.dll_CoUninitialize]
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 1
call fcn.00411016
mov esp, ebp
pop ebp
ret

Function at 0x402c80
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
je 0x402d1c
push edi
push str.embedded_data.html
call fcn.00411b00
mov edi, eax
add esp, 4
test edi, edi
jne 0x402ca4
pop edi
pop ebp
ret
push esi
push edi
call fcn.00411a98
add esp, 4
push 0x17
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push edi
mov esi, eax
call fcn.004116db
add esp, 4
test esi, esi
je 0x402ce4
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
cmp edi, 1
jb 0x402ce4
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x402cea
pop esi
xor eax, eax
pop edi
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
cmp edi, 0x400
jb 0x402cfe
mov edi, 0x400
push edi
push eax
mov eax, dword [ebp + 8]
push eax
call fcn.00417fb0
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop esi
mov eax, 1
pop edi
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x4032a0
Capabilities:
Accept command line arguments
Check if file exists
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x628
mov eax, dword [0x435090]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov esi, dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x20c]
push eax
push 0x104
call esi
call fcn.00402b60
test eax, eax
je 0x403387
push edi
push 2
call fcn.004026d0
add esp, 4
lea ecx, [ebp - 0x420]
push ecx
push 0x104
mov dword [ebp - method.UtilNetwork::CBindStatusCallback.virtual_0], vtable.UtilNetwork::CBindStatusCallback.0
mov dword [ebp - 0x214], 0
mov dword [ebp - 0x210], 0
call esi
push 0x104
lea edx, [ebp - 0x420]
push edx
lea eax, [ebp - 0x628]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
push 0x430fcc
lea ecx, [ebp - 0x628]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea edx, [ebp - 0x628]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x40335d
lea eax, [ebp - 0x628]
push eax
call edi
lea ecx, [ebp - 0x628]
push ecx
call fcn.0040f9b0
lea edx, [ebp - 0x628]
push edx
mov esi, eax
call edi
pop edi
test esi, esi
je 0x403396
lea eax, [ebp - 0x628]
push eax
call fcn.0040f910
jmp 0x403396
lea ecx, [ebp - 0x20c]
push ecx
call fcn.00402560
add esp, 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 1
pop esi
call fcn.00411016
mov esp, ebp
pop ebp
ret 0x10