joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40ffb0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x114]
push ebx
push esi
push edi
mov dword [ebp - 0x10c], 0
mov dword [0x44a514], 0
mov dword [ebp - 4], 0
push 0x104
lea eax, [ebp - 0x108]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp + eax - 0x108], 0
mov dword [ebp - 0x110], eax
mov ecx, eax
xor edx, edx
mov eax, ebp
call fcn.00410160
mov eax, dword [ebp - 0x110]
lea ecx, [eax + 1]
mov eax, dword [0x44a514]
mov edx, dword [eax]
lea eax, [ebp - 0x108]
call fcn.00402ffc
call sub.kernel32.dll_GetCommandLineA
mov dword [0x43b160], eax
mov ebx, eax
jmp 0x410127
inc ebx
movzx eax, byte [ebx]
dec eax
cmp eax, 0x20
jb 0x410030
cmp byte [ebx], 0
je 0x410130
mov byte [ebp - 0x114], 0
mov edi, ebx
mov dword [ebp - 0x110], 0
jmp 0x41009b
mov al, byte [ebx]
cmp al, 1
jb 0x410094
sub al, 0x20
jbe 0x410068
sub al, 2
je 0x41007a
jmp 0x410094
mov al, byte [ebp - 0x114]
test al, al
je 0x4100a0
inc dword [ebp - 0x110]
jmp 0x41009a
cmp byte [ebx + 1], 0x22
je 0x410091
mov al, byte [ebp - 0x114]
test al, al
sete byte [ebp - 0x114]
jmp 0x41009a
inc ebx
jmp 0x41009a
inc dword [ebp - 0x110]
inc ebx
cmp byte [ebx], 0
jne 0x410058
test dword [ebp - 0x10c], 0xffffffff
je 0x410121
mov ecx, dword [ebp - 0x110]
mov edx, dword [ebp - 0x10c]
mov eax, ebp
call fcn.00410160
mov byte [ebp - 0x114], 0
mov ebx, edi
mov eax, dword [0x44a514]
mov edx, dword [ebp - 0x10c]
mov esi, dword [eax + edx*4]
jmp 0x410119
mov al, byte [ebx]
cmp al, 1
jb 0x410113
sub al, 0x20
jbe 0x4100e8
sub al, 2
je 0x4100f9
jmp 0x410113
mov al, byte [ebp - 0x114]
test al, al
je 0x41011e
mov al, byte [ebx]
mov byte [esi], al
inc esi
jmp 0x410118
cmp byte [ebx + 1], 0x22
je 0x410110
mov al, byte [ebp - 0x114]
test al, al
sete byte [ebp - 0x114]
jmp 0x410118
inc ebx
jmp 0x410118
mov al, byte [ebx]
mov byte [esi], al
inc esi
inc ebx
cmp byte [ebx], 0
jne 0x4100d8
mov byte [esi], 0
inc dword [ebp - 0x10c]
cmp byte [ebx], 0
jne 0x410031
mov ebx, dword [ebp - 0x10c]
mov dword [0x44a510], ebx
lea edx, [ebx + 1]
shl edx, 2
mov eax, 0x44a514
call fcn.0040de54
mov eax, dword [0x44a514]
mov dword [eax + ebx*4], 0
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4117f0
Capabilities:
Reference wmi statements

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x90]
push ebx
push esi
mov ebx, eax
lea eax, [ebp - 0x10]
call fcn.0040ba90
lea eax, [ebp - 0x20]
call fcn.0040ba90
lea eax, [ebp - 0x30]
call fcn.0040ba90
lea eax, [ebp - 0x40]
call fcn.0040ba90
mov dword [ebp - 0x44], 0
lea eax, [ebp - 0x90]
call fcn.0040ba90
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x74], 0
lea eax, [ebp - 0x60]
call fcn.0040ba90
mov dword [ebp - 0x4c], 0
xor eax, eax
push fcn.00411790
push ebp
push 0x410c8c
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [0x43c36c], 0
lea edx, [ebp - 0x4c]
mov eax, str.WbemScripting.SWbemLocator
call fcn.0041ff6c
mov eax, dword [ebp - 0x4c]
lea edx, [ebp - 0x10]
call fcn.0040bb0c
lea eax, [ebp - 0x60]
call fcn.0040ba9c
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x6c], 0
mov eax, str.rootCIMV2
mov dword [ebp - 0x68], eax
mov eax, str.localhost
mov dword [ebp - 0x64], eax
lea eax, [ebp - 0x70]
push eax
mov ecx, 0x43ec24
lea edx, [ebp - 0x10]
lea eax, [ebp - 0x60]
call fcn.0040bb18
lea edx, [ebp - 0x60]
lea eax, [ebp - 0x20]
call fcn.0040babc
lea eax, [ebp - 0x60]
call fcn.0040ba9c
mov dword [ebp - 0x6c], 0x30
mov eax, 0x43ebbc
mov dword [ebp - 0x68], eax
mov eax, 0x43ec6c
mov dword [ebp - 0x64], eax
lea eax, [ebp - 0x6c]
push eax
mov ecx, 0x43ec3c
lea edx, [ebp - 0x20]
lea eax, [ebp - 0x60]
call fcn.0040bb18
lea edx, [ebp - 0x60]
lea eax, [ebp - 0x30]
call fcn.0040babc
mov esi, 0x43eb1c
lea eax, [ebp - 0x60]
call fcn.0040ba9c
lea eax, [ebp - 0x64]
push eax
mov ecx, 0x43ec4c
lea edx, [ebp - 0x30]
lea eax, [ebp - 0x60]
call fcn.0040bb18
lea eax, [ebp - 0x60]
lea edx, [ebp - 0x78]
call fcn.0040bae8
mov eax, dword [ebp - 0x78]
lea ecx, [ebp - 0x74]
mov edx, esi
call fcn.0040b00c
mov edx, dword [ebp - 0x74]
lea eax, [ebp - 0x44]
call fcn.0040afe4
jmp 0x4119b0
lea eax, [ebp - 0x60]
call fcn.0040ba9c
lea eax, [ebp - 0x64]
push eax
mov ecx, 0x43ec58
lea edx, [ebp - 0x40]
lea eax, [ebp - 0x60]
call fcn.0040bb18
lea eax, [ebp - 0x60]
call fcn.0040bf30
lea ecx, [ebp - 0x7c]
mov edx, 8
call fcn.00413d30
mov eax, dword [ebp - 0x7c]
mov edx, ebx
call fcn.0040955c
lea eax, [ebp - 0x90]
call fcn.00425d68
lea eax, [ebp - 0x90]
lea edx, [ebp - 0x60]
call fcn.0040be20
lea edx, [ebp - 0x60]
lea eax, [ebp - 0x40]
call fcn.0040babc
jmp 0x4119d4
lea esi, [ebp - 0x40]
mov eax, esi
call fcn.0040ba9c
lea eax, [ebp - 0x48]
push eax
push esi
push 1
push dword [ebp - 0x44]
mov eax, dword [ebp - 0x44]
mov eax, dword [eax]
call dword [eax + 0xc]
test eax, eax
je 0x41194f
xor edx, edx
pop eax
add esp, 0xc
mov dword fs:[edx], eax
mov eax, ebp
call fcn.00411790
pop esi
pop ebx
leave
ret
Function at 0x411db8
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x2008]
mov dword [esp + 0x100c], eax
mov dword [esp + 0xc], eax
push eax
push ebx
mov dword [ebp - 4], eax
mov ebx, edx
mov eax, dword [ebp - 4]
call fcn.00409418
mov dword [ebp - 0x200c], 0
mov dword [ebp - 0x2008], 0
xor eax, eax
push fcn.00411d94
push ebp
push 0x410c8c
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
xor edx, edx
call fcn.00409670
push 0x1ffe
lea eax, [ebp - 0x2004]
push eax
mov eax, dword [ebp - 4]
lea edx, [ebp - 0x2008]
call fcn.004095c8
mov eax, dword [ebp - 0x2008]
test eax, eax
jne 0x411e35
mov eax, 0x44a574
push eax
call sub.kernel32.dll_GetEnvironmentVariableW
test eax, eax
je 0x411e68
push 1
lea eax, [ebp - 0x200c]
push eax
lea eax, [ebp - 0x2004]
xor cx, cx
mov edx, 0xffe
call fcn.00409a64
mov eax, dword [ebp - 0x200c]
mov edx, ebx
call fcn.0040955c
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
mov eax, ebp
call fcn.00411d94
pop ebx
leave
ret
Function at 0x412354
Capabilities:
Create process on windows
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x60]
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x60], eax
mov al, byte [ebp + 8]
mov byte [ebp - 0x5c], al
mov eax, dword [ebp - 4]
call fcn.00409418
mov eax, dword [ebp - 8]
call fcn.00409418
mov eax, dword [ebp - 0xc]
call fcn.00409418
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 0
xor eax, eax
push fcn.0041231c
push ebp
push 0x410c8c
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x48]
xor cl, cl
mov edx, 0x3c
call fcn.00403038
mov dword [ebp - 0x48], 0x3c
mov dword [ebp - 0x44], 0x40
mov eax, dword [ebp - 4]
lea edx, [ebp - 0x50]
call fcn.004095c8
mov eax, dword [ebp - 0x50]
test eax, eax
jne 0x4123e7
mov eax, 0x44a574
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 8]
lea edx, [ebp - 0x54]
call fcn.004095c8
mov eax, dword [ebp - 0x54]
test eax, eax
jne 0x412401
mov eax, 0x44a574
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0xc]
lea edx, [ebp - 0x58]
call fcn.004095c8
mov eax, dword [ebp - 0x58]
test eax, eax
jne 0x41241b
mov eax, 0x44a574
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x48]
push eax
call sub.shell32.dll_ShellExecuteExW
test al, al
je 0x4124d8
xor ebx, ebx
xor edi, edi
push dword [ebp - 0x10]
call sub.kernel32.dll_GetProcessId
mov esi, eax
push 0x64
call sub.kernel32.dll_Sleep
mov eax, esi
call fcn.004122f4
mov edi, eax
lea eax, [ebp - 0x4c]
push eax
push dword [ebp - 0x10]
call sub.kernel32.dll_GetExitCodeProcess
add ebx, 0x64
test edi, edi
ja 0x412477
cmp ebx, 0xbb8
jg 0x412477
cmp dword [ebp - 0x4c], 0x103
je 0x412443
test edi, edi
jbe 0x4124b5
test dword [ebp - 0x60], 0xffffffff
je 0x4124b5
push 0
push 0
push 8
call sub.user32.dll_GetForegroundWindow
push eax
call sub.user32.dll_SendMessageA
push esi
call sub.user32.dll_AllowSetForegroundWindow
push edi
call sub.user32.dll_SetForegroundWindow
push edi
call sub.user32.dll_SetActiveWindow
push edi
call sub.user32.dll_SetFocus
push 9
push edi
call sub.user32.dll_ShowWindow
mov al, byte [ebp - 0x5c]
test al, al
je 0x4124d8
lea eax, [ebp - 0x4c]
push eax
push dword [ebp - 0x10]
call sub.kernel32.dll_GetExitCodeProcess
push 0x64
call sub.kernel32.dll_Sleep
cmp dword [ebp - 0x4c], 0x103
je 0x4124bc
xor edx, edx
pop eax
add esp, 0xc
mov dword fs:[edx], eax
mov eax, ebp
call fcn.0041231c
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x412500
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 4]
push ebx
push esi
mov esi, eax
mov dword [ebp - 4], 0
xor eax, eax
push fcn.004124f0
push ebp
push 0x410c8c
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
call sub.kernel32.dll_GetCurrentDirectoryW
mov ebx, eax
lea edx, [ebx - 1]
lea eax, [ebp - 4]
call fcn.00409c48
mov eax, dword [ebp - 4]
test eax, eax
jne 0x412547
mov eax, 0x44a574
push eax
push ebx
call sub.kernel32.dll_GetCurrentDirectoryW
mov eax, esi
mov edx, dword [ebp - 4]
mov ecx, 0x43eda4
call fcn.004096a4
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
mov eax, ebp
call fcn.004124f0
pop esi
pop ebx
leave
ret

Function at 0x41258c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 8]
push ebx
mov ebx, eax
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
xor eax, eax
push fcn.00412574
push ebp
push 0x410c8c
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, ebx
lea eax, [ebp - 4]
call fcn.00409670
mov edx, dword [ebp - 4]
mov ecx, 1
mov eax, 0x43ed84
call fcn.00409fa4
test eax, eax
je 0x4125ec
lea eax, [ebp - 8]
call fcn.00412500
mov edx, dword [ebp - 8]
lea ecx, [ebp - 4]
mov eax, ebx
call fcn.00411c68
mov edx, dword [ebp - 4]
mov ecx, 1
mov al, 0x3a
call fcn.0040a05c
test eax, eax
jne 0x412616
lea eax, [ebp - 8]
call fcn.00412500
mov edx, dword [ebp - 8]
mov ecx, ebx
lea eax, [ebp - 4]
call fcn.004096a4
jmp 0x412620
mov edx, ebx
lea eax, [ebp - 4]
call fcn.00409670
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
setne bl
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
mov eax, ebp
call fcn.00412574
mov al, bl
pop ebx
leave
ret
Function at 0x41c034
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x26c]
push ebx
push esi
mov dword [ebp - 4], eax
mov byte [ebp - 8], dl
mov bl, cl
mov edx, 0x441dc0
lea eax, [ebp - 0x268]
call fcn.0040c184
xor eax, eax
push fcn.0041c01c
push ebp
push 0x410c8c
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
test eax, eax
jne 0x41c077
mov eax, 0x44a574
push eax
call sub.kernel32.dll_GetFileAttributesW
mov esi, eax
cmp esi, 0xffffffff
jne 0x41c0e0
call sub.kernel32.dll_GetLastError
sub eax, 2
cmp eax, 2
jb 0x41c0be
cmp eax, 0xd
stc
je 0x41c0be
cmp eax, 0x13
stc
je 0x41c0be
cmp eax, 0x33
stc
je 0x41c0be
cmp eax, 0x41
stc
je 0x41c0be
cmp eax, 0x55
stc
je 0x41c0be
cmp eax, 0x79
stc
je 0x41c0be
cmp eax, 0x9f
stc
je 0x41c0be
clc
jb 0x41c0d7
mov eax, ebp
call fcn.0041c174
test al, al
je 0x41c0d7
mov byte [ebp - 0x26c], 1
jmp 0x41c158
mov byte [ebp - 0x26c], 0
jmp 0x41c158
mov eax, esi
and eax, 0x10
movzx edx, byte [ebp - 8]
cmp eax, dword [edx*4 + 0x43c304]
sete byte [ebp - 0x26c]
mov al, bl
and al, byte [ebp - 0x26c]
je 0x41c158
and esi, 0x400
je 0x41c158
lea ebx, [ebp - 0x268]
mov edx, 0x441dc0
mov eax, ebx
call fcn.0040c210
mov edx, ebx
mov eax, dword [ebp - 4]
xor cl, cl
call fcn.0041bcf8
test eax, eax
je 0x41c130
dec eax
je 0x41c148
jmp 0x41c151
mov dl, byte [ebp - 8]
mov eax, dword [ebp - 0x268]
xor cl, cl
call fcn.0041c034
mov byte [ebp - 0x26c], al
jmp 0x41c158
mov byte [ebp - 0x26c], 1
jmp 0x41c158
mov byte [ebp - 0x26c], 0
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
mov eax, ebp
call fcn.0041c01c
mov al, byte [ebp - 0x26c]
pop esi
pop ebx
leave
ret

Function at 0x41c1d8
Capabilities:
Check if file exists

Disassembly:
mov cl, dl
xor dl, dl
jmp fcn.0041c034

Function at 0x41c1e4
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov cl, dl
mov dl, 1
jmp fcn.0041c034

Function at 0x41c218
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0xc]
push ebx
push esi
push edi
mov edi, eax
mov esi, edx
mov dword [ebp - 8], ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], 0
xor eax, eax
push fcn.0041c208
push ebp
push 0x410c8c
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoW
mov ebx, eax
test ebx, ebx
jle 0x41c288
lea edx, [ebx - 1]
lea eax, [ebp - 4]
call fcn.00409c48
cmp ebx, 1
jle 0x41c278
push ebx
mov eax, dword [ebp - 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoW
mov ebx, eax
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
xor dx, dx
call fcn.004094f4
jmp 0x41c293
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
call fcn.004077d4
xor edx, edx
pop eax
add esp, 0xc
mov dword fs:[edx], eax
mov eax, ebp
call fcn.0041c208
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x41c650
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x10]
push ebx
push esi
mov dword [ebp - 0x10], 0
xor eax, eax
push fcn.0041c640
push ebp
push 0x410c8c
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
inc ebx
lea eax, [ebx*4 + 0x44b8b4]
xor edx, edx
call fcn.004077d4
mov dword [ebx*4 + 0x44b8d0], 0xffffffff
cmp ebx, 7
jl 0x41c675
call sub.kernel32.dll_GetThreadLocale
mov esi, eax
push 0xb
lea eax, [ebp - 0xc]
push eax
push 0x100b
push esi
call sub.kernel32.dll_GetLocaleInfoA
test eax, eax
jle 0x41c6fb
push 1
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
xor cx, cx
mov edx, 0xa
call fcn.004080c4
mov eax, dword [ebp - 0x10]
mov edx, 1
call fcn.00413df0
mov ebx, eax
sub eax, 3
cmp eax, 3
jae 0x41c6fb
push 4
push ebx
push esi
mov eax, 0x41c53c
push eax
call sub.kernel32.dll_EnumCalendarInfoA
push 3
push ebx
push esi
mov eax, 0x41c5c4
push eax
call sub.kernel32.dll_EnumCalendarInfoA
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
mov eax, ebp
call fcn.0041c640
pop esi
pop ebx
leave
ret

Function at 0x41ccc8
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x94]
mov dword [0x44b8f8], 0
mov dword [ebp - 0x94], 0x94
lea eax, [ebp - 0x94]
push eax
call sub.kernel32.dll_GetVersionExA
mov eax, dword [ebp - 0x84]
mov dword [0x44b7a8], eax
mov eax, dword [ebp - 0x90]
mov dword [0x44b7ac], eax
mov eax, dword [ebp - 0x8c]
mov dword [0x44b7b0], eax
mov eax, dword [ebp - 0x88]
mov dword [0x44b7b4], eax
mov edx, 0x44b7b9
lea eax, [ebp - 0x80]
mov ecx, pe_nt_image_headers32
call fcn.00402ffc
lea eax, [ebp - 0x80]
call fcn.00403d5c
mov byte [0x44b7b8], al
mov eax, str.kernel32
push eax
call sub.kernel32.dll_GetModuleHandleA
mov dword [0x44b8fc], eax
test eax, eax
je 0x41cd67
mov eax, str.GetDiskFreeSpaceExA
push eax
push dword [0x44b8fc]
call sub.kernel32.dll_GetProcAddress
mov dword [0x44b8f8], eax
cmp dword [0x44b7ac], 6
jae 0x41cd7a
mov dword [0x43bc54], 0
cmp dword [0x44b7ac], 6
jb 0x41cd96
cmp dword [0x44b7b0], 1
jb 0x41cd96
mov dword [0x43bc58], 2
leave
ret
Function at 0x42f048
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x118]
push ebx
push esi
push edi
mov esi, eax
mov edi, edx
mov dword [ebp - 0x118], ecx
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x114], eax
mov al, byte [ebp + 8]
mov byte [ebp - 0x110], al
mov dword [ebp - 0xc], 0
xor eax, eax
push fcn.0042f038
push ebp
push 0x410c8c
push dword fs:[eax]
mov dword fs:[eax], esp
push dword [ebp - 0x114]
push dword [ebp - 0x118]
push edi
call sub.kernel32.dll_FindResourceA
mov dword [esi + 0x10], eax
test eax, eax
jne 0x42f158
mov al, byte [ebp - 0x110]
test al, al
je 0x42f121
push 0xff
mov eax, dword [ebp - 0x118]
lea ecx, [ebp - 0x10c]
mov edx, 0xffffffff
call fcn.00404200
lea ecx, [ebp - 0xc]
xor dx, dx
lea eax, [ebp - 0x10c]
call fcn.00407f94
xor cl, cl
xor dx, dx
lea eax, [ebp - 0xc]
call fcn.00408ae4
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0xb
lea eax, [ebp - 8]
push eax
push 0
mov ecx, dword [str.Resource___s__not_found]
mov edx, 1
mov eax, 0x446a78
call fcn.0041ae0c
mov edx, 0x42f0b2
mov ecx, ebp
call fcn.00410b5c
jmp 0x42f158
mov eax, dword [ebp - 0x118]
mov dword [ebp - 4], eax
mov dword [ebp - 8], 6
lea eax, [ebp - 8]
push eax
push 0
mov ecx, dword [str.Resource___s__not_found]
mov edx, 1
mov eax, 0x446a78
call fcn.0041ae0c
mov edx, 0x42f121
mov ecx, ebp
call fcn.00410b5c
push dword [esi + 0x10]
push edi
call sub.kernel32.dll_LoadResource
mov dword [esi + 0x14], eax
test eax, eax
jne 0x42f21c
mov al, byte [ebp - 0x110]
test al, al
je 0x42f1e5
push 0xff
mov eax, dword [ebp - 0x118]
lea ecx, [ebp - 0x10c]
mov edx, 0xffffffff
call fcn.00404200
lea ecx, [ebp - 0xc]
xor dx, dx
lea eax, [ebp - 0x10c]
call fcn.00407f94
xor cl, cl
xor dx, dx
lea eax, [ebp - 0xc]
call fcn.00408ae4
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0xb
lea eax, [ebp - 8]
push eax
push 0
mov ecx, dword [str.Resource___s__not_found]
mov edx, 1
mov eax, 0x446a78
call fcn.0041ae0c
mov edx, 0x42f176
mov ecx, ebp
call fcn.00410b5c
jmp 0x42f21c
mov eax, dword [ebp - 0x118]
mov dword [ebp - 4], eax
mov dword [ebp - 8], 6
lea eax, [ebp - 8]
push eax
push 0
mov ecx, dword [str.Resource___s__not_found]
mov edx, 1
mov eax, 0x446a78
call fcn.0041ae0c
mov edx, 0x42f1e5
mov ecx, ebp
call fcn.00410b5c
push dword [esi + 0x10]
push edi
call sub.kernel32.dll_SizeofResource
mov ebx, eax
push dword [esi + 0x14]
call sub.kernel32.dll_LockResource
mov edx, eax
mov eax, esi
mov ecx, ebx
call fcn.0042edec
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
mov eax, ebp
call fcn.0042f038
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x40a2c0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x400
mov eax, dword [0x4b09fc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
lea edx, [ebp - 0x3f4]
push edx
push 0x20019
push 0
push str.TypeLib
push SysReAllocString
mov dword [ebp - 0x3fc], eax
mov dword [ebp - 0x400], ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push SysReAllocString
mov esi, eax
call edi
test esi, esi
je 0x40a327
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046eb31
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x3f4]
lea eax, [ebp - 0x3f0]
push eax
push 0x20019
push 0
push ebx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov edx, dword [ebp - 0x3f4]
push edx
mov esi, eax
call edi
test esi, esi
jne 0x40a315
mov edx, dword [ebp - 0x3f0]
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x3f8]
push eax
lea ecx, [ebp - 0x3ec]
push ecx
push esi
push edx
mov dword [ebp - 0x3f8], 0x3e8
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov esi, eax
mov eax, dword [ebp - 0x3f0]
push eax
call edi
test esi, esi
jne 0x40a315
mov ecx, dword [ebp - 0x400]
mov edx, dword [ebp - 0x3fc]
push ecx
push edx
lea eax, [ebp - 0x3ec]
push str._d._d
push eax
call fcn.0047156a
mov ecx, dword [ebp - 4]
add esp, 0x10
pop edi
xor ecx, ebp
mov al, 1
pop esi
call fcn.0046eb31
mov esp, ebp
pop ebp
ret
Function at 0x40a3c0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2720
call fcn.00486160
mov eax, dword [0x4b09fc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push 0x270f
mov esi, ecx
lea ecx, [ebp - 0x2713]
push 0
push ecx
mov ebx, edx
mov dword [ebp - 0x2720], eax
mov byte [ebp - 0x2715], 0
mov byte [ebp - 0x2714], 0
call fcn.004783c0
mov eax, esi
add esp, 0xc
mov ecx, eax
mov edi, edi
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x40a410
push edi
lea edi, [ebp - 0x2714]
sub eax, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x40a421
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
test ebx, ebx
je 0x40a486
lea edi, [ebp - 0x2714]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x40a442
mov dx, word [0x499f90]
mov eax, ebx
mov word [edi], dx
mov ecx, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x40a458
lea edi, [ebp - 0x2714]
sub eax, ecx
mov esi, ecx
dec edi
lea ebx, [ebx]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x40a470
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push 0
lea eax, [ebp - 0x271c]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
lea ecx, [ebp - 0x2714]
push ecx
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
pop edi
test eax, eax
jne 0x40a52b
mov esi, dword [ebp - 0x2720]
test esi, esi
je 0x40a4e5
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40a4c2
sub eax, edx
mov edx, dword [ebp - 0x271c]
inc eax
push eax
push esi
push 1
push 0
push 0
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x40a506
mov eax, dword [ebp - 0x271c]
push eax
mov bl, 1
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov al, bl
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046eb31
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x271c]
mov bl, byte [ebp - 0x2715]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov al, bl
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046eb31
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, byte [ebp - 0x2715]
pop esi
xor ecx, ebp
pop ebx
call fcn.0046eb31
mov esp, ebp
pop ebp
ret

Function at 0x40a550
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2714
call fcn.00486160
mov eax, dword [0x4b09fc]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x270f
lea eax, [ebp - 0x2713]
push 0
push eax
mov esi, ecx
mov byte [ebp - 0x2714], 0
call fcn.004783c0
mov eax, esi
add esp, 0xc
mov edx, eax
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40a590
lea edi, [ebp - 0x2714]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x40a5a0
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 0x2714]
push ecx
push SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyA]
mov ecx, dword [ebp - 4]
test eax, eax
sete al
pop edi
xor ecx, ebp
pop esi
call fcn.0046eb31
mov esp, ebp
pop ebp
ret
Function at 0x415330
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x493518
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push esi
mov eax, dword [0x4b09fc]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov esi, ecx
cmp word [esi], 0xc
jne 0x415374
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
lea eax, [esp + 0xc]
jmp 0x41538b
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov dx, word [esi]
mov word [esp + 0xc], dx
lea eax, [esp + 0x14]
mov ecx, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.OLEAUT32.dll_SafeArrayPutElement]
xor ecx, ecx
cmp eax, ecx
jge 0x4153f8
mov dword [esp + 0x20], vtable.tcomxException.0
mov dword [esp + 0x28], vtable.tStringBuffer.0
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], ecx
mov dword [esp + 0x40], ecx
mov ebx, dword [str.Internal_Error]
lea esi, [esp + 0x28]
mov dword [esp + 0x24], ecx
call fcn.0040b410
mov edx, dword [esp + 0x30]
push edx
mov ecx, 0x4985d4
call fcn.00409350
add esp, 4
push 0x4ac5b0
lea eax, [esp + 0x24]
push eax
mov dword [esp + 0x48], 0xffffffff
call fcn.0047815e
mov edx, dword [esp + 0x10]
push 0xffff
push ecx
push ecx
mov ecx, dword [esp + 0x18]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x30]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x34]
mov dword [eax + 8], ecx
push edi
mov dword [eax + 0xc], edx
call fcn.00412c30
add esp, 0x20
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov eax, dword [edi + 8]
sub eax, dword [edi + 0xc]
sar eax, 4
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret