joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407cf2
Capabilities:
Check if file exists
Copy file
Delete file
Move file

Disassembly:
push ebp
lea ebp, [esp - 0x194]
sub esp, 0x214
mov eax, dword [0x43c380]
xor eax, ebp
mov dword [ebp + 0x190], eax
mov eax, dword [ebp + 0x19c]
and dword [ebp - 0x7c], 0
push ebx
mov ebx, dword [ebp + 0x1a0]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileExW]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [ebp - 0x80], eax
and word [ebp - 0x78], 0
push 0x206
lea eax, [ebp - 0x76]
push 0
push eax
call fcn.0040aa00
add esp, 0xc
cmp dword [ebp - 0x7c], 0
lea eax, [ebp - 0x78]
jne 0x407d61
push ebx
push str._s.bak
push eax
call fcn.0040a913
add esp, 0xc
jmp 0x407d73
push dword [ebp - 0x7c]
push ebx
push str._s.bak_d
push eax
call fcn.0040a913
add esp, 0x10
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x407d87
lea eax, [ebp - 0x78]
push eax
call edi
lea eax, [ebp - 0x78]
push eax
push ebx
call fcn.0040a9c5
pop ecx
pop ecx
lea eax, [ebp - 0x78]
push eax
call edi
push 0
push ebx
push dword [ebp - 0x80]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
push 5
test eax, eax
push 0
lea eax, [ebp - 0x78]
push eax
jne 0x407dc1
call esi
cmp dword [ebp - 0x7c], 0xa
jge 0x407dcc
inc dword [ebp - 0x7c]
jmp 0x407d2f
call esi
push 5
push 0
push dword [ebp - 0x80]
call esi
mov ecx, dword [ebp + 0x190]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040a784
add ebp, 0x194
leave
ret

Function at 0x407e85
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x1a0]
sub esp, 0x220
mov eax, dword [0x43c380]
xor eax, ebp
mov dword [ebp + 0x19c], eax
mov eax, dword [ebp + 0x1a8]
and dword [ebp - 0x70], 0
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
push edi
mov edi, dword [ebp + 0x1ac]
lea ecx, [ebp - 0x74]
push ecx
push eax
push 0x80000000
call esi
test eax, eax
jne 0x407f3d
lea eax, [ebp - 0x78]
push eax
push str.shellopencommand
push dword [ebp - 0x74]
call esi
test eax, eax
jne 0x407f34
and word [ebp - 0x6c], ax
push 0x206
push eax
lea eax, [ebp - 0x6a]
push eax
call fcn.0040aa00
add esp, 0xc
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x80]
push eax
push 0
push 0x430444
push dword [ebp - 0x78]
xor esi, esi
inc esi
mov dword [ebp - 0x7c], 0x104
mov dword [ebp - 0x80], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x407f2b
lea eax, [ebp - 0x6c]
push eax
mov ecx, edi
call fcn.0040153c
mov dword [ebp - 0x70], esi
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x74]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp + 0x19c]
mov eax, dword [ebp - 0x70]
pop edi
xor ecx, ebp
pop esi
call fcn.0040a784
add ebp, 0x1a0
leave
ret
Function at 0x408004
Capabilities:
Find taskbar

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
push esi
push edi
xor edi, edi
push edi
push 0x407fb7
push edi
push edi
mov dword [0x43e4d4], edi
call dword [sym.imp.USER32.dll_EnumDisplayMonitors]
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
push edi
lea eax, [ebp - 0x10]
push eax
push edi
push 0x30
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
push edi
push str.Shell_TrayWnd
call dword [sym.imp.USER32.dll_FindWindowW]
mov ebx, eax
call dword [sym.imp.USER32.dll_GetDesktopWindow]
mov esi, dword [sym.imp.USER32.dll_GetWindowRect]
lea ecx, [ebp - 0x20]
push ecx
push eax
call esi
lea eax, [ebp - 0x30]
push eax
push ebx
call esi
mov eax, dword [ebp - 8]
mov ecx, dword [0x43e4d4]
sub eax, dword [ebp - 0x10]
cmp ecx, 1
jle 0x408089
cmp ecx, edi
jle 0x408089
mov esi, 0x43e408
mov edx, dword [esi]
cmp edx, eax
jle 0x408083
mov eax, edx
add esi, 0x10
dec ecx
jne 0x40807b
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4080e9
Capabilities:
Find taskbar

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push esi
push edi
xor esi, esi
push esi
lea eax, [ebp - 0x20]
push eax
push esi
push 0x30
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
push esi
push str.Shell_TrayWnd
call dword [sym.imp.USER32.dll_FindWindowW]
mov edi, eax
call dword [sym.imp.USER32.dll_GetDesktopWindow]
mov esi, dword [sym.imp.USER32.dll_GetWindowRect]
lea ecx, [ebp - 0x10]
push ecx
push eax
call esi
lea eax, [ebp - 0x30]
push eax
push edi
call esi
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 0x10]
pop edi
pop esi
leave
ret

Function at 0x408133
Capabilities:
Find taskbar

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push esi
push edi
xor esi, esi
push esi
lea eax, [ebp - 0x20]
push eax
push esi
push 0x30
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
push esi
push str.Shell_TrayWnd
call dword [sym.imp.USER32.dll_FindWindowW]
mov edi, eax
call dword [sym.imp.USER32.dll_GetDesktopWindow]
mov esi, dword [sym.imp.USER32.dll_GetWindowRect]
lea ecx, [ebp - 0x10]
push ecx
push eax
call esi
lea eax, [ebp - 0x30]
push eax
push edi
call esi
mov eax, dword [ebp - 4]
sub eax, dword [ebp - 0xc]
pop edi
pop esi
leave
ret

Function at 0x40817d
Capabilities:
Find taskbar

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push esi
push edi
xor esi, esi
push esi
lea eax, [ebp - 0x10]
push eax
push esi
push 0x30
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
push esi
push str.Shell_TrayWnd
call dword [sym.imp.USER32.dll_FindWindowW]
mov edi, eax
call dword [sym.imp.USER32.dll_GetDesktopWindow]
mov esi, dword [sym.imp.USER32.dll_GetWindowRect]
lea ecx, [ebp - 0x20]
push ecx
push eax
call esi
lea eax, [ebp - 0x30]
push eax
push edi
call esi
mov eax, dword [ebp - 4]
sub eax, dword [ebp - 0xc]
pop edi
pop esi
leave
ret
Function at 0x4081e2
Capabilities:
Check if file exists
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x1fb4]
mov eax, 0x2034
call fcn.0040b570
mov eax, dword [0x43c380]
xor eax, ebp
mov dword [ebp + 0x1fb0], eax
push esi
push edi
mov esi, 0x206
xor edi, edi
push esi
lea eax, [ebp + 0x1ba2]
push edi
push eax
mov word [ebp + 0x1ba0], di
call fcn.0040aa00
lea eax, [ebp + 0x1ba0]
push str.C:log_
push eax
call fcn.0040a8f7
push 0x7fe
lea eax, [ebp + 0xf92]
push edi
push eax
mov word [ebp + 0xf90], di
call fcn.0040aa00
lea eax, [ebp + 0x1ba0]
push eax
lea eax, [ebp + 0x1998]
push str._sgswb.log
push eax
call fcn.0040a913
push esi
lea eax, [ebp + 0x1792]
push edi
push eax
mov word [ebp + 0x1790], di
call fcn.0040aa00
push esi
lea eax, [ebp + 0x1daa]
push edi
push eax
mov word [ebp + 0x1da8], di
call fcn.0040aa00
add esp, 0x44
push 0x104
lea eax, [ebp + 0x1da8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp + 0x1da8]
push 0x5c
push eax
call fcn.0040a89d
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
pop ecx
mov word [eax], di
pop ecx
lea eax, [ebp + 0x1998]
push eax
call esi
test eax, eax
je 0x40840a
lea eax, [ebp + 0x1da8]
push ebx
push eax
call fcn.0040a2da
lea eax, [ebp + eax*2 + 0x1daa]
push eax
lea eax, [ebp + 0x1790]
push eax
call fcn.0040a8f7
lea eax, [ebp + 0x1790]
push eax
lea eax, [ebp + 0x1ba0]
push eax
lea eax, [ebp + 0x1998]
push str._s_s.txt
push eax
call fcn.0040a913
lea eax, [ebp + 0x1fc0]
push eax
push dword [ebp + 0x1fbc]
lea eax, [ebp + 0xf90]
push 0x3ff
push eax
call fcn.0040aef9
push edi
call fcn.0040e4e6
mov dword [ebp - 0x80], eax
lea eax, [ebp - 0x80]
push eax
mov dword [ebp - 0x7c], edx
call fcn.0040e4c2
lea ecx, [ebp + 0xf90]
push ecx
push dword [eax]
mov ecx, dword [eax + 0x10]
push dword [eax + 4]
inc ecx
push dword [eax + 8]
push dword [eax + 0xc]
mov eax, dword [eax + 0x14]
push ecx
add eax, 0x76c
push eax
lea eax, [ebp - 0x70]
push str.__d__d__d__d__d__d_:_s
push eax
call fcn.0040a913
add esp, 0x58
lea eax, [ebp + 0x1998]
push eax
mov word [ebp + 0x178e], di
mov dword [ebp - 0x74], edi
call esi
xor ebx, ebx
inc ebx
test eax, eax
je 0x40838c
mov dword [ebp - 0x74], ebx
lea eax, [ebp + 0x1998]
push 0x4304a4
push eax
call fcn.0040ae14
mov esi, eax
cmp esi, edi
pop ecx
pop ecx
je 0x408409
cmp dword [ebp - 0x74], edi
jne 0x4083c1
push esi
push 2
lea eax, [ebp - 0x78]
push ebx
push eax
mov dword [ebp - 0x78], 0xfeff
call fcn.0040accc
add esp, 0x10
lea eax, [ebp - 0x70]
push eax
call fcn.0040a2da
push esi
add eax, eax
push eax
lea eax, [ebp - 0x70]
push ebx
push eax
call fcn.0040accc
push esi
push 2
lea eax, [ebp - 0x74]
push ebx
push eax
mov dword [ebp - 0x74], 0xd
call fcn.0040accc
push esi
push 2
lea eax, [ebp - 0x74]
push ebx
push eax
mov dword [ebp - 0x74], 0xa
call fcn.0040accc
push esi
call fcn.0040aaf1
add esp, 0x38
pop ebx
mov ecx, dword [ebp + 0x1fb0]
pop edi
xor ecx, ebp
pop esi
call fcn.0040a784
add ebp, 0x1fb4
leave
ret
Function at 0x409ccc
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
xor edi, edi
cmp dword [0x43e50c], edi
mov esi, ecx
je 0x409e12
cmp dword [esi + 0x20], 8
jb 0x409cef
mov eax, dword [esi + 0xc]
jmp 0x409cf2
lea eax, [esi + 0xc]
push ebx
push 0x43110c
push eax
push dword [0x43c2b4]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
cmp ebx, edi
je 0x409e11
push ebx
push dword [0x43c2b4]
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push ebx
push dword [0x43c2b4]
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
push 0x42
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push dword [ebp - 4]
push dword [ebp - 8]
push eax
call fcn.0040e7e0
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea eax, [ebp - 0xc]
push eax
push 1
push ebx
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
push edi
push dword [ebp - 0xc]
call fcn.004085be
cmp eax, edi
pop ecx
pop ecx
je 0x409e11
mov dword [esi + 4], eax
lea eax, [ebp + 8]
push eax
mov ecx, 0x43e510
call fcn.00409a8c
mov ebx, dword [ebp + 8]
push edi
mov dword [eax], esi
push dword [0x43c2b4]
push edi
push ebx
push edi
push edi
push edi
push 0x80000000
push 0x80c80000
push edi
push dword [0x43c2b0]
push 0x80020
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov edi, dword [sym.imp.USER32.dll_GetWindowLongW]
push 0xfffffffffffffff0
push ebx
mov dword [esi + 0x24], eax
call edi
test eax, 0x10000000
jne 0x409dd7
mov byte [esi + 0x2c], 1
jmp 0x409dfb
test eax, 0x21000000
je 0x409de4
mov byte [esi + 0x2c], 5
jmp 0x409dfb
push 8
push dword [esi + 0x24]
mov byte [esi + 0x2c], 7
call dword [sym.imp.USER32.dll_ShowWindow]
push ebx
mov ecx, esi
call fcn.004090a8
push 0xfffffffffffffffc
push ebx
call edi
push 0x409b01
push 0xfffffffffffffffc
push ebx
mov dword [esi + 0x28], eax
call dword [sym.imp.USER32.dll_SetWindowLongW]
pop ebx
pop edi
pop esi
leave
ret 4

Function at 0x40a784
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x43c380]
jne 0x40a78e
repz ret
jmp fcn.00411d1c
Function at 0x415d8c
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x43d010]
je 0x415da7
inc edi
cmp edi, 0x17
jb 0x415d98
cmp edi, 0x17
jae 0x415f27
push ebp
push 3
call fcn.0041eaa3
cmp eax, 1
pop ecx
je 0x415ef3
push 3
call fcn.0041eaa3
test eax, eax
pop ecx
jne 0x415ddb
cmp dword [0x43c49c], 1
je 0x415ef3
cmp ebx, 0xfc
je 0x415f26
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x43ea78
push ebp
call fcn.004108f5
add esp, 0xc
test eax, eax
je 0x415e11
push esi
push esi
push esi
push esi
push esi
call fcn.0040b0ea
add esp, 0x14
push 0x104
mov esi, 0x43ea91
push esi
push 0
mov byte [0x43eb95], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x415e55
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.004108f5
add esp, 0xc
test eax, eax
je 0x415e55
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0040b0ea
add esp, 0x14
push esi
call fcn.0040af20
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x415e9a
push esi
call fcn.0040af20
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x43ed8c
push 0x4319c4
sub ecx, eax
push ecx
push eax
call fcn.0041a936
add esp, 0x14
test eax, eax
je 0x415e9a
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.0040b0ea
add esp, 0x14
jmp 0x415e9c
xor esi, esi
push 0x4319c0
push ebx
push ebp
call fcn.0041a87f
add esp, 0xc
test eax, eax
je 0x415ebc
push esi
push esi
push esi
push esi
push esi
call fcn.0040b0ea
add esp, 0x14
push dword [edi*8 + 0x43d014]
push ebx
push ebp
call fcn.0041a87f
add esp, 0xc
test eax, eax
je 0x415ede
push esi
push esi
push esi
push esi
push esi
call fcn.0040b0ea
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.0041e8e6
add esp, 0xc
jmp 0x415f26
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x415f26
cmp ebp, 0xffffffff
je 0x415f26
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x43d014]
push dword [esi]
call fcn.0040af20
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x41e8e6
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0041175a
xor ebx, ebx
cmp dword [0x43f0d8], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x41e9bc
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x41ea9c
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x41ea9c
push eax
call fcn.004116ec
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x43f0d8], eax
call esi
push eax
call fcn.004116ec
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x43f0dc], eax
call esi
push eax
call fcn.004116ec
mov dword [0x43f0e0], eax
lea eax, [ebp - 0xc]
push eax
call fcn.00414dbe
test eax, eax
pop ecx
pop ecx
je 0x41e98a
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040b0ea
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x41e9bc
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.004116ec
cmp eax, ebx
pop ecx
mov dword [0x43f0e8], eax
je 0x41e9bc
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004116ec
pop ecx
mov dword [0x43f0e4], eax
mov eax, dword [0x43f0e4]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x41ea41
cmp dword [0x43f0e8], ecx
je 0x41ea41
push eax
call fcn.00411763
push dword [0x43f0e8]
mov esi, eax
call fcn.00411763
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x41ea41
cmp edi, ebx
je 0x41ea41
call esi
cmp eax, ebx
je 0x41ea0e
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x41ea0e
test byte [ebp - 0x18], 1
jne 0x41ea41
lea eax, [ebp - 0x10]
push eax
call fcn.00414df5
test eax, eax
pop ecx
je 0x41ea29
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040b0ea
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x41ea38
or dword [ebp + 0x10], 0x200000
jmp 0x41ea7c
or dword [ebp + 0x10], 0x40000
jmp 0x41ea7c
mov eax, dword [0x43f0dc]
cmp eax, dword [ebp - 8]
je 0x41ea7c
push eax
call fcn.00411763
cmp eax, ebx
pop ecx
je 0x41ea7c
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x41ea7c
mov eax, dword [0x43f0e0]
cmp eax, dword [ebp - 8]
je 0x41ea7c
push eax
call fcn.00411763
cmp eax, ebx
pop ecx
je 0x41ea7c
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x43f0d8]
call fcn.00411763
cmp eax, ebx
pop ecx
je 0x41ea9c
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x41ea9e
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x423920
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x42f3b3
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
mov eax, dword [0x43c380]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
xor ebx, ebx
or eax, 0xffffffff
mov dword [esi + 8], eax
mov dword [esi + 4], eax
mov dword [esi + 0xc], ebx
mov dword [esi + 0x20], 0x43f10c
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
lea ecx, [esi + 0x34]
mov dword [esi], vtable.TiXmlDocument.0
mov dword [esp + 0x18], ebx
mov dword [ecx], 0x43f10c
mov dword [esi + 0x40], eax
mov dword [esi + 0x3c], eax
push ebx
push 0x430f5e
mov byte [esp + 0x20], 1
mov dword [esi + 0x38], 4
mov byte [esi + 0x44], bl
mov byte [esi + 0x2c], bl
mov dword [esi + 0x30], ebx
call fcn.00422ce0
mov dword [esi + 0x40], ebx
mov dword [esi + 0x3c], ebx
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x10
ret
Function at 0x42e233
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ebx
je 0x42e270
cmp dword [ebp + 0x14], edi
je 0x42e270
cmp ecx, edi
jne 0x42e277
call fcn.00410547
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.0040b1e6
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x42e28b
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x42e2ac
cmp ebx, 0xffffffff
je 0x42e29b
push ebx
push edi
push ecx
call fcn.0040aa00
add esp, 0xc
cmp esi, edi
je 0x42e258
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x42e258
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x42e2c8
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x42e2cf
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x42e3c0
test word [esi + 0xc], 0x10c
je 0x42e323
mov eax, dword [esi + 4]
test eax, eax
je 0x42e323
jl 0x42e421
cmp ebx, eax
mov edi, ebx
jb 0x42e2f4
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x42e3c8
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.0040a0ac
sub dword [esi + 4], edi
add dword [esi], edi
add dword [ebp - 8], edi
sub ebx, edi
add esp, 0x10
sub dword [ebp - 4], edi
mov edi, dword [ebp - 0x10]
jmp 0x42e3b8
cmp ebx, dword [ebp - 0xc]
jb 0x42e390
cmp dword [ebp - 0xc], 0
je 0x42e34d
mov ecx, 0x7fffffff
xor edx, edx
cmp ebx, ecx
jbe 0x42e342
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x42e349
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x42e358
mov eax, 0x7fffffff
cmp ebx, eax
ja 0x42e358
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x42e3f4
push eax
push dword [ebp - 8]
push esi
call fcn.004129af
pop ecx
push eax
call fcn.0040bfd7
add esp, 0xc
test eax, eax
je 0x42e433
cmp eax, 0xffffffff
je 0x42e421
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x42e3b8
push esi
call fcn.0041ee5a
cmp eax, 0xffffffff
pop ecx
je 0x42e425
cmp dword [ebp - 4], 0
je 0x42e3f4
mov ecx, dword [ebp - 8]
inc dword [ebp - 8]
mov byte [ecx], al
mov eax, dword [esi + 0x18]
dec ebx
dec dword [ebp - 4]
mov dword [ebp - 0xc], eax
test ebx, ebx
jne 0x42e2d7
mov eax, dword [ebp + 0x14]
jmp 0x42e272
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x42e3df
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.0040aa00
add esp, 0xc
call fcn.00410547
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x42e268
cmp dword [ebp + 0xc], 0xffffffff
je 0x42e40a
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.0040aa00
add esp, 0xc
call fcn.00410547
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x42e268
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x42e272
or dword [esi + 0xc], 0x10
jmp 0x42e425
Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
push 4
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
je 0x42e072
nop
nop
nop
nop
mov ebx, 0x407ef8
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
pop eax
nop
nop
nop
nop
nop
nop
mov esi, 0x78954f61
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x42e060
nop
nop
mov eax, section..data
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x42e0d2
nop
nop
mov ebx, 0x42cd70
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
div edi
nop
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x54bc4685
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
loop 0x42e0c0
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x1001529
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
lea eax, [ebp - 4]
push eax
push 0x20019
xor ebx, ebx
push ebx
push 0x10015a0
push 0x80000002
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1001588
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push ebx
push ebx
push 0x1001590
push dword [ebp - 4]
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x10017cd
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
pop ebx
leave
ret
cmp dword [ebp - 8], 0xd2af9
sete bl
jmp 0x100157f

Function at 0x1001630
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], ebx
mov byte [ebp - 1], 1
je 0x1001667
push 0x10017c0
push dword [ebp + 8]
call fcn.010015ca
test eax, eax
pop ecx
pop ecx
jne 0x10017dc
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push edi
lea eax, [ebp - 8]
push eax
mov edi, 0x20019
push edi
push ebx
push 0x1001730
push 0x80000001
call esi
test eax, eax
jne 0x10016d1
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
push 0x100178c
push dword [ebp - 8]
mov dword [ebp - 0xc], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x10016c0
cmp dword [ebp - 0x10], 4
jne 0x10016c0
cmp dword [ebp - 0x14], 1
je 0x10017e3
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [ebp - 1], bl
mov dword [ebp - 8], ebx
je 0x1001723
lea eax, [ebp - 8]
push eax
push edi
push ebx
push 0x100175c
push 0x80000002
call esi
test eax, eax
jne 0x1001723
push 4
pop esi
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
push 0x10017a8
push dword [ebp - 8]
mov dword [ebp - 0xc], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x100171a
cmp dword [ebp - 0x10], esi
jne 0x100171a
cmp dword [ebp - 0x14], 1
jne 0x100171a
mov byte [ebp - 1], bl
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
leave
ret 4
xor al, al
jmp 0x1001728
mov byte [ebp - 1], bl
jmp 0x10016c0

Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
nop
nop
nop
nop
nop
pop eax
nop
add eax, 0x403ac5
sub eax, 0x403a6b
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
jl 0x42e030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x42e01e
nop
nop
nop
popal
nop
nop
nop
nop
jmp loc.00401219