joyce8/EMBER2024-capa huggingface dataset:
Function at 0x411c00
Capabilities:
Get geographical location

Disassembly:
push ebx
mov eax, dword [0x442c24]
push esi
test eax, eax
push edi
push ebp
jne 0x411c48
push 0
mov esi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
push 0
push 1
push 0
call esi
test eax, eax
je 0x411c28
mov eax, 1
jmp 0x411c4e
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x411c41
mov eax, 2
jmp 0x411c4e
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
ret
mov esi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov dword [0x442c24], eax
cmp eax, 1
jne 0x411c73
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push eax
mov ebx, dword [esp + 0x18]
push ecx
push edx
push ebx
call esi
pop ebp
pop edi
pop esi
pop ebx
ret
mov dword [0x442c24], eax
cmp eax, 2
jne 0x411d01
mov edi, dword [esp + 0x24]
test edi, edi
jne 0x411c8f
mov edi, dword [0x441d18]
mov eax, dword [esp + 0x18]
push 0
mov ebx, dword [esp + 0x18]
push 0
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov ebp, eax
test ebp, ebp
jne 0x411cb0
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
ret
push ebp
call fcn.00406d00
add esp, 4
mov esi, eax
test esi, esi
jne 0x411cc6
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
ret
mov eax, dword [esp + 0x18]
push ebp
push esi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x411cf6
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x411d06
push 0
push 0
push 0xffffffffffffffff
push esi
push 1
push edi
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov edi, eax
test edi, edi
jne 0x411d1e
push esi
call fcn.00406d80
add esp, 4
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
ret
push eax
mov eax, dword [esp + 0x20]
push eax
push 0xffffffffffffffff
push esi
push 1
push edi
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov edi, eax
test edi, edi
je 0x411cf6
push esi
call fcn.00406d80
add esp, 4
mov eax, edi
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x411d30
Capabilities:
Get geographical location

Disassembly:
push ebx
mov eax, dword [0x442c28]
push esi
test eax, eax
push edi
push ebp
jne 0x411d78
push 0
mov esi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
push 0
push 1
push 0
call esi
test eax, eax
je 0x411d58
mov eax, 2
jmp 0x411d7e
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x411d71
mov eax, 1
jmp 0x411d7e
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
ret
mov esi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov dword [0x442c28], eax
cmp eax, 2
jne 0x411da3
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push eax
mov ebx, dword [esp + 0x18]
push ecx
push edx
push ebx
call esi
pop ebp
pop edi
pop esi
pop ebx
ret
mov dword [0x442c28], eax
cmp eax, 1
jne 0x411e3f
mov edi, dword [esp + 0x24]
test edi, edi
jne 0x411dbf
mov edi, dword [0x441d18]
mov eax, dword [esp + 0x18]
push 0
mov ebx, dword [esp + 0x18]
push 0
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov ebp, eax
test ebp, ebp
jne 0x411de0
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
ret
lea eax, [ebp*2]
push eax
call fcn.00406d00
add esp, 4
mov esi, eax
test esi, esi
jne 0x411dfd
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
ret
mov eax, dword [esp + 0x18]
push ebp
push esi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x411e34
mov eax, dword [esp + 0x20]
push 0
push 0
test eax, eax
jne 0x411e44
push 0
push 0
push 0xffffffffffffffff
push esi
push 0x220
push edi
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
jne 0x411e5f
push esi
call fcn.00406d80
add esp, 4
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
ret
push eax
mov eax, dword [esp + 0x28]
push eax
push 0xffffffffffffffff
push esi
push 0x220
push edi
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
je 0x411e34
push esi
call fcn.00406d80
add esp, 4
mov eax, edi
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x412610
Capabilities:
Set environment variable

Disassembly:
sub esp, 4
cmp dword [esp + 8], 0
push ebx
push esi
push edi
push ebp
je 0x41284d
mov edx, dword [esp + 0x18]
push 0x3d
push edx
call fcn.00408530
add esp, 8
mov ebp, eax
test ebp, ebp
je 0x41284d
cmp dword [esp + 0x18], ebp
je 0x41284d
cmp byte [ebp + 1], 1
sbb eax, eax
mov ecx, dword [0x4414f0]
neg eax
mov dword [esp + 0x10], eax
cmp dword [0x4414f4], ecx
jne 0x41266d
push ecx
call fcn.004128c0
add esp, 4
mov dword [0x4414f0], eax
cmp dword [0x4414f0], 0
jne 0x41271d
cmp dword [esp + 0x1c], 0
je 0x4126a4
cmp dword [0x4414f8], 0
je 0x4126a4
call fcn.004119b0
test eax, eax
je 0x41271d
mov eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
cmp dword [esp + 0x10], 0
je 0x4126b5
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
cmp dword [0x4414f0], 0
jne 0x4126e9
push 4
call fcn.00406d00
add esp, 4
mov dword [0x4414f0], eax
test eax, eax
jne 0x4126de
mov eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
mov eax, dword [0x4414f0]
mov dword [eax], 0
cmp dword [0x4414f8], 0
jne 0x41271d
push 4
call fcn.00406d00
add esp, 4
mov dword [0x4414f8], eax
test eax, eax
jne 0x412712
mov eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
mov eax, dword [0x4414f8]
mov dword [eax], 0
mov esi, dword [0x4414f0]
sub ebp, dword [esp + 0x18]
mov edx, dword [esp + 0x18]
push ebp
push edx
call fcn.00412860
add esp, 8
mov edi, eax
test edi, edi
jl 0x412785
cmp dword [esi], 0
je 0x412785
cmp dword [esp + 0x10], 0
je 0x41277c
lea ebx, [esi + edi*4]
mov eax, dword [ebx]
push eax
call fcn.00406d80
add esp, 4
cmp dword [ebx], 0
je 0x412769
mov eax, dword [ebx + 4]
add ebx, 4
inc edi
mov dword [ebx - 4], eax
cmp dword [ebx], 0
jne 0x41275a
shl edi, 2
push edi
push esi
call fcn.00409a20
add esp, 8
test eax, eax
je 0x4127cd
jmp 0x4127c8
mov edx, dword [esp + 0x18]
mov dword [esi + edi*4], edx
jmp 0x4127cd
cmp dword [esp + 0x10], 0
jne 0x412843
test edi, edi
jge 0x412796
neg edi
lea eax, [edi*4 + 8]
push eax
push esi
call fcn.00409a20
add esp, 8
test eax, eax
jne 0x4127b8
mov eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
lea ecx, [eax + edi*4]
mov edx, dword [esp + 0x18]
mov dword [ecx], edx
mov dword [ecx + 4], 0
mov dword [0x4414f0], eax
cmp dword [esp + 0x1c], 0
je 0x412839
mov edi, dword [esp + 0x18]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
inc ecx
push ecx
call fcn.00406d00
add esp, 4
mov ebx, eax
test ebx, ebx
je 0x412839
mov edi, dword [esp + 0x18]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
shr ecx, 2
mov esi, edi
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
cmp dword [esp + 0x10], 1
sbb ecx, ecx
lea eax, [ebx + ebp]
mov byte [eax], 0
lea eax, [eax + 1]
and ecx, eax
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
push ebx
call fcn.00406d80
add esp, 4
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
mov eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
Function at 0x415c10
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.00408770
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x415cdb
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 0x415cdb
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x415c8e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x415c99
or bh, 8
and edi, 0x8000000
je 0x415cb4
mov eax, dword [0x4467ec]
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 0x415cdb
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 0x4160b0
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 0x4160db
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 0x4160ff
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 0x41611a
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 0x418574
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
mov edi, dword [esp + 0x10]
mov eax, edi
mov dword [esi + 0x40], edi
shr eax, 0x10
test ax, ax
jne 0x418596
cmp dword [esi + 0x3c], 0
jne 0x418596
movzx eax, di
mov dword [esi + 0x3c], eax
call fcn.0042ef57
mov ebx, dword [eax + 0xc]
push 5
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
push ebx
mov ecx, esi
push dword [esp + 0x18]
push eax
call fcn.004185c3
pop edi
pop esi
pop ebx
ret 8

Function at 0x418627
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
xor edi, edi
call fcn.0042ef57
mov ebx, dword [eax + 0xc]
push 5
push dword [esp + 0x14]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x418658
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push ebx
mov ecx, esi
push dword [esp + 0x18]
push edi
call fcn.0041866b
pop edi
pop esi
pop ebx
ret 8

Function at 0x418983
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 4
push ebx
push esi
mov eax, dword [ecx + 0x48]
push edi
mov edi, dword [ecx + 0x44]
push ebp
mov esi, ecx
mov dword [esp + 0x10], eax
call fcn.0042ef57
cmp dword [esi + 0x40], 0
mov ebx, dword [eax + 0xc]
je 0x4189c2
call fcn.0042ef57
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 0x4189d1
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [esp + 0x10], eax
cmp dword [esp + 0x10], 0
jne 0x4189e2
mov eax, 0xffffffff
jmp 0x418a9c
mov ecx, esi
xor ebp, ebp
call fcn.0041890e
mov edi, eax
call fcn.0041a9f1
push edi
call fcn.0041a3be
test edi, edi
je 0x418a14
push edi
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x418a14
push ebp
push edi
mov ebp, 1
call dword [sym.imp.USER32.dll_EnableWindow]
push esi
call fcn.0041a9ac
push ebx
push edi
call fcn.0041a3be
push eax
mov ecx, esi
push dword [esp + 0x18]
call fcn.0041866b
test eax, eax
je 0x418a68
test byte [esi + 0x24], 0x10
je 0x418a55
mov ebx, 4
mov ecx, esi
call fcn.00419c43
test ah, 1
je 0x418a4d
mov ebx, 5
push ebx
mov ecx, esi
call fcn.0041d0da
push 0x97
xor eax, eax
push eax
mov ecx, esi
push eax
push eax
push eax
push eax
call fcn.00419d3f
test ebp, ebp
je 0x418a75
push 1
push edi
call dword [sym.imp.USER32.dll_EnableWindow]
test edi, edi
je 0x418a8b
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x1c]
jne 0x418a8b
push edi
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x5c]
mov ecx, esi
call fcn.00418944
mov eax, dword [esi + 0x2c]
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
Function at 0x418c7c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
mov esi, dword [ecx + 0x48]
mov eax, dword [ecx + 0x44]
mov edi, ecx
cmp dword [ecx + 0x40], 0
je 0x418ca9
call fcn.0042ef57
mov ebx, dword [eax + 0xc]
push 5
push dword [edi + 0x40]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x418cb6
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
mov eax, 1
test esi, esi
je 0x418cf6
cmp word [esi + 2], 0xffff
mov eax, dword [esi]
jne 0x418cd6
mov cx, word [esi + 0x12]
mov eax, dword [esi + 0xc]
mov dx, word [esi + 0x14]
jmp 0x418cde
mov cx, word [esi + 0xa]
mov dx, word [esi + 0xc]
test eax, 0x1801
jne 0x418cf4
test cx, cx
jne 0x418cf4
test dx, dx
mov eax, 1
je 0x418cf6
xor eax, eax
pop edi
pop esi
pop ebx
ret

Function at 0x4194fe
Capabilities:
Log keystrokes via polling

Disassembly:
mov eax, dword [esp + 4]
push esi
cmp dword [eax + 4], 0x100
jne 0x419543
cmp dword [eax + 8], 0x70
jne 0x419543
mov eax, dword [eax + 0xc]
shr eax, 0x10
test ah, 0x40
jne 0x419543
push 0x10
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
call esi
test ax, ax
jl 0x419543
push 0x11
call esi
test ax, ax
jl 0x419543
push 0x12
call esi
test ax, ax
mov eax, 1
jge 0x419545
xor eax, eax
pop esi
ret 4

Function at 0x41ce94
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor ebx, ebx
push ebp
mov edi, ecx
mov esi, dword [esp + 0x14]
cmp esi, ebx
je 0x41ced6
call fcn.0042ef57
mov ebp, dword [eax + 0xc]
push 0xf0
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x41ced6
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x41cecd
xor eax, eax
jmp 0x41cede
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.0041cee5
pop ebp
pop edi
pop esi
pop ebx
ret 4

Function at 0x41e5e7
Capabilities:
Read file on windows

Disassembly:
push ebp
mov eax, dword [esp + 0xc]
mov ebp, esp
sub esp, 4
test eax, eax
push esi
jne 0x41e5fa
xor eax, eax
jmp 0x41e622
push 0
lea edx, [ebp - 4]
push edx
push eax
push dword [ebp + 8]
push dword [ecx + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x41e61f
push 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0041dc37
mov eax, dword [ebp - 4]
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x41e629
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
push esi
push edi
mov edi, ecx
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x41e671
push 0
lea eax, [ebp - 4]
push eax
push esi
push dword [ebp + 8]
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x41e660
push dword [edi + 0xc]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0041dc37
cmp dword [ebp - 4], esi
je 0x41e671
push dword [edi + 0xc]
push 0xffffffffffffffff
push 0xd
call fcn.0041dd12
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x41ea39
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
lea eax, [ebp - 4]
push edi
xor esi, esi
push eax
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
push str.CLSID
mov dword [ebp - 4], esi
push 0x80000000
call edi
test eax, eax
jne 0x41eadf
lea eax, [ebp - 8]
mov dword [ebp - 8], esi
push eax
push dword [ebp + 8]
push dword [ebp - 4]
call edi
test eax, eax
jne 0x41ead6
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], esi
push eax
push str.InProcServer32
push dword [ebp - 8]
call edi
test eax, eax
jne 0x41eacd
mov edi, 0x104
mov ecx, dword [ebp + 0xc]
push edi
call fcn.0041d983
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x10], edi
lea edi, [ebp - 0x10]
push edi
push eax
push ecx
push esi
push 0x4386b0
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
push 0xffffffffffffffff
mov ecx, dword [ebp + 0xc]
call fcn.0041d9d8
push dword [ebp - 0xc]
cmp esi, 1
sbb esi, esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
neg esi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x41eae9
Capabilities:
Get file system object information

Disassembly:
mov eax, 0x41ec3c
call fcn.00406b68
sub esp, 0x16c
xor eax, eax
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], eax
mov byte [esi], al
cmp dword [0x4451ac], eax
je 0x41eb38
mov dword [ebp - 4], 0xffffffff
call fcn.0041ec46
xor eax, eax
mov ecx, dword [ebp - 0xc]
lea esp, [ebp - 0x184]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push 0x800
lea eax, [ebp - 0x178]
push 0x160
mov edi, dword [ebp + 0xc]
push eax
push 0
push edi
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
test eax, eax
je 0x41eb11
test byte [ebp - 0x16e], 1
je 0x41eb11
lea eax, [ebp - 0x10]
lea ecx, [ebp - 0x18]
push eax
push 0x4385f8
push 0
push 0x4385e8
call fcn.0041e85f
test eax, eax
jl 0x41eb11
lea eax, [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
push eax
push 0x4385d8
mov eax, dword [ecx]
push dword [ebp - 0x10]
call dword [eax]
test eax, eax
jl 0x41ec2c
mov eax, 0
test edi, edi
je 0x41ebc6
push edi
call fcn.004087a0
add esp, 4
lea ebx, [eax + 1]
lea eax, [eax*2 + 5]
and al, 0xfc
call fcn.00408770
mov eax, esp
push ebx
push edi
push eax
call fcn.0041dad3
push 0
mov ecx, dword [ebp - 0x14]
push eax
mov eax, dword [ecx]
push dword [ebp - 0x14]
call dword [eax + 0x14]
test eax, eax
jl 0x41ec21
mov eax, dword [ebp + 8]
test eax, eax
jne 0x41ebe3
xor eax, eax
jmp 0x41ebe6
mov eax, dword [eax + 0x1c]
push 2
mov ecx, dword [ebp - 0x10]
push eax
mov eax, dword [ecx]
push dword [ebp - 0x10]
call dword [eax + 0x4c]
test eax, eax
jl 0x41ec21
push 0
mov ecx, dword [ebp - 0x10]
push 0
mov eax, dword [ecx]
push dword [ebp + 0x14]
push esi
push dword [ebp - 0x10]
call dword [eax + 0xc]
mov dword [ebp - 4], 0xffffffff
call fcn.0041ec46
mov eax, 1
jmp 0x41eb1f
mov eax, dword [ebp - 0x14]
push dword [ebp - 0x14]
mov ebx, dword [eax]
call dword [ebx + 8]
mov eax, dword [ebp - 0x10]
push dword [ebp - 0x10]
mov ebx, dword [eax]
call dword [ebx + 8]
jmp 0x41eb11
Function at 0x41ec4e
Capabilities:
Get disk information

Disassembly:
mov eax, 0x41ed2d
call fcn.00406b68
sub esp, 0x150
lea eax, [ebp - 0x18]
push ebx
push esi
push edi
mov ebx, 0x104
push eax
mov edi, dword [ebp + 8]
push edi
mov esi, dword [ebp + 0xc]
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
test eax, eax
jne 0x41ec9b
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
lea ecx, [ebp - 0x10]
xor ebx, ebx
call fcn.0041d4e5
lea eax, [ebp - 0x10]
mov dword [ebp - 4], ebx
push eax
push edi
call fcn.0041ed3f
push ebx
lea eax, [ebp - 0x14]
push ebx
lea ecx, [ebp - 0x1c]
push eax
push ecx
push ebx
push ebx
push ebx
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
jne 0x41ecda
mov dword [ebp - 4], 0xffffffff
call fcn.0041ed37
jmp 0x41ec86
test byte [ebp - 0x14], 2
jne 0x41ece7
push edi
call dword [sym.imp.USER32.dll_CharUpperA]
test byte [ebp - 0x14], 4
jne 0x41ed17
lea eax, [ebp - 0x15c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x41ed17
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
lea eax, [ebp - 0x130]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov dword [ebp - 4], 0xffffffff
call fcn.0041ed37
mov eax, 1
jmp 0x41ec88
Function at 0x420258
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
push edi
mov edi, ecx
push 0x118
push 0
mov esi, dword [ebp + 8]
push esi
call fcn.00406b10
add esp, 0xc
lea ecx, [esi + 0x12]
push 0x104
push dword [edi + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov ecx, dword [edi + 4]
cmp ecx, 0xffffffff
je 0x42030d
lea eax, [ebp - 0xc]
lea edx, [ebp - 0x14]
push eax
push edx
lea eax, [ebp - 0x1c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
jne 0x4202aa
xor eax, eax
jmp 0x420312
push 0
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esi + 0xc], eax
cmp eax, 0xffffffff
jne 0x4202c1
xor eax, eax
jmp 0x420312
push 0xffffffffffffffff
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 4]
mov byte [esi + 0x10], 0
call fcn.0041636f
mov eax, dword [eax]
push 0xffffffffffffffff
lea ecx, [ebp - 0x14]
lea edi, [esi + 8]
push ecx
mov dword [esi], eax
lea ecx, [ebp - 4]
call fcn.0041636f
mov ecx, dword [eax]
push 0xffffffffffffffff
lea eax, [ebp - 0xc]
mov dword [edi], ecx
push eax
lea ecx, [ebp - 4]
call fcn.0041636f
mov eax, dword [eax]
cmp dword [esi], 0
mov dword [esi + 4], eax
jne 0x420306
mov dword [esi], eax
cmp dword [edi], 0
jne 0x42030d
mov dword [edi], eax
mov eax, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x422aba
Capabilities:
Get file attributes

Disassembly:
push esi
mov esi, ecx
push dword [ecx + 0x20]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push 1
test al, 1
je 0x422ae0
push 0
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x9c]
test eax, eax
jne 0x422af6
xor eax, eax
jmp 0x422afb
mov eax, dword [esi]
mov ecx, esi
push dword [esi + 0x20]
call dword [eax + 0x9c]
test eax, eax
mov eax, 0
je 0x422afb
mov eax, 1
pop esi
ret