joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4019f2
Capabilities:
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x9c]
sub esp, 0x11c
mov eax, dword [0x42f080]
xor eax, ebp
mov dword [ebp + 0x98], eax
push esi
push edi
lea esi, [ebp + 0xa4]
lea edi, [ebp - 0x7c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 0x103
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x6b]
push 0
push eax
movsd dword es:[edi], dword [esi]
mov byte [ebp - 0x6c], 0
call fcn.00414930
mov eax, dword [ebp - 0x70]
mov ecx, eax
shr ecx, 0x18
push ecx
mov ecx, eax
shr ecx, 0x10
movzx ecx, cl
push ecx
mov ecx, eax
shr ecx, 8
movzx ecx, cl
push ecx
movzx eax, al
push eax
mov eax, dword [ebp - 0x74]
mov ecx, eax
shr ecx, 0x18
push ecx
mov ecx, eax
shr ecx, 0x10
movzx ecx, cl
push ecx
mov ecx, eax
shr ecx, 8
movzx eax, al
movzx ecx, cl
push ecx
push eax
mov eax, dword [ebp - 0x78]
shr eax, 0x10
push eax
movzx eax, word [ebp - 0x78]
push eax
push dword [ebp - 0x7c]
lea eax, [ebp - 0x6c]
push str._08X__04X__04X__02X_02X__02X_02X_02X_02X_02X_02X
push 0x104
push eax
call fcn.004123e3
add esp, 0x44
lea eax, [ebp - 0x80]
push eax
mov edi, str.CLSIDCAA2D3B1_4BB5_4a45_A17A_122773379D99
push edi
mov esi, SysReAllocStringLen
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x401ac1
lea eax, [ebp - 0x80]
push eax
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
je 0x401ac1
xor eax, eax
jmp 0x401af4
lea eax, [ebp - 0x6c]
xor esi, esi
push eax
inc esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
lea eax, [ebp - 0x6c]
push eax
push esi
push 0
push dword [ebx + 0x10]
push dword [ebp - 0x80]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x401ae9
xor esi, esi
push dword [ebp - 0x80]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [ebp + 0x98]
pop edi
xor ecx, ebp
pop esi
call fcn.00411d8c
add ebp, 0x9c
leave
ret 0x10
Function at 0x401e77
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x42f080]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor ebx, ebx
push 0x103
lea eax, [ebp - 0x10f]
push ebx
push eax
mov edi, ecx
mov dword [ebp - 0x114], ebx
mov byte [ebp - 0x110], bl
call fcn.00414930
mov eax, dword [edi + 0x10c]
add eax, eax
add esp, 0xc
push eax
mov dword [ebp - 0x118], 0x104
call fcn.00412567
mov esi, eax
mov eax, dword [edi + 0x10c]
pop ecx
add eax, eax
push eax
push ebx
push esi
call fcn.00414930
lea eax, [edi + 0xf8]
add esp, 0xc
cmp dword [eax + 0x18], 0x10
jb 0x401ef1
mov eax, dword [eax + 4]
jmp 0x401ef4
add eax, 4
mov ecx, dword [edi + 0x10c]
add ecx, ecx
push ecx
push esi
mov ebx, eax
call fcn.0040dca1
pop ecx
pop ecx
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea eax, [edi + 0xc0]
cmp dword [eax + 0x18], 0x10
jb 0x401f21
mov eax, dword [eax + 4]
jmp 0x401f24
add eax, 4
lea ecx, [ebp - 0x110]
push ecx
push ebx
push esi
push eax
add edi, 0x60
lea ecx, [ebp - 0x118]
call fcn.00406f5b
cmp eax, reloc.OLEAUT32.dll_SysStringLen
je 0x401f47
test eax, eax
jne 0x401f51
mov dword [ebp - 0x114], 1
push esi
call fcn.004120bd
mov eax, dword [ebp - 0x114]
pop ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00411d8c
leave
ret

Function at 0x40470e
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
and dword [ebp - 8], 0
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, dword [edi + 0xc]
lea esi, [ebp - 0x18]
call fcn.00405a50
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0xc], eax
mov edi, dword [ebp + 8]
mov ebx, dword [edi + 0x10]
lea esi, [ebp - 0x18]
call fcn.00405a50
mov eax, dword [ebp - 0x10]
xor edi, edi
cmp eax, edi
je 0x404751
cmp eax, dword [ebp - 0x18]
je 0x404756
call fcn.004123b5
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x14]
je 0x404810
lea esi, [ebp - 0x10]
call fcn.00404b49
cmp dword [eax], 1
jne 0x404786
call fcn.00404b49
cmp dword [eax + 4], edi
je 0x404786
call fcn.00404b49
mov eax, dword [eax + 8]
add dword [ebp - 8], eax
jmp 0x404800
lea esi, [ebp - 0x10]
call fcn.00404b49
cmp dword [eax], 2
jne 0x4047a7
call fcn.00404b49
mov ecx, dword [ebp - 8]
mov eax, dword [eax + 8]
lea eax, [ecx + eax + 4]
mov dword [ebp - 8], eax
jmp 0x404800
call fcn.00404b49
cmp dword [eax], 3
jne 0x404800
lea esi, [ebp - 0x10]
call fcn.00404b49
cmp dword [eax + 4], edi
je 0x404800
push edi
push 0x80
push 3
push edi
push 1
push SysReAllocStringLen
call fcn.00404b49
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, edi
je 0x404800
cmp esi, 0xffffffff
je 0x404800
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0x3200000
jae 0x4047f9
add dword [ebp - 8], eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edi, [ebp - 0x20]
lea esi, [ebp - 0x10]
call fcn.00404b71
jmp 0x404735
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x405c60
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [edi + 1]
mov cl, byte [edi]
inc edi
test cl, cl
jne 0x405c6e
push 0x3c
pop esi
push esi
sub edi, eax
lea eax, [ebp - 0x3c]
push 0
push eax
call fcn.00414930
add esp, 0xc
mov dword [ebp - 0x3c], esi
push edi
mov esi, ebx
call fcn.0040812c
lea esi, [ebx + 8]
push edi
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], edi
call fcn.0040812c
lea esi, [ebx + 0x10]
push edi
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], edi
call fcn.0040812c
lea esi, [ebx + 0x14]
push edi
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], edi
call fcn.0040812c
lea esi, [ebx + 0x18]
push edi
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edi
call fcn.0040812c
lea esi, [ebx + 0x1c]
push edi
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], edi
call fcn.0040812c
mov dword [ebp - 8], eax
lea eax, [ebp - 0x3c]
push eax
push 0
push 0
push dword [ebp + 8]
mov dword [ebp - 4], edi
call dword [sym.imp.WININET.dll_InternetCrackUrlA]
test eax, eax
mov esi, ebx
setne byte [ebp + 0xb]
call fcn.0040802e
lea esi, [ebx + 8]
call fcn.0040802e
lea esi, [ebx + 0x10]
call fcn.0040802e
lea esi, [ebx + 0x14]
call fcn.0040802e
lea esi, [ebx + 0x18]
call fcn.0040802e
lea esi, [ebx + 0x1c]
call fcn.0040802e
mov eax, dword [ebp - 0x30]
mov dword [ebx + 4], eax
mov ax, word [ebp - 0x24]
pop edi
mov word [ebx + 0xc], ax
mov al, byte [ebp + 0xb]
pop esi
leave
ret 4

Function at 0x405d42
Capabilities:
Get file version info

Disassembly:
push ebp
lea ebp, [esp - 0x98]
sub esp, 0x118
mov eax, dword [0x42f080]
xor eax, ebp
mov dword [ebp + 0x94], eax
mov eax, dword [ebp + 0xa0]
push ebx
xor ebx, ebx
push 0x103
mov dword [ebp - 0x80], eax
lea eax, [ebp - 0x6f]
push ebx
push eax
mov byte [ebp - 0x70], bl
call fcn.00414930
add esp, 0xc
push str.WININET.DLL
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 0x78], ebx
cmp eax, ebx
jne 0x405d94
xor eax, eax
jmp 0x405de7
push 0x104
lea ecx, [ebp - 0x70]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jbe 0x405d90
push esi
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x70]
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
cmp esi, ebx
ja 0x405dc0
xor eax, eax
jmp 0x405de6
push edi
push esi
call fcn.00412242
pop ecx
mov edi, eax
push edi
push esi
push dword [ebp - 0x78]
lea eax, [ebp - 0x70]
push eax
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
jne 0x405dfd
push edi
call fcn.00411d81
pop ecx
xor eax, eax
pop edi
pop esi
mov ecx, dword [ebp + 0x94]
xor ecx, ebp
pop ebx
call fcn.00411d8c
add ebp, 0x98
leave
ret
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x74]
push eax
push 0x42ac40
push edi
mov dword [ebp - 0x74], ebx
mov dword [ebp - 0x7c], ebx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
jne 0x405e25
push edi
call fcn.00411d81
pop ecx
mov eax, ebx
jmp 0x405de5
mov eax, dword [ebp - 0x74]
movzx ecx, word [eax + 8]
movzx eax, word [eax + 0xa]
push ecx
push eax
push str.MSIE__d._d
push dword [ebp - 0x80]
call dword [sym.imp.USER32.dll_wsprintfA]
xor ebx, ebx
add esp, 0x10
inc ebx
jmp 0x405e1a
Function at 0x405e48
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0xa0
mov eax, dword [0x42f080]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, 0x9c
push esi
lea eax, [ebp - 0x28]
push 0
push eax
call fcn.00414930
add esp, 0xc
lea eax, [ebp - 0x28]
mov dword [ebp - 0x28], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
push eax
call esi
test eax, eax
jne 0x405e9a
lea eax, [ebp - 0x28]
push eax
mov dword [ebp - 0x28], 0x94
call esi
test eax, eax
jne 0x405e9a
mov byte [edi], al
jmp 0x405f18
mov eax, dword [ebp - 0x18]
sub eax, 0
je 0x405f07
dec eax
je 0x405ebf
dec eax
jne 0x405f15
push dword [ebp - 0x20]
push dword [ebp - 0x24]
push str.Windows_NT__d._d
push edi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
jmp 0x405f15
cmp dword [ebp - 0x24], 4
jne 0x405f15
cmp dword [ebp - 0x20], 0
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
jne 0x405ee1
push str.Windows_95
push edi
call esi
cmp dword [ebp - 0x24], 4
pop ecx
pop ecx
jne 0x405f15
cmp dword [ebp - 0x20], 0xa
jne 0x405ef7
push str.Windows_98
push edi
call esi
cmp dword [ebp - 0x24], 4
pop ecx
pop ecx
jne 0x405f15
cmp dword [ebp - 0x20], 0x5a
jne 0x405f15
push str.Windows_Me
push edi
call esi
jmp 0x405f13
push str.Windows
push edi
call dword [sym.imp.USER32.dll_wsprintfA]
pop ecx
pop ecx
xor eax, eax
inc eax
mov ecx, dword [ebp + 0x74]
xor ecx, ebp
pop esi
call fcn.00411d8c
add ebp, 0x78
leave
ret
Function at 0x4060bc
Capabilities:
Check internet connectivity via wininet
Connect to http server
Create http request

Disassembly:
push ebp
lea ebp, [esp - 0x98]
sub esp, 0x118
mov eax, dword [0x42f080]
xor eax, ebp
mov dword [ebp + 0x94], eax
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov dword [ebp - 0x74], 0x7530
cmp dword [esi + 4], ebx
jne 0x4061b1
mov eax, dword [esi + 0x10]
push ebx
cmp dword [esi + 0x34], ebx
je 0x406105
push str._local_
push str.proxy
push 3
jmp 0x40610a
push ebx
push ebx
push dword [esi + 0x58]
push eax
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [esi + 4], eax
cmp eax, ebx
jne 0x406128
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x54], eax
xor eax, eax
jmp 0x406264
xor eax, eax
lea edi, [ebp - 0x80]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0x103
stosd dword es:[edi], eax
lea eax, [ebp - 0x6f]
push ebx
push eax
mov byte [ebp - 0x70], bl
call fcn.00414930
add esp, 0xc
cmp dword [esi + 0x34], ebx
je 0x406198
movzx eax, word [esi + 0x30]
push eax
push dword [esi + 0x2c]
lea eax, [ebp - 0x70]
push str._s:_d
push eax
mov dword [ebp - 0x80], 3
call dword [sym.imp.USER32.dll_wsprintfA]
mov edi, dword [sym.imp.WININET.dll_InternetSetOptionA]
add esp, 0x10
lea eax, [ebp - 0x70]
push 0xc
mov dword [ebp - 0x7c], eax
lea eax, [ebp - 0x80]
push eax
push 0x26
push dword [esi + 4]
call edi
test eax, eax
jne 0x40619e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x54], eax
call fcn.004079e5
jmp 0x406121
mov edi, dword [sym.imp.WININET.dll_InternetSetOptionA]
push 4
lea eax, [ebp - 0x74]
push eax
push 2
push dword [esi + 4]
call edi
test eax, eax
jne 0x4061b7
jmp 0x406188
mov edi, dword [sym.imp.WININET.dll_InternetSetOptionA]
cmp dword [esi + 8], ebx
jne 0x406261
push ebx
push ebx
push 3
cmp dword [esi + 0x1c], ebx
jne 0x4061d6
movzx ecx, word [esi + 0x18]
mov eax, dword [esi + 0x14]
push ebx
push ebx
push ecx
push eax
jmp 0x4061e7
mov eax, dword [esi + 0x24]
mov ecx, dword [esi + 0x20]
mov edx, dword [esi + 0x14]
push eax
movzx eax, word [esi + 0x18]
push ecx
push eax
push edx
push dword [esi + 4]
call dword [sym.imp.WININET.dll_InternetConnectA]
mov dword [esi + 8], eax
cmp eax, ebx
je 0x406188
push ebx
call dword [sym.imp.WININET.dll_InternetAttemptConnect]
test eax, eax
jne 0x406188
push 4
lea eax, [ebp - 0x74]
push eax
push 5
push dword [esi + 8]
call edi
test eax, eax
je 0x406188
push 4
lea eax, [ebp - 0x74]
push eax
push 6
push dword [esi + 8]
call edi
test eax, eax
je 0x406188
cmp dword [esi + 0x38], ebx
je 0x406261
mov eax, dword [esi + 0x3c]
mov ecx, dword [eax - 0xc]
inc ecx
push ecx
push eax
push 0x2b
push dword [esi + 8]
call edi
test eax, eax
je 0x406188
mov eax, dword [esi + 0x40]
mov ecx, dword [eax - 0xc]
inc ecx
push ecx
push eax
push 0x2c
push dword [esi + 8]
call edi
test eax, eax
je 0x406188
xor eax, eax
inc eax
mov ecx, dword [ebp + 0x94]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00411d8c
add ebp, 0x98
leave
ret
Function at 0x40627c
Capabilities:
Create directory

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x42f080]
xor eax, ebp
mov dword [ebp + 0x88], eax
push ebx
push esi
push edi
mov esi, 0x103
push esi
lea eax, [ebp - 0x7b]
push 0
push eax
mov ebx, ecx
mov dword [ebp - 0x80], 1
mov byte [ebp - 0x7c], 0
call fcn.00414930
add esp, 0xc
test ebx, ebx
je 0x4062de
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push ebx
call edi
test eax, eax
jle 0x4062de
push ebx
call edi
cmp eax, 0x104
jbe 0x4062f8
push 0x6f
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov ecx, dword [ebp + 0x88]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00411d8c
add ebp, 0x8c
leave
ret
push esi
push ebx
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathSkipRootA]
mov esi, eax
push esi
call edi
test eax, eax
jne 0x406324
inc eax
jmp 0x4062e0
push 0x5c
push esi
call fcn.00413134
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x406360
mov byte [esi], 0
call edi
and dword [ebp - 0x80], eax
jne 0x406354
call ebx
cmp eax, 0xb7
jne 0x406354
mov dword [ebp - 0x80], 1
mov byte [esi], 0x5c
inc esi
push 0x5c
push esi
call fcn.00413134
pop ecx
pop ecx
mov esi, eax
push 0
lea eax, [ebp - 0x7c]
push eax
test esi, esi
jne 0x40633a
call edi
and dword [ebp - 0x80], eax
jne 0x406385
call ebx
cmp eax, 0xb7
jne 0x406385
mov dword [ebp - 0x80], 1
mov eax, dword [ebp - 0x80]
jmp 0x4062e0
Function at 0x407da2
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push dword [esp + 0xc]
mov esi, eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x407db9
pop esi
ret
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x407dee
push dword [esp + 0x10]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, edi
and esi, 0xf
jbe 0x407dea
cmp edi, eax
jae 0x407dee
dec esi
movzx ecx, word [edi]
lea edi, [edi + ecx*2 + 2]
jne 0x407ddc
cmp edi, eax
jb 0x407df2
xor eax, eax
jmp 0x407dfb
movzx eax, word [edi]
neg eax
sbb eax, eax
and eax, edi
pop edi
pop esi
ret

Function at 0x408405
Capabilities:
Accept command line arguments
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x130]
sub esp, 0x1b0
mov eax, dword [0x42f080]
xor eax, ebp
mov dword [ebp + 0x12c], eax
mov eax, dword [ebp + 0x140]
push esi
push edi
mov edi, 0x9c
push edi
mov dword [ebp - 0x80], eax
xor esi, esi
lea eax, [ebp - 0x74]
push esi
push eax
call fcn.00414930
add esp, 0xc
lea eax, [ebp - 0x74]
mov dword [ebp - 0x74], edi
mov edi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
push eax
call edi
test eax, eax
jne 0x408468
lea eax, [ebp - 0x74]
push eax
mov dword [ebp - 0x74], 0x94
call edi
test eax, eax
je 0x40854c
cmp dword [ebp - 0x64], 2
jne 0x40854c
cmp dword [ebp - 0x70], 4
jbe 0x40854c
call fcn.0040ec36
test eax, eax
je 0x4084c4
lea edi, [ebp - 0x78]
mov dword [ebp - 0x78], esi
call fcn.0040ec89
test eax, eax
jl 0x40854c
cmp dword [ebp - 0x78], esi
jne 0x4084c4
push 0x104
lea eax, [ebp + 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
lea eax, [ebp + 0x28]
push eax
call fcn.0040ebe7
pop ecx
pop ecx
jmp 0x40854c
push str.GlobalDB37DF94_6157_42e3_8324_3FF035409B59
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp edi, esi
je 0x40853e
cmp eax, 0xb7
je 0x40853e
cmp eax, 5
je 0x40853e
push esi
call dword [sym.imp.ole32.dll_CoInitialize]
push esi
push esi
push esi
push esi
call dword [sym.imp.USER32.dll_DefWindowProcA]
lea eax, [ebp - 0x7c]
push eax
mov dword [ebp - 0x7c], 8
mov dword [ebp - 0x78], 4
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
call fcn.004086a7
mov ecx, dword [ebp - 0x80]
call fcn.004082d4
mov esi, eax
call fcn.0040861a
call dword [sym.imp.ole32.dll_CoUninitialize]
push edi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
jmp 0x40854e
push edi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [ebp + 0x12c]
pop edi
xor ecx, ebp
pop esi
call fcn.00411d8c
add ebp, 0x130
leave
ret 0x10
Function at 0x409e32
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
mov eax, dword [0x42f080]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
mov esi, ecx
mov ecx, dword [ebp + 8]
mov eax, dword [esi + 4]
push edi
push ecx
push dword [esi]
mov dword [ebp - 0x11c], ecx
xor edi, edi
or eax, 0x2001f
lea ecx, [ebp - 0x114]
mov dword [ebp - 0x114], edi
mov dword [ebp - 0x110], edi
call fcn.00409df4
mov ebx, eax
cmp ebx, edi
je 0x409e98
cmp dword [ebp - 0x114], edi
je 0x409e91
push dword [ebp - 0x114]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x409f30
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
jmp 0x409ec0
lea eax, [ebp - 0x10c]
push eax
lea ecx, [ebp - 0x114]
call fcn.00409e32
mov dword [ebp - 0x120], eax
cmp eax, edi
jne 0x409f41
lea eax, [ebp - 0x128]
push eax
push edi
push edi
push edi
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x10c]
push eax
push edi
push dword [ebp - 0x114]
mov dword [ebp - 0x118], 0x100
call ebx
test eax, eax
je 0x409ea0
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x114], edi
je 0x409f0b
push dword [ebp - 0x114]
call ebx
mov dword [ebp - 0x114], edi
push dword [ebp - 0x11c]
mov dword [ebp - 0x110], edi
call fcn.00409fa9
mov esi, eax
cmp dword [ebp - 0x114], edi
je 0x409f2e
push dword [ebp - 0x114]
call ebx
mov eax, esi
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00411d8c
leave
ret 4
cmp dword [ebp - 0x114], edi
je 0x409f55
push dword [ebp - 0x114]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x120]
jmp 0x409f30

Function at 0x409fa9
Capabilities:
Delete registry key

Disassembly:
cmp byte [0x431d98], 0
jne 0x409fd9
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
je 0x409fd2
push str.RegDeleteKeyExA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x431d9c], eax
mov byte [0x431d98], 1
mov eax, dword [0x431d9c]
test eax, eax
je 0x409ff1
push 0
push dword [esi + 4]
push dword [esp + 0xc]
push dword [esi]
call eax
jmp 0x409ffd
push dword [esp + 4]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
ret 4
Function at 0x40b23e
Capabilities:
Accept command line arguments

Disassembly:
push ebp
lea ebp, [esp - 0x94]
sub esp, 0x114
mov eax, dword [0x42f080]
xor eax, ebp
mov dword [ebp + 0x90], eax
mov eax, dword [esi + 8]
push ebx
push edi
xor edi, edi
cmp eax, edi
je 0x40b271
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov dword [esi + 8], edi
mov dword [esi + 4], edi
push 0x103
lea eax, [ebp - 0x73]
push edi
push eax
mov dword [ebp - 0x80], edi
mov byte [ebp - 0x74], 0
call fcn.00414930
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov ebx, eax
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [eax*4 + 4]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push ebx
push eax
mov dword [ebp - 0x7c], eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push dword [ebp - 0x7c]
call dword [sym.imp.USER32.dll_CharUpperA]
push 0x104
lea eax, [ebp - 0x74]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
cmp byte [ebx], 0
lea eax, [ebp - 0x74]
je 0x40b2d8
mov eax, dword [ebp - 0x7c]
lea ebx, [esi + 4]
push ebx
push edi
lea edi, [ebp - 0x80]
xor ecx, ecx
mov dword [ebp - 0x78], eax
call fcn.0040b021
mov eax, dword [ebx]
mov ecx, dword [ebp - 0x80]
lea eax, [ecx + eax*4 + 4]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [esi + 8], eax
test eax, eax
jne 0x40b30f
push 8
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x40b32d
mov ecx, dword [ebx]
push ebx
lea ecx, [eax + ecx*4]
push eax
mov eax, dword [ebp - 0x78]
lea edi, [ebp - 0x80]
call fcn.0040b021
push dword [ebp - 0x7c]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
xor eax, eax
inc eax
mov ecx, dword [ebp + 0x90]
pop edi
xor ecx, ebp
pop ebx
call fcn.00411d8c
add ebp, 0x94
leave
ret
Function at 0x40b344
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x368
mov eax, dword [0x42f080]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push 0x208
lea eax, [ebp - 0x21b]
push 0
push eax
mov dword [ebp - 0x360], edi
mov byte [ebp - 0x21c], 0
call fcn.00414930
add esp, 0xc
test edi, edi
je 0x40b4bd
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push edi
call esi
test eax, eax
jle 0x40b4bd
push edi
call esi
cmp eax, 0x209
jbe 0x40b3ab
push 0x6f
pop eax
jmp 0x40b4c0
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
push edi
lea eax, [ebp - 0x21c]
push 0x42b158
push eax
call ebx
and dword [ebp - 0x368], 0
add esp, 0xc
lea eax, [ebp - 0x35c]
push eax
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x364], eax
cmp eax, 0xffffffff
jne 0x40b3f0
xor eax, eax
jmp 0x40b4c0
push 2
mov edi, 0x42b160
lea esi, [ebp - 0x330]
pop ecx
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x40b467
push 3
mov edi, 0x42b164
lea esi, [ebp - 0x330]
pop ecx
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x40b467
lea eax, [ebp - 0x330]
push eax
push dword [ebp - 0x360]
lea eax, [ebp - 0x21c]
push str._s_s
push eax
call ebx
add esp, 0x10
cmp dword [ebp - 0x35c], 0x10
lea eax, [ebp - 0x21c]
jne 0x40b44e
push eax
call fcn.0040b344
pop ecx
jmp 0x40b467
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x35c]
push eax
push dword [ebp - 0x364]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40b493
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
jne 0x40b493
mov dword [ebp - 0x368], 1
cmp dword [ebp - 0x368], 0
je 0x40b3f0
push dword [ebp - 0x364]
call dword [sym.imp.KERNEL32.dll_FindClose]
push dword [ebp - 0x360]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
jmp 0x40b3e9
or eax, 0xffffffff
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00411d8c
leave
ret

Function at 0x40b4cf
Capabilities:
Create directory

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x42f080]
xor eax, ebp
mov dword [ebp + 0x88], eax
push esi
mov esi, 0x104
push esi
lea eax, [ebp - 0x7f]
push 0
push eax
mov byte [ebp - 0x80], 0
call fcn.00414930
add esp, 0xc
push esi
push edi
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
push 0x5c
lea eax, [ebp - 0x80]
push eax
jmp 0x40b52d
push 0
lea eax, [ebp - 0x80]
push eax
mov byte [esi], 0
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov byte [esi], 0x5c
push 0x5c
inc esi
push esi
call fcn.00413134
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x40b517
mov ecx, dword [ebp + 0x88]
xor ecx, ebp
pop esi
call fcn.00411d8c
add ebp, 0x8c
leave
ret