joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40bef0
Capabilities:
Query environment variable

Disassembly:
push ecx
mov eax, dword [esp + 8]
mov edx, dword [esp + 0x10]
push ebx
push ebp
mov ecx, dword [eax]
push esi
push edi
push edx
mov dword [esp + 0x14], ecx
xor ebp, ebp
call dword [sym.imp.MSVCRT.dll_getenv]
mov esi, eax
add esp, 4
test esi, esi
jne 0x40bf1b
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
call fcn.0040c1c0
mov edx, eax
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
add esp, 4
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov eax, ecx
mov edi, edx
mov ebx, edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov dword [esp + 0x20], ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov al, byte [ebx]
mov esi, ebx
test al, al
je 0x40bf9b
mov edi, dword [sym.imp.MSVCRT.dll_strcspn]
push 0x412ea8
push esi
call dword [sym.imp.MSVCRT.dll_strspn]
add esi, eax
add esp, 8
cmp byte [esi], 0
je 0x40bf97
push 0x412ea8
push esi
call edi
add esi, eax
add esp, 8
cmp byte [esi], 0
je 0x40bf90
mov byte [esi], 0
inc esi
mov al, byte [esi]
inc ebp
test al, al
jne 0x40bf64
test ebp, ebp
jne 0x40bfad
push ebx
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
mov eax, dword [esp + 0x18]
push 4
mov edi, dword [eax]
add edi, ebp
mov dword [eax], edi
mov eax, edi
inc eax
push eax
call dword [sym.imp.MSVCRT.dll_calloc]
mov esi, eax
add esp, 8
test esi, esi
jne 0x40bfd9
push str.out_of_memory
call fcn.0040c060
add esp, 4
mov eax, dword [esp + 0x1c]
mov ebx, dword [eax]
mov dword [eax], esi
mov eax, dword [esp + 0x10]
mov ecx, eax
dec eax
test ecx, ecx
mov dword [esp + 0x10], eax
jge 0x40bffd
push 0x412ea0
call fcn.0040c060
add esp, 4
mov edx, dword [ebx]
mov edi, dword [esp + 0x20]
mov dword [esi], edx
add esi, 4
add ebx, 4
test ebp, ebp
jle 0x40c036
push 0x412ea8
push edi
call dword [sym.imp.MSVCRT.dll_strspn]
add edi, eax
add esp, 8
mov dword [esi], edi
add esi, 4
mov al, byte [edi]
inc edi
test al, al
je 0x40c033
mov cl, byte [edi]
inc edi
test cl, cl
jne 0x40c02c
dec ebp
jne 0x40c00f
mov eax, dword [esp + 0x10]
mov edx, eax
dec eax
test edx, edx
je 0x40c04f
inc eax
mov ecx, dword [ebx]
add ebx, 4
mov dword [esi], ecx
add esi, 4
dec eax
jne 0x40c042
mov eax, dword [esp + 0x20]
mov dword [esi], 0
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x40cc80
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push 0x3c
push 0
lea eax, [ebp - 0x3c]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
mov ecx, dword [ebp + 0x10]
push ecx
push 0
mov edx, dword [ebp + 0xc]
push edx
call sub.MSVCRT.dll_memset
add esp, 0xc
mov eax, dword [ebp + 0x14]
mov dword [eax], 0x50
mov ecx, dword [ebp + 0x1c]
push ecx
push 0
mov edx, dword [ebp + 0x18]
push edx
call sub.MSVCRT.dll_memset
add esp, 0xc
mov eax, dword [ebp + 0x24]
push eax
push 0
mov ecx, dword [ebp + 0x20]
push ecx
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [ebp - 0x3c], 0x3c
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x28], eax
mov word [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov ecx, dword [ebp + 0x18]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp + 0x1c]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp + 0x20]
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 0x24]
mov dword [ebp - 4], ecx
lea edx, [ebp - 0x3c]
push edx
push 0
mov eax, dword [ebp + 8]
push eax
call sub.MSVCRT.dll_strlen
add esp, 4
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.WININET.dll_InternetCrackUrlA]
test eax, eax
jne 0x40cd5c
xor eax, eax
jmp 0x40cd6f
mov edx, dword [ebp - 0x24]
and edx, 0xffff
mov eax, dword [ebp + 0x14]
mov dword [eax], edx
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x40cd80
Capabilities:
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8c
mov dword [ebp - 4], 0
cmp dword [ebp + 0xc], 0
je 0x40cd9c
cmp dword [ebp + 0x10], 0
jg 0x40cda0
xor eax, eax
jmp 0x40ce0c
mov eax, dword [ebp + 0x10]
push eax
push 0
mov ecx, dword [ebp + 0xc]
push ecx
call sub.MSVCRT.dll_memset
add esp, 0xc
lea edx, [ebp - 4]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.WININET.dll_InternetReadFile]
cmp dword [ebp - 4], 0
jbe 0x40ce0a
mov dword [ebp - 0xc], 0x80
mov eax, dword [ebp + 0xc]
add eax, dword [ebp - 4]
mov byte [eax], 0
lea ecx, [ebp - 8]
push ecx
mov edx, dword [ebp - 0xc]
push edx
lea eax, [ebp - 0x8c]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x40ce03
cmp dword [ebp - 8], 0
jbe 0x40ce03
jmp 0x40cdde
mov eax, 1
jmp 0x40ce0c
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x40d680
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 8]
mov dword [eax], ecx
push 0x413110
mov edx, dword [ebp + 8]
push edx
call sub.MSVCRT.dll_strpbrk
add esp, 8
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov edx, dword [ebp + 0xc]
cmp dword [edx], 0
jne 0x40d6de
movsx eax, byte [0x4365f0]
test eax, eax
jne 0x40d6cb
mov dword [ebp - 4], 0x10
lea ecx, [ebp - 4]
push ecx
push 0x4365f0
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
mov edx, dword [ebp + 0x10]
mov dword [edx], 0x4365f0
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov dword [eax], ecx
jmp 0x40d725
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
mov byte [eax], 0
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
add edx, 1
mov eax, dword [ebp + 0xc]
mov dword [eax], edx
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
movsx eax, byte [edx]
test eax, eax
je 0x40d719
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
movsx eax, byte [edx]
cmp eax, 0x5c
je 0x40d719
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
movsx eax, byte [edx]
cmp eax, 0x2f
jne 0x40d725
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x40d72a
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x401006
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x428004]
jne 0x401010
repz ret
jmp fcn.00401748

Function at 0x405478
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00402f5b
and dword [ebp - 4], 0
cmp dword [0x42a430], 0
mov ebx, eax
jne 0x405529
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4055da
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x4055da
push eax
call fcn.00402ee9
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x42a430], eax
call esi
push eax
call fcn.00402ee9
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x42a434], eax
call esi
push eax
call fcn.00402ee9
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x42a438], eax
call esi
push eax
call fcn.00402ee9
pop ecx
mov dword [0x42a440], eax
test eax, eax
je 0x405529
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00402ee9
pop ecx
mov dword [0x42a43c], eax
mov eax, dword [0x42a43c]
cmp eax, ebx
je 0x405581
cmp dword [0x42a440], ebx
je 0x405581
push eax
call fcn.00402f64
push dword [0x42a440]
mov esi, eax
call fcn.00402f64
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x405581
test edi, edi
je 0x405581
call esi
test eax, eax
je 0x405578
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x405578
test byte [ebp - 0xc], 1
jne 0x405581
or dword [ebp + 0x10], 0x200000
jmp 0x4055ba
mov eax, dword [0x42a434]
cmp eax, ebx
je 0x4055ba
push eax
call fcn.00402f64
pop ecx
test eax, eax
je 0x4055ba
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4055ba
mov eax, dword [0x42a438]
cmp eax, ebx
je 0x4055ba
push eax
call fcn.00402f64
pop ecx
test eax, eax
je 0x4055ba
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x42a430]
call fcn.00402f64
pop ecx
test eax, eax
je 0x4055da
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4055dc
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x420917
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 0x40
push dword [0x42bec4]
push dword [0x42bbe0]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
leave
ret

Function at 0x4209a6
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
cmp ebx, 0x19f
jne 0x4209bf
xor eax, eax
push eax
push eax
push eax
push eax
call dword [sym.imp.KERNEL32.dll_RaiseException]
push edi
xor edi, edi
test ebx, ebx
jle 0x4209f7
push esi
and dword [ebp - 8], 0
lea esi, [ebp - 8]
mov dword [ebp - 4], 5
call fcn.0042099b
mov eax, dword [ebp - 8]
add eax, 0x46
mov dword [ebp - 4], eax
sub dword [ebp - 4], 0x46
mov eax, dword [ebp + 8]
mov cl, byte [ebp - 4]
add eax, edi
xor byte [eax], cl
inc edi
cmp edi, ebx
jl 0x4209c7
pop esi
pop edi
cmp ebx, 0x2d
jne 0x420a0e
or dword [0x42bed4], 0xffffffff
mov dword [0x42bed0], 0xa62e7790
leave
ret
Function at 0x402ae4
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00404214
test esi, esi
jne 0x402b1a
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00404304
jmp 0x402b38
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004029f8
mov edi, eax
test esi, esi
je 0x402b38
cmp dword [ebx], 0
je 0x402b38
dec esi
jmp 0x402b21
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x402e14
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x4d7008], 0x8088405
inc edx
mov dword [ebx + 0x4d7008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x403290
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x4d7024]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403328
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403308
xor eax, eax
push ebp
push 0x403301
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x403344
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403308
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x4d7024]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x4d7024], ax
mov esp, ebp
pop ebp
ret

Function at 0x403ff4
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4dd04c], 0
je 0x404055
cmp word [0x4dd220], 0xd7b2
jne 0x40401d
cmp dword [0x4dd228], 0
jbe 0x40401d
mov eax, 0x4dd21c
call dword [0x4dd238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x4d7070
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40407c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4d7034], 0
jne 0x404071
push 0
push 0x4d7068
push 0x4d7070
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x4041c8
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.004027b0
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x4dd04d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x404190
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x4060cc
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x406132
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.00404484
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402e30
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x40611c
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406139
lea eax, [ebp - 0x10]
call fcn.00404214
ret

Function at 0x408e64
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.004046d4
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x408e7d
test al, 0x10
jne 0x408e81
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x40c28c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40c2c5
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404304
jmp 0x40c2ce
mov eax, ebx
mov edx, esi
call fcn.00404268
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40c2d8
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40c2f9
mov al, byte [esp]
jmp 0x40c2fb
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40c980
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40c7f8
mov eax, dword [0x4dbe48]
cmp byte [eax], 0
je 0x40c9fc
mov eax, dword [0x4dbaf0]
call fcn.00402c80
call fcn.00402924
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.00409188
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40ca44
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40ca32
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x4dba64]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4dd668]
call fcn.0040559c
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret
Function at 0x40d2ec
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40d3c2
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.004042ac
lea eax, [ebp - 8]
call fcn.00404724
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.004046d4
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40d3ac
mov eax, ebx
call fcn.004027b0
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40d3a5
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.004046d4
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40d38f
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40d3d4
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40d38f
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d3ac
mov eax, dword [ebp - 0x10]
call fcn.004027d0
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d3c9
lea eax, [ebp - 8]
call fcn.00404214
ret

Function at 0x40d980
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x40d9e4
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.00404484
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00408ac4
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d9eb
lea eax, [ebp - 0xc]
call fcn.00404214
ret

Function at 0x41fbbc
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x4dd888
cmp dword [edi], 0
jne 0x41fc38
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x4dd884]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x4d7480
mov ecx, 2
call fcn.004029b8
mov edx, 0x41fb94
lea eax, [esi + 5]
call fcn.0041fbb4
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041fbb4
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0x41fc0d
mov dword [0x4dd884], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x42128c
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x421292
ret
Function at 0x42d414
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call fcn.004046c4
xor eax, eax
push ebp
push 0x42d542
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
call sub.user32.dll_OpenClipboard
test eax, eax
je 0x42d515
xor eax, eax
push ebp
push 0x42d50e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004044d4
inc eax
push eax
push 0x2002
call sub.kernel32.dll_GlobalAlloc
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x42d4e3
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalLock
mov ebx, eax
xor eax, eax
push ebp
push 0x42d4d2
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004044d4
inc eax
push eax
mov eax, dword [ebp - 4]
call fcn.004046d4
mov edx, ebx
pop ecx
call fcn.004029b8
call sub.user32.dll_EmptyClipboard
mov eax, dword [ebp - 8]
push eax
push 1
call sub.user32.dll_SetClipboardData
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42d4d9
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalUnlock
ret
mov ecx, dword [0x4db9b4]
mov dl, 1
mov eax, dword [0x4076c8]
call fcn.0040cb10
call fcn.00403bac
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42d549
lea eax, [ebp - 4]
call fcn.00404214
ret
Function at 0x4324cb
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
push ebx
xor ecx, ecx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x43250d
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x10]
mov edx, ebx
call fcn.004042ac
mov eax, dword [ebp - 0x10]
call fcn.00431ff4
mov byte [ebp - 9], al
cmp byte [ebp - 9], 0
jne 0x4323f6
lea eax, [ebp - 0x10]
mov ecx, 1
mov edx, 1
call fcn.00404774
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov dword [ebp - 0x18], eax
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.004327ac
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x4324cb
xor eax, eax
push ebp
push 0x4324c4
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 4]
call fcn.004321a0
lea edx, [ebp - 0x38]
mov eax, dword [ebp - 4]
call fcn.0043253c
test al, al
je 0x4324a2
mov ecx, dword [ebp - 0x34]
inc ecx
lea eax, [ebp - 0x14]
xor edx, edx
call fcn.00404304
mov ebx, dword [ebp - 0x38]
dec ebx
cmp ebx, 0
jl 0x4324a2
mov eax, dword [ebp - 0x34]
inc eax
mov dword [ebp - 8], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0x14]
call fcn.004046d4
push eax
push ebx
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegEnumKeyExA
test eax, eax
jne 0x43249c
mov eax, dword [ebp - 0x14]
call fcn.004046d4
mov edx, eax
lea eax, [ebp - 0x3c]
call fcn.0040440c
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 4]
call fcn.004323a4
dec ebx
cmp ebx, 0xffffffff
jne 0x432455
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4324cb
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 4]
call fcn.004321a0
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
mov eax, dword [ebp - 0x10]
call fcn.004046d4
push eax
mov dl, byte [ebp - 9]
mov eax, dword [ebp - 4]
call fcn.0043218c
push eax
call sub.advapi32.dll_RegDeleteKeyA
test eax, eax
sete bl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x432514
lea eax, [ebp - 0x3c]
call fcn.00404214
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00404238
ret

Function at 0x43253c
Capabilities:
Query or enumerate registry key

Disassembly:
push ebx
push esi
mov ebx, edx
mov esi, eax
mov eax, ebx
xor ecx, ecx
mov edx, 0x1c
call fcn.00402df4
lea eax, [ebx + 0x14]
push eax
push 0
lea eax, [ebx + 0x10]
push eax
lea eax, [ebx + 0xc]
push eax
lea eax, [ebx + 8]
push eax
push 0
lea eax, [ebx + 4]
push eax
push ebx
push 0
push 0
push 0
mov eax, dword [esi + 4]
push eax
call sub.advapi32.dll_RegQueryInfoKeyA
test eax, eax
sete al
mov edx, dword [0x4dc010]
cmp byte [edx + 0xc], 0
je 0x4325a0
mov edx, dword [0x4dc004]
cmp dword [edx], 2
jne 0x4325a0
mov edx, dword [ebx + 4]
add dword [ebx + 4], edx
mov edx, dword [ebx + 0xc]
add dword [ebx + 0xc], edx
pop esi
pop ebx
ret