joyce8/EMBER2024-capa huggingface dataset:
Function at 0x3ad7258d
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x3ad7a064]
jne 0x3ad72597
repz ret
jmp fcn.3ad73d0c

Function at 0x3ad76570
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
pushal
call 0x3ad7657f
pop dword [ebp - 0x4c]
mov eax, 0x9dd07b46
add eax, 0x9d06ea39
sub dword [ebp - 0x4c], eax
push 0x40
push 0x1000
push 0x3776a
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x4c]
call dword [eax]
mov ecx, 0x4769
xor ebx, ebx
add ebx, eax
mov edi, 0x3ad84e00
add edi, dword [ebp - 0x4c]
mov edx, 0x98f5e35c
mov esi, dword [edi]
xor dword [ebp - 0x10], 0x339c1fc1
xor esi, edx
mov dword [ebp - 8], 0x411d29e
mov dword [ebx], esi
add dword [ebp - 0x40], 0x8e5ceb3
add ebx, 0x4b215152
add ebx, 0xb4deaeb2
add edi, 0x2147766f
sub edi, 0x2147766b
loop 0x3ad765c9
add eax, 0x1b18aeeb
add eax, 0xe4e8618c
mov ebx, eax
add eax, 0x45fbcd2c
sub eax, 0x45fbcd27
mov ecx, 0x3ad70000
add ecx, dword [ebp - 0x4c]
call ebx
leave
ret
Function at 0x41a179
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
lea eax, [ebp - 4]
push eax
push 0x42c72c
push 1
xor ebx, ebx
push ebx
push 0x42c7fc
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x41a24a
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
lea edx, [ebp - 8]
push edx
push 0x42c7ec
push eax
call dword [ecx]
test eax, eax
jl 0x41a241
cmp byte [ebp + 8], bl
je 0x41a1cc
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push 2
push dword [ebp + 0x10]
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp - 4]
push dword [ebp + 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x50]
cmp dword [ebp + 0x18], ebx
je 0x41a1e9
mov eax, dword [ebp - 4]
push dword [ebp + 0x18]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x1c]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push ebx
cmp dword [ebp + 0x1c], ebx
jne 0x41a1fb
push 0x42b5cc
jmp 0x41a1fe
push dword [ebp + 0x1c]
push eax
call dword [ecx + 0x44]
cmp dword [ebp + 0x20], ebx
je 0x41a213
mov eax, dword [ebp - 4]
push dword [ebp + 0x20]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x2c]
cmp dword [ebp + 0x14], ebx
je 0x41a224
mov eax, dword [ebp - 4]
push dword [ebp + 0x14]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x24]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push 1
push dword [ebp + 0x10]
push eax
call dword [ecx + 0x18]
test eax, eax
jl 0x41a238
mov bl, 1
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov al, bl
pop ebx
leave
ret 0x1c

Function at 0x41a264
Capabilities:
Get common file path

Disassembly:
push dword [esp + 4]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
neg eax
sbb eax, eax
neg eax
ret 8

Function at 0x41f30e
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4312a8]
jne 0x41f318
repz ret
jmp fcn.00424d0d

Function at 0x420b7a
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push esi
push edi
xor edi, edi
movzx eax, word [ecx + 0x14]
movzx esi, word [ecx + 6]
test esi, esi
lea eax, [eax + ecx + 0x18]
jbe 0x420bb5
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x420b9c
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp dword [esp + 0xc], edx
jb 0x420bad
add edx, ecx
cmp dword [esp + 0xc], edx
jb 0x420bb7
inc edi
add eax, 0x28
cmp edi, esi
jb 0x420b92
xor eax, eax
pop edi
pop esi
ret
Function at 0x421f58
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov eax, dword [ebp - 0x700]
inc eax
mov dword [ebp - 0x700], eax
inc dword [eax - 0x77]
test dword [eax], eax
stc
invalid
cmp dword [ebp - 0x700], 5
jge 0x421f90
mov eax, dword [ebp - 0x700]
movsx eax, byte [ebp + eax - 0x394]
test byte [0xfffffc6c], al
test byte [0xfffffc6c], al
movsx ecx, byte [ebp - 0x24]
xor eax, ecx
mov ecx, dword [ebp - 0x700]
mov byte [ebp + ecx - 0x394], al
mov eax, dword [ebp - 0x700]
movsx eax, byte [ebp + eax - 0x394]
not eax
mov ecx, dword [ebp - 0x700]
mov byte [ebp + ecx - 0x394], al
jmp 0x421f3a
call fcn.00420b3a
cld
jo 0x421f3f
pop eax
and byte [ebp - 0x72c], 0
and byte [ebp - 0x72b], 0
invalid
inc dword [eax]
Function at 0x40106a
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push ebp
xor ebp, ebp
push ebp
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x4010c3
push ebx
push esi
push edi
push 0xd
call dword [sym.imp.USER32.dll_GetClipboardData]
mov ebx, eax
push ebx
call dword [sym.imp.KERNEL32.DLL_GlobalLock]
mov edi, dword [sym.imp.KERNEL32.DLL_lstrlenW]
mov esi, eax
push esi
call edi
cmp eax, 0x19
jbe 0x4010b3
cmp eax, 0x2000
jae 0x4010b3
push esi
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.DLL_lstrcpyW]
push esi
call edi
mov ebp, eax
push ebx
call dword [sym.imp.KERNEL32.DLL_GlobalUnlock]
call dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
pop esi
pop ebx
mov eax, ebp
pop ebp
ret 4

Function at 0x4010c9
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov esi, dword [sym.imp.KERNEL32.DLL_lstrlenW]
push ebx
call esi
cmp eax, 0x19
jl 0x401128
push edi
push ebx
call esi
lea eax, [eax + eax*2]
push eax
push 2
call dword [sym.imp.KERNEL32.DLL_GlobalAlloc]
push ebx
mov edi, eax
call esi
inc eax
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.DLL_GlobalLock]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcpynW]
push edi
call dword [sym.imp.KERNEL32.DLL_GlobalUnlock]
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
call dword [sym.imp.USER32.dll_EmptyClipboard]
push edi
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
pop esi
pop ebx
ret 4
Function at 0x40307c
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebx
push esi
add esp, 0xfffffdf0
mov esi, edx
mov ebx, eax
test bl, bl
je 0x4030b8
movzx eax, bl
add eax, 0x41
dec eax
mov byte [esp], al
mov byte [esp + 1], 0x3a
mov byte [esp + 2], 0
lea eax, [esp + 0x109]
push eax
push 0x105
call sub.KERNEL32.DLL_GetCurrentDirectoryA
push esp
call sub.KERNEL32.DLL_SetCurrentDirectoryA
lea eax, [esp + 4]
push eax
push 0x105
call sub.KERNEL32.DLL_GetCurrentDirectoryA
test bl, bl
je 0x4030d8
lea eax, [esp + 0x109]
push eax
call sub.KERNEL32.DLL_SetCurrentDirectoryA
mov eax, esi
lea edx, [esp + 4]
mov ecx, 0x105
call fcn.004054a4
add esp, 0x210
pop esi
pop ebx
ret

Function at 0x403310
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.00405234
test esi, esi
jne 0x403346
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.00405324
jmp 0x403364
call sub.KERNEL32.DLL_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00403214
mov edi, eax
test esi, esi
je 0x403364
cmp dword [ebx], 0
je 0x403364
dec esi
jmp 0x40334d
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x404248
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x45d020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x4042e0
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x4042c0
xor eax, eax
push ebp
push 0x4042b9
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 0x4042fc
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4042c0
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
movzx eax, word [0x45d020]
and ax, 0xffc0
movzx edx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x45d020], ax
mov esp, ebp
pop ebp
ret

Function at 0x404fe0
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x45f04c], 0
je 0x405041
cmp word [0x45f220], 0xd7b2
jne 0x405009
cmp dword [0x45f228], 0
jbe 0x405009
mov eax, 0x45f21c
call dword [0x45f238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push str.Runtime_error_____at_00000000
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 0x405068
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
pop edx
ret
cmp byte [0x45d030], 0
jne 0x40505d
push 0
push 0x45d788
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA_1
pop edx
ret
Function at 0x4051b8
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 4], edx
mov edi, eax
mov esi, dword [ebp + 0x10]
cmp dword [0x45d038], 0
je 0x4051de
mov edx, esi
mov eax, ebx
call dword [0x45d038]
jmp 0x4051ed
mov eax, 8
call fcn.00402ea0
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x45f04d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x405180
push eax
mov eax, dword [ebp - 4]
push eax
push edi
call sub.KERNEL32.DLL_CreateThread
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0xc
Function at 0x406b28
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406d58
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
je 0x406bab
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406d58
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
je 0x406bab
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406d74
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x406c34
xor eax, eax
push ebp
push 0x406c2d
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00406964
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x406c12
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x406d94
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x406c12
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406c34
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_lstrcpynA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.KERNEL32.DLL_GetThreadLocale
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x406d4e
cmp byte [ebp - 0xd], 0
jne 0x406c7b
cmp byte [ebp - 0x12], 0
je 0x406d4e
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x406c94
dec ebx
cmp byte [ebx], 0x2e
je 0x406ca3
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x406c93
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x406d4e
inc ebx
cmp byte [ebp - 0x12], 0
je 0x406ce0
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.KERNEL32.DLL_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x406d4e
cmp byte [ebp - 0xd], 0
je 0x406d4e
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.KERNEL32.DLL_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x406d4e
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.KERNEL32.DLL_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x408ecc
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x408f1e
test eax, edx
je 0x408f21
movzx ecx, byte [edx]
cmp cl, byte [eax]
je 0x408ee1
movzx eax, byte [eax]
sub eax, ecx
ret
push ebx
mov ebx, dword [eax - 4]
xor ecx, ecx
sub ebx, dword [edx - 4]
push ebx
adc ecx, 0xffffffff
and ecx, ebx
sub ecx, dword [eax - 4]
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x408f07
add ecx, 4
js 0x408ef7
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 3
add ecx, ebx
jns 0x408f04
movzx eax, byte [ecx + eax]
movzx edx, byte [ecx + edx]
sub eax, edx
pop ebx
pop ebx
ret
xor eax, eax
ret
test eax, eax
je 0x408f2d
test edx, edx
jne 0x408ed4
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.004056e0
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
cmp eax, 0xffffffff
je 0x409821
test al, 0x10
je 0x409825
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x40c3b8
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 0x40c3f1
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00405324
jmp 0x40c3fa
mov eax, ebx
mov edx, esi
call fcn.00405288
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40c404
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 0x40c426
movzx eax, byte [esp]
jmp 0x40c428
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40cab8
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40c930
mov eax, dword [0x45ee94]
cmp byte [eax], 0
je 0x40cb34
mov eax, dword [0x45ed14]
call fcn.00403750
call fcn.00402ffc
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.00409b20
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 0x40cb7c
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle_1
push eax
call sub.KERNEL32.DLL_WriteFile_1
jmp 0x40cb6a
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x45ecdc]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4617f8]
call fcn.0040690c
push eax
call sub.user32.dll_LoadStringA
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA
add esp, 0x444
ret
Function at 0x419a20
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx + 4]
push eax
call sub.KERNEL32.DLL_ResumeThread
mov esi, eax
test esi, esi
setge dl
mov eax, ebx
call fcn.0041975c
dec esi
jne 0x419a42
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret

Function at 0x419b90
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x4639ec
cmp dword [edi], 0
jne 0x419c0c
push 0x40
push 0x1000
push 0x1000
push 0
call sub.KERNEL32.DLL_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x4639e8]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x45dad8
mov ecx, 2
call fcn.00403114
mov edx, 0x419b68
lea eax, [esi + 5]
call fcn.00419b88
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.00419b88
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 0x419be1
mov dword [0x4639e8], 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 0x422c60
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef0
push ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.004056d0
mov eax, dword [ebp - 8]
call fcn.004056d0
xor eax, eax
push ebp
push 0x422d0a
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0xc]
push eax
push 1
push 0
mov eax, dword [ebp - 4]
call fcn.004056e0
push eax
push ebx
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x422ce6
mov dword [ebp - 0x10], pe_nt_image_headers32
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x110]
push eax
push 0
push 0
mov eax, dword [ebp - 8]
call fcn.004056e0
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x110]
mov ecx, pe_nt_image_headers32
call fcn.004054a4
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x422d11
lea eax, [ebp - 8]
mov edx, 2
call fcn.00405258
ret
Function at 0x423020
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
mov ebx, dword [ebp + 8]
add ebx, 0xffffffdc
xor eax, eax
push ebp
push 0x4230f8
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
mov ecx, 0x42310c
mov edx, dword [0x4639f8]
call fcn.00405568
mov eax, dword [ebp - 4]
call fcn.004056e0
push eax
call sub.KERNEL32.DLL_LoadLibraryA
mov dword [ebx], eax
push 0x423118
mov eax, dword [ebx]
push eax
call sub.KERNEL32.DLL_GetProcAddress_1
mov edx, dword [ebp + 8]
mov dword [edx - 0x28], eax
push 0x423124
mov eax, dword [ebx]
push eax
call sub.KERNEL32.DLL_GetProcAddress_1
mov edx, dword [ebp + 8]
mov dword [edx - 0x1c], eax
push 0x42313c
mov eax, dword [ebx]
push eax
call sub.KERNEL32.DLL_GetProcAddress_1
mov edx, dword [ebp + 8]
mov dword [edx - 0x2c], eax
push 0x423154
mov eax, dword [ebx]
push eax
call sub.KERNEL32.DLL_GetProcAddress_1
mov edx, dword [ebp + 8]
mov dword [edx - 0x30], eax
push 0x423168
mov eax, dword [ebx]
push eax
call sub.KERNEL32.DLL_GetProcAddress_1
mov edx, dword [ebp + 8]
mov dword [edx - 0x20], eax
push 0x423178
mov eax, dword [ebx]
push eax
call sub.KERNEL32.DLL_GetProcAddress_1
mov edx, dword [ebp + 8]
mov dword [edx - 0x34], eax
push 0x423188
mov eax, dword [ebx]
push eax
call sub.KERNEL32.DLL_GetProcAddress_1
mov edx, dword [ebp + 8]
mov dword [edx - 0x38], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4230ff
lea eax, [ebp - 4]
call fcn.00405234
ret
Function at 0x423ad4
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffef8
mov ebx, eax
push 0x104
lea eax, [esp + 4]
push eax
call sub.KERNEL32.DLL_GetSystemDirectoryA
mov edx, ebx
mov eax, esp
call fcn.00409c7c
add esp, 0x108
pop ebx
ret

Function at 0x423b00
Capabilities:
Write file on windows

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
mov eax, dword [ebp - 4]
call fcn.004056d0
mov eax, dword [ebp - 8]
call fcn.004056d0
xor eax, eax
push ebp
push 0x423ba2
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
mov eax, dword [ebp - 8]
test eax, eax
je 0x423b3b
sub eax, 4
mov eax, dword [eax]
mov esi, eax
push 0
push 0x80
push 2
push 0
push 2
push 0x40000000
mov eax, dword [ebp - 4]
call fcn.004056e0
push eax
call sub.KERNEL32.DLL_CreateFileA_1
mov edi, eax
cmp edi, 0xffffffff
je 0x423b87
push 0
lea eax, [ebp - 0xc]
push eax
push esi
lea eax, [ebp - 8]
call fcn.00405740
push eax
push edi
call sub.KERNEL32.DLL_WriteFile_1
push edi
call sub.KERNEL32.DLL_CloseHandle_1
cmp esi, dword [ebp - 0xc]
jne 0x423b87
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x423ba9
lea eax, [ebp - 8]
mov edx, 2
call fcn.00405258
ret

Function at 0x423bb4
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004056d0
xor eax, eax
push ebp
push 0x423ca5
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x40000000
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 4]
call fcn.004056e0
push eax
call sub.KERNEL32.DLL_CreateFileA_1
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x423c78
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
mov eax, dword [ebp - 0x10]
push eax
call sub.KERNEL32.DLL_GetFileSize_1
mov esi, eax
mov eax, esi
call fcn.00402ea0
mov ebx, eax
push 0
lea eax, [ebp - 0x14]
push eax
push esi
mov edi, ebx
push edi
mov eax, dword [ebp - 0x10]
push eax
call sub.KERNEL32.DLL_ReadFile_1
lea eax, [ebp - 8]
mov edx, dword [ebp - 0x14]
call fcn.00405914
lea eax, [ebp - 8]
call fcn.00405740
mov edx, eax
mov eax, edi
mov ecx, dword [ebp - 0x14]
call fcn.00403114
mov eax, ebx
call fcn.00402ebc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x423c7f
mov eax, dword [ebp - 0x10]
push eax
call sub.KERNEL32.DLL_CloseHandle_1
ret

Function at 0x42444c
Capabilities:
Query or enumerate registry value

Disassembly:
add esp, 0xfffffff4
cmp byte [0x463b4c], 0
jne 0x4244bf
cmp byte [0x463b4d], 0
je 0x4244bf
mov byte [0x463b4d], 0
mov eax, dword [0x463b54]
push eax
call sub.advapi32.dll_RegCloseKey
push esp
push 0xf003f
push 0
push 0x4244c4
push 0x80000006
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4244bf
mov dword [esp + 4], 4
lea eax, [esp + 4]
push eax
push 0x463b50
lea eax, [esp + 0x10]
push eax
push 0
push 0x4244d8
mov eax, dword [esp + 0x14]
push eax
call sub.advapi32.dll_RegQueryValueExA
mov eax, dword [esp]
push eax
call sub.advapi32.dll_RegCloseKey
add esp, 0xc
ret
Function at 0x425270
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
mov eax, esi
call fcn.004056e0
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x4252c8
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x45ef60]
mov dl, 1
mov eax, dword [0x424d7c]
call fcn.0040cc78
call fcn.00404b84
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.00424e84
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x426380
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 0x426386
ret