joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43c5c4
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x4684a4]
cmp byte [eax + 0xc], 0
je 0x43c731
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x43c72a
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x469b68], 0
jne 0x43c618
push 0x43c738
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x43c740
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x469b68], eax
cmp dword [0x467bb8], 0
jne 0x43c713
push 0x43c750
call sub.kernel32.dll_LoadLibraryA
mov dword [0x467bb8], eax
cmp dword [0x467bb8], 0
je 0x43c713
push 0x43c75c
mov eax, dword [0x467bb8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x469b6c], eax
push 0x43c76c
mov eax, dword [0x467bb8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x469b70], eax
push 0x43c780
mov eax, dword [0x467bb8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x469b74], eax
push 0x43c798
mov eax, dword [0x467bb8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x469b78], eax
push 0x43c7b0
mov eax, dword [0x467bb8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x469b7c], eax
push 0x43c7c4
mov eax, dword [0x467bb8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x469b80], eax
push 0x43c7dc
mov eax, dword [0x467bb8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x469b84], eax
push 0x43c7f4
mov eax, dword [0x467bb8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x469b88], eax
push 0x43c810
mov eax, dword [0x467bb8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x469b8c], eax
push 0x43c81c
mov eax, dword [0x467bb8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x469b90], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43c731
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x4405bc
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
mov ebx, edx
mov word [ebp - 2], ax
mov eax, ebx
call fcn.0040416c
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x44060b
push pe_nt_image_headers32
lea edx, [ebp - 0x102]
push edx
push eax
call sub.user32.dll_GetKeyNameTextA
mov eax, ebx
lea edx, [ebp - 0x102]
mov ecx, pe_nt_image_headers32
call fcn.004043dc
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x447d20
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x447d70]
test si, 4
je 0x447d34
or bl, 1
test si, 8
je 0x447d3e
or bl, 4
test si, 1
je 0x447d48
or bl, 8
test si, 2
je 0x447d52
or bl, 0x10
test si, 0x10
je 0x447d5c
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x447d6b
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x447d74
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x447dac]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x447d8d
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x447d9c
or bl, 4
test esi, 0x20000000
je 0x447da7
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x44e454
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x44e466
add esp, 0xfffffff0
call fcn.00403660
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041e26c
mov eax, dword [0x468100]
mov dword [eax + 4], ebx
mov dword [eax], 0x44e7f8
mov eax, dword [0x46810c]
mov dword [eax + 4], ebx
mov dword [eax], 0x44e804
mov eax, ebx
call fcn.0044e810
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x415bb8]
call fcn.0040330c
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x415bb8]
call fcn.0040330c
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x415bb8]
call fcn.0040330c
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x415bb8]
call fcn.0040330c
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x415bb8]
call fcn.0040330c
mov dword [ebx + 0x7c], eax
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0x5a
push esi
call sub.gdi32.dll_GetDeviceCaps
mov dword [ebx + 0x40], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x58]
push eax
mov eax, 0x44ac2c
push eax
push 0
push 0
mov eax, dword [0x46827c]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x41fc90]
call fcn.004210d4
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x41fc90]
call fcn.004210d4
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x41fc90]
call fcn.004210d4
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.0044ec30
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x44eb0c
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x44eb0c
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x44eb0c
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x44e5a3
call fcn.004036b8
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x44e8f0
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 0x44ea9b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x44ea7c
mov dl, 1
mov eax, dword [0x416180]
call fcn.0040330c
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.0040416c
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x44ea6b
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.0043c924
test al, al
je 0x44ea5e
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, 0x44eaac
lea eax, [ebp - 0x254]
call fcn.00409120
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x44ea5e
xor eax, eax
push ebp
push 0x44ea57
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 0x44eae4
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x44ea40
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004043dc
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 0x44ea40
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004043dc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44ea5e
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x44e961
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.0041a32c
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 0x44eaa2
lea eax, [ebp - 0x260]
call fcn.0040416c
ret

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

Disassembly:
push ecx
mov eax, dword [0x469bb4]
cmp byte [eax + 0xa5], 0
jne 0x44f441
cmp dword [0x469bcc], 0
jne 0x44f402
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x44f38c
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x469bcc], eax
cmp dword [0x469bc8], 0
jne 0x44f41d
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x469bc8], eax
cmp dword [0x469bd0], 0
jne 0x44f441
push esp
push 0
push 0
push 0x44f330
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x469bd0], eax
pop edx
ret
Function at 0x44f538
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x44f54f
add esp, 0xfffffff0
call fcn.00403660
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041e26c
mov eax, dword [0x468264]
cmp word [eax + 2], 0
jne 0x44f577
mov eax, dword [0x468264]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00450c10
mov eax, dword [0x468324]
cmp word [eax + 2], 0
jne 0x44f591
mov eax, dword [0x468324]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00450e08
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x415bb8]
call fcn.0040330c
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x415bb8]
call fcn.0040330c
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 [0x420440]
call fcn.00426088
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x44f718
mov eax, dword [0x46816c]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.00426458
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x4513b8
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x46816c]
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.0040c8f0
test eax, eax
je 0x44f686
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00408b14
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040c918
test eax, eax
je 0x44f69a
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.004043dc
mov eax, dword [0x468048]
cmp byte [eax], 0
jne 0x44f6ce
mov eax, ebx
call fcn.0044f840
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.00451594
mov eax, ebx
call fcn.00451f58
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x44f70e
call fcn.004036b8
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x44fac0
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x469bb4]
cmp dword [eax + 0x30], 0
je 0x44fb6a
cmp dword [ebx + 0x94], 0
jne 0x44fb64
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x44fa50
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x44fb64
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 0x44fb2a
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x44fb64
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.004181a4
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x44fb39
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x4506cc
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 0x450701
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.0040425c
jmp 0x45070e
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.004041c0
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x451770
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x4517b1
mov eax, esi
call fcn.0043812c
test al, al
je 0x4517b1
mov eax, dword [ebx + 0x84]
call fcn.00437ecc
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4517b1
push 0
mov eax, dword [ebx + 0x84]
call fcn.00437ecc
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x401000
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x401090
push ebp
mov ebp, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x10]
push ebx
cmp byte [esi], 0
je 0x40108d
push 0x5c
push esi
call dword [sym.imp.MSVCR71.dll_strchr]
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x40108d
push edi
mov byte [esi], 0
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x401066
push 0
push edi
call dword [sym.imp.kernel32.dll_CreateDirectoryA]
test eax, eax
jne 0x40105f
test ebp, ebp
je 0x40105f
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
jmp 0x401066
push edi
push 1
call ebp
pop ecx
pop ecx
test bl, 0x10
jne 0x401087
push 0xb7
call dword [sym.imp.kernel32.dll_SetLastError]
test ebp, ebp
je 0x401087
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
mov byte [esi], 0x5c
inc esi
jne 0x401018
pop ebx
pop edi
pop ebp
xor eax, eax
inc eax
pop esi
ret

Function at 0x402bf1
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
pushal
call 0x402c00
pop dword [ebp - 0xc]
mov eax, 0xfa05a14f
add eax, 0x63a8ab1
sub dword [ebp - 0xc], eax
mov dword [ebp - 0x1c], 0x2d538d09
sub dword [ebp - 0x1c], 0xdf0147be
mov dword [ebp - 0x18], 0xf72b2472
add dword [ebp - 0x18], 0x3b0827d3
mov dword [ebp - 0x14], 0xdab5d54e
add dword [ebp - 0x14], 0x71966ee0
mov dword [ebp - 0x10], 0xa42dd420
add dword [ebp - 0x10], 0x5bd22be0
lea eax, [ebp - 0x1c]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0xc]
call dword [eax]
mov dword [ebp - 0x1c], 0xbd97f047
add dword [ebp - 0x1c], 0xb6da790f
mov dword [ebp - 0x18], 0x9f98e1eb
sub dword [ebp - 0x18], 0x5e2c8076
mov dword [ebp - 0x14], 0x7abde746
add dword [ebp - 0x14], 0xe8b18526
mov dword [ebp - 0x10], 0x857ef312
add dword [ebp - 0x10], 0x7a810cee
lea ebx, [ebp - 0x1c]
push ebx
push eax
mov eax, 0x1f97611d
add eax, 0xe0a91fb7
add eax, dword [ebp - 0xc]
call dword [eax]
push 0x40
push 0x1000
push 0x32b2e
push 0
call eax
mov ecx, 0x13ae4ba2
add ecx, 0xec51ec68
mov esi, eax
mov edi, 0xd359f7a7
sub edi, 0xd318e7a7
add edi, dword [ebp - 0xc]
mov ebx, 0x2c70e629
add dword [ebp - 8], 0x23302f63
mov edx, dword [edi]
xor edx, ebx
mov dword [esi], edx
add esi, 0xaeb75ef
sub esi, 0xaeb75eb
add edi, 0xcae1569c
sub edi, 0xcae15698
loop 0x402d17
add eax, 0xd2fb
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0xe5176a1e
sub ecx, 0xe4d76a1e
add ecx, dword [ebp - 0xc]
call ebx
leave
ret
Function at 0x401800
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x110
push ebx
xor ebx, ebx
mov byte [esi], bl
mov ecx, dword [0x43d844]
mov eax, dword [str.SOFTWARERising_]
mov edx, dword [0x43d848]
mov dword [esp + 0xc], eax
mov eax, dword [0x43d84c]
mov dword [esp + 0x10], ecx
mov cl, byte [0x43d850]
push edi
mov dword [esp + 0x1c], eax
mov byte [esp + 0x20], cl
mov dword [esp + 0x18], edx
xor eax, eax
mov ecx, 0x3d
lea edi, [esp + 0x21]
lea edx, [esp + 0x10]
rep stosd dword es:[edi], eax
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push edx
mov dword [esp + 0xc], ebx
call edi
mov edx, dword [ebp + 0xc]
mov ecx, 0x105
sub ecx, eax
push ecx
push edx
lea eax, [esp + 0x18]
push eax
call edi
lea ecx, [esp + eax + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
lea edx, [esp + 8]
push edx
push 1
push ebx
lea eax, [esp + 0x1c]
push eax
push SysStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4018e9
lea ecx, [ebp + 8]
push ecx
push esi
lea edx, [esp + 0x14]
push edx
push eax
mov eax, dword [esp + 0x18]
push str.installpath
push eax
mov dword [esp + 0x24], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4018de
push 0x5c
push esi
call fcn.004299c4
add esp, 8
test eax, eax
je 0x4018d9
mov cl, byte [eax + 1]
test cl, cl
jne 0x4018d9
mov byte [eax], bl
mov ebx, 1
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x401b30
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x11c
xor eax, eax
cmp edx, eax
push edi
je 0x401c11
cmp esi, eax
je 0x401c11
mov byte [esp + 0x18], al
mov dword [esp + 0xc], eax
mov dword [esp + 8], eax
mov ecx, 0x40
lea edi, [esp + 0x19]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push edx
push str.SOFTWARERising_s
stosb byte es:[edi], al
lea eax, [esp + 0x20]
push 0x104
push eax
mov dword [esp + 0x20], 1
call fcn.00401a90
add esp, 0x10
lea ecx, [esp + 8]
push ecx
push 0x20019
push 0
lea edx, [esp + 0x24]
push edx
push SysStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401bfe
mov edx, dword [esp + 8]
lea eax, [esp + 0xc]
push eax
push esi
lea ecx, [esp + 0x18]
push ecx
push 0
push str.datapath
push edx
mov dword [esp + 0x24], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov eax, esi
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401bd0
sub eax, edx
mov dword [esp + 0x14], eax
je 0x401bf3
cmp ebx, 0x7fffffff
ja 0x401bf3
push 0x43d854
push ebx
push esi
call fcn.00401ac0
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401c03
sub eax, edx
pop edi
mov esp, ebp
pop ebp
ret
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x401f20
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x10c
push ebx
push esi
push edi
mov esi, eax
xor eax, eax
test esi, esi
mov byte [esp + 0x10], 0
mov ecx, 0x40
lea edi, [esp + 0x11]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ebx, 1
stosb byte es:[edi], al
je 0x401f6e
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push esi
call edi
test eax, eax
jle 0x401f6e
push esi
call edi
cmp eax, 0x104
jbe 0x401f77
push 0x6f
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x103
push esi
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov eax, dword [ebp + 8]
test eax, eax
je 0x401f9a
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.SHLWAPI.dll_PathSkipRootA]
mov esi, eax
push esi
call edi
test eax, eax
jne 0x401fba
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x5c
push esi
call fcn.00429fe0
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov esi, eax
add esp, 8
test esi, esi
je 0x40200a
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [esp + 0x14]
push ecx
mov byte [esi], 0
call edi
and ebx, eax
jne 0x401ff5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x401ff5
mov ebx, 1
mov byte [esi], 0x5c
push 0x5c
inc esi
push esi
call fcn.00429fe0
mov esi, eax
add esp, 8
test esi, esi
jne 0x401fd1
mov edx, dword [ebp + 0xc]
push edx
lea eax, [esp + 0x14]
push eax
call edi
and ebx, eax
jne 0x40202b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40202b
mov ebx, 1
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x402ef0
Capabilities:
Parse url

Disassembly:
sub esp, 0x3c
push ebx
push ebp
push esi
mov esi, dword [esp + 0x4c]
push edi
mov ebp, ecx
lea eax, [esi + 1]
mov cl, byte [esi]
inc esi
test cl, cl
jne 0x402f00
sub esi, eax
xor eax, eax
mov ecx, 0xf
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
push esi
mov ecx, ebp
mov dword [esp + 0x14], 0x3c
call fcn.00402720
lea edi, [ebp + 8]
push esi
mov ecx, edi
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], esi
call fcn.00402720
lea ebx, [ebp + 0x10]
push esi
mov ecx, ebx
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], esi
call fcn.00402720
lea ecx, [ebp + 0x14]
push esi
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], esi
call fcn.00402720
lea ecx, [ebp + 0x18]
push esi
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], esi
call fcn.00402720
lea ecx, [ebp + 0x1c]
push esi
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], esi
call fcn.00402720
mov ecx, dword [esp + 0x50]
mov dword [esp + 0x44], eax
lea eax, [esp + 0x10]
push eax
push 0
push 0
push ecx
mov dword [esp + 0x58], esi
call dword [sym.imp.WININET.dll_InternetCrackUrlA]
test eax, eax
mov ecx, ebp
setne byte [esp + 0x50]
call fcn.00402350
mov edx, dword [ebp]
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push edx
call esi
mov ecx, dword [ebp]
mov dword [ecx - 8], eax
mov edx, dword [ebp]
mov ecx, edi
mov byte [eax + edx], 0
call fcn.00402350
mov eax, dword [edi]
push eax
call esi
mov ecx, dword [edi]
mov dword [ecx - 8], eax
mov edx, dword [edi]
mov ecx, ebx
mov byte [eax + edx], 0
call fcn.00402350
mov eax, dword [ebx]
push eax
call esi
mov ecx, dword [ebx]
mov dword [ecx - 8], eax
mov edx, dword [ebx]
lea edi, [ebp + 0x14]
mov ecx, edi
mov byte [eax + edx], 0
call fcn.00402350
mov eax, dword [edi]
push eax
call esi
mov ecx, dword [edi]
mov dword [ecx - 8], eax
mov edx, dword [edi]
lea edi, [ebp + 0x18]
mov ecx, edi
mov byte [eax + edx], 0
call fcn.00402350
mov eax, dword [edi]
push eax
call esi
mov ecx, dword [edi]
mov dword [ecx - 8], eax
mov edx, dword [edi]
lea edi, [ebp + 0x1c]
mov ecx, edi
mov byte [eax + edx], 0
call fcn.00402350
mov eax, dword [edi]
push eax
call esi
mov ecx, dword [edi]
mov dword [ecx - 8], eax
mov edx, dword [edi]
mov byte [eax + edx], 0
mov eax, dword [esp + 0x1c]
mov cx, word [esp + 0x28]
pop edi
pop esi
mov dword [ebp + 4], eax
mov al, byte [esp + 0x48]
mov word [ebp + 0xc], cx
pop ebp
pop ebx
add esp, 0x3c
ret 4