joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40dc60
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ecx
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push eax
push ecx
xor edi, edi
push esi
mov dword [esp + 0x18], edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov ebx, eax
cmp ebx, edi
je 0x40dcef
push ebp
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebp, eax
test ebp, ebp
je 0x40dcee
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
push edi
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x40dce7
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push eax
call fcn.004bb320
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov edx, dword [esp + 0x24]
push edx
push 1
push esi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jl 0x40dce7
mov dword [esp + 0x10], 1
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop ebp
mov eax, dword [esp + 0xc]
neg eax
sbb eax, eax
and eax, edi
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x40fe90
Capabilities:
Get graphical window text

Disassembly:
push 0xffffffffffffffff
push 0x4d7dc9
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x521a70]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x2c]
mov ebx, dword [esp + 0x30]
xor esi, esi
mov dword [esp + 0x14], esi
mov dword [ebp + 0x18], 0xf
mov dword [ebp + 0x14], esi
mov dword [esp + 0x18], ebp
mov byte [ebp + 4], 0
push ebx
mov dword [esp + 0x28], esi
mov dword [esp + 0x18], 1
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x40ff32
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
cmp eax, esi
je 0x40ff32
lea edi, [eax + 1]
push edi
call fcn.004b8cfb
add esp, 4
push edi
mov esi, eax
push esi
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x40ff15
sub eax, edx
push eax
push esi
mov ecx, ebp
call fcn.00402230
push esi
call fcn.004bb969
add esp, 4
mov eax, ebp
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret

Function at 0x4102d0
Capabilities:
Get geographical location

Disassembly:
sub esp, 0x408
mov eax, dword [0x521a70]
xor eax, esp
mov dword [esp + 0x404], eax
push ebx
push esi
mov esi, dword [esp + 0x414]
push edi
mov edi, dword [esp + 0x420]
xor ebx, ebx
push 0x3ff
lea eax, [esp + 0x15]
push ebx
push eax
mov dword [esp + 0x18], ebx
mov byte [esp + 0x1c], bl
call fcn.004ba350
mov edx, dword [esp + 0x428]
add esp, 0xc
push 0x400
lea ecx, [esp + 0x14]
push ecx
push edx
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x14], ebx
mov byte [esi + 4], bl
jne 0x410354
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x410345
sub eax, edx
push eax
push edi
jmp 0x410371
lea eax, [esp + 0x10]
lea edx, [eax + 1]
jmp 0x410360
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x410360
sub eax, edx
push eax
lea eax, [esp + 0x14]
push eax
mov ecx, esi
call fcn.00402230
mov ecx, dword [esp + 0x410]
pop edi
mov eax, esi
pop esi
pop ebx
xor ecx, esp
call fcn.004b9963
add esp, 0x408
ret
Function at 0x410410
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0xffffffffffffffff
push 0x4d7e8d
mov eax, dword fs:[0]
push eax
sub esp, 0x42c
mov eax, dword [0x521a70]
xor eax, esp
mov dword [esp + 0x428], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x521a70]
xor eax, esp
push eax
lea eax, [esp + 0x440]
mov dword fs:[0], eax
mov esi, dword [esp + 0x450]
xor ebx, ebx
mov dword [esp + 0x1c], ebx
mov ebp, 0xf
mov dword [esi + 0x18], ebp
mov dword [esi + 0x14], ebx
mov dword [esp + 0x14], esi
mov byte [esi + 4], bl
mov eax, dword [0x56bd04]
push 0x10
push 1
push eax
mov dword [esp + 0x454], ebx
mov dword [esp + 0x28], 1
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, ebx
je 0x4105bc
mov ecx, dword [0x56bd04]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
cmp edi, ebx
mov dword [esp + 0x18], edi
je 0x4105bc
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
movzx edx, word [eax]
shr edx, 1
xor ecx, ecx
cmp edx, ebx
jle 0x4105b5
cmp dword [eax], 0xfeef04bd
je 0x4104da
add ecx, 1
add eax, 4
cmp ecx, edx
jl 0x4104c3
jmp 0x4105b5
mov esi, dword [eax + 8]
add eax, 8
mov edi, dword [eax + 4]
push 0x3ff
lea edx, [esp + 0x41]
add eax, 4
push ebx
push edx
mov byte [esp + 0x48], bl
call fcn.004ba350
add esp, 0xc
cmp dword [esp + 0x454], ebx
mov edx, str._i._i._i._i
jne 0x410510
mov edx, str._i._i
mov eax, edx
mov dword [esp + 0x38], ebp
mov dword [esp + 0x34], ebx
mov byte [esp + 0x24], bl
lea ebp, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x410521
sub eax, ebp
push eax
push edx
lea ecx, [esp + 0x28]
call fcn.00402230
mov eax, dword [esp + 0x24]
mov ebp, 0x10
cmp dword [esp + 0x38], ebp
mov dword [esp + 0x448], 1
jae 0x410555
lea eax, [esp + 0x24]
movzx ecx, di
push ecx
movzx edx, si
shr edi, 0x10
push edi
push edx
shr esi, 0x10
push esi
push eax
lea eax, [esp + 0x50]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [esp + 0x54]
add esp, 0x18
lea edx, [eax + 1]
jmp 0x410580
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x410580
sub eax, edx
push eax
lea ecx, [esp + 0x40]
push ecx
mov ecx, dword [esp + 0x1c]
call fcn.00402230
cmp dword [esp + 0x38], ebp
jb 0x4105ad
mov edx, dword [esp + 0x24]
push edx
call fcn.004b9684
add esp, 4
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
mov ecx, dword [esp + 0x440]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x428]
xor ecx, esp
call fcn.004b9963
add esp, 0x438
ret
Function at 0x4105f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0xffffffffffffffff
push 0x4d7eed
mov eax, dword fs:[0]
push eax
sub esp, 0x42c
mov eax, dword [0x521a70]
xor eax, esp
mov dword [esp + 0x428], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x521a70]
xor eax, esp
push eax
lea eax, [esp + 0x440]
mov dword fs:[0], eax
mov ebx, dword [esp + 0x450]
mov esi, dword [esp + 0x454]
xor ebp, ebp
mov dword [esp + 0x18], ebp
mov dword [ebx + 0x18], 0xf
mov dword [ebx + 0x14], ebp
mov dword [esp + 0x1c], ebx
mov byte [ebx + 4], 0
push 0x10
push 1
push esi
mov dword [esp + 0x454], ebp
mov dword [esp + 0x24], 1
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, ebp
je 0x410796
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
cmp esi, ebp
mov dword [esp + 0x14], esi
je 0x410796
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
movzx edx, word [eax]
shr edx, 1
xor ecx, ecx
cmp edx, ebp
jle 0x41078f
nop
cmp dword [eax], 0xfeef04bd
je 0x4106b7
add ecx, 1
add eax, 4
cmp ecx, edx
jl 0x4106a0
jmp 0x41078f
mov esi, dword [eax + 8]
add eax, 8
mov edi, dword [eax + 4]
add eax, 4
push 0x3ff
lea eax, [esp + 0x41]
push ebp
push eax
mov byte [esp + 0x48], 0
call fcn.004ba350
add esp, 0xc
cmp dword [esp + 0x458], ebp
mov edx, str._i._i._i._i
jne 0x4106ee
mov edx, str._i._i
mov eax, edx
mov dword [esp + 0x34], ebp
mov dword [esp + 0x38], 0xf
mov byte [esp + 0x24], 0
lea ebp, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x410704
sub eax, ebp
push eax
push edx
lea ecx, [esp + 0x28]
call fcn.00402230
mov eax, dword [esp + 0x24]
mov ebp, 0x10
cmp dword [esp + 0x38], ebp
mov dword [esp + 0x448], 1
jae 0x410738
lea eax, [esp + 0x24]
movzx ecx, di
push ecx
movzx edx, si
shr edi, 0x10
push edi
push edx
shr esi, 0x10
push esi
push eax
lea eax, [esp + 0x50]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [esp + 0x54]
add esp, 0x18
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x410760
sub eax, edx
push eax
lea ecx, [esp + 0x40]
push ecx
mov ecx, ebx
call fcn.00402230
cmp dword [esp + 0x38], ebp
jb 0x41078b
mov edx, dword [esp + 0x24]
push edx
call fcn.004b9684
add esp, 4
mov esi, dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, ebx
mov ecx, dword [esp + 0x440]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x428]
xor ecx, esp
call fcn.004b9963
add esp, 0x438
ret
Function at 0x414ac0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x4d8438
mov eax, dword fs:[0]
push eax
sub esp, 0x48
push ebx
push ebp
push esi
push edi
mov eax, dword [0x521a70]
xor eax, esp
push eax
lea eax, [esp + 0x5c]
mov dword fs:[0], eax
mov ebx, dword [esp + 0x74]
xor ebp, ebp
cmp ebx, ebp
je 0x414c94
mov dword [esp + 0x34], ebp
mov dword [esp + 0x38], ebp
mov dword [esp + 0x3c], ebp
mov eax, dword [esp + 0x6c]
mov edx, dword [esp + 0x70]
push eax
lea ecx, [esp + 0x34]
mov dword [esp + 0x68], ebp
call fcn.00414010
mov edi, dword [esp + 0x38]
mov eax, dword [esp + 0x3c]
add esp, 4
cmp edi, eax
jbe 0x414b2f
call fcn.004bb053
mov eax, dword [esp + 0x38]
mov dword [esp + 0x18], edi
cmp dword [esp + 0x34], eax
mov esi, eax
jbe 0x414b44
call fcn.004bb053
mov eax, dword [esp + 0x38]
cmp edi, esi
je 0x414c6e
cmp edi, eax
jb 0x414b55
call fcn.004bb053
cmp dword [edi + 0x18], 0x10
jb 0x414b60
mov edi, dword [edi + 4]
jmp 0x414b63
add edi, 4
mov eax, edi
mov dword [esp + 0x58], 0xf
mov dword [esp + 0x54], ebp
mov byte [esp + 0x44], 0
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x414b80
sub eax, edx
push eax
push edi
lea ecx, [esp + 0x48]
call fcn.00402230
mov ebp, dword [ebx + 4]
lea ecx, [esp + 0x40]
push ecx
lea edx, [esp + 0x20]
push edx
mov ecx, ebx
mov byte [esp + 0x6c], 1
call fcn.0040fbf0
mov esi, eax
mov eax, dword [esi]
test eax, eax
je 0x414bbb
cmp eax, ebx
je 0x414bc0
call fcn.004bb053
cmp dword [esi + 4], ebp
mov esi, 0x10
sete bl
cmp dword [esp + 0x58], esi
mov byte [esp + 0x64], 0
jb 0x414be3
mov eax, dword [esp + 0x44]
push eax
call fcn.004b9684
add esp, 4
test bl, bl
je 0x414c47
mov eax, edi
mov dword [esp + 0x58], 0xf
mov dword [esp + 0x54], 0
mov byte [esp + 0x44], 0
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x414c01
sub eax, edx
push eax
push edi
lea ecx, [esp + 0x48]
call fcn.00402230
lea ecx, [esp + 0x40]
push ecx
mov ecx, dword [esp + 0x78]
lea edx, [esp + 0x28]
push edx
mov byte [esp + 0x6c], 2
call fcn.00411d50
cmp dword [esp + 0x58], esi
mov byte [esp + 0x64], 0
jb 0x414c47
mov eax, dword [esp + 0x44]
push eax
call fcn.004b9684
add esp, 4
mov eax, dword [esp + 0x38]
cmp dword [esp + 0x18], eax
jb 0x414c5a
call fcn.004bb053
mov eax, dword [esp + 0x38]
add dword [esp + 0x18], 0x1c
mov ebx, dword [esp + 0x74]
mov edi, dword [esp + 0x18]
xor ebp, ebp
jmp 0x414b33
mov ecx, dword [esp + 0x34]
cmp ecx, ebp
je 0x414c94
mov edx, dword [esp + 0x74]
push edx
lea edx, [esp + 0x34]
push edx
push eax
push ecx
call fcn.00410b50
mov eax, dword [esp + 0x44]
push eax
call fcn.004b9684
add esp, 0x14
mov ecx, dword [esp + 0x5c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x54
ret
Function at 0x415460
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4d8498
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x521a70]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
call fcn.0049ca50
xor edi, edi
mov ecx, esi
mov dword [esp + 0x18], edi
mov dword [esi], vtable.CShell32Lib.0
call fcn.0049ca90
push str.SHELL32.DLL
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, edi
mov dword [esi + 0x38], eax
je 0x4154fa
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.ShellExecuteA
push eax
call edi
mov dword [esi + 0x28], eax
mov eax, dword [esi + 0x38]
push str.SHGetSpecialFolderPathA
push eax
call edi
mov ecx, dword [esi + 0x38]
push str.SHBrowseForFolderA
push ecx
mov dword [esi + 0x2c], eax
call edi
mov edx, dword [esi + 0x38]
push str.SHGetPathFromIDListA
push edx
mov dword [esi + 0x30], eax
call edi
mov dword [esi + 0x34], eax
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret

Function at 0x416831
Capabilities:
Create thread

Disassembly:
push ecx
push esi
mov esi, ecx
mov eax, dword [esi]
mov edx, dword [eax + 4]
push 0
call edx
mov ecx, dword [esp + 0xc]
lea eax, [esp + 4]
push eax
push 4
push esi
push 0x416820
push 0
push ecx
mov dword [esp + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
xor edx, edx
test eax, eax
setne dl
mov dword [esi + 8], eax
pop esi
mov eax, edx
pop ecx
ret 4

Function at 0x416870
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 8]
test eax, eax
je 0x4168d7
push edi
mov edi, dword [esp + 0xc]
test edi, edi
mov dword [esi + 4], 1
je 0x416899
push edi
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x4168b5
cmp edi, 0xffffffff
je 0x4168b5
mov eax, dword [esi]
mov edx, dword [eax + 0x14]
mov ecx, esi
call edx
mov eax, dword [esi + 8]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
jmp 0x4168be
mov edx, dword [esi]
mov eax, dword [edx + 0x14]
mov ecx, esi
call eax
mov ecx, dword [esi + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 8], 0
mov dword [esi + 4], 0
pop edi
pop esi
ret 4

Function at 0x41b1e0
Capabilities:
Set registry value

Disassembly:
mov edx, dword [esp + 4]
push 4
lea eax, [esp + 0xc]
push eax
mov eax, dword [ecx]
push 4
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
ret 8

Function at 0x41b200
Capabilities:
Set registry value

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
push edi
mov edi, ecx
jne 0x41b216
push 0x80004005
call fcn.004014f0
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [esp + 0xc]
mov edx, dword [edi]
add eax, 1
push eax
mov eax, dword [esp + 0x18]
push esi
push eax
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
ret 0xc
Function at 0x41b240
Capabilities:
Set registry value

Disassembly:
push ecx
push ebp
mov ebp, dword [esp + 0x10]
test ebp, ebp
mov dword [esp + 4], ecx
jne 0x41b258
push 0x80004005
call fcn.004014f0
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
push esi
push edi
xor edi, edi
mov esi, ebp
push esi
call ebx
add eax, 1
add esi, eax
add edi, eax
cmp eax, 1
jne 0x41b265
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx]
push edi
push ebp
push 7
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
pop ebx
pop ebp
pop ecx
ret 8

Function at 0x41b810
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x11c
mov eax, dword [0x521a70]
xor eax, esp
mov dword [esp + 0x118], eax
push ebp
push esi
push edi
mov edi, dword [esp + 0x12c]
mov ebp, ecx
mov eax, dword [ebp]
lea ecx, [esp + 0x14]
push ecx
push 0x2001f
push 0
push edi
push eax
mov dword [esp + 0x2c], edi
mov dword [esp + 0x20], 0
mov dword [esp + 0x28], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov ecx, dword [esp + 0xc]
mov esi, eax
test esi, esi
jne 0x41b87e
test ecx, ecx
je 0x41b870
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
mov ecx, dword [esp + 0x14]
mov esi, eax
mov dword [esp + 0xc], ecx
je 0x41b88c
test ecx, ecx
je 0x41b931
push ecx
jmp 0x41b92b
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
lea edx, [esp + 0x1c]
push edx
push 0
push 0
push 0
lea eax, [esp + 0x20]
push eax
lea edx, [esp + 0x38]
push edx
push 0
push ecx
mov dword [esp + 0x30], 0x100
call esi
test eax, eax
jne 0x41b8fe
jmp 0x41b8c0
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x10]
call fcn.0041b810
mov edi, eax
test edi, edi
jne 0x41b94d
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x10]
push eax
push eax
push eax
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x38]
push eax
push edi
push ecx
mov dword [esp + 0x30], 0x100
call esi
test eax, eax
je 0x41b8c0
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0xc]
test eax, eax
je 0x41b915
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0xc], 0
mov edx, dword [ebp]
push edi
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov esi, eax
mov eax, dword [esp + 0xc]
test eax, eax
je 0x41b931
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [esp + 0x124]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.004b9963
add esp, 0x11c
ret 4
mov eax, dword [esp + 0xc]
test eax, eax
je 0x41b95c
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
jmp 0x41b933
Function at 0x41fb90
Capabilities:
Delete registry value

Disassembly:
push 0xffffffffffffffff
push 0x4d9210
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x521a70]
xor eax, esp
mov dword [esp + 0x3c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x521a70]
xor eax, esp
push eax
lea eax, [esp + 0x54]
mov dword fs:[0], eax
xor esi, esi
mov edi, ecx
xor ebx, ebx
mov dword [esp + 0x14], esi
push 3
push 0x4eab04
lea ecx, [esp + 0x3c]
mov dword [esp + 0x64], ebx
mov dword [esp + 0x54], 0xf
mov dword [esp + 0x50], ebx
mov byte [esp + 0x40], bl
call fcn.00402230
push 3
push 0x4eab00
lea ecx, [esp + 0x3c]
mov byte [esp + 0x64], 1
call fcn.00402300
push 3
push 0x4eaafc
lea ecx, [esp + 0x3c]
call fcn.00402300
push 1
push 0x4ea794
lea ecx, [esp + 0x3c]
call fcn.00402300
push 3
push 0x4eaaf8
lea ecx, [esp + 0x3c]
call fcn.00402300
push 2
push 0x4eaaf4
lea ecx, [esp + 0x3c]
call fcn.00402300
push 3
push 0x4eaaf0
lea ecx, [esp + 0x3c]
call fcn.00402300
push 1
push 0x4eaaec
lea ecx, [esp + 0x3c]
call fcn.00402300
push 1
push 0x4eaae8
lea ecx, [esp + 0x3c]
call fcn.00402300
push 3
push 0x4eaae4
lea ecx, [esp + 0x3c]
call fcn.00402300
push 3
push 0x4eaae0
lea ecx, [esp + 0x3c]
call fcn.00402300
mov eax, dword [esp + 0x38]
mov ebp, 0x10
cmp dword [esp + 0x4c], ebp
jae 0x41fca8
lea eax, [esp + 0x38]
lea ecx, [esp + 0x14]
push ecx
push 0x2001f
push ebx
push eax
push VariantInit
mov dword [esp + 0x28], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x41fd10
mov esi, dword [esp + 0x14]
lea edx, [esp + 0x18]
push edx
mov ecx, edi
mov dword [esp + 0x18], esi
call fcn.0041f720
cmp dword [eax + 0x18], ebp
jb 0x41fce5
mov eax, dword [eax + 4]
jmp 0x41fce8
add eax, 4
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
cmp dword [esp + 0x30], ebp
jb 0x41fd03
mov eax, dword [esp + 0x1c]
push eax
call fcn.004b9684
add esp, 4
cmp esi, ebx
je 0x41fd10
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor esi, esi
cmp dword [esp + 0x4c], ebp
jb 0x41fd23
mov ecx, dword [esp + 0x38]
push ecx
call fcn.004b9684
add esp, 4
cmp esi, ebx
mov dword [esp + 0x4c], 0xf
mov dword [esp + 0x48], ebx
mov byte [esp + 0x38], bl
je 0x41fd3e
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x54]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x3c]
xor ecx, esp
call fcn.004b9963
add esp, 0x4c
ret
Function at 0x4216a0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x10
mov ecx, dword [esp + 0x14]
push esi
xor eax, eax
push eax
push 0x80
mov dword [esp + 0x14], eax
push 3
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], eax
lea eax, [esp + 0x14]
push eax
push 3
push 0x40000000
push ecx
mov dword [esp + 0x24], 0xc
mov dword [esp + 0x2c], 1
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x42171c
push 2
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
push 0
lea edx, [esp + 8]
push edx
push eax
push ecx
push esi
mov dword [esp + 0x18], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
add esp, 0x10
ret

Function at 0x422100
Capabilities:
Get disk information

Disassembly:
sub esp, 0x810
mov eax, dword [0x521a70]
xor eax, esp
mov dword [esp + 0x80c], eax
push ebx
xor ebx, ebx
push 0x3ff
lea eax, [esp + 0x415]
push ebx
push eax
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov byte [esp + 0x41c], bl
call fcn.004ba350
push 0x3ff
lea ecx, [esp + 0x21]
push ebx
push ecx
mov byte [esp + 0x28], bl
call fcn.004ba350
add esp, 0x18
push 0x400
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x14]
push edx
push 0x400
lea eax, [esp + 0x428]
push eax
push 0x4eae64
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
mov ecx, dword [esp + 0x810]
mov eax, dword [esp + 4]
pop ebx
xor ecx, esp
call fcn.004b9963
add esp, 0x810
ret

Function at 0x4223d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ecx
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
push ebx
push esi
mov esi, dword [0x56bd00]
push edi
push eax
push ecx
xor edi, edi
push esi
mov dword [esp + 0x18], edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov ebx, eax
cmp ebx, edi
je 0x422461
push ebp
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebp, eax
test ebp, ebp
je 0x422460
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
push edi
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x422459
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push eax
call fcn.004bb320
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov edx, dword [esp + 0x20]
push edx
push 1
push esi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jl 0x422459
mov dword [esp + 0x10], 1
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop ebp
mov eax, dword [esp + 0xc]
neg eax
sbb eax, eax
and eax, edi
pop edi
pop esi
pop ebx
pop ecx
ret