joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46a68c
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x46a837
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x46a818
mov dl, 1
mov eax, dword [0x416658]
call fcn.00403248
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404008
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x46a807
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.00458578
test al, al
je 0x46a7fa
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x46a848
lea eax, [ebp - 0x254]
call fcn.00408f08
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x46a7fa
xor eax, eax
push ebp
push 0x46a7f3
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x46a880
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x46a7dc
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404278
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x46a7dc
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404278
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46a7fa
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x46a6fd
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.0041ac1c
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46a83e
lea eax, [ebp - 0x260]
call fcn.00404008
ret

Function at 0x46b16c
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x479bec]
cmp byte [eax + 0xa5], 0
jne 0x46b1dd
cmp dword [0x479c04], 0
jne 0x46b19e
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x46b128
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x479c04], eax
cmp dword [0x479c00], 0
jne 0x46b1b9
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x479c00], eax
cmp dword [0x479c08], 0
jne 0x46b1dd
push esp
push 0
push 0
push 0x46b0cc
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x479c08], eax
pop edx
ret
Function at 0x46b2d4
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x46b2eb
add esp, 0xfffffff0
call fcn.004035dc
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00420c1c
mov eax, dword [0x478948]
cmp word [eax + 2], 0
jne 0x46b313
mov eax, dword [0x478948]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0046c9c4
mov eax, dword [0x478a40]
cmp word [eax + 2], 0
jne 0x46b32d
mov eax, dword [0x478a40]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0046cbbc
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x415ff4]
call fcn.00403248
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x415ff4]
call fcn.00403248
mov dword [ebx + 0xa8], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0x9d], 1
mov byte [ebx + 0xb4], 1
mov dl, 1
mov eax, dword [0x423160]
call fcn.0042a5cc
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x46b4b4
mov eax, dword [0x478820]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.0042a99c
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x46d16c
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x478820]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040c7d4
test eax, eax
je 0x46b422
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.004088e8
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040c7fc
test eax, eax
je 0x46b436
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.00404278
mov eax, dword [0x478684]
cmp byte [eax], 0
jne 0x46b46a
mov eax, ebx
call fcn.0046b5dc
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0x9e], 1
xor eax, eax
mov dword [ebx + 0xa0], eax
mov eax, ebx
call fcn.0046d348
mov eax, ebx
call fcn.0046dd0c
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x46b4aa
call fcn.00403634
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x46b85c
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x479bec]
cmp dword [eax + 0x30], 0
je 0x46b906
cmp dword [ebx + 0x94], 0
jne 0x46b900
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x46b7ec
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x46b900
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x46b8c6
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x46b900
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.00418844
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x46b8d5
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x46c468
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x46c49d
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.004040f8
jmp 0x46c4aa
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.0040405c
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x46d524
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x46d565
mov eax, esi
call fcn.00453afc
test al, al
je 0x46d565
mov eax, dword [ebx + 0x84]
call fcn.004537f8
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x46d565
push 0
mov eax, dword [ebx + 0x84]
call fcn.004537f8
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

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

Disassembly:
pushal
nop
nop
nop
mov eax, section..text
nop
nop
push 4
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x433072
nop
mov ebx, 0x40de38
nop
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x5b8334fb
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x433060
nop
nop
mov eax, section..data
cmp eax, 0
nop
nop
nop
je 0x4330d2
nop
nop
nop
nop
mov ebx, 0x4304d8
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0xc9b1160
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
loop 0x4330c0
nop
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x40686f
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x460114], 0
jne 0x4068ad
xor ecx, ecx
push esi
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
movzx edx, dl
neg edx
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406883
mov dword [ecx*4 + 0x460110], eax
inc ecx
cmp ecx, 0x100
jl 0x40687e
pop esi
cmp dword [ebp + 0x10], 0
mov eax, dword [ebp + 8]
not eax
jbe 0x4068da
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
dec dword [ebp + 0x10]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x460110]
inc ecx
cmp dword [ebp + 0x10], 0
ja 0x4068bb
not eax
pop ebp
ret 0xc

Function at 0x403b1b
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x40b310]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.004021f2
and dword [ebp - 0x14], 0
cmp dword [0x40c41c], 0
mov dword [ebp - 0x18], eax
jne 0x403bce
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x403c76
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x403c76
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x40c41c], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x40c420], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x40c424], eax
call edi
push eax
call esi
mov dword [0x40c42c], eax
test eax, eax
je 0x403bce
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x40c428], eax
mov eax, dword [0x40c428]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x403c27
cmp dword [0x40c42c], ecx
je 0x403c27
push eax
call esi
push dword [0x40c42c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x403c27
test ebx, ebx
je 0x403c27
call edi
test eax, eax
je 0x403c1e
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x403c1e
test byte [ebp - 8], 1
jne 0x403c27
or dword [ebp + 0x10], 0x200000
jmp 0x403c5a
mov eax, dword [0x40c420]
cmp eax, dword [ebp - 0x18]
je 0x403c5a
push eax
call esi
test eax, eax
je 0x403c5a
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x403c5a
mov eax, dword [0x40c424]
cmp eax, dword [ebp - 0x18]
je 0x403c5a
push eax
call esi
test eax, eax
je 0x403c5a
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x40c41c]
call esi
test eax, eax
je 0x403c76
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x403c78
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403e95
leave
ret

Function at 0x403e95
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40b310]
jne 0x403e9f
repz ret
jmp fcn.00405636
Function at 0x4011b2
Capabilities:
Hide graphical window

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push esi
push edi
lea ebx, [ebp + 4]
push ebx
xor eax, eax
call fcn.00401c52
push 0x82a4
lea eax, [esp + 0x18]
call fcn.00401b10
pop ecx
push dword [eax]
push dword [ebx]
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff4
cmp eax, dword [0x413054]
je 0x4011f3
push eax
call fcn.004018e7
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
mov edi, dword [0x413138]
push 0
push 0xc
call esi
push eax
push 0xb
call esi
push eax
push 1
push 5
push edi
mov edi, dword [sym.imp.USER32.dll_LoadImageW]
call edi
push eax
push 1
push 0x80
push dword [ebx]
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [0x413138]
push 0
push 0x32
mov dword [esp + 0x1c], eax
call esi
push eax
push 0x31
call esi
push eax
push 1
push 5
push dword [esp + 0x28]
call edi
push eax
xor edi, edi
push edi
push 0x80
push dword [ebx]
call dword [sym.imp.USER32.dll_SendMessageW]
push 0xf4
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
cmp eax, edi
pop ecx
je 0x401270
mov edi, eax
call fcn.00409b9e
mov edi, eax
test edi, edi
jne 0x401278
xor eax, eax
jmp 0x4012dc
lea esi, [ebp + 0x28]
call fcn.0040b3d4
mov eax, dword [edi]
push edi
call dword [eax + 0x20]
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0x885
push dword [ebx]
call edi
push 0x41057c
push 0x8ce
mov dword [ebp + 0x5c], eax
push dword [ebx]
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
push 1
push dword [ebx]
call edi
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push ebp
push 0x40113a
push 2
push dword [ebp + 0x60]
lea eax, [ebp + 0x2c]
push dword [ebp + 0x24]
push dword [esi]
call fcn.00409cc3
push dword [ebx]
call dword [sym.imp.USER32.dll_BringWindowToTop]
xor eax, eax
inc eax
pop edi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x4012e3
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 1
push edi
jne 0x40132a
mov eax, dword [esi + 0x28]
mov eax, dword [eax + 0x54]
push 0x64
push 0
push 0x406
lea edi, [esi + 0x5c]
push dword [edi]
mov dword [esi + 0x20], eax
call dword [sym.imp.USER32.dll_SendMessageW]
push 0
mov eax, edi
call fcn.0040145f
push 0
push 0xc8
push 0x64
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetTimer]
jmp 0x4013d3
cmp dword [ebp + 8], 2
jne 0x4013d3
push 0x64
push dword [esi + 4]
call dword [sym.imp.USER32.dll_KillTimer]
push 0x64
lea eax, [esi + 0x5c]
call fcn.0040145f
mov edi, dword [sym.imp.USER32.dll_SetDlgItemTextW]
push str.100_
push 0x8ce
push dword [esi + 4]
call edi
push 0x82a3
lea eax, [ebp + 8]
call fcn.00401b10
pop ecx
push dword [eax]
push 0xffffffffffffffff
push dword [esi + 4]
call edi
mov eax, dword [ebp + 8]
add eax, 0xfffffff4
cmp eax, dword [0x413054]
je 0x401389
push eax
call fcn.004018e7
mov eax, dword [esi + 0x28]
call fcn.00409eb2
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
push 1
push dword [esi + 4]
call edi
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 1
push dword [esi + 4]
call edi
push eax
call dword [sym.imp.USER32.dll_SetFocus]
push 0
push 0xf120
push 0x112
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
push dword [esi + 4]
call dword [sym.imp.USER32.dll_BringWindowToTop]
xor eax, eax
pop edi
pop ebp
ret 4

Function at 0x401903
Capabilities:
Get system information on windows

Disassembly:
push 0x3c
push 0x411150
call fcn.0040f154
mov ebx, ecx
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x48]
mov edi, eax
mov dword [ebp - 0x20], edi
and dword [ebx], 0
push 4
push 0x2000
shl eax, 0xa
push eax
push 0
mov esi, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
call esi
test eax, eax
je 0x4019a5
mov dword [ebp - 0x24], edi
push 4
push 0x1000
push edi
push eax
call esi
mov esi, eax
mov dword [ebp - 0x1c], esi
test esi, esi
je 0x4019a5
and dword [ebp - 4], 0
push dword [ebp + 0xc]
push dword [ebp + 8]
push esi
call dword [sym.imp.MSVCRT.dll_vswprintf]
add esp, 0xc
mov dword [ebp - 0x28], eax
or dword [ebp - 4], 0xffffffff
mov dword [ebx], esi
jmp 0x4019a7
xor eax, eax
call fcn.0040f18f
ret

Function at 0x401bcc
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 0x401be3
pop esi
ret
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x401bf5
xor eax, eax
jmp 0x401c26
push dword [esp + 0x10]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, edi
and esi, 0xf
jbe 0x401c18
cmp edi, eax
jae 0x401bf1
dec esi
movzx ecx, word [edi]
lea edi, [edi + ecx*2 + 2]
jne 0x401c0a
cmp edi, eax
jae 0x401bf1
mov ax, word [edi]
neg ax
sbb eax, eax
and eax, edi
pop edi
pop esi
ret
Function at 0x401ef9
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ecx
push ebp
push edi
xor edi, edi
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push dword [esp + 0x28]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 8], ebp
jne 0x401f27
xor eax, eax
jmp 0x401f85
push ebx
push esi
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, eax
cmp esi, 0xffffffff
je 0x401f79
cmp esi, 0x40
jbe 0x401f79
push edi
push esi
push edi
push 2
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov ebp, eax
cmp ebp, edi
je 0x401f79
push edi
push edi
push edi
push 4
push ebp
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
test edi, edi
je 0x401f76
cmp word [edi], 0x5a4d
je 0x401f89
push edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push ebp
call ebx
xor esi, esi
push dword [esp + 0x10]
call ebx
mov eax, esi
pop esi
pop ebx
pop edi
pop ebp
pop ecx
ret
add esi, 0xffffffc0
push esi
lea edx, [edi + 0x40]
call fcn.00401eb8
mov esi, eax
movzx eax, word [edi + 0x26]
pop ecx
movzx ecx, word [edi + 0x24]
shl eax, 0x10
or eax, ecx
sub esi, eax
neg esi
sbb esi, esi
push edi
inc esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push ebp
call ebx
jmp 0x401f7b
Function at 0x4048e0
Capabilities:
Set registry value

Disassembly:
push esi
mov esi, dword [esp + 0x10]
push edi
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x4048e8
mov eax, dword [esp + 0xc]
push edi
push dword [esp + 0x18]
push 7
push 0
push dword [esp + 0x20]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
ret 0xc

Function at 0x40491a
Capabilities:
Set registry value

Disassembly:
push 4
lea eax, [esp + 0x10]
push eax
mov eax, dword [esp + 0xc]
push 4
push 0
push dword [esp + 0x18]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
ret 0xc

Function at 0x404a6b
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x19c]
sub esp, 0x21c
mov eax, dword [0x413040]
push ebx
push esi
xor eax, ebp
push edi
mov dword [ebp + 0x198], eax
mov eax, dword [ebp + 0x1a4]
push 0x2001f
push eax
mov ebx, ecx
push dword [ebx]
mov dword [ebp - 0x78], eax
xor esi, esi
lea eax, [ebp - 0x6c]
mov dword [ebp - 0x6c], esi
call fcn.00404972
mov edi, eax
cmp edi, esi
je 0x404ac1
cmp dword [ebp - 0x6c], esi
je 0x404abd
push dword [ebp - 0x6c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
jmp 0x404b28
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x404adc
lea eax, [ebp - 0x68]
push eax
lea ecx, [ebp - 0x6c]
call fcn.00404a6b
cmp eax, esi
mov dword [ebp - 0x74], eax
jne 0x404b42
lea eax, [ebp - 0x80]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x68]
push eax
push esi
push dword [ebp - 0x6c]
mov dword [ebp - 0x70], 0x100
call edi
test eax, eax
je 0x404ac9
cmp dword [ebp - 0x6c], esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x404b0f
push dword [ebp - 0x6c]
call edi
mov dword [ebp - 0x6c], esi
push dword [ebp - 0x78]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
cmp dword [ebp - 0x6c], esi
mov ebx, eax
je 0x404b26
push dword [ebp - 0x6c]
call edi
mov eax, ebx
mov ecx, dword [ebp + 0x198]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040f143
add ebp, 0x19c
leave
ret 4
cmp dword [ebp - 0x6c], esi
je 0x404b50
push dword [ebp - 0x6c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x74]
jmp 0x404b28

Function at 0x404f2c
Capabilities:
Get system information on windows

Disassembly:
push 0x3c
push 0x411140
call fcn.0040f154
mov ebx, ecx
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x48]
mov edi, eax
mov dword [ebp - 0x20], edi
and dword [ebx], 0
push 4
push 0x2000
shl eax, 0xa
push eax
push 0
mov esi, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
call esi
test eax, eax
je 0x404fce
mov dword [ebp - 0x24], edi
push 4
push 0x1000
push edi
push eax
call esi
mov esi, eax
mov dword [ebp - 0x1c], esi
test esi, esi
je 0x404fce
and dword [ebp - 4], 0
push dword [ebp + 0xc]
push dword [ebp + 8]
push esi
call dword [sym.imp.MSVCRT.dll_vsprintf]
add esp, 0xc
mov dword [ebp - 0x28], eax
or dword [ebp - 4], 0xffffffff
mov dword [ebx], esi
jmp 0x404fd0
xor eax, eax
call fcn.0040f18f
ret
Function at 0x405b24
Capabilities:
Parse url

Disassembly:
push esi
mov esi, eax
push edi
push esi
push dword [esp + 0x14]
mov eax, 0x81
push 0
push dword [esp + 0x18]
mov dword [esi + 0x20], eax
mov dword [esi + 0x28], eax
mov eax, 0x801
mov dword [esi + 8], 0x21
mov dword [esi + 0x14], 0x101
mov dword [esi + 0x30], eax
mov dword [esi + 0x38], eax
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
mov edi, eax
test edi, edi
je 0x405b85
push 0x3f
push dword [esp + 0x10]
call dword [sym.imp.MSVCRT.dll_wcschr]
test eax, eax
pop ecx
pop ecx
je 0x405b85
push eax
add esi, 0x1486
push esi
call dword [sym.imp.MSVCRT.dll_wcscpy]
pop ecx
pop ecx
mov eax, edi
pop edi
pop esi
ret 8

Function at 0x405c73
Capabilities:
Get http content length

Disassembly:
push ebp
mov eax, 0x1020
lea ebp, [esp - 0xfa0]
call fcn.0040f370
mov eax, dword [0x413040]
and dword [ebp - 0x7c], 0
push esi
push edi
xor eax, ebp
push 0
mov dword [ebp + 0xf9c], eax
mov eax, dword [ebp + 0xfa8]
mov edi, ecx
lea ecx, [ebp - 0x74]
push ecx
mov dword [ebp - 0x78], eax
mov eax, dword [ebp + 0xfac]
lea ecx, [ebp - 0x70]
push ecx
mov dword [ebp - 0x80], eax
mov eax, dword [ebp + 0xfb0]
push 0x20000005
mov esi, 0x7fffffff
push eax
mov dword [ebp - 0x70], esi
mov dword [ebp - 0x74], 4
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
jne 0x405cde
mov dword [ebp - 0x70], esi
mov eax, dword [0x413050]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x70]
cmp eax, esi
je 0x405cf0
inc eax
jmp 0x405cf5
mov eax, 0x2000
push ebx
lea ecx, [ebp - 0x6c]
call fcn.0040697e
or eax, 0xffffffff
lea ecx, [ebp - 0x6c]
call fcn.00406917
mov ebx, dword [ebp - 0x6c]
mov eax, 0x1000
cmp dword [ebp - 0x74], eax
jae 0x405d19
mov eax, dword [ebp - 0x74]
mov esi, dword [ebp - 0x78]
push 0xea60
push eax
lea ecx, [ebp - 0x68]
call fcn.00405dbd
test eax, eax
jbe 0x405d4b
mov byte [ebp + eax - 0x68], 0
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x6c]
push eax
call fcn.00406073
mov ebx, dword [ebp - 0x6c]
mov eax, dword [ebx - 8]
cmp eax, dword [ebp - 0x70]
jl 0x405d0c
mov eax, dword [ebp - 0x70]
cmp dword [ebx - 8], eax
jl 0x405d58
lea eax, [ebp - 0x6c]
jmp 0x405d6c
push 0x410838
lea edi, [ebp - 0x78]
mov dword [ebp - 0x7c], 1
call fcn.00405e2d
mov esi, dword [ebp - 0x80]
mov ecx, eax
call fcn.004068ee
test byte [ebp - 0x7c], 1
je 0x405d90
mov eax, dword [ebp - 0x78]
add eax, 0xfffffff4
cmp eax, dword [0x413054]
je 0x405d90
push eax
call fcn.004018e7
lea eax, [ebx - 0xc]
cmp eax, dword [0x413054]
pop ebx
je 0x405da2
push eax
call fcn.004018e7
mov ecx, dword [ebp + 0xf9c]
pop edi
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0040f143
add ebp, 0xfa0
leave
ret 0xc