joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41e3a8
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor esi, esi
mov edi, 0x12
mov eax, dword [ebp + 8]
lea ecx, [eax - 0x48]
lea eax, [esi + 1]
xor edx, edx
div dword [ebp - 8]
mov eax, dword [ebp - 4]
movzx ebx, byte [eax + edx]
shl ebx, 0x10
mov eax, dword [ebp - 4]
movzx eax, byte [eax + esi]
shl eax, 0x18
add ebx, eax
lea eax, [esi + 2]
xor edx, edx
div dword [ebp - 8]
mov eax, dword [ebp - 4]
movzx eax, byte [eax + edx]
shl eax, 8
add ebx, eax
lea eax, [esi + 3]
xor edx, edx
div dword [ebp - 8]
mov eax, dword [ebp - 4]
movzx eax, byte [eax + edx]
add ebx, eax
xor dword [ecx], ebx
lea eax, [esi + 4]
xor edx, edx
div dword [ebp - 8]
mov esi, edx
add ecx, 4
dec edi
jne 0x41e3c4
xor eax, eax
mov dword [ebp - 0xc], eax
xor eax, eax
mov dword [ebp - 0x10], eax
xor edi, edi
mov eax, dword [ebp + 8]
push eax
push 1
mov eax, dword [ebp + 8]
lea ecx, [eax - 0x48]
lea edx, [ebp - 0x10]
lea eax, [ebp - 0xc]
call fcn.0041dfe8
pop ecx
mov eax, edi
add eax, eax
mov edx, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword [edx + eax*4 - 0x48], ecx
mov edx, dword [ebp + 8]
mov ecx, dword [ebp - 0x10]
mov dword [edx + eax*4 - 0x44], ecx
inc edi
cmp edi, 9
jne 0x41e425
mov edi, 4
mov eax, dword [ebp + 8]
lea ebx, [eax - 0x1048]
xor esi, esi
mov eax, dword [ebp + 8]
push eax
push 1
mov eax, dword [ebp + 8]
lea ecx, [eax - 0x48]
lea edx, [ebp - 0x10]
lea eax, [ebp - 0xc]
call fcn.0041dfe8
pop ecx
mov eax, esi
add eax, eax
mov edx, dword [ebp - 0xc]
mov dword [ebx + eax*4], edx
mov edx, dword [ebp - 0x10]
mov dword [ebx + eax*4 + 4], edx
inc esi
cmp esi, 0x80
jne 0x41e46b
add ebx, 0x400
dec edi
jne 0x41e469
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41e4b0
Capabilities:
Encrypt data using blowfish

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff004
push eax
add esp, 0xffffff9c
push ebx
push esi
push edi
mov byte [ebp - 0x104d], cl
mov dword [ebp - 0x104c], edx
mov edi, eax
mov ebx, dword [ebp + 0x14]
lea esi, [ebp - 0x105c]
push esi
push edi
mov esi, 0x4b75b4
lea edi, [ebp - 0x48]
mov ecx, 0x12
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
push esi
push edi
mov esi, 0x4b75fc
lea edi, [ebp - 0x1048]
mov ecx, 0x400
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
push ebp
mov eax, ebx
call fcn.004072a0
push eax
mov eax, ebx
call fcn.004076c4
pop edx
call fcn.0041e3a8
pop ecx
mov ebx, edi
cmp byte [ebp - 0x104d], 0
je 0x41e537
lea eax, [ebp - 0x48]
mov dword [ebp - 0x1054], eax
mov dword [ebp - 0x1058], 1
jmp 0x41e54a
lea eax, [ebp - 4]
mov dword [ebp - 0x1054], eax
mov dword [ebp - 0x1058], 0xffffffff
mov eax, dword [ebp - 0x104c]
shr eax, 3
dec eax
test eax, eax
jl 0x41e66a
inc eax
mov dword [ebp - 0x1064], eax
cmp dword [ebp + 0x10], 0
jne 0x41e56d
cmp dword [ebp + 0xc], 0
je 0x41e5ea
mov dword [esi], 7
lea eax, [ebp + 0xc]
add eax, dword [esi]
movzx edx, byte [eax]
inc edx
and dl, 0xff
mov byte [eax], dl
lea eax, [ebp + 0xc]
add eax, dword [esi]
cmp byte [eax], 0
jne 0x41e594
dec dword [esi]
cmp dword [esi], 0xffffffff
jne 0x41e575
lea eax, [ebp + 0xc]
mov eax, dword [eax]
call fcn.0041dfbc
mov dword [esi], eax
lea eax, [ebp + 0xc]
add eax, 4
mov eax, dword [eax]
call fcn.0041dfbc
mov dword [ebp - 0x1060], eax
push ebp
mov eax, dword [ebp - 0x1058]
push eax
lea edx, [ebp - 0x1060]
mov eax, esi
mov ecx, dword [ebp - 0x1054]
call fcn.0041dfe8
pop ecx
mov eax, dword [esi]
call fcn.0041dfbc
xor dword [ebx], eax
mov eax, dword [ebp - 0x1060]
call fcn.0041dfbc
lea edx, [ebx + 4]
xor dword [edx], eax
jmp 0x41e65b
cmp byte [ebp + 8], 0
jne 0x41e642
mov edi, ebx
mov eax, dword [edi]
call fcn.0041dfbc
mov dword [esi], eax
lea eax, [ebx + 4]
mov eax, dword [eax]
call fcn.0041dfbc
mov dword [ebp - 0x1060], eax
push ebp
mov eax, dword [ebp - 0x1058]
push eax
lea edx, [ebp - 0x1060]
mov eax, esi
mov ecx, dword [ebp - 0x1054]
call fcn.0041dfe8
pop ecx
mov eax, dword [esi]
call fcn.0041dfbc
mov dword [edi], eax
mov eax, dword [ebp - 0x1060]
call fcn.0041dfbc
lea edx, [ebx + 4]
mov dword [edx], eax
jmp 0x41e65b
push ebp
mov eax, dword [ebp - 0x1058]
push eax
mov edx, ebx
lea eax, [ebx + 4]
mov ecx, dword [ebp - 0x1054]
call fcn.0041dfe8
pop ecx
add ebx, 8
dec dword [ebp - 0x1064]
jne 0x41e563
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x41e7e8
Capabilities:
Encode data using base64

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
test esi, esi
jle 0x41e913
lea eax, [esi + 2]
mov ecx, 3
cdq
idiv ecx
mov edx, eax
add edx, edx
add edx, edx
mov eax, edi
xor ecx, ecx
call fcn.004077d8
mov ecx, dword [edi]
mov eax, esi
mov edi, 3
cdq
idiv edi
mov edi, eax
test edi, edi
jle 0x41e885
movzx eax, byte [ebx]
shl eax, 0x10
movzx edx, byte [ebx + 1]
shl edx, 8
add eax, edx
movzx edx, byte [ebx + 2]
add eax, edx
mov edx, eax
shr edx, 0x12
and edx, 0x3f
movzx edx, byte [edx + 0x4b85fc]
mov byte [ecx], dl
mov edx, eax
shr edx, 0xc
and edx, 0x3f
movzx edx, byte [edx + 0x4b85fc]
mov byte [ecx + 1], dl
mov edx, eax
shr edx, 6
and edx, 0x3f
movzx edx, byte [edx + 0x4b85fc]
mov byte [ecx + 2], dl
and eax, 0x3f
movzx eax, byte [eax + 0x4b85fc]
mov byte [ecx + 3], al
add ecx, 4
add ebx, 3
dec edi
jne 0x41e825
mov eax, esi
mov esi, 3
cdq
idiv esi
dec edx
je 0x41e89a
dec edx
je 0x41e8cb
jmp 0x41e91a
movzx eax, byte [ebx]
shl eax, 0x10
mov edx, eax
shr edx, 0x12
and edx, 0x3f
movzx edx, byte [edx + 0x4b85fc]
mov byte [ecx], dl
shr eax, 0xc
and eax, 0x3f
movzx eax, byte [eax + 0x4b85fc]
mov byte [ecx + 1], al
mov byte [ecx + 2], 0x3d
mov byte [ecx + 3], 0x3d
jmp 0x41e91a
movzx eax, byte [ebx]
shl eax, 0x10
movzx edx, byte [ebx + 1]
shl edx, 8
add eax, edx
mov edx, eax
shr edx, 0x12
and edx, 0x3f
movzx edx, byte [edx + 0x4b85fc]
mov byte [ecx], dl
mov edx, eax
shr edx, 0xc
and edx, 0x3f
movzx edx, byte [edx + 0x4b85fc]
mov byte [ecx + 1], dl
shr eax, 6
and eax, 0x3f
movzx eax, byte [eax + 0x4b85fc]
mov byte [ecx + 2], al
mov byte [ecx + 3], 0x3d
jmp 0x41e91a
mov eax, edi
call fcn.00406de8
pop edi
pop esi
pop ebx
ret
Function at 0x41f8fc
Capabilities:
Check if file exists
Get file attributes
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00406eb8
xor eax, eax
push ebp
push 0x41f9ed
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
mov eax, dword [ebp - 4]
call fcn.004076c4
mov esi, eax
push esi
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x41f9d7
push 0
push 0x80
push 3
push 0
push 3
push 0x80000000
push esi
call sub.kernel32.dll_CreateFileA
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
je 0x41f9d7
xor eax, eax
push ebp
push 0x41f9d0
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetFileSize_1
mov edx, eax
mov eax, ebx
xor ecx, ecx
call fcn.004077d8
cmp dword [ebx], 0
je 0x41f9b0
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebx]
call fcn.004072a0
push eax
mov eax, dword [ebx]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_ReadFile_1
test eax, eax
je 0x41f9b0
mov eax, dword [ebx]
call fcn.004072a0
cmp eax, dword [ebp - 0x10]
je 0x41f9b4
xor eax, eax
jmp 0x41f9b6
mov al, 1
mov byte [ebp - 5], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41f9d7
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41f9f4
lea eax, [ebp - 4]
call fcn.00406de8
ret
Function at 0x42ad6c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
movzx eax, cl
mov edx, dword [ebp - 4]
cmp word [edx + eax*2], 0xffff
jne 0x42adbe
mov dword [ebp - 0xc], 0x7fffffff
xor esi, esi
mov ebx, dword [ebp - 8]
movzx eax, cl
movzx edx, byte [ebx]
sub eax, edx
cdq
xor eax, edx
sub eax, edx
cmp eax, dword [ebp - 0xc]
jge 0x42adb5
movzx edx, cl
mov edi, dword [ebp - 4]
lea edi, [edi + edx*2]
mov word [edi], si
mov dword [ebp - 0xc], eax
inc esi
add ebx, 3
cmp esi, 0x10
jne 0x42ad94
movzx eax, cl
mov edx, dword [ebp - 4]
movzx eax, byte [edx + eax*2]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x42ba14
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
mov esi, eax
lea eax, [ebp - 0x14]
mov edx, 0x14
call fcn.0040c160
mov dword [ebp - 0x14], 0x14
push 0x42bb1c
push 0x42bb38
call sub.kernel32.dll_GetModuleHandleW_2
push eax
call fcn.0040ba0c
mov ebx, eax
test ebx, ebx
je 0x42ba57
lea eax, [ebp - 0x14]
push eax
call ebx
test eax, eax
jne 0x42baad
lea eax, [ebp - 8]
push eax
call sub.user32.dll_GetCursorPos
test eax, eax
je 0x42baad
push dword [ebp - 4]
push dword [ebp - 8]
call sub.user32.dll_WindowFromPoint
test eax, eax
je 0x42ba7f
push 0
push eax
call sub.user32.dll_GetWindowThreadProcessId
mov ebx, eax
jmp 0x42ba81
xor ebx, ebx
test ebx, ebx
je 0x42ba93
push 0xffffffffffffffff
push ebx
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
call sub.user32.dll_AttachThreadInput
call sub.user32.dll_GetCursor
mov dword [ebp - 0xc], eax
test ebx, ebx
je 0x42baad
push 0
push ebx
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
call sub.user32.dll_AttachThreadInput
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x42bb16
test byte [ebp - 0x10], 1
je 0x42bb16
lea eax, [ebp - 0x28]
push eax
push ebx
call sub.user32.dll_GetIconInfo
test eax, eax
je 0x42baee
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x42bad5
push eax
call sub.gdi32.dll_DeleteObject
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x42bae2
push eax
call sub.gdi32.dll_DeleteObject
mov eax, dword [ebp - 0x24]
sub dword [ebp - 8], eax
mov eax, dword [ebp - 0x20]
sub dword [ebp - 4], eax
push 3
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 4]
sub edx, dword [eax - 8]
push edx
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 8]
sub edx, dword [eax - 4]
push edx
push esi
call sub.user32.dll_DrawIconEx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42d82c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff8
mov byte [esp + 4], cl
mov dword [esp], edx
mov edi, eax
mov ecx, edi
movzx eax, byte [esp]
mov byte [esp + 5], al
mov edx, edi
shr edx, 8
mov eax, dword [esp]
shr eax, 8
mov byte [esp + 6], al
mov eax, edi
shr eax, 0x10
mov ebx, dword [esp]
shr ebx, 0x10
mov byte [esp + 7], bl
xor esi, esi
cmp byte [esp + 4], 0
je 0x42d8c0
movzx ebx, cl
movzx ebp, byte [esp + 5]
add ebx, ebp
cmp ebx, 0xff
jbe 0x42d884
inc esi
mov cl, 0xff
jmp 0x42d888
add cl, byte [esp + 5]
movzx ebx, dl
movzx ebp, byte [esp + 6]
add ebx, ebp
cmp ebx, 0xff
jbe 0x42d89f
inc esi
mov dl, 0xff
jmp 0x42d8a3
add dl, byte [esp + 6]
movzx ebx, al
movzx ebp, byte [esp + 7]
add ebx, ebp
cmp ebx, 0xff
jbe 0x42d8ba
inc esi
mov al, 0xff
jmp 0x42d8ed
add al, byte [esp + 7]
jmp 0x42d8ed
cmp cl, byte [esp + 5]
jae 0x42d8cb
inc esi
xor ecx, ecx
jmp 0x42d8cf
sub cl, byte [esp + 5]
cmp dl, byte [esp + 6]
jae 0x42d8da
inc esi
xor edx, edx
jmp 0x42d8de
sub dl, byte [esp + 6]
cmp al, byte [esp + 7]
jae 0x42d8e9
inc esi
xor eax, eax
jmp 0x42d8ed
sub al, byte [esp + 7]
dec esi
jle 0x42d904
movzx ecx, byte [esp + 4]
xor cl, 1
mov edx, dword [esp]
mov eax, edi
call fcn.0042d82c
jmp 0x42d917
movzx eax, al
shl eax, 0x10
movzx edx, dl
shl edx, 8
add eax, edx
movzx edx, cl
add eax, edx
pop ecx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x42eb68
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
push esi
push edi
mov esi, ecx
mov edi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x42ebeb
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
mov edx, 0x10
call fcn.0040c160
mov eax, dword [ebx + 0xc]
mov eax, dword [eax + 0x30]
sub eax, 0x2e
mov dword [esi + 8], eax
push 0x410
push esi
lea edx, [ebp - 4]
mov eax, ebx
call fcn.0042ed08
mov eax, dword [ebp - 4]
call fcn.004072a0
push eax
lea edx, [ebp - 8]
mov eax, ebx
call fcn.0042ed08
mov eax, dword [ebp - 8]
call fcn.004076c4
push eax
push edi
call sub.user32.dll_DrawTextA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42ebf2
lea eax, [ebp - 8]
mov edx, 2
call fcn.00406e54
ret

Function at 0x42f10c
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
push edi
mov edi, edx
mov ebx, eax
mov esi, dword [ebx + 0x14]
test esi, esi
je 0x42f157
push 0
push 0
push 0xe
push esi
call sub.user32.dll_SendMessageA
mov edx, eax
inc edx
lea eax, [ebx + 0x50]
xor ecx, ecx
call fcn.004077d8
mov eax, dword [ebx + 0x50]
push eax
mov eax, dword [ebx + 0x50]
call fcn.004072a0
push eax
push 0xd
mov eax, dword [ebx + 0x14]
push eax
call sub.user32.dll_SendMessageA
mov edx, eax
lea eax, [ebx + 0x50]
xor ecx, ecx
call fcn.004077d8
mov eax, edi
mov edx, dword [ebx + 0x50]
call fcn.00407220
pop edi
pop esi
pop ebx
ret

Function at 0x434bf8
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeec
push ebx
xor edx, edx
mov dword [ebp - 0x10c], edx
mov dword [ebp - 0x110], edx
mov dword [ebp - 0x114], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x434d11
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x105]
push eax
push 0x104
call sub.kernel32.dll_GetTempPathA
test eax, eax
jbe 0x434cec
mov eax, ebx
lea edx, [ebp - 0x105]
mov ecx, 0x105
push 0
call fcn.0040747c
cmp dword [ebx], 0
je 0x434cf3
push 0
mov eax, dword [ebx]
call fcn.004076c4
push eax
call sub.kernel32.dll_CreateDirectoryA
mov eax, dword [ebx]
call fcn.004072a0
mov edx, dword [ebx]
cmp byte [edx + eax - 1], 0x5c
je 0x434c87
mov eax, ebx
mov edx, 0x434d2c
call fcn.004074d8
push dword [ebx]
lea edx, [ebp - 0x114]
xor eax, eax
call fcn.00434784
mov eax, dword [ebp - 0x114]
lea edx, [ebp - 0x110]
call fcn.004347b8
mov eax, dword [ebp - 0x110]
lea edx, [ebp - 0x10c]
call fcn.004349b8
push dword [ebp - 0x10c]
push 0x434d3c
mov eax, ebx
mov edx, 3
call fcn.004075b4
push 0
mov eax, dword [ebx]
call fcn.004076c4
push eax
call sub.kernel32.dll_CreateDirectoryA
mov eax, ebx
mov edx, 0x434d2c
call fcn.004074d8
jmp 0x434cf3
mov eax, ebx
call fcn.00406de8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x434d18
lea eax, [ebp - 0x114]
mov edx, 3
call fcn.00406e54
ret
Function at 0x434d48
Capabilities:
Check if file exists
Delete directory
Delete file
Enumerate files on windows
Get file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeb0
push ebx
xor eax, eax
mov dword [ebp - 0x14c], eax
mov dword [ebp - 0x150], eax
mov dword [ebp - 0x148], eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x434e5a
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
call fcn.00434bf8
cmp dword [ebp - 4], 0
je 0x434e34
mov eax, dword [ebp - 4]
call fcn.004076c4
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x434e34
lea eax, [ebp - 0x144]
push eax
lea eax, [ebp - 0x148]
mov ecx, 0x434e74
mov edx, dword [ebp - 4]
call fcn.00407530
mov eax, dword [ebp - 0x148]
call fcn.004076c4
push eax
call sub.kernel32.dll_FindFirstFileA
mov ebx, eax
cmp ebx, 0xffffffff
je 0x434e26
lea eax, [ebp - 0x150]
lea edx, [ebp - 0x118]
mov ecx, 0x104
push 0
call fcn.0040747c
mov ecx, dword [ebp - 0x150]
lea eax, [ebp - 0x14c]
mov edx, dword [ebp - 4]
call fcn.00407530
mov eax, dword [ebp - 0x14c]
call fcn.004076c4
push eax
call sub.kernel32.dll_DeleteFileA
lea eax, [ebp - 0x144]
push eax
push ebx
call sub.kernel32.dll_FindNextFileA
test eax, eax
jne 0x434dd2
push ebx
call sub.kernel32.dll_FindClose_1
mov eax, dword [ebp - 4]
call fcn.004076c4
push eax
call sub.kernel32.dll_RemoveDirectoryA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x434e61
lea eax, [ebp - 0x150]
mov edx, 3
call fcn.00406e54
lea eax, [ebp - 4]
call fcn.00406de8
ret

Function at 0x434e78
Capabilities:
Get hostname

Disassembly:
push ebx
add esp, 0xfffffef4
mov ebx, eax
mov dword [esp], 0x104
push esp
lea eax, [esp + 8]
push eax
call sub.kernel32.dll_GetComputerNameA
mov eax, ebx
lea edx, [esp + 4]
mov ecx, 0x105
push 0
call fcn.0040747c
add esp, 0x10c
pop ebx
ret
Function at 0x434eb0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov esi, eax
mov ebx, dword [ebp + 8]
mov eax, dword [ebp - 4]
call fcn.00406eb8
mov eax, dword [ebp - 8]
call fcn.00406eb8
xor eax, eax
push ebp
push 0x434fb0
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.00406de8
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
mov eax, dword [ebp - 4]
call fcn.004076c4
push eax
push esi
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x434f95
xor eax, eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
mov eax, dword [ebp - 8]
call fcn.004076c4
mov edi, eax
push edi
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA
cmp dword [ebp - 0x10], 0
je 0x434f8c
mov eax, dword [ebp - 0x10]
add eax, eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
push 0x40
call sub.kernel32.dll_LocalAlloc_2
mov esi, eax
lea eax, [ebp - 0x10]
push eax
push esi
lea eax, [ebp - 0x14]
push eax
push 0
push edi
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
jne 0x434f86
cmp dword [ebp - 0x14], 1
jne 0x434f78
mov eax, ebx
mov edx, esi
mov ecx, 0
call fcn.004073f4
jmp 0x434f86
push 0
mov eax, ebx
mov ecx, dword [ebp - 0x10]
mov edx, esi
call fcn.00406f80
push esi
call sub.kernel32.dll_LocalFree_1
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x434fb7
lea eax, [ebp - 8]
mov edx, 2
call fcn.00406e54
ret

Function at 0x434fc0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00406eb8
mov eax, dword [ebp - 8]
call fcn.00406eb8
mov eax, dword [ebp + 8]
call fcn.00406eb8
xor eax, eax
push ebp
push 0x43507b
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.004076c4
push eax
push ebx
call sub.advapi32.dll_RegCreateKeyExA
test eax, eax
jne 0x435056
mov eax, dword [ebp + 8]
call fcn.004072a0
inc eax
push eax
mov eax, dword [ebp + 8]
call fcn.004076c4
push eax
push 1
push 0
mov eax, dword [ebp - 8]
call fcn.004076c4
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
sete bl
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
jmp 0x435058
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x435082
lea eax, [ebp - 8]
mov edx, 2
call fcn.00406e54
lea eax, [ebp + 8]
call fcn.00406de8
ret
Function at 0x43508c
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00406eb8
mov eax, dword [ebp - 8]
call fcn.00406eb8
xor eax, eax
push ebp
push 0x435116
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0xc]
push eax
push 0xf003f
push 0
mov eax, dword [ebp - 4]
call fcn.004076c4
push eax
push ebx
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4350f9
mov eax, dword [ebp - 8]
call fcn.004076c4
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegDeleteValueA
test eax, eax
sete bl
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
jmp 0x4350fb
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43511d
lea eax, [ebp - 8]
mov edx, 2
call fcn.00406e54
ret

Function at 0x435444
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00411888
test eax, eax
je 0x4354d4
add eax, 0x80
mov edx, dword [eax]
mov esi, edx
add esi, dword [ebp - 4]
add edx, dword [eax + 4]
mov dword [ebp - 0x10], edx
test esi, esi
je 0x4354d4
jmp 0x4354ce
mov eax, dword [esi + 0x10]
cmp eax, dword [ebp - 0x10]
jbe 0x43548a
push ebp
call fcn.0043536c
pop ecx
jmp 0x4354d4
cmp dword [esi + 0x10], 0
je 0x4354cb
mov ebx, dword [ebp - 4]
add ebx, dword [esi + 0x10]
jmp 0x4354c6
cmp edi, dword [ebx]
jne 0x4354c3
lea eax, [ebp - 0xc]
push eax
push 0x40
push 4
push ebx
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x4354c3
mov eax, dword [ebp - 8]
mov dword [ebx], eax
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 4
push ebx
call sub.kernel32.dll_VirtualProtect
add ebx, 4
cmp dword [ebx], 0
jne 0x435498
add esi, 0x14
cmp dword [esi + 0xc], 0
jne 0x435479
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x438d48
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc8
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], eax
xor eax, eax
push ebp
push 0x438ef5
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 1], 0
call fcn.00438c7c
mov dword [ebp - 8], eax
xor edx, edx
push ebp
push 0x438ed3
push dword fs:[edx]
mov dword fs:[edx], esp
cmp dword [0x4b8e28], 0
jne 0x438ea7
lea edx, [ebp - 0x28]
lea eax, [ebp - 0x14]
call fcn.00435168
lea eax, [ebp - 0x30]
push eax
call sub.kernel32.dll_GetCurrentProcessId
mov cl, 0x30
mov edx, 1
call fcn.0040f32c
mov ecx, dword [ebp - 0x30]
lea eax, [ebp - 0x2c]
mov edx, 0x438f14
call fcn.00407530
mov eax, dword [ebp - 0x2c]
call fcn.004076c4
push eax
push 0
push 6
call sub.kernel32.dll_OpenFileMappingA
mov edi, eax
test edi, edi
sete bl
test bl, bl
je 0x438e22
lea eax, [ebp - 0x38]
push eax
call sub.kernel32.dll_GetCurrentProcessId
mov cl, 0x30
mov edx, 1
call fcn.0040f32c
mov ecx, dword [ebp - 0x38]
lea eax, [ebp - 0x34]
mov edx, 0x438f14
call fcn.00407530
mov eax, dword [ebp - 0x34]
call fcn.004076c4
push eax
push 4
push 0
push 4
lea eax, [ebp - 0x14]
push eax
push 0xffffffffffffffff
call sub.kernel32.dll_CreateFileMappingA
mov edi, eax
test edi, edi
jne 0x438e3d
xor esi, esi
push 0
push 0x438f2c
push 0x438f38
push 0
call sub.user32.dll_MessageBoxA_1
jmp 0x438e9d
test bl, bl
je 0x438e84
push 0
push 0
push 0
push 0xf001f
push edi
call sub.kernel32.dll_MapViewOfFile
mov esi, eax
push 4
push 0x1000
push 0x28
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov ebx, eax
mov dword [esi], ebx
mov eax, ebx
mov edx, 0x28
call fcn.0040c160
mov eax, dword [esi]
mov dword [eax + 4], edi
add eax, 8
push eax
call sub.kernel32.dll_InitializeCriticalSection_1
jmp 0x438e9d
push 0
push 0
push 0
push 0xf001f
push edi
call sub.kernel32.dll_MapViewOfFile
mov esi, eax
push edi
call sub.kernel32.dll_CloseHandle_1
test esi, esi
je 0x438ea7
mov dword [0x4b8e28], esi
cmp dword [0x4b8e28], 0
je 0x438ebd
mov eax, dword [0x4b8e28]
mov eax, dword [eax]
inc dword [eax]
mov byte [ebp - 1], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x438eda
mov eax, dword [ebp - 8]
call fcn.00438d34
ret

Function at 0x443088
Capabilities:
Create thread

Disassembly:
cmp dword [0x4b8e54], 0
jne 0x4430fa
xor eax, eax
call fcn.00411148
mov dword [0x4b8e54], eax
cmp dword [0x4b8e54], 0
je 0x4430fa
mov eax, 0x442f1c
xor ecx, ecx
xor edx, edx
call fcn.00411554
mov dword [0x4b8e58], eax
push 0x4b8e4c
push 0
push 0
push 0x442f5c
push 0
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x4b8e50], eax
cmp dword [0x4b8e50], 0
je 0x4430fa
mov edx, 0x443108
mov eax, dword [0x4b8e4c]
call fcn.00435834
push 2
mov eax, dword [0x4b8e50]
push eax
call sub.kernel32.dll_SetThreadPriority
ret