joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41360a
Capabilities:
Check if file exists
Delete file
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
mov eax, dword [0x4eb664]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x14], 8
jb 0x41362a
mov eax, dword [esi]
jmp 0x41362c
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x41363f
xor eax, eax
jmp 0x4136c7
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.004921d0
add esp, 0xc
cmp dword [esi + 0x14], 8
jb 0x413665
mov esi, dword [esi]
push edi
push esi
lea eax, [ebp - 0x20c]
push 0x4d5f34
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
and dword [ebp - 0x22c], 0
add esp, 0xc
xor eax, eax
push 6
pop ecx
lea edi, [ebp - 0x228]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x224], eax
mov eax, 0x414
mov word [ebp - 0x21c], ax
lea eax, [ebp - 0x22c]
push eax
mov dword [ebp - 0x228], 3
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
neg eax
sbb eax, eax
inc eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0048f059
leave
ret

Function at 0x4136d4
Capabilities:
Check if file exists
Get file attributes
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x434
mov eax, dword [0x4eb664]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x14], 8
mov edi, edx
jb 0x4136f7
mov eax, dword [esi]
jmp 0x4136f9
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x41370c
xor eax, eax
jmp 0x4137d5
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.004921d0
add esp, 0xc
cmp dword [esi + 0x14], 8
jb 0x413732
mov esi, dword [esi]
push esi
mov esi, dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [ebp - 0x20c]
push 0x4d5f34
push eax
call esi
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push eax
call fcn.004921d0
add esp, 0x18
cmp dword [edi + 0x14], 8
jb 0x41376d
mov edi, dword [edi]
push edi
lea eax, [ebp - 0x414]
push 0x4d5f34
push eax
call esi
and dword [ebp - 0x434], 0
add esp, 0xc
xor eax, eax
push 6
pop ecx
lea edi, [ebp - 0x430]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x42c], eax
lea eax, [ebp - 0x414]
mov dword [ebp - 0x428], eax
mov eax, 0x414
mov word [ebp - 0x424], ax
lea eax, [ebp - 0x434]
push eax
mov dword [ebp - 0x430], 1
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
neg eax
sbb eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0048f059
leave
ret
Function at 0x413f13
Capabilities:
Delete file
Write file on windows

Disassembly:
push 0x13c
mov eax, 0x4b93ed
call fcn.0048ff65
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
lea ecx, [ebp - 0x138]
call fcn.0045fe78
and dword [ebp - 4], 0
lea ecx, [ebp - 0x138]
call fcn.0046001d
mov ebx, 0x4d3c88
push ebx
lea ecx, [ebp - 0x70]
call fcn.0040513a
push ebx
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 1
call fcn.0040513a
push ebx
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.0040513a
mov byte [ebp - 4], 3
cmp dword [esi + 0x14], 8
jb 0x413f76
mov esi, dword [esi]
push esi
lea ecx, [ebp - 0x58]
call fcn.0040513a
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x58]
push eax
mov byte [ebp - 4], 4
call fcn.00414501
push 0
push 1
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 3
call fcn.00405ac5
cmp dword [edi + 0x14], 8
jb 0x413fb2
mov eax, dword [edi]
jmp 0x413fb4
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push str.Mozilla_4.0__compatible___
lea ecx, [ebp - 0x138]
call fcn.00460401
mov ebx, eax
mov dword [ebp - 0x144], ebx
test ebx, ebx
je 0x414166
cmp dword [ebp - 0x2c], 8
lea ecx, [ebp - 0x40]
cmovae ecx, dword [ebp - 0x40]
push 0x50
push ecx
push ebx
lea ecx, [ebp - 0x138]
call fcn.0045ff9a
mov dword [ebp - 0x140], eax
test eax, eax
je 0x41415e
cmp dword [ebp - 0x14], 8
push 0
lea ecx, [ebp - 0x28]
cmovae ecx, dword [ebp - 0x28]
push ecx
push 0x4d510c
push eax
lea ecx, [ebp - 0x138]
call fcn.00460315
mov esi, eax
test esi, esi
je 0x4140ed
push 0
push 0
push esi
lea ecx, [ebp - 0x138]
call fcn.00460504
test eax, eax
je 0x4140ed
push esi
lea ecx, [ebp - 0x138]
call fcn.0045fffe
test eax, eax
je 0x4140ed
push 0x4000
call fcn.0048f28d
and dword [ebp - 0x13c], 0
pop ecx
mov ebx, eax
jmp 0x4140be
cmp dword [edi + 0x14], 8
jb 0x414078
mov eax, dword [edi]
jmp 0x41407a
mov eax, edi
push 0x4d6018
push eax
call fcn.00495d81
pop ecx
pop ecx
mov dword [ebp - 0x148], eax
test eax, eax
je 0x4140ae
push eax
push 1
push dword [ebp - 0x13c]
push ebx
call fcn.00495c3e
push dword [ebp - 0x148]
call fcn.00493d4e
add esp, 0x14
push 0x4000
push 0
push ebx
call fcn.004921d0
add esp, 0xc
lea eax, [ebp - 0x13c]
push eax
push 0x4000
push ebx
push esi
lea ecx, [ebp - 0x138]
call fcn.004604e7
cmp dword [ebp - 0x13c], 0
jne 0x41406e
push ebx
call fcn.0048f255
mov ebx, dword [ebp - 0x144]
pop ecx
mov edi, dword [ebp - 0x140]
push ebx
lea ecx, [ebp - 0x138]
call fcn.0045ff77
push edi
lea ecx, [ebp - 0x138]
call fcn.0045ff77
push esi
lea ecx, [ebp - 0x138]
call fcn.0045ff77
lea ecx, [ebp - 0x138]
call fcn.00460592
xor ebx, ebx
push ebx
push 1
lea ecx, [ebp - 0x28]
call fcn.00405ac5
push ebx
push 1
lea ecx, [ebp - 0x40]
call fcn.00405ac5
push ebx
push 1
lea ecx, [ebp - 0x70]
call fcn.00405ac5
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x138]
call fcn.0045ff10
xor eax, eax
call fcn.0048ff14
ret 8
mov esi, dword [ebp - 0x144]
jmp 0x4140ed
mov edi, dword [ebp - 0x144]
mov esi, dword [ebp - 0x144]
jmp 0x4140f3
Function at 0x41436e
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push 0x2a8
mov eax, 0x4b9481
call fcn.0048ff65
mov dword [ebp - 0x2b4], ecx
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
mov edi, dword [ebp + 0xc]
xor ebx, ebx
mov dword [ebp - 0x2b0], eax
cmp dword [esi + 0x10], ebx
jne 0x4143a0
xor eax, eax
jmp 0x4144f9
push 0x24c
lea eax, [ebp - 0x2a8]
push ebx
push eax
mov dword [ebp - 0x2ac], ebx
call fcn.004921d0
add esp, 0xc
lea eax, [ebp - 0x44]
push 0x4d6020
push esi
push eax
call fcn.0040954d
add esp, 0xc
push esi
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], ebx
call fcn.004043d6
mov byte [ebp - 4], 1
cmp dword [ebp - 0x30], 8
lea ecx, [ebp - 0x2ac]
lea eax, [ebp - 0x44]
cmovae eax, dword [ebp - 0x44]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov esi, eax
cmp word [ebp - 0x280], 0x2e
je 0x4144c5
test byte [ebp - 0x2ac], 0x10
je 0x414463
push 0x4d3c8c
call fcn.00405113
pop ecx
push eax
push 0x4d3c8c
lea ecx, [ebp - 0x2c]
call fcn.004046dd
lea eax, [ebp - 0x280]
push eax
call fcn.00405113
pop ecx
push eax
lea eax, [ebp - 0x280]
push eax
lea ecx, [ebp - 0x2c]
call fcn.004046dd
push dword [ebp - 0x2b0]
mov ecx, dword [ebp - 0x2b4]
push edi
lea eax, [ebp - 0x2c]
push eax
call fcn.0041436e
jmp 0x4144c5
cmp word [ebp - 0x280], 0
je 0x4144c5
test edi, edi
je 0x4144c5
push 0x4d3c8c
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x5c]
push eax
call fcn.0040954d
add esp, 0xc
lea eax, [ebp - 0x280]
push eax
mov byte [ebp - 4], 2
call fcn.00405113
pop ecx
push eax
lea eax, [ebp - 0x280]
push eax
lea ecx, [ebp - 0x5c]
call fcn.004046dd
push dword [ebp - 0x2b0]
lea eax, [ebp - 0x5c]
push eax
call edi
pop ecx
pop ecx
push 0
push 1
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 1
call fcn.00405ac5
lea eax, [ebp - 0x2ac]
push eax
push esi
call ebx
test eax, eax
jne 0x4143fe
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.00405ac5
push 0
push 1
lea ecx, [ebp - 0x44]
call fcn.00405ac5
xor eax, eax
inc eax
call fcn.0048ff14
ret 0xc
Function at 0x414614
Capabilities:
Create process on windows
Get common file path

Disassembly:
push 0x448
mov eax, 0x4b9510
call fcn.0048ff65
mov ebx, dword [ebp + 8]
xor edi, edi
cmp dword [ebx + 0x10], edi
jne 0x414634
xor eax, eax
jmp 0x4147ac
push ebx
lea ecx, [ebp - 0x438]
call fcn.004043d6
push 1
push 0xffffffffffffffff
lea eax, [ebp - 0x454]
mov dword [ebp - 4], edi
push eax
lea ecx, [ebp - 0x438]
mov dword [ebp - 0x454], 0x2e
call fcn.0041209b
mov ecx, dword [ebp - 0x428]
dec ecx
push ecx
push eax
lea eax, [ebp - 0x450]
push eax
lea ecx, [ebp - 0x438]
call fcn.0040dbec
push eax
lea ecx, [ebp - 0x438]
call fcn.00409050
push edi
push 1
lea ecx, [ebp - 0x450]
call fcn.00405ac5
mov esi, str..ocx
push esi
call fcn.00405113
pop ecx
push eax
push esi
push dword [ebp - 0x428]
lea ecx, [ebp - 0x438]
push edi
call fcn.004096a9
test eax, eax
je 0x4146e4
mov esi, str..dll
push esi
call fcn.00405113
pop ecx
push eax
push esi
push dword [ebp - 0x428]
lea ecx, [ebp - 0x438]
push edi
call fcn.004096a9
test eax, eax
jne 0x414795
xor eax, eax
push 0x206
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push edi
push eax
call fcn.004921d0
add esp, 0xc
lea eax, [ebp - 0x218]
push 1
push 0x25
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea edi, [ebp - 0x218]
sub edi, 2
xor ecx, ecx
mov ax, word [edi + 2]
add edi, 2
cmp ax, cx
jne 0x41471f
push 5
pop ecx
mov esi, str._regsvr32
xor eax, eax
rep movsd dword es:[edi], dword [esi]
push 0x206
mov word [ebp - 0x420], ax
xor edi, edi
lea eax, [ebp - 0x41e]
push edi
push eax
call fcn.004921d0
add esp, 0xc
cmp dword [ebx + 0x14], 8
jb 0x41475d
mov ebx, dword [ebx]
push ebx
lea eax, [ebp - 0x420]
push str._s___s_
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x420]
push 5
push edi
push eax
lea eax, [ebp - 0x218]
push eax
push 0x4d3ae8
push edi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
jg 0x414799
mov esi, edi
jmp 0x41479c
xor esi, esi
inc esi
push edi
push 1
lea ecx, [ebp - 0x438]
call fcn.00405ac5
mov eax, esi
call fcn.0048ff14
ret 4
Function at 0x4147fa
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4b931c
mov eax, dword fs:[0]
push eax
sub esp, 0xe8
mov eax, dword [0x4eb664]
xor eax, esp
mov dword [esp + 0xe0], eax
push ebx
push esi
push edi
mov eax, dword [0x4eb664]
xor eax, esp
push eax
lea eax, [esp + 0xf8]
mov dword fs:[0], eax
call fcn.004147b4
test eax, eax
setne cl
mov esi, reloc.OLEAUT32.dll_SysReAllocString
test cl, cl
lea eax, [esi - 2]
cmovne esi, eax
mov edx, str.SOFTWAREClassesCLSIDD27CDB6E_AE6D_11cf_96B8_444553540000InprocServer32
mov eax, str.CLSIDD27CDB6E_AE6D_11cf_96B8_444553540000InprocServer32
cmove eax, edx
push eax
lea ecx, [esp + 0xc4]
call fcn.0040513a
xor ebx, ebx
mov dword [esp + 0x100], ebx
cmp dword [esp + 0xd4], 8
push 1
lea eax, [esp + 0xc4]
cmovae eax, dword [esp + 0xc4]
mov edi, 0xf003f
push edi
push eax
push esi
lea ecx, [esp + 0x23]
call fcn.004133ee
mov dword [esp + 0x20], eax
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov byte [esp + 0x100], 1
cmp dword [esp + 0xd4], 8
lea ecx, [esp + 0xc0]
cmovae ecx, dword [esp + 0xc0]
push edi
push ecx
push esi
lea ecx, [esp + 0x20]
call fcn.0040cf2b
mov ebx, eax
or edi, 0xffffffff
test ebx, ebx
jne 0x4148f6
push 1
mov eax, 0x4d3c88
push eax
push eax
lea ecx, [esp + 0x20]
call fcn.004195b2
mov edi, eax
push 1
push 2
lea ecx, [esp + 0x2c]
call fcn.00414fd9
mov byte [esp + 0x100], 2
cmp dword [esp + 0xd4], 8
push ecx
lea esi, [esp + 0xc4]
cmovae esi, dword [esp + 0xc4]
lea ecx, [esp + 0x28]
call fcn.0041969c
lea ecx, [esp + 0x24]
call fcn.00419a65
push esi
push ecx
push str.__location_is:
push ecx
push edi
push ecx
push str.__reg.SetStringValue
push ecx
push dword [esp + 0x40]
mov edx, str.CrashRepair::BeginRegisterAcessable
push ecx
push str.__helper.AddRegAccess:
push ecx
push ebx
push ecx
push str.__reg.Open:
push ecx
lea ecx, [esp + 0x64]
call fcn.004179aa
pop ecx
push eax
call fcn.00417bf0
add esp, 0xc
mov ecx, eax
call fcn.00414d15
pop ecx
push eax
call fcn.00417bf0
add esp, 0xc
mov ecx, eax
call fcn.00414c18
pop ecx
push eax
call fcn.00417bf0
add esp, 0xc
mov ecx, eax
call fcn.00414d15
pop ecx
push eax
call fcn.00417bf0
add esp, 0xc
push eax
call fcn.00417bf0
push eax
call fcn.00419b03
add esp, 0xc
lea eax, [esp + 0xd8]
push eax
lea ecx, [esp + 0x28]
call fcn.0041508d
cmp dword [eax + 0x14], 8
jb 0x4149cb
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push 0
push 1
lea ecx, [esp + 0xe0]
call fcn.00405ac5
lea ecx, [esp + 0x24]
call fcn.00413ef9
lea ecx, [esp + 0x14]
call fcn.0040cf80
push 0
push 1
lea ecx, [esp + 0xc8]
call fcn.00405ac5
mov ecx, dword [esp + 0xf8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xe0]
xor ecx, esp
call fcn.0048f059
mov esp, ebp
pop ebp
ret
Function at 0x414a28
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4b943b
mov eax, dword fs:[0]
push eax
sub esp, 0xe8
mov eax, dword [0x4eb664]
xor eax, esp
mov dword [esp + 0xe0], eax
push ebx
push esi
push edi
mov eax, dword [0x4eb664]
xor eax, esp
push eax
lea eax, [esp + 0xf8]
mov dword fs:[0], eax
call fcn.004147b4
test eax, eax
setne cl
mov esi, reloc.OLEAUT32.dll_SysReAllocString
test cl, cl
lea eax, [esi - 2]
cmovne esi, eax
mov edx, str.SOFTWAREClassesCLSIDD27CDB6E_AE6D_11cf_96B8_444553540000InprocServer32
mov eax, str.CLSIDD27CDB6E_AE6D_11cf_96B8_444553540000InprocServer32
cmove eax, edx
push eax
lea ecx, [esp + 0xbc]
call fcn.0040513a
xor ebx, ebx
mov dword [esp + 0x100], ebx
cmp dword [esp + 0xcc], 8
lea eax, [esp + 0xb8]
cmovae eax, dword [esp + 0xb8]
push eax
push esi
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x23]
mov edi, ebx
call fcn.00413567
mov esi, dword [esp + 0x18]
cmp dword [esi - 0xc], ebx
je 0x414b17
lea ecx, [esp + 0xd0]
call fcn.00412816
lea ecx, [esp + 0xd0]
mov byte [esp + 0x100], 2
call fcn.0041294d
push ebx
lea eax, [esp + 0xd4]
push eax
push 4
push esi
call fcn.00413181
add esp, 0x10
lea ecx, [esp + 0xd0]
movzx edi, al
call fcn.00412859
lea ecx, [esi - 0x10]
mov byte [esp + 0x100], bl
call fcn.00404f8d
push 1
push 2
lea ecx, [esp + 0x24]
call fcn.00414fd9
mov byte [esp + 0x100], 3
cmp dword [esp + 0xcc], 8
push ecx
lea esi, [esp + 0xbc]
cmovae esi, dword [esp + 0xbc]
lea ecx, [esp + 0x20]
call fcn.0041969c
lea ecx, [esp + 0x1c]
call fcn.00419a65
push esi
push ecx
push str.__location_is:
push ecx
push edi
push ecx
push str.__RestoreRegAccess:
push ecx
mov edx, str.CrashRepair::EndRegisterAcessable
lea ecx, [esp + 0x3c]
call fcn.004179aa
pop ecx
push eax
call fcn.00417bf0
add esp, 0xc
mov ecx, eax
call fcn.00414c18
pop ecx
push eax
call fcn.00417bf0
add esp, 0xc
push eax
call fcn.00417bf0
push eax
call fcn.00419b03
add esp, 0xc
lea eax, [esp + 0xd0]
push eax
lea ecx, [esp + 0x20]
call fcn.0041508d
cmp dword [eax + 0x14], 8
jb 0x414bc6
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push ebx
push 1
lea ecx, [esp + 0xd8]
call fcn.00405ac5
lea ecx, [esp + 0x1c]
call fcn.00413ef9
push ebx
push 1
lea ecx, [esp + 0xc0]
call fcn.00405ac5
mov ecx, dword [esp + 0xf8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xe0]
xor ecx, esp
call fcn.0048f059
mov esp, ebp
pop ebp
ret
Function at 0x417128
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov eax, ecx
push esi
mov esi, eax
push edi
mov dword [ebp - 4], edx
mov dword [ebp - 8], eax
or edi, 0xffffffff
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x417141
sub esi, ecx
lea ebx, [esi + 1]
push ebx
call fcn.0048eb44
mov esi, eax
pop ecx
test esi, esi
je 0x417215
push ebx
call fcn.0048eb44
mov ebx, eax
pop ecx
mov dword [ebp - 0xc], ebx
test ebx, ebx
jne 0x417179
push esi
call fcn.0048eb4d
jmp 0x417214
mov ecx, dword [ebp - 4]
inc ecx
mov edx, esi
sub edx, ecx
mov al, byte [ecx]
mov byte [edx + ecx], al
inc ecx
test al, al
jne 0x417181
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 4]
sub eax, ecx
push eax
push ecx
push ebx
call fcn.00498820
mov ecx, dword [ebp - 4]
mov eax, ebx
sub eax, dword [ebp - 8]
add esp, 0xc
push 0
mov byte [eax + ecx], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push ebx
push esi
push eax
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x417207
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x417207
push 0xc
call fcn.00449b05
mov ebx, eax
pop ecx
test ebx, ebx
je 0x417204
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LockResource]
push dword [ebp - 0x10]
and dword [ebx + 4], 0
push dword [ebp - 8]
mov dword [ebx], eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebx + 8], eax
mov edi, ebx
mov ebx, dword [ebp - 0xc]
push esi
call fcn.0048eb4d
push ebx
call fcn.0048eb4d
pop ecx
pop ecx
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x417258
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
push 0
push 0x80
push 3
push 0
push 1
mov edi, ecx
push 0xc0000000
push edi
mov ebx, edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x4172be
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_DosDateTimeToFileTime]
test eax, eax
je 0x4172b7
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
test eax, eax
je 0x4172b7
lea eax, [ebp - 8]
push eax
push 0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 0xc]
and eax, 0x27
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4195b2
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
push esi
mov esi, ecx
test edx, edx
jne 0x4195c4
push 0xd
pop eax
jmp 0x4195f6
push ebx
mov ecx, edx
push edi
lea edi, [ecx + 2]
xor ebx, ebx
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x4195cd
sub ecx, edi
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edx
push dword [ebp + 0x10]
push ebx
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop ebx
pop esi
pop ebp
ret 0xc
Function at 0x419ccd
Capabilities:
Link many functions at runtime

Disassembly:
push ebx
push edi
push 0x4d6344
mov edi, ecx
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [edi], eax
test eax, eax
je 0x419d9b
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.WinHttpOpen
push eax
call esi
push str.WinHttpConnect
push dword [edi]
mov dword [edi + 4], eax
call esi
push str.WinHttpOpenRequest
push dword [edi]
mov dword [edi + 8], eax
call esi
push str.WinHttpSendRequest
push dword [edi]
mov dword [edi + 0xc], eax
call esi
push str.WinHttpWriteData
push dword [edi]
mov dword [edi + 0x10], eax
call esi
push str.WinHttpReceiveResponse
push dword [edi]
mov dword [edi + 0x14], eax
call esi
push str.WinHttpCloseHandle
push dword [edi]
mov dword [edi + 0x18], eax
call esi
push str.WinHttpReadData
push dword [edi]
mov dword [edi + 0x1c], eax
call esi
push str.WinHttpQueryDataAvailable
push dword [edi]
mov dword [edi + 0x20], eax
call esi
push str.WinHttpSetTimeouts
push dword [edi]
mov dword [edi + 0x24], eax
call esi
mov dword [edi + 0x28], eax
pop esi
cmp dword [edi + 4], ebx
je 0x419d9b
cmp dword [edi + 8], ebx
je 0x419d9b
cmp dword [edi + 0xc], ebx
je 0x419d9b
cmp dword [edi + 0x10], ebx
je 0x419d9b
cmp dword [edi + 0x14], ebx
je 0x419d9b
cmp dword [edi + 0x18], ebx
je 0x419d9b
cmp dword [edi + 0x1c], ebx
je 0x419d9b
cmp dword [edi + 0x20], ebx
je 0x419d9b
cmp dword [edi + 0x24], ebx
je 0x419d9b
test eax, eax
je 0x419d9b
inc ebx
jmp 0x419da2
mov ecx, edi
call fcn.00419da7
pop edi
mov eax, ebx
pop ebx
ret
Function at 0x41a6d7
Capabilities:
Connect to http server
Create http request
Read data from internet
Receive data
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2028
call fcn.00492280
mov eax, dword [0x4eb664]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, 0xfff
xor ebx, ebx
push edi
mov dword [ebp - 0x2020], eax
lea eax, [ebp - 0x100b]
push ebx
push eax
mov dword [ebp - 0x201c], ecx
mov esi, 0x80004005
mov dword [ebp - 0x2014], 0x7d0
mov dword [ebp - 0x2010], 0x1000
mov byte [ebp - 0x100c], bl
call fcn.004921d0
add esp, 0xc
lea eax, [ebp - 0x200b]
push edi
push ebx
push eax
mov byte [ebp - 0x200c], bl
call fcn.004921d0
add esp, 0xc
push ebx
push ebx
push ebx
push ebx
push str.KxeCollect_Agent
call dword [sym.imp.WININET.dll_InternetOpenW]
mov ebx, eax
mov dword [ebp - 0x2024], ebx
test ebx, ebx
jne 0x41a782
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
jmp 0x41a8e5
push 4
lea eax, [ebp - 0x2014]
push eax
push 2
push ebx
call dword [sym.imp.WININET.dll_InternetSetOptionW]
push 1
xor eax, eax
push eax
push 3
push eax
push eax
push 0x50
push str.help.pc120.com
push ebx
call dword [sym.imp.WININET.dll_InternetConnectW]
mov edi, dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [ebp - 0x2018], eax
test eax, eax
jne 0x41a7d4
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
jmp 0x41a8e2
push 4
lea ecx, [ebp - 0x2014]
push ecx
push 2
push eax
call dword [sym.imp.WININET.dll_InternetSetOptionW]
mov ebx, dword [ebp - 0x2018]
push 4
lea eax, [ebp - 0x2014]
push eax
push 5
push ebx
call dword [sym.imp.WININET.dll_InternetSetOptionW]
mov eax, dword [ebp - 0x201c]
push 1
push 0x20000000
xor ecx, ecx
push ecx
push ecx
push str.HTTP_1.0
add eax, 0x2c
push eax
push ecx
push ebx
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov ebx, eax
test ebx, ebx
jne 0x41a83f
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
jmp 0x41a8d4
xor eax, eax
push eax
push eax
push eax
push eax
push ebx
call dword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
je 0x41a86f
lea eax, [ebp - 0x2010]
push eax
push dword [ebp - 0x2010]
lea eax, [ebp - 0x100c]
push eax
push ebx
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x41a885
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
jmp 0x41a8d1
lea eax, [ebp - 0x2010]
push eax
lea eax, [ebp - 0x200c]
push eax
mov ecx, 0x1000
push ecx
lea eax, [ebp - 0x100c]
push eax
mov dword [ebp - 0x2010], ecx
call fcn.00419b85
add esp, 0x10
test eax, eax
je 0x41a8d1
push dword [ebp - 0x2010]
lea eax, [ebp - 0x200c]
push eax
push dword [ebp - 0x2020]
call fcn.0041aa5c
xor ecx, ecx
test eax, eax
cmovne esi, ecx
push ebx
call edi
push dword [ebp - 0x2018]
call edi
mov ebx, dword [ebp - 0x2024]
push ebx
call edi
mov ecx, dword [ebp - 8]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0048f059
leave
ret 0xc
Function at 0x41af03
Capabilities:
Create thread

Disassembly:
push 0x38
mov eax, 0x4b99aa
call fcn.0048ff65
mov ebx, ecx
mov dword [ebp - 0x3c], ebx
and dword [ebp - 4], 0
cmp dword [ebx + 8], 0
je 0x41af4d
push 0
push dword [ebx + 8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x41af4d
push 0xffffffffffffffff
push 0x4d659c
lea ecx, [ebp - 0x38]
call fcn.0041ae69
push 0x4e0fc8
lea eax, [ebp - 0x38]
push eax
call fcn.0048fea5
mov edi, dword [ebp + 0xc]
lea eax, [ebx + 0x10]
mov esi, dword [edi]
cmp esi, edi
je 0x41af71
mov ebx, eax
lea eax, [esi + 8]
push eax
push dword [ebx]
mov ecx, ebx
call fcn.004095e8
mov esi, dword [esi]
cmp esi, edi
jne 0x41af5b
mov ebx, dword [ebp - 0x3c]
mov eax, dword [ebp + 8]
mov dword [ebx + 4], eax
xor ecx, ecx
lea eax, [ebp - 0x40]
push eax
push ecx
push ebx
push 0x41ae5b
push ecx
push ecx
mov dword [ebp - 0x40], ecx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebx + 8], eax
test eax, eax
jne 0x41afa4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x4d65b0
jmp 0x41af37
lea ecx, [ebp + 0xc]
call fcn.0040929b
push dword [ebp + 0xc]
call fcn.00449b2b
pop ecx
call fcn.0048ff14
ret 0xc