joyce8/EMBER2024-capa huggingface dataset:
Function at 0x64e651
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.0064e5cd
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x64e7c0
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x64e7c0
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x64e775
jg 0x64e6ad
test eax, eax
je 0x64e76b
push 1
push 0x1000
call fcn.006475f9
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x64e6d0
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x64e762
push 0x8000
push ebx
call fcn.00643e99
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x64e6f9
jg 0x64e6f4
cmp ecx, 0x1000
jb 0x64e6f9
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.00645a9d
add esp, 0x10
cmp eax, 0xffffffff
je 0x64e73e
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x64e6f4
jl 0x64e725
test ecx, ecx
jne 0x64e6e6
push dword [ebp - 0xc]
push ebx
call fcn.00643e99
push esi
call fcn.00647bfd
add esp, 0xc
xor ebx, ebx
jmp 0x64e7ce
cmp byte [edi + 0x24], 0
je 0x64e755
cmp dword [edi + 0x20], 5
jne 0x64e755
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x64e760
mov ebx, dword [edi + 0x18]
jmp 0x64e762
xor ebx, ebx
push esi
call fcn.00647bfd
pop ecx
jmp 0x64e7ce
test ecx, ecx
jg 0x64e737
jl 0x64e775
test eax, eax
jae 0x64e737
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00640926
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x64e795
cmp byte [edi + 0x1c], 0
je 0x64e737
jmp 0x64e7c6
push ebx
call fcn.0064e563
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x64e737
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x64e7ce
cmp byte [edi + 0x1c], 0
je 0x64e7cb
mov ebx, dword [edi + 0x18]
jmp 0x64e7ce
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.00640926
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x6503a9
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x650446
push ebx
push esi
call fcn.00650372
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.00649e23
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x6503f3
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x650445
push edi
push eax
call fcn.00648118
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x650413
call fcn.00647bfd
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x650444
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00649e23
add esp, 0x20
test eax, eax
jne 0x650432
push edi
call fcn.00647bfd
jmp 0x65043a
push ebx
call fcn.00647bfd
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x650449
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x65045a
pop esi
ret
push ebx
push edi
push esi
call fcn.00650372
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00648118
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x650482
push ebx
push esi
push edi
call fcn.00620e40
add esp, 0xc
push 0
call fcn.00647bfd
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x650bdc
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.006506f7

Function at 0x654a87
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x6d5ec0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp eax, 0x1a
jbe 0x654aca
call fcn.00637006
mov dword [eax], 0xf
call fcn.00637019
mov dword [eax], 0xd
call fcn.0063628b
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0061eb08
leave
ret
test eax, eax
jne 0x654ad1
inc eax
jmp 0x654abe
add eax, 0x40
push 0x3a
mov word [ebp - 0xc], ax
pop eax
mov word [ebp - 0xa], ax
push 0x5c
pop eax
mov word [ebp - 8], ax
xor eax, eax
mov word [ebp - 6], ax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov ecx, eax
test ecx, ecx
je 0x654abc
xor eax, eax
cmp ecx, 1
setne al
jmp 0x654abe

Function at 0x655790
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x6557bd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x6557bd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x401130
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x43a161
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
mov dword [esi], fcn.004012a0
mov eax, dword [esi + 0x30]
mov dword [esp + 0x14], 2
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [esi + 0x2c]
call fcn.0041e44e
mov edi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea ecx, [esi + 0x1c]
push ecx
call edi
lea edx, [esi + 0xc]
push edx
call edi
lea ecx, [esi + 8]
mov dword [esp + 0x14], 0xffffffff
call fcn.0041e44e
mov ecx, dword [esp + 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x417e10
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.0040adf0
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x417edb
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x417edb
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x417e8e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x417e99
or bh, 8
and edi, 0x8000000
je 0x417eb4
mov eax, dword [0xf53ffc]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x417edb
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4182b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x4182db
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x4182ff
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x41831a
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20

Function at 0x41b54d
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x41b585
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.0041e881
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0041e859
jmp 0x41b591
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4
Function at 0x41d123
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 0x41d165
call fcn.004321d1
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x41d165
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x41d15c
xor eax, eax
jmp 0x41d16d
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0041d173
pop edi
pop esi
pop ebx
ret 4

Function at 0x41ebbe
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov eax, ebx
push edi
mov edi, ecx
shr eax, 0x10
test ax, ax
mov dword [edi + 0x40], ebx
jne 0x41ebe0
cmp dword [edi + 0x3c], 0
jne 0x41ebe0
movzx eax, bx
mov dword [edi + 0x3c], eax
call fcn.004321d1
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
mov ecx, edi
push dword [esp + 0x18]
push eax
call fcn.0041ec0d
pop edi
pop esi
pop ebx
ret 8

Function at 0x41ec5b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
mov ebx, ecx
xor edi, edi
call fcn.004321d1
mov esi, dword [eax + 0xc]
push 5
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x41ec8c
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push esi
mov ecx, ebx
push dword [esp + 0x18]
push edi
call fcn.0041ec9f
pop edi
pop esi
pop ebx
ret 8
Function at 0x41ef91
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x43a980
call fcn.0040a7fc
sub esp, 0x18
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], esi
mov eax, dword [esi + 0x48]
mov edi, dword [esi + 0x44]
mov dword [ebp - 0x18], eax
call fcn.004321d1
cmp dword [esi + 0x40], 0
mov ebx, dword [eax + 0xc]
je 0x41efd0
call fcn.004321d1
mov ebx, dword [eax + 0xc]
push 5
push dword [esi + 0x40]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x41efde
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x41efec
or eax, 0xffffffff
jmp 0x41f0d4
mov ecx, esi
call fcn.0041ef07
mov dword [ebp - 0x14], eax
call fcn.0041b09d
xor edi, edi
cmp dword [ebp - 0x14], edi
mov dword [ebp - 0x20], edi
je 0x41f023
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x41f023
push edi
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x20], 1
push esi
mov dword [ebp - 4], edi
call fcn.0041b051
push dword [ebp - 0x14]
call fcn.0041ab83
push ebx
push eax
push dword [ebp - 0x18]
mov ecx, esi
call fcn.0041ec9f
cmp eax, edi
je 0x41f096
test byte [esi + 0x24], 0x10
je 0x41f064
push 4
mov ecx, esi
pop ebx
call fcn.0041d9b3
test ah, 1
je 0x41f05c
push 5
pop ebx
push ebx
mov ecx, esi
call fcn.0041d37a
cmp dword [esi + 0x1c], edi
je 0x41f096
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.0041db24
jmp 0x41f096
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x20], edi
je 0x41f0aa
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x41f0c3
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x1c]
jne 0x41f0c3
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x58]
mov ecx, esi
call fcn.0041ef41
mov eax, dword [esi + 0x2c]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret

Function at 0x430c9f
Capabilities:
Create http request

Disassembly:
mov eax, 0x43a7c0
call fcn.0040a7fc
push ecx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
mov eax, dword [ebp + 0xc]
and dword [ebp - 4], 0
and dword [esi + 0x10], 0
and dword [esi + 0xc], 0
mov dword [esi + 4], eax
mov eax, dword [ebp + 8]
test eax, eax
mov dword [esi], vtable.CInternetSession.0
jne 0x430cd7
call fcn.004321d1
mov eax, dword [eax + 0x10]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
call dword [sym.imp.WININET.dll_InternetOpenA]
test eax, eax
mov dword [esi + 8], eax
jne 0x430cfc
push eax
push dword [esi + 4]
call fcn.0043197d
jmp 0x430d08
push esi
push eax
mov ecx, 0xf52310
call fcn.00430d19
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret 0x18
Function at 0x430fe6
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get process heap flags

Disassembly:
mov eax, 0x43a81f
call fcn.0040a7fc
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
call fcn.00420022
mov eax, dword [ebp + 0x18]
lea ebx, [esi + 0x24]
mov dword [esi + 0x1c], eax
mov eax, dword [0xf4c46c]
xor edi, edi
mov dword [ebx], eax
mov dword [ebp - 4], edi
push dword [ebp + 0x10]
lea ecx, [esi + 0xc]
mov byte [ebp - 4], 1
mov dword [esi], vtable.CInternetFile.0
call fcn.0041e5d7
push dword [ebp + 0x14]
mov ecx, ebx
call fcn.0041e5d7
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x14], eax
mov eax, dword [ebp + 0x1c]
mov dword [esi + 0x18], eax
mov dword [esi + 0x3c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x40], edi
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x18

Function at 0x43389e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov dword [ebp - 8], ecx
call fcn.004321d1
mov esi, dword [eax + 0xc]
push 0xf1
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x4338db
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4338db
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x4338df
xor eax, eax
jmp 0x43395d
movzx eax, word [esi + 6]
push ebx
push edi
shl eax, 2
push eax
call fcn.0041a616
and dword [ebp - 4], 0
cmp word [esi + 6], 0
pop ecx
mov ebx, eax
jbe 0x433917
mov ecx, ebx
lea eax, [esi + 8]
movzx edx, word [eax]
inc dword [ebp - 4]
mov dword [ecx], edx
movzx edx, word [esi + 6]
inc eax
add ecx, 4
inc eax
cmp dword [ebp - 4], edx
jl 0x433901
movzx eax, word [esi + 6]
mov ecx, dword [ebp - 8]
push eax
push ebx
call fcn.00433a4e
push ebx
mov edi, eax
call fcn.0041a63f
test edi, edi
pop ecx
je 0x433959
movzx ecx, word [esi + 4]
movzx eax, word [esi + 2]
lea esi, [ecx + 7]
push ecx
mov ecx, dword [ebp - 8]
lea edx, [eax + 7]
push eax
push esi
push edx
call fcn.00433817
push dword [ebp + 8]
mov ecx, dword [ebp - 8]
call fcn.00433962
mov edi, eax
mov eax, edi
pop edi
pop ebx
pop esi
leave
ret 4
Function at 0x405980
Capabilities:
Encode data using xor
Write file on windows

Disassembly:
push ebp
call dword [sym.imp.MSVCRT.dll_rand]
test al, 3
jne 0x405a00
mov eax, dword [esp + 8]
push 0x40870c
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x405a00
push ebx
push esi
push edi
mov ecx, 0x40d
mov esi, 0x408820
mov edi, 0x42e058
rep movsd dword es:[edi], dword [esi]
xor eax, eax
mov ecx, 0x54321cba
mov bl, byte [eax + 0x42e058]
mov edx, ecx
sar edx, 0x17
xor bl, dl
add ecx, 0x1234567f
mov byte [eax + 0x42e058], bl
inc eax
cmp eax, 0x1034
jb 0x4059bf
push ebp
push 0x1034
push 1
push 0x42e058
call dword [sym.imp.MSVCRT.dll_fwrite]
push ebp
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 0x14
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x433002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
call 0x43300c
nop
nop
nop
nop
nop
pop eax
nop
add eax, 0x40a063
sub eax, 0x40a009
nop
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x433030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43301e
nop
nop
popal
nop
nop
nop
nop
jmp fcn.00431219
Function at 0x4014d0
Capabilities:
Accept command line arguments
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x48a740
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0xc]
call fcn.00435f0a
lea ecx, [esp + 0x30]
mov dword [esp + 0x40], 0
call sub.MFC42u.DLL_CString::CString_3
push 0x4af3d4
lea ecx, [esp + 0x34]
mov byte [esp + 0x44], 1
mov dword [esp + 0x10], 0x495a70
call sub.MFC42u.DLL_CString::operator_1
mov dword [esp + 0x34], esi
mov ecx, dword [esp + 0x48]
lea eax, [esp + 8]
push eax
push ecx
mov dword [esp + 0x48], 2
mov dword [esp + 0x10], 0
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
test eax, eax
mov dword [esp + 0x48], eax
je 0x4015a2
mov edi, dword [esp + 8]
xor ecx, ecx
test edi, edi
jle 0x4015a2
push ebp
mov ebp, eax
mov eax, dword [ebp]
lea esi, [ecx + 1]
xor edx, edx
xor ecx, ecx
cmp esi, edi
sete cl
mov edi, ecx
mov cx, word [eax]
cmp cx, 0x2d
je 0x40157a
cmp cx, 0x2f
jne 0x401582
mov edx, 1
add eax, 2
push edi
push edx
mov edx, dword [esp + 0x18]
push eax
lea ecx, [esp + 0x1c]
call dword [edx + 0x18]
mov edi, dword [esp + 0xc]
mov ecx, esi
add ebp, 4
cmp ecx, edi
jl 0x40155a
mov eax, dword [esp + 0x4c]
pop ebp
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
lea ecx, [esp + 0x30]
mov dword [esp + 0x40], 3
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0xc]
mov dword [esp + 0x40], 0xffffffff
call sub.MFC42u.DLL_CCommandLineInfo::CCommandLineInfo
mov ecx, dword [esp + 0x38]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x3c
ret 4
Function at 0x4016c0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x224
push ebx
push ebp
push esi
mov esi, ecx
push edi
xor ebx, ebx
or ebp, 0xffffffff
lea ecx, [esi + 0x24]
push 0x4b9760
mov dword [esp + 0x24], ebx
mov dword [esi + 0x1c], ebp
mov dword [esi + 0x20], ebp
mov dword [esp + 0x2c], ecx
call sub.MFC42u.DLL_CString::operator_1
lea ecx, [esi + 0x28]
push 0x4b9760
mov dword [esp + 0x28], ecx
call sub.MFC42u.DLL_CString::operator_1
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x2e]
mov word [esp + 0x2c], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x10]
mov dword [esp + 0x1c], ebp
push eax
push 0x20019
push ebx
push str.SOFTWARELiveUpdate360
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x401845
mov eax, 4
lea ecx, [esp + 0x18]
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
lea edx, [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x18]
push edx
push eax
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push str.proxytype
push ecx
call ebx
test eax, eax
mov edi, 1
jne 0x40177b
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x20], edi
mov dword [esi + 0x1c], edx
lea eax, [esp + 0x18]
lea ecx, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x18]
push ecx
push edx
push 0
push str.customproxytype
push eax
mov dword [esp + 0x34], ebp
call ebx
test eax, eax
jne 0x4017a7
mov ecx, dword [esp + 0x1c]
mov dword [esi + 0x20], ecx
mov dword [esp + 0x14], edi
mov ecx, 0x82
xor eax, eax
lea edi, [esp + 0x2c]
rep stosd dword es:[edi], eax
lea edx, [esp + 0x18]
lea eax, [esp + 0x2c]
push edx
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x18]
push eax
push ecx
push 0
push str.customhttp
push edx
mov dword [esp + 0x30], 0x208
call ebx
test eax, eax
jne 0x4017ef
mov ecx, dword [esp + 0x28]
lea eax, [esp + 0x2c]
push eax
call sub.MFC42u.DLL_CString::operator_1
mov ecx, 0x82
xor eax, eax
lea edi, [esp + 0x2c]
lea edx, [esp + 0x2c]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x18]
lea eax, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x14]
push edx
push eax
push 0
push 0x4af3d8
push ecx
call ebx
test eax, eax
jne 0x40182b
mov ecx, dword [esp + 0x24]
lea edx, [esp + 0x2c]
push edx
call sub.MFC42u.DLL_CString::operator_1
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x224
ret
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x224
ret