joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41d5c5
Capabilities:
Set file attributes

Disassembly:
push 0x120
mov eax, 0x4a3f61
call fcn.00481da3
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
and dword [ebp - 0x120], 0
mov dword [ebp - 0x128], eax
mov eax, dword [ebp + 0xc]
push 0x103
mov dword [ebp - 0x11c], eax
lea eax, [ebp - 0x117]
mov esi, ecx
push 0
push eax
mov dword [ebp - 0x124], esi
mov ebx, edx
mov byte [ebp - 0x118], 0
call fcn.0047e7d0
add esp, 0xc
call fcn.00428e38
mov ecx, esi
call fcn.00402a47
mov ecx, ebx
call fcn.00402a47
call fcn.00428e69
mov ecx, dword [ebp - 0x11c]
push 0
push esi
push dword [ebp - 0x128]
call fcn.0041d1b6
mov dword [edi], eax
lea eax, [ebp - 0x118]
push eax
call fcn.0042b045
pop ecx
lea esi, [ebp - 0x118]
call fcn.0041d149
mov dword [0x4efd2c], eax
cmp dword [edi], 0
mov eax, esi
push eax
je 0x41d72a
lea ecx, [ebp - 0x124]
call fcn.004134db
and dword [ebp - 4], 0
push dword [edi]
mov ecx, dword [ebp - 0x11c]
mov ecx, dword [ecx]
push ecx
push dword [eax]
mov esi, 0x4ef184
push 0x14d
push esi
call fcn.0042a517
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x124]
add esp, 0x14
add ecx, 0xfffffff0
call fcn.00401325
cmp dword [edi], 0x17
jne 0x41d7ec
call fcn.0045db7e
push eax
lea ecx, [ebp - 0x11c]
call fcn.0040161b
xor edi, edi
push 0xc5
inc edi
mov dword [ebp - 4], edi
mov eax, dword [0x4ee7f4]
mov ecx, dword [eax]
lea edx, [ebp - 0x11c]
push edx
push eax
call dword [ecx + 0xc]
lea eax, [ebp - 0x11c]
push eax
push esi
call fcn.0042a460
mov ecx, dword [ebp - 0x128]
push 0x10
push str.Kingsoft_Antivirus_Update
push dword [ebp - 0x11c]
mov dword [0x4ef878], edi
mov dword [0x4efd30], edi
call fcn.0046423e
mov ecx, dword [ebp - 0x11c]
add ecx, 0xfffffff0
call fcn.00401325
jmp 0x41d7ec
call fcn.0042b045
pop ecx
lea esi, [ebp - 0x118]
call fcn.0041d149
mov dword [0x4efd2c], eax
mov eax, esi
push eax
lea ecx, [ebp - 0x12c]
call fcn.004134db
mov dword [ebp - 4], 2
mov ecx, dword [ebp - 0x11c]
push dword [ecx]
mov esi, 0x4ef184
push dword [eax]
push 0x196
push esi
call fcn.0042a517
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x12c]
add esp, 0x10
add ecx, 0xfffffff0
call fcn.00401325
call fcn.00428e38
push 0
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
call fcn.00428e69
mov ebx, dword [ebx]
mov eax, dword [ebp - 0x124]
mov eax, dword [eax]
push ebx
push eax
call fcn.004020c7
test eax, eax
pop ecx
pop ecx
mov dword [ebp - 0x120], eax
jne 0x41d7d7
push 0x197
push esi
call fcn.0042a4c4
cmp dword [0x4ef1d4], 1
jne 0x41d7cd
push 0x2c
jmp 0x41d7cf
push 0x4a
push esi
call fcn.0042a4c4
jmp 0x41d7ec
push 0x198
push esi
call fcn.0042a4c4
mov dword [ebp - 0x120], 1
mov eax, dword [ebp - 0x120]
call fcn.00481e26
ret 0xc
Function at 0x4208f8
Capabilities:
Check if file exists

Disassembly:
push ebx
push esi
push edi
mov esi, eax
lea edi, [esi + 0x788]
push dword [edi]
xor ebx, ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x420977
mov eax, dword [esi + 0x784]
dec eax
dec eax
je 0x420951
dec eax
mov ecx, dword [edi]
je 0x420943
dec eax
je 0x420934
mov edx, dword [esi + 0x760]
call fcn.00433b29
test eax, eax
je 0x420977
jmp 0x42096d
mov esi, dword [esi + 0x760]
push esi
call fcn.004341fe
pop ecx
jmp 0x42092e
mov esi, dword [esi + 0x760]
push esi
call fcn.00434016
jmp 0x420940
push dword [esi + 0x2d4]
mov eax, dword [edi]
mov ecx, dword [esi + 0x760]
push eax
push ecx
call fcn.00433d0f
add esp, 0xc
test eax, eax
je 0x420974
mov ecx, edi
call fcn.00402a47
xor ebx, ebx
inc ebx
pop edi
pop esi
mov eax, ebx
pop ebx
ret

Function at 0x420beb
Capabilities:
Terminate thread

Disassembly:
mov eax, dword [esi + 0x28c]
test eax, eax
je 0x420c26
push 0x12c
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x420c13
push 0xffffffffffffffff
push dword [esi + 0x28c]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [esi + 0x28c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [esi + 0x28c], 0
ret

Function at 0x4212ea
Capabilities:
Get file size

Disassembly:
push esi
push edi
push 0
mov eax, 0x80
push eax
push 3
push 0
push 3
push eax
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x421323
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp edi, 0xffffffff
jne 0x421325
xor edi, edi
mov eax, edi
pop edi
pop esi
ret 4

Function at 0x42132c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x4d0620]
xor eax, ebp
mov dword [ebp - 4], eax
test byte [0x4f0334], 1
push esi
push edi
mov esi, 0x4f0330
jne 0x42136e
or dword [0x4f0334], 1
call fcn.0045db7e
push eax
mov ecx, esi
call fcn.0040161b
push 0x4a4ac1
call fcn.0047be3f
pop ecx
xor edi, edi
push 0x206
lea eax, [ebp - 0x20a]
push edi
push eax
mov word [ebp - 0x20c], di
call fcn.0047e7d0
add esp, 0xc
mov ecx, ebx
call fcn.00401557
mov eax, dword [0x4f0330]
cmp dword [eax - 0xc], edi
jne 0x4213c1
lea eax, [ebp - 0x20c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x4213c1
lea eax, [ebp - 0x20c]
push eax
mov ecx, esi
call fcn.004014c5
mov eax, dword [0x4f0330]
cmp dword [eax - 0xc], edi
je 0x4213f1
lea ecx, [ebp - 0x20c]
push ecx
push edi
push 0x4b69b4
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x4213f1
lea eax, [ebp - 0x20c]
push eax
mov ecx, ebx
call fcn.004014c5
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0047b9fe
leave
ret
Function at 0x421460
Capabilities:
Check if file exists

Disassembly:
push 0x14
mov eax, 0x4a3c1d
call fcn.00481d3a
xor esi, esi
mov dword [ebp - 0x18], esi
call fcn.0045db7e
push eax
lea ecx, [ebp - 0x10]
call fcn.0040161b
mov dword [ebp - 4], esi
call fcn.0045db7e
push eax
lea ecx, [ebp - 0x14]
call fcn.0040161b
mov byte [ebp - 4], 1
cmp dword [0x4d2394], esi
je 0x42159a
push dword [ebp + 0x10]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x42159a
lea ebx, [ebp - 0x10]
call fcn.0042132c
lea ebx, [ebp - 0x14]
call fcn.0042132c
mov eax, dword [ebp - 0x10]
cmp dword [eax - 0xc], esi
je 0x42159a
mov edi, dword [ebp - 0x14]
cmp dword [edi - 0xc], esi
je 0x42159a
push dword [ebp + 0xc]
lea ecx, [ebp - 0x1c]
call fcn.00401640
push 1
lea eax, [ebp - 0x10]
push eax
mov byte [ebp - 4], 2
push dword [ebp + 8]
lea ecx, [ebp - 0x1c]
call fcn.0041d1b6
test eax, eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x1c]
setne bl
add ecx, 0xfffffff0
call fcn.00401325
test bl, bl
jne 0x42159a
push dword [ebp + 0x10]
call fcn.004212ea
mov esi, eax
test esi, esi
jne 0x42152a
mov esi, 0x100000
jmp 0x421530
add esi, 0x100000
call fcn.00428e38
push esi
push dword [ebp - 0x10]
push edi
call fcn.00433d0f
add esp, 0xc
mov esi, eax
call fcn.00428e69
test esi, esi
je 0x42159a
call fcn.00428e38
push dword [ebp + 0x14]
lea ecx, [ebp + 8]
call fcn.00401640
lea ecx, [ebp + 8]
mov byte [ebp - 4], 3
call fcn.00402a47
mov byte [ebp - 4], 1
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.00401325
push edi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.00435766
add esp, 0xc
movzx esi, al
call fcn.00428e69
test esi, esi
je 0x42159a
mov dword [ebp - 0x18], 1
call fcn.00428e38
lea ecx, [ebp - 0x14]
call fcn.00402a47
lea ecx, [ebp - 0x10]
call fcn.00402a47
call fcn.00428e69
cmp dword [0x4d2394], 0
jne 0x4215c4
call fcn.00435700
jmp 0x4215f5
cmp dword [ebp - 0x18], 0
jne 0x4215ea
call fcn.00435700
push dword [ebp + 0xc]
call fcn.00435700
add esp, 4
push dword [ebp + 0x10]
call fcn.00435700
add esp, 4
push dword [ebp + 0x14]
jmp 0x4215ed
push dword [ebp + 0xc]
call fcn.00435700
add esp, 4
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.00401325
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00401325
mov eax, dword [ebp - 0x18]
call fcn.00481e12
ret 0x10
Function at 0x423c72
Capabilities:
Resume thread
Suspend thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4a34e3
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x4d0620]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
sub ecx, dword [0x4f00ac]
cmp ecx, 0x190
jae 0x423cc0
mov dword [0x4f00ac], eax
jmp 0x423eaa
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x198]
mov ebx, 0x82
cmp eax, ebx
mov dword [esp + 0x14], eax
jne 0x423cf2
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x19c]
test eax, eax
je 0x423e37
push 1
mov esi, eax
call fcn.00420bb2
cmp dword [esp + 0x14], 0x86
jne 0x423d84
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x19c]
mov esi, eax
test esi, esi
je 0x423d21
mov eax, dword [esi + 0x1f0]
test eax, eax
je 0x423d21
push eax
call dword [sym.imp.KERNEL32.dll_SuspendThread]
push edi
call fcn.0042409d
test eax, eax
jne 0x423d4d
test esi, esi
je 0x423eaa
mov esi, dword [esi + 0x1f0]
test esi, esi
je 0x423eaa
push esi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
jmp 0x423eaa
test esi, esi
je 0x423d62
mov eax, dword [esi + 0x1f0]
test eax, eax
je 0x423d62
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, dword [0x4efd80]
test eax, eax
je 0x423d72
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
test esi, esi
je 0x423e90
call fcn.00418d95
jmp 0x423e90
cmp dword [esp + 0x14], 0x85
jne 0x423e37
mov eax, dword [0x4ef1d4]
cmp eax, 1
je 0x423da4
test eax, eax
jne 0x423e37
cmp dword [0x4efd7c], 0
jne 0x423e27
call fcn.0045db7e
push eax
lea ecx, [esp + 0x1c]
call fcn.0040161b
and dword [esp + 0x28], 0
call fcn.0045db7e
push eax
lea ecx, [esp + 0x18]
call fcn.0040161b
push 0x57
mov byte [esp + 0x2c], 1
mov eax, dword [0x4ee7f4]
mov ecx, dword [eax]
lea edx, [esp + 0x1c]
push edx
push eax
call dword [ecx + 0xc]
mov eax, dword [0x4ee7f4]
mov ecx, dword [eax]
push 0x51
lea edx, [esp + 0x18]
push edx
push eax
call dword [ecx + 0xc]
push 0x40
push dword [esp + 0x18]
mov ecx, edi
push dword [esp + 0x20]
call fcn.0046423e
mov ecx, dword [esp + 0x14]
add ecx, 0xfffffff0
call fcn.00401325
mov ecx, dword [esp + 0x18]
add ecx, 0xfffffff0
call fcn.00401325
jmp 0x423eaa
call fcn.0042477b
push 1
mov ecx, edi
call fcn.00424149
jmp 0x423eaa
push edi
call fcn.0042409d
test eax, eax
jne 0x423e60
cmp dword [esp + 0x14], ebx
jne 0x423eaa
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x19c]
test eax, eax
je 0x423eaa
push 0
mov esi, eax
call fcn.00420bb2
jmp 0x423eaa
cmp dword [esp + 0x14], ebx
jne 0x423e90
cmp dword [0x4efd80], 0
je 0x423e7b
push dword [0x4efd84]
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x19c]
test eax, eax
je 0x423e90
mov esi, eax
call fcn.00420beb
call fcn.0042477b
mov eax, dword [edi]
and dword [edi + 0xac], 0
push 1
push 1
mov ecx, edi
call dword [eax + 0x164]
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x423ecd
Capabilities:
Delete registry value
Set registry value

Disassembly:
push 0x14
mov eax, 0x49f5a8
call fcn.00481d3a
xor ebx, ebx
cmp dword [0x4eef64], ebx
je 0x423eed
mov eax, 0x80004005
jmp 0x424095
call fcn.00428e38
mov dword [ebp - 0x10], ebx
lea eax, [ebp - 0x1c]
push eax
push 0x2001f
push ebx
mov dword [ebp - 4], ebx
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push str.SOFTWAREKINGSOFTANTIVIRUSUnion
push reloc.WS2_32.dll_bind
mov dword [ebp - 0x1c], ebx
call edi
cmp eax, ebx
jne 0x423f29
lea ecx, [ebp - 0x10]
call fcn.004047d1
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x10], ecx
or dword [ebp - 0x14], 0xffffffff
cmp eax, ebx
mov esi, str.RemindFlag
jne 0x423f48
lea eax, [ebp - 0x14]
push eax
push esi
lea eax, [ebp - 0x10]
push eax
call fcn.0040edbd
cmp eax, ebx
je 0x423f8d
lea ecx, [ebp - 0x10]
call fcn.004047d1
lea eax, [ebp - 0x1c]
push eax
push 0x2001f
push ebx
push str.SOFTWAREKINGSOFTANTIVIRUSUnion
push reloc.WS2_32.dll_accept
mov dword [ebp - 0x1c], ebx
call edi
cmp eax, ebx
jne 0x423f8d
lea ecx, [ebp - 0x10]
call fcn.004047d1
cmp eax, ebx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x10], ecx
jne 0x423f8d
lea eax, [ebp - 0x14]
push eax
push esi
lea eax, [ebp - 0x10]
push eax
call fcn.0040edbd
cmp dword [ebp - 0x14], ebx
mov edi, 0x80004005
jl 0x42407e
cmp dword [0x4efc2c], ebx
jne 0x424068
cmp dword [ebp - 0x14], 3
jae 0x424068
inc dword [ebp - 0x14]
mov eax, dword [ebp - 0x14]
push 4
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
push 4
push ebx
push esi
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
call fcn.0045db7e
push eax
lea ecx, [ebp - 0x1c]
call fcn.0040161b
push 0xb
mov byte [ebp - 4], 1
mov eax, dword [0x4ee7f4]
mov ecx, dword [eax]
lea edx, [ebp - 0x1c]
push edx
push eax
call dword [ecx + 0xc]
call fcn.0045db7e
push eax
lea ecx, [ebp - 0x18]
call fcn.0040161b
mov eax, 0x104
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x20], eax
call fcn.0040133f
lea ecx, [ebp - 0x10]
push ecx
lea esi, [ebp - 0x20]
mov edi, eax
call fcn.00424849
push 0xffffffffffffffff
lea ecx, [ebp - 0x18]
call fcn.00402fd4
mov esi, dword [ebp - 0x18]
mov ecx, dword [ebp + 8]
push 0x20
push dword [ebp - 0x1c]
push esi
call fcn.0046423e
lea ecx, [ebp - 0x10]
mov edi, eax
call fcn.004047d1
xor eax, eax
cmp edi, 1
setne al
lea ecx, [esi - 0x10]
mov edi, eax
call fcn.00401325
mov byte [ebp - 4], bl
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
call fcn.00401325
jmp 0x42407e
push esi
push dword [ebp - 0x10]
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
call esi
push str.RemindTips
push dword [ebp - 0x10]
call esi
lea ecx, [ebp - 0x10]
call fcn.004047d1
call fcn.00428e69
lea ecx, [ebp - 0x10]
call fcn.004047d1
mov eax, edi
call fcn.00481e12
ret 4
Function at 0x424849
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [esi]
and dword [esi], 0
add eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp + 8]
push eax
mov eax, dword [ebp + 8]
push 0
push str.RemindTips
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4248ae
cmp dword [ebp + 8], 1
je 0x424887
cmp dword [ebp + 8], 2
je 0x424887
push 0xd
pop eax
jmp 0x4248ae
test edi, edi
mov eax, dword [ebp - 4]
je 0x4248a8
test eax, eax
je 0x4248a4
test al, 1
jne 0x424882
mov ecx, eax
shr ecx, 1
cmp word [edi + ecx*2 - 2], 0
je 0x4248a8
jmp 0x424882
and word [edi], 0
shr eax, 1
mov dword [esi], eax
xor eax, eax
leave
ret 4

Function at 0x425b26
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x4d0620]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0xa
pop ecx
mov esi, str.KavPFW_File_Mapping
lea edi, [ebp - 0x2c]
rep movsd dword es:[edi], dword [esi]
xor esi, esi
xor eax, eax
mov dword [ebp - 0x34], esi
lea edi, [ebp - 0x30]
stosd dword es:[edi], eax
lea eax, [ebp - 0x2c]
push eax
push 8
push esi
push 2
push esi
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
push esi
push esi
push esi
mov ebx, eax
push 4
push ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
cmp edi, esi
je 0x425b8d
push 8
lea eax, [ebp - 0x34]
push edi
push eax
call fcn.0047f590
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
cmp ebx, 0xffffffff
je 0x425b99
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x34]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0047b9fe
leave
ret

Function at 0x427ada
Capabilities:
Check if file exists

Disassembly:
push 0xc
mov eax, 0x4a1469
call fcn.00481d3a
mov edi, ecx
xor ebx, ebx
call fcn.0045db7e
push eax
lea ecx, [ebp - 0x10]
call fcn.0040161b
mov dword [ebp - 4], ebx
cmp dword [edi], 1
jne 0x427b4c
lea eax, [ebp - 0x14]
push eax
call fcn.004283af
pop ecx
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.004015ba
mov byte [ebp - 4], bl
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.00401325
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x427b4c
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x427b4c
lea eax, [ebp - 0x10]
push eax
add edi, 0x18
call fcn.00417532
inc ebx
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00401325
mov eax, ebx
call fcn.00481e12
ret
Function at 0x427c55
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push 0x270
mov eax, 0x4a08b8
call fcn.00481da3
mov edi, dword [ebp + 8]
mov dword [ebp - 0x278], ecx
xor ebx, ebx
call fcn.0045db7e
push eax
lea ecx, [ebp - 0x270]
call fcn.0040161b
mov dword [ebp - 4], ebx
call fcn.0045db7e
push eax
lea ecx, [ebp - 0x268]
call fcn.0040161b
lea eax, [ebp - 0x26c]
push eax
mov esi, edi
mov byte [ebp - 4], 1
call fcn.004283af
pop ecx
push eax
lea ecx, [ebp - 0x270]
mov byte [ebp - 4], 2
call fcn.004015ba
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x26c]
add ecx, 0xfffffff0
call fcn.00401325
push 0x4ad078
lea ecx, [ebp - 0x270]
call fcn.00401250
lea eax, [ebp - 0x264]
push eax
push dword [ebp - 0x270]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x274], eax
je 0x427e0e
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileW]
jmp 0x427df4
lea eax, [ebp - 0x238]
push 0x4ac264
push eax
call fcn.0047eb9e
test eax, eax
pop ecx
pop ecx
je 0x427df4
lea eax, [ebp - 0x238]
push 0x4ae0e8
push eax
call fcn.0047eb9e
test eax, eax
pop ecx
pop ecx
je 0x427df4
lea eax, [ebp - 0x27c]
push eax
mov esi, edi
call fcn.004283af
pop ecx
push eax
lea ecx, [ebp - 0x268]
mov byte [ebp - 4], 3
call fcn.004015ba
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x27c]
add ecx, 0xfffffff0
call fcn.00401325
lea eax, [ebp - 0x238]
push eax
lea ecx, [ebp - 0x268]
call fcn.00401250
push dword [ebp - 0x268]
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x427da9
mov ecx, dword [ebp - 0x278]
cmp dword [ecx + 0x14], 0
je 0x427df4
lea eax, [ebp - 0x268]
push eax
call fcn.00427c55
jmp 0x427df4
push 4
call fcn.0045d815
mov esi, eax
test esi, esi
pop ecx
je 0x427dc6
mov ecx, esi
call fcn.00401607
mov dword [ebp - 0x26c], esi
jmp 0x427dcd
and dword [ebp - 0x26c], 0
mov ecx, dword [ebp - 0x26c]
lea eax, [ebp - 0x268]
push eax
call fcn.004015ba
mov esi, dword [ebp - 0x278]
lea eax, [ebp - 0x26c]
push eax
add esi, 4
call fcn.00427f59
lea eax, [ebp - 0x264]
push eax
push dword [ebp - 0x274]
call ebx
test eax, eax
jne 0x427d06
xor ebx, ebx
inc ebx
cmp dword [ebp - 0x274], 0
je 0x427e23
push dword [ebp - 0x274]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 0x268]
add ecx, 0xfffffff0
call fcn.00401325
mov ecx, dword [ebp - 0x270]
add ecx, 0xfffffff0
call fcn.00401325
mov eax, ebx
call fcn.00481e26
ret 4
Function at 0x4281f1
Capabilities:
Read file on windows

Disassembly:
push 0x18
push 0x4c6b88
call fcn.00481f00
xor edi, edi
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 4], edi
push edi
push 0x80
push 3
push edi
push 3
push closesocket
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x1c], eax
cmp eax, 0xffffffff
jne 0x42824b
push 0xfffffffffffffffe
lea eax, [ebp - 0x10]
push eax
push 0x4d0620
call fcn.0048bc10
add esp, 0xc
mov eax, dword [ebp - 0x28]
call fcn.00481f45
ret
mov esi, 0x100000
push esi
call fcn.0047dc09
pop ecx
mov ebx, eax
mov dword [ebp - 0x20], ebx
cmp ebx, edi
je 0x42828d
push edi
lea eax, [ebp - 0x24]
push eax
push esi
push ebx
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, edi
je 0x42828d
cmp dword [ebp - 0x24], edi
je 0x42828d
push dword [ebp - 0x24]
push ebx
push dword [ebp - 0x28]
call fcn.00435ecb
add esp, 0xc
mov dword [ebp - 0x28], eax
jmp 0x42825c
mov dword [ebp - 4], 0xfffffffe
call fcn.0042829d
jmp 0x428242

Function at 0x428474
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x4d0620]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor esi, esi
push 0x206
lea eax, [ebp - 0x20a]
push esi
push eax
mov word [ebp - 0x20c], si
call fcn.0047e7d0
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.0040464f
lea eax, [ebp - 0x20c]
push eax
call fcn.0047ba0d
add esp, 0x18
test eax, eax
je 0x4284e9
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x4284e6
push esi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x4284e9
xor esi, esi
inc esi
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0047b9fe
leave
ret

Function at 0x42864c
Capabilities:
Get proxy
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
lea eax, [ebp - 4]
push eax
push 1
xor esi, esi
push esi
push 0x4b5808
push reloc.WS2_32.dll_accept
xor edi, edi
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4286b6
push 0x400
push esi
push dword [ebp + 8]
call fcn.0047e7d0
add esp, 0xc
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x7fe
push esi
push esi
push str.ProxyServer
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4286b6
push dword [ebp + 8]
call fcn.0047ba0d
pop ecx
mov edi, eax
cmp dword [ebp - 4], esi
je 0x4286c4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
leave
ret
Function at 0x428a1d
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
lea eax, [ebp - 4]
push eax
xor esi, esi
push 1
push esi
push 0x4b5808
push reloc.WS2_32.dll_accept
or edi, 0xffffffff
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x428a74
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push esi
push esi
push 0x4b9018
push dword [ebp - 4]
mov dword [ebp - 8], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x428a74
mov edi, dword [ebp - 0xc]
cmp dword [ebp - 4], esi
je 0x428a82
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
leave
ret

Function at 0x428bbb
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [eax + 4]
push esi
xor esi, esi
cmp eax, esi
mov dword [ebp - 4], 4
je 0x428bf8
lea ecx, [ebp - 4]
push ecx
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 0xc]
push ecx
push esi
push 0x4ac8f4
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x428bf8
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
inc esi
mov eax, esi
pop esi
leave
ret 4

Function at 0x428bff
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x11c]
sub esp, 0x19c
mov eax, dword [0x4d0620]
xor eax, ebp
mov dword [ebp + 0x118], eax
mov eax, dword [ebp + 0x124]
mov eax, dword [eax + 4]
push esi
xor esi, esi
cmp eax, esi
mov dword [ebp - 0x7c], 0xc8
je 0x428c61
cmp ecx, esi
je 0x428c61
lea edx, [ebp - 0x7c]
push edx
lea edx, [ebp - 0x78]
push edx
lea edx, [ebp - 0x80]
push edx
push esi
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x428c61
push 0x104
lea eax, [ebp - 0x78]
push eax
push edi
call fcn.0047d58d
add esp, 0xc
inc esi
mov ecx, dword [ebp + 0x118]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0047b9fe
add ebp, 0x11c
leave
ret 4

Function at 0x428da0
Capabilities:
Get session user name

Disassembly:
push ebp
lea ebp, [esp - 0x190]
sub esp, 0x210
mov eax, dword [0x4d0620]
xor eax, ebp
mov dword [ebp + 0x18c], eax
and word [ebp - 0x7c], 0
push esi
push 0x206
lea eax, [ebp - 0x7a]
push 0
push eax
mov esi, 0x80004005
call fcn.0047e7d0
add esp, 0xc
cmp dword [0x4ee930], 0
mov dword [ebp - 0x80], 0x104
je 0x428e20
cmp dword [0x4ee938], 0
je 0x428e20
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
je 0x428e20
lea eax, [ebp - 0x7c]
push 0x4b9038
push eax
call fcn.0047bbb4
neg eax
sbb eax, eax
inc eax
pop ecx
pop ecx
mov dword [0x4ee940], eax
xor esi, esi
mov ecx, dword [ebp + 0x18c]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0047b9fe
add ebp, 0x190
leave
ret