joyce8/EMBER2024-capa huggingface dataset:
Function at 0x433f00
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x10]
push edi
mov eax, dword [esi]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x434026
push 0
call dword [sym.imp.user32.dll_OpenClipboard]
test eax, eax
je 0x434026
call dword [sym.imp.user32.dll_EmptyClipboard]
call dword [sym.imp.kernel32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x433fd5
push 0
push 0
push 0xffffffffffffffff
push 0
mov ecx, esi
call fcn.00465cc2
mov ebp, dword [sym.imp.kernel32.dll_MultiByteToWideChar]
push eax
push 0
push 0
call ebp
mov edi, eax
push edi
push 0
call dword [sym.imp.oleaut32.dll_SysAllocStringLen]
mov ebx, eax
test ebx, ebx
je 0x433f7d
push edi
push ebx
push 0xffffffffffffffff
push 0
mov ecx, esi
call fcn.00465cc2
push eax
push 0
push 0
call ebp
add edi, edi
push edi
push 0x42
mov dword [esp + 0x1c], edi
call dword [sym.imp.kernel32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
je 0x434026
push ebp
mov esi, ebx
call dword [sym.imp.kernel32.dll_GlobalLock]
mov ecx, dword [esp + 0x14]
mov edi, eax
mov edx, ecx
push ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.kernel32.dll_GlobalUnlock]
push ebx
call dword [sym.imp.oleaut32.dll_SysFreeString]
push ebp
push 0xd
call dword [sym.imp.user32.dll_SetClipboardData]
call dword [sym.imp.user32.dll_CloseClipboard]
pop edi
pop esi
pop ebp
pop ebx
ret
mov eax, dword [esi]
mov ebp, dword [eax - 8]
lea ecx, [ebp + 1]
push ecx
push 0x42
call dword [sym.imp.kernel32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x434026
push ebx
call dword [sym.imp.kernel32.dll_GlobalLock]
push 0
mov ecx, esi
mov edi, eax
call fcn.00465cc2
mov ecx, ebp
mov esi, eax
mov edx, ecx
push ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.kernel32.dll_GlobalUnlock]
push ebx
push 1
call dword [sym.imp.user32.dll_SetClipboardData]
call dword [sym.imp.user32.dll_CloseClipboard]
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x438f80
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x47a0f8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebp
push esi
mov esi, ecx
push edi
push 0x49d94c
lea ecx, [esi + 0x4fc]
call fcn.00468e31
lea eax, [esp + 0xc]
push 0x802d
push eax
call fcn.00433e80
add esp, 8
xor edi, edi
push 0x91
push eax
lea ecx, [esi + 0x540]
mov dword [esp + 0x30], edi
call fcn.0040bee0
lea ecx, [esp + 0xc]
mov dword [esp + 0x28], 0xffffffff
call fcn.00465892
push edi
mov ecx, esi
mov dword [esi + 0x3ba0], edi
call fcn.00438620
mov edx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.user32.dll_GetWindowRect]
lea ecx, [esp + 0x10]
push ecx
push edx
call ebp
mov al, byte [0x49e368]
test al, 1
jne 0x43904d
mov ecx, dword [esp + 0x14]
mov dl, al
mov eax, dword [esp + 0x10]
or dl, 1
mov byte [0x49e368], dl
mov edx, dword [esp + 0x18]
mov dword [0x49e358], eax
mov eax, dword [esp + 0x1c]
push 0x4391a0
mov dword [0x49e35c], ecx
mov dword [0x49e360], edx
mov dword [0x49e364], eax
call fcn.00441838
add esp, 4
mov ecx, dword [esi + 0x764]
mov edi, dword [sym.imp.user32.dll_IsWindowVisible]
push ecx
call edi
test eax, eax
jne 0x439098
mov edx, dword [esi + 0x1418]
push edx
call edi
test eax, eax
jne 0x439098
mov eax, dword [esi + 0x2d58]
push eax
call edi
test eax, eax
jne 0x439098
mov ecx, dword [esi + 0x3364]
push ecx
call edi
test eax, eax
jne 0x439098
mov edx, dword [esi + 0x3574]
push edx
call edi
test eax, eax
je 0x43918b
mov eax, dword [0x49e364]
mov ecx, dword [esp + 0x1c]
push ebx
mov ebx, dword [0x49e35c]
sub eax, ebx
mov ebx, dword [esp + 0x18]
sub eax, ecx
push 1
add eax, ebx
cdq
sub eax, edx
mov edi, eax
mov eax, dword [esp + 0x18]
sar edi, 1
add ecx, edi
sub ebx, edi
mov dword [esp + 0x24], ecx
sub ecx, ebx
push ecx
mov ecx, dword [esp + 0x24]
sub ecx, eax
mov dword [esp + 0x20], ebx
push ecx
push ebx
push eax
mov ecx, esi
call fcn.00468ea2
mov eax, dword [esi + 0x614]
lea edx, [esp + 0x14]
push edx
push eax
call ebp
lea ecx, [esp + 0x14]
push ecx
mov ecx, esi
call fcn.0046c4a9
lea edx, [edi + edi]
lea eax, [esp + 0x14]
push edx
push 0
push eax
call dword [sym.imp.user32.dll_OffsetRect]
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub ecx, eax
push 1
push ecx
mov ecx, dword [esp + 0x1c]
sub edx, ecx
push edx
push eax
push ecx
lea ecx, [esi + 0x5f8]
call fcn.00468ea2
push 1
push 0
push 0
push 0
push 0
push 0xe8ff
push 0xe800
mov ecx, esi
call fcn.00467abf
push 0
lea ecx, [esi + 0x748]
call fcn.00468f32
push 0
lea ecx, [esi + 0x13fc]
call fcn.00468f32
push 0
lea ecx, [esi + 0x2d3c]
call fcn.00468f32
push 0
lea ecx, [esi + 0x3348]
call fcn.00468f32
push 0
lea ecx, [esi + 0x3558]
call fcn.00468f32
pop ebx
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x20
ret

Function at 0x43d4f0
Capabilities:
Create thread

Disassembly:
push ecx
lea eax, [esp]
push eax
push 0
push ecx
push 0x4331a0
push 0
push 0
call dword [sym.imp.kernel32.dll_CreateThread]
pop ecx
ret
Function at 0x43de40
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x47ad86
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov eax, dword [0x49aec0]
push ebx
push esi
push edi
mov esi, ecx
mov dword [esp + 0xc], 0
mov dword [esp + 0x14], eax
push ecx
mov dword [esp + 0x30], 0
mov ecx, esp
mov dword [esp + 0x24], esp
push ecx
call fcn.004336d0
add esp, 4
call fcn.00433210
mov edx, dword [0x49de64]
mov dword [esp + 0x24], eax
add esp, 4
mov eax, dword [edx + 0x14]
sub eax, 5
je 0x43ded5
dec eax
jne 0x43e04c
lea eax, [esp + 0x10]
push 0x8036
push eax
call fcn.00433e80
add esp, 8
push eax
lea ecx, [esi + 0x608]
mov byte [esp + 0x30], 2
call fcn.004659cb
mov byte [esp + 0x2c], 0
lea ecx, [esp + 0x10]
jmp 0x43df01
lea ecx, [esp + 0x18]
push 0x8035
push ecx
call fcn.00433e80
add esp, 8
push eax
lea ecx, [esi + 0x608]
mov byte [esp + 0x30], 1
call fcn.004659cb
mov byte [esp + 0x2c], 0
lea ecx, [esp + 0x18]
call fcn.00465892
mov ecx, esi
call fcn.0043e070
push 0
mov ecx, esi
call fcn.004682c7
mov ecx, dword [0x49de64]
mov eax, dword [ecx + 0xc]
test eax, eax
jne 0x43df93
mov edi, ecx
push 0x49dd08
lea ecx, [esp + 0x14]
call fcn.00465952
mov edx, dword [esp + 0x10]
mov edi, dword [edi + 4]
push edx
push edi
call fcn.00441a0b
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne al
and eax, 0xff
mov edi, eax
call fcn.00465892
test edi, edi
jne 0x43df8d
lea ecx, [esp + 0xc]
push 0x8028
push ecx
call fcn.00433e80
add esp, 8
mov eax, dword [eax]
lea ecx, [esi + 0x5c]
push eax
mov byte [esp + 0x30], 8
call fcn.00468e31
mov byte [esp + 0x2c], 0
lea ecx, [esp + 0xc]
jmp 0x43e047
mov ecx, dword [0x49de64]
mov eax, dword [ecx + 0xc]
test eax, eax
je 0x43dfb4
lea edx, [esp + 0x1c]
push edx
call fcn.0043d1b0
mov ebx, 1
mov dword [esp + 0xc], ebx
mov byte [esp + 0x2c], 3
jmp 0x43dfcf
lea eax, [esp + 0x18]
push eax
call fcn.0043b550
mov ebx, 2
mov dword [esp + 0xc], ebx
mov dword [esp + 0x2c], 4
push eax
lea ecx, [esp + 0x14]
call fcn.00465607
test bl, 2
mov dword [esp + 0x2c], 7
je 0x43dff6
and ebx, 0xfffffffd
lea ecx, [esp + 0x18]
mov dword [esp + 0xc], ebx
call fcn.00465892
test bl, 1
mov dword [esp + 0x2c], 6
je 0x43e00c
lea ecx, [esp + 0x1c]
call fcn.00465892
mov eax, dword [esp + 0x10]
cmp dword [eax - 8], 3
jle 0x43e028
mov ecx, dword [esp + 0x20]
test ecx, ecx
jne 0x43e028
push 5
lea ecx, [esi + 0x98]
jmp 0x43e039
push eax
lea ecx, [esi + 0x5c]
call fcn.00468e31
push 5
lea ecx, [esi + 0x168]
call fcn.00468f32
mov byte [esp + 0x2c], 0
lea ecx, [esp + 0x10]
call fcn.00465892
lea ecx, [esp + 0x14]
mov dword [esp + 0x2c], 0xffffffff
call fcn.00465892
mov ecx, dword [esp + 0x24]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x24
ret
Function at 0x440b59
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
lea eax, [ebp - 4]
push esi
xor esi, esi
push eax
push 0x20019
push esi
push 0x4816b8
push 0x80000000
call dword [sym.imp.advapi32.dll_RegOpenKeyExA]
test eax, eax
jne 0x440bb1
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x104
push eax
push dword [ebp + 8]
push esi
push esi
push 0x49d94c
push dword [ebp - 4]
call dword [sym.imp.advapi32.dll_RegQueryValueExA]
test eax, eax
jne 0x440ba4
push 1
pop esi
push dword [ebp - 4]
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov eax, esi
jmp 0x440bb3
xor eax, eax
pop esi
leave
ret 4

Function at 0x44a3ed
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x49c0c0
cmp edx, dword [eax]
je 0x44a40f
add eax, 8
inc ecx
cmp eax, 0x49c150
jl 0x44a400
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x49c0c0]
jne 0x44a53d
mov eax, dword [0x4a03e8]
cmp eax, 1
je 0x44a517
test eax, eax
jne 0x44a440
cmp dword [0x49b5f4], 1
je 0x44a517
cmp edx, 0xfc
je 0x44a53d
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.kernel32.dll_GetModuleFileNameA]
test eax, eax
jne 0x44a477
lea eax, [ebp - 0x1a4]
push 0x483a08
push eax
call fcn.00449b00
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00447380
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x44a4ba
lea eax, [ebp - 0x1a4]
push eax
call fcn.00447380
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x483a04
push edi
call fcn.00442570
add esp, 0x10
lea eax, [ebp - 0xa0]
push 0x4839e8
push eax
call fcn.00449b00
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00449b10
lea eax, [ebp - 0xa0]
push 0x49a578
push eax
call fcn.00449b10
push dword [esi + 0x49c0c4]
lea eax, [ebp - 0xa0]
push eax
call fcn.00449b10
push 0x12010
lea eax, [ebp - 0xa0]
push 0x4839c0
push eax
call fcn.0044e06d
add esp, 0x2c
pop edi
jmp 0x44a53d
lea eax, [ebp + 8]
lea esi, [esi + 0x49c0c4]
push 0
push eax
push dword [esi]
call fcn.00447380
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.kernel32.dll_GetStdHandle]
push eax
call dword [sym.imp.kernel32.dll_WriteFile]
pop esi
leave
ret
Function at 0x462060
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.00442670
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x46212b
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 0x46212b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x4620de
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x4620e9
or bh, 8
and edi, 0x8000000
je 0x462104
mov eax, dword [0x4a1ddc]
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 0x46212b
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 0x462500
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 0x46252b
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 0x46254f
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 0x46256a
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 0x466cd3
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x466d0b
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.00465d39
push eax
push dword [esi + 0x1c]
call dword [sym.imp.user32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00465d11
jmp 0x466d17
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4
Function at 0x468538
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 0x46857a
call fcn.00471714
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.kernel32.dll_FindResourceA]
cmp eax, edi
je 0x46857a
push eax
push esi
call dword [sym.imp.kernel32.dll_LoadResource]
cmp eax, edi
jne 0x468571
xor eax, eax
jmp 0x468582
push eax
call dword [sym.imp.kernel32.dll_LockResource_1]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00468588
pop edi
pop esi
pop ebx
ret 4

Function at 0x46a5c7
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 0x46a5e9
cmp dword [edi + 0x3c], 0
jne 0x46a5e9
movzx eax, bx
mov dword [edi + 0x3c], eax
call fcn.00471714
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.0046a616
pop edi
pop esi
pop ebx
ret 8

Function at 0x472697
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4726c5
push dword [esi]
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x4726e3
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004725fd
jmp 0x4726e3
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4726e3
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004725fd
test edi, edi
mov eax, edi
jne 0x4726cd
pop edi
push ebx
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x403891
Capabilities:
Delete registry key
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x218
mov ebx, dword [esp + 0x234]
mov edi, dword [esp + 0x230]
mov esi, ebx
and esi, 0x300
lea eax, [esi + 9]
mov ecx, esp
push ecx
push eax
push edi
push dword [esp + 0x238]
call fcn.00407ecc
test eax, eax
jne 0x403980
mov dword [esp + 4], esi
test bl, 2
je 0x40390c
xor eax, eax
lea ecx, [esp + 8]
mov dword [ecx], eax
mov edx, dword [esp]
sub esp, 0x20
xorps xmm0, xmm0
movups xmmword [esp + 0x10], xmm0
mov dword [esp + 0xc], ecx
lea ecx, [esp + 0x2e]
mov dword [esp + 8], ecx
mov dword [esp + 4], eax
mov dword [esp], edx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
cmp eax, 0x103
jne 0x403962
lea ebp, [esp + 0xe]
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
push 0x105
push ebp
push 0
push dword [esp + 0xc]
call esi
test eax, eax
jne 0x40393c
test bl, 1
jne 0x403962
push ebx
push ebp
push dword [esp + 8]
call fcn.00403891
test eax, eax
je 0x403916
push dword [esp]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 3
call fcn.00406f78
test eax, eax
je 0x403972
push 0
push dword [esp + 8]
push edi
push dword [esp + 0x238]
call eax
jmp 0x403980
push dword [esp]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x3eb
jmp 0x403980
push edi
push dword [esp + 0x230]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
add esp, 0x218
pop esi
pop edi
pop ebx
pop ebp
ret 0xc
Function at 0x403e52
Capabilities:
Read file on windows

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 8
mov eax, dword [esp + 0x1c]
test eax, eax
js 0x403e7d
add eax, dword [0x434288]
mov dword [0x43424c], eax
xor ecx, ecx
push ecx
push ecx
push eax
push dword [0x418014]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 4
call fcn.00403f65
test eax, eax
js 0x403ef1
mov eax, esp
push 4
push eax
push dword [0x418014]
call fcn.00407882
test eax, eax
je 0x403f49
add dword [0x43424c], 4
push dword [esp]
call fcn.00403f65
test eax, eax
js 0x403ef1
mov eax, dword [esp + 0x24]
test eax, eax
je 0x403ef5
mov ecx, dword [esp + 0x28]
mov edx, dword [esp]
cmp edx, ecx
cmovl ecx, edx
lea edx, [esp + 4]
push 0
push edx
push ecx
push eax
push dword [0x418014]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov esi, 0xfffffffd
test eax, eax
je 0x403f4e
mov esi, dword [esp + 4]
add dword [0x43424c], esi
jmp 0x403f4e
mov esi, eax
jmp 0x403f4e
mov edi, dword [esp]
test edi, edi
jle 0x403f5a
mov ebx, dword [esp + 0x20]
xor esi, esi
mov ebp, 0x4000
cmp edi, ebp
cmovge edi, ebp
push edi
push 0x434290
push dword [0x418014]
call fcn.00407882
test eax, eax
je 0x403f49
push edi
push 0x434290
push ebx
call fcn.004078b4
test eax, eax
je 0x403f5e
add esi, edi
mov eax, dword [esp]
add dword [0x43424c], edi
sub eax, edi
mov dword [esp], eax
mov edi, eax
test eax, eax
jg 0x403f07
jmp 0x403f4e
mov esi, 0xfffffffd
mov eax, esi
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret 0x10
xor esi, esi
jmp 0x403f4e
mov esi, 0xfffffffe
jmp 0x403f4e
Function at 0x406eec
Capabilities:
Create directory

Disassembly:
push esi
sub esp, 0x20
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0xc]
mov dword [ecx], 0x40001
mov edx, 0x40b540
mov dword [ecx + 4], edx
mov dword [ecx + 8], edx
xor esi, esi
mov dword [ecx + 0xc], esi
mov dword [ecx + 0x10], 0x40b530
mov edx, esp
mov dword [edx], 0xc
mov dword [edx + 4], ecx
mov dword [edx + 8], esi
push edx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x406f37
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, esi
add esp, 0x20
pop esi
ret 4

Function at 0x406fb1
Capabilities:
Create process on windows

Disassembly:
push esi
sub esp, 0x38
mov eax, dword [esp + 0x40]
mov dword [0x468330], 0x44
lea ecx, [esp + 0x28]
mov dword [esp + 0x24], ecx
xor esi, esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x18], esi
movaps xmm0, xmmword [0x40b4d0]
movups xmmword [esp + 8], xmm0
mov dword [esp + 4], eax
mov dword [esp], esi
mov dword [esp + 0x20], 0x468330
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
sub esp, 0x28
test eax, eax
je 0x407011
mov eax, dword [esp + 0x2c]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
mov esi, dword [esp + 0x28]
mov eax, esi
add esp, 0x38
pop esi
ret 4

Function at 0x40701a
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [esp + 4]
mov dword [eax], 0x3c
mov dword [eax + 0x24], 0
jmp dword [sym.imp.SHELL32.dll_ShellExecuteExW]

Function at 0x4070c6
Capabilities:
Delete directory
Delete file
Set file attributes

Disassembly:
push ebp
push ebx
push edi
push esi
mov ebx, dword [esp + 0x14]
push ebx
call fcn.00407117
xor esi, esi
cmp eax, 0xffffffff
je 0x40710e
mov edi, eax
mov eax, dword [esp + 0x18]
mov ebp, eax
test al, 1
jne 0x4070f0
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x4070f7
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x407100
xor esi, esi
inc esi
jmp 0x40710e
mov eax, ebp
test al, 4
jne 0x40710e
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret 8

Function at 0x407117
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push edi
push esi
mov edi, dword [esp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp eax, 0xffffffff
je 0x407138
mov eax, esi
and eax, 0xfffffffe
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, esi
pop esi
pop edi
ret 4