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

Disassembly:
push ebp
push ebx
push edi
push esi
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4346a1
mov ebp, dword [esp + 0x14]
xor esi, esi
mov edi, 2
jmp 0x4345e6
mov ecx, dword [esp + 0x18]
mov edx, ebp
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
lea eax, [edi + 4]
add edi, 2
mov esi, edx
cmp edi, ecx
mov edi, eax
mov ebp, dword [esp + 0x14]
jae 0x4346a3
movzx eax, byte [ebp + edi - 2]
push eax
call fcn.004180b0
add esp, 4
mov bh, al
movzx eax, byte [ebp + edi - 1]
push eax
call fcn.004180b0
add esp, 4
mov bl, al
shl bh, 2
xor al, 0xc0
mov ecx, ebx
or cl, 0x30
and cl, al
shr cl, 4
add cl, bh
lea edx, [esi + 1]
mov eax, dword [esp + 0x1c]
mov byte [eax + esi], cl
mov ecx, dword [esp + 0x18]
cmp edi, ecx
jae 0x4345d0
movzx eax, byte [ebp + edi]
push eax
mov ebp, edx
call fcn.004180b0
mov edx, ebp
mov ecx, dword [esp + 0x1c]
add esp, 4
cmp al, 0x40
je 0x4345d0
mov bh, al
shl bl, 4
shr al, 2
and al, 0xf
or al, bl
lea ebp, [esi + 2]
mov edx, dword [esp + 0x1c]
mov byte [edx + esi + 1], al
lea eax, [edi + 1]
cmp eax, ecx
jae 0x4345c1
mov eax, dword [esp + 0x14]
movzx eax, byte [eax + edi + 1]
push eax
call fcn.004180b0
add esp, 4
cmp al, 0x40
je 0x4345bd
shl bh, 6
add al, bh
mov ecx, esi
and ecx, 1
mov edx, ebp
or edx, 1
add edx, ecx
mov ecx, dword [esp + 0x1c]
mov byte [ecx + esi + 2], al
mov ecx, dword [esp + 0x18]
jmp 0x4345d0
xor edx, edx
mov eax, edx
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4395b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x38
mov dword [esp + 0x20], 0xb3b2b160
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0
mov dword [esp + 4], 0
mov eax, dword [esp + 4]
cmp eax, 0xf
ja 0x439644
nop
nop
nop
mov eax, dword [esp + 4]
mov ecx, dword [esp + 4]
movzx ecx, byte [esp + ecx + 0x20]
mov edx, eax
and edx, 0xcf70b7c8
xor eax, 0x4f70b7c8
lea eax, [eax + edx*2]
lea edx, [eax + ecx]
and eax, ecx
add eax, eax
sub edx, eax
mov dword [esp + 0x1c], edx
mov eax, dword [esp + 0x1c]
add al, 0x88
mov ecx, dword [esp + 4]
mov byte [esp + ecx + 0x20], al
mov eax, dword [esp + 4]
mov ecx, eax
and ecx, 1
xor eax, 1
lea eax, [eax + ecx*2]
mov dword [esp + 4], eax
mov eax, dword [esp + 4]
cmp eax, 0x10
jb 0x4395f0
mov eax, dword [esp + 0x20]
mov eax, dword fs:[eax]
xor ecx, ecx
cmp dword [ebp + 8], 0
sete cl
jmp dword [ecx*4 + 0x4471bc]
mov edx, dword [eax + 0xc]
add edx, 0xc
mov esi, dword [case.0x439654.4]
mov eax, dword [case.0x439654.10]
mov dword [esp + 0x10], eax
mov edi, dword [0x447204]
mov ebx, dword [edx]
mov dword [esp + 8], 0
mov dword [esp + 0x14], edx
mov dword [esp + 0xc], edi
jmp case.0x439654.2
mov eax, dword [ebx + 0x18]
mov dword [esp + 8], eax
xor eax, eax
jmp dword [eax*4 + 0x44720c]
jmp esi
xor eax, eax
cmp ebx, edx
setne al
jmp dword [eax*4 + 0x4471d4]
mov eax, dword [ebx + 0x30]
xor ecx, ecx
test eax, eax
setne cl
jmp dword [ecx*4 + 0x4471dc]
mov dword [esp + 0x18], ebx
mov edx, eax
mov ecx, dword [ebp + 8]
jmp dword [esp + 0x10]
mov ecx, eax
mov edx, dword [ebp + 8]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx edi, word [edx]
test di, di
je 0x4396f5
add edx, 2
lea ebx, [ecx + 2]
cmp di, word [ecx]
mov ecx, ebx
je 0x4396e0
mov edx, eax
mov ecx, dword [ebp + 8]
jmp case.0x439654.10
mov edx, eax
mov ecx, dword [ebp + 8]
jmp dword [0x4471f0]
movzx edi, word [ecx]
movzx ebx, word [edx]
test di, di
je 0x439700
add ecx, 2
add edx, 2
cmp di, bx
je case.0x439654.10
jmp 0x439700
xor eax, eax
cmp di, bx
sete al
mov edx, dword [esp + 0x14]
mov edi, dword [esp + 0xc]
mov ebx, dword [esp + 0x18]
jmp dword [eax*4 + 0x4471f4]
jmp edi
mov eax, dword [eax + 8]
mov dword [esp + 8], eax
mov eax, dword [0x447220]
nop
nop
nop
nop
nop
nop
jmp eax
Function at 0x439c60
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x50
mov eax, dword [ebp + 8]
movzx eax, word [eax]
mov dword [esp + 0x10], 0xb3b21bed
mov dword [esp + 0x14], 0
mov dword [esp + 0x17], 0
mov dword [esp + 4], 0
mov ecx, dword [esp + 4]
cmp ecx, 0xa
ja 0x439cdf
nop
nop
nop
nop
nop
mov ecx, dword [esp + 4]
mov edx, dword [esp + 4]
movzx edx, byte [esp + edx + 0x10]
lea esi, [ecx - 0x71759a68]
add ecx, 0x98
and ecx, edx
or esi, edx
sub esi, ecx
mov dword [esp + 0xc], esi
mov ecx, dword [esp + 0xc]
add cl, 0xd8
mov edx, dword [esp + 4]
mov byte [esp + edx + 0x10], cl
inc dword [esp + 4]
mov ecx, dword [esp + 4]
cmp ecx, 0xb
jb 0x439ca0
xor ecx, ecx
cmp dword [esp + 0x10], eax
setne cl
xor esi, esi
jmp dword [ecx*4 + 0x44730c]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x3c]
mov eax, dword [eax + ecx]
mov dword [esp + 0x10], 0x3b38fee6
mov dword [esp + 0x14], 0
mov dword [esp + 0x17], 0
mov dword [esp + 4], 0
mov esi, dword [esp + 4]
cmp esi, 0xa
ja 0x439d78
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov esi, dword [esp + 4]
mov edi, dword [esp + 4]
movzx edx, byte [esp + edi + 0x10]
lea ebx, [esi + 0xd7]
mov edi, edx
not edi
or edi, ebx
and ebx, edx
add ebx, edi
neg ebx
lea edx, [esi + ebx]
add edx, 0xcd729bd6
mov dword [esp + 0xc], edx
mov edx, dword [esp + 0xc]
add dl, 0x1f
mov esi, dword [esp + 4]
mov byte [esp + esi + 0x10], dl
inc dword [esp + 4]
mov edx, dword [esp + 4]
cmp edx, 0xb
jb 0x439d30
xor edx, edx
cmp eax, dword [esp + 0x10]
setne dl
xor esi, esi
jmp dword [edx*4 + 0x447314]
mov eax, dword [ebp + 8]
mov edx, dword [eax + ecx + 0x7c]
mov eax, dword [eax + ecx + 0x78]
xor ecx, ecx
test edx, edx
sete cl
jmp dword [ecx*4 + 0x44731c]
xor ecx, ecx
test eax, eax
sete cl
jmp dword [ecx*4 + 0x447324]
mov dword [esp + 0x28], edx
mov ecx, eax
mov eax, dword [ebp + 8]
mov edx, dword [eax + ecx + 0x20]
add edx, eax
mov dword [esp + 0x44], edx
mov edx, dword [eax + ecx + 0x24]
add edx, eax
mov dword [esp + 0x30], edx
mov edx, dword [eax + ecx + 0x1c]
add edx, eax
mov dword [esp + 0x2c], edx
mov dword [esp + 0x24], ecx
mov eax, dword [eax + ecx + 0x18]
xor edi, edi
xor ecx, ecx
mov dword [esp + 0x3c], eax
cmp edi, eax
setb cl
mov eax, dword [case.0x439d83.10]
mov edx, dword [0x44734c]
mov esi, dword [0x447360]
mov dword [esp + 0x40], esi
mov dword [esp + 8], 2
mov dword [esp + 0x38], eax
mov dword [esp + 0x34], edx
jmp dword [ecx*4 + 0x44732c]
jmp eax
jmp edx
xor eax, eax
cmp dword [esp + 8], 2
sete al
jmp dword [eax*4 + 0x44739c]
mov ecx, dword [0x4473c0]
nop
nop
nop
nop
nop
nop
nop
nop
jmp ecx
Function at 0x4031bc
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 0x4031f8
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 0x403218
lea eax, [esp + 0x109]
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
mov eax, esi
lea edx, [esp + 4]
mov ecx, 0x105
call fcn.00405644
add esp, 0x210
pop esi
pop ebx
ret

Function at 0x4034ec
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.004053d4
test esi, esi
jne 0x403522
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.004054c4
jmp 0x403540
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004033f0
mov edi, eax
test esi, esi
je 0x403540
cmp dword [ebx], 0
je 0x403540
dec esi
jmp 0x403529
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x4041c8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x572024]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x404260
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x404240
xor eax, eax
push ebp
push 0x404239
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 0x40427c
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 0x404240
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
movzx eax, word [0x572024]
and ax, 0xffc0
movzx edx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x572024], ax
mov esp, ebp
pop ebp
ret

Function at 0x405180
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x59b04c], 0
je 0x4051e1
cmp word [0x59b220], 0xd7b2
jne 0x4051a9
cmp dword [0x59b228], 0
jbe 0x4051a9
mov eax, 0x59b21c
call dword [0x59b238]
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 0x405208
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x572030], 0
jne 0x4051fd
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x406fa0
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 0x4071d0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x407023
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4071d0
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x407023
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4071ec
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4070ac
xor eax, eax
push ebp
push 0x4070a5
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00406ddc
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
test eax, eax
je 0x40708a
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x40720c
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x40708a
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 0x4070ac
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
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 0x4071c6
cmp byte [ebp - 0xd], 0
jne 0x4070f3
cmp byte [ebp - 0x12], 0
je 0x4071c6
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x40710c
dec ebx
cmp byte [ebx], 0x2e
je 0x40711b
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x40710b
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x4071c6
inc ebx
cmp byte [ebp - 0x12], 0
je 0x407158
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 0x4071c6
cmp byte [ebp - 0xd], 0
je 0x4071c6
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 0x4071c6
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 0x409ff8
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x40a04a
test eax, edx
je 0x40a04d
movzx ecx, byte [edx]
cmp cl, byte [eax]
je 0x40a00d
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 0x40a033
add ecx, 4
js 0x40a023
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 3
add ecx, ebx
jns 0x40a030
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 0x40a059
test edx, edx
jne 0x40a000
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00405864
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x40ae79
test al, 0x10
je 0x40ae7d
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00405864
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x40ae9d
test al, 0x10
jne 0x40aea1
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x40b048
Capabilities:
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00405864
push eax
call sub.kernel32.dll_GetFileAttributesA
pop ebx
ret

Function at 0x40b05c
Capabilities:
Set file attributes

Disassembly:
push ebx
push esi
push edi
mov edi, edx
mov esi, eax
xor ebx, ebx
push edi
mov eax, esi
call fcn.00405864
push eax
call sub.kernel32.dll_SetFileAttributesA
test eax, eax
jne 0x40b07e
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
mov eax, ebx
pop edi
pop esi
pop ebx
ret

Function at 0x40e7b8
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 0x40e7f1
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004054c4
jmp 0x40e7fa
mov eax, ebx
mov edx, esi
call fcn.00405428
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40e804
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 0x40e826
movzx eax, byte [esp]
jmp 0x40e828
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x40eeb8
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40ed30
mov eax, dword [0x59a608]
cmp byte [eax], 0
je 0x40ef34
mov eax, dword [0x59a174]
call fcn.004039b4
call fcn.00403110
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.0040b5d0
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 0x40ef7c
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40ef6a
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x59a0d0]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x59d7f8]
call fcn.00406d84
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 0x40f858
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40f92e
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.0040546c
lea eax, [ebp - 4]
call fcn.004058bc
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00405864
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40f918
mov eax, ebx
call fcn.00402fb4
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40f911
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 - 4]
call fcn.00405864
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40f8fb
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40f940
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40f8fb
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40f918
mov eax, dword [ebp - 0x10]
call fcn.00402fd0
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40f935
lea eax, [ebp - 4]
call fcn.004053d4
ret

Function at 0x424394
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.004240d0
dec esi
jne 0x4243b6
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret
Function at 0x425528
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x59f9f0
cmp dword [edi], 0
jne 0x4255a4
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x59f9ec]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x572d2c
mov ecx, 2
call fcn.004032f0
mov edx, 0x425500
lea eax, [esi + 5]
call fcn.00425520
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.00425520
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 0x425579
mov dword [0x59f9ec], 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 0x429c40
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
movzx eax, byte [ebp + 8]
call fcn.00429658
mov esi, eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
push esi
push 0
mov eax, edi
call fcn.00405864
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
je 0x429c9f
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x59a40c]
mov dl, 1
mov eax, dword [0x4294e4]
call fcn.0040f0a8
call fcn.00404d08
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x429ca8
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.00405864
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x429d00
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x59a89c]
mov dl, 1
mov eax, dword [0x4294e4]
call fcn.0040f0a8
call fcn.00404d08
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.00429688
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 0x42b138
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 0x42b13e
ret
Function at 0x440610
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd0
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea esi, [ebp - 4]
xor eax, eax
push ebp
push 0x4407e4
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 8]
mov eax, dword [esi]
call fcn.0045f3b8
mov eax, dword [esi]
cmp byte [eax + 0x258], 0
je 0x4407c9
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [esi]
sub eax, dword [edx + 0x268]
mov edx, dword [esi]
cmp eax, dword [edx + 0x2c0]
jb 0x440676
mov eax, dword [esi]
add eax, 0x264
call fcn.004053d4
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [esi]
mov dword [edx + 0x268], eax
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
cmp al, 8
je 0x440750
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
mov edx, dword [0x59a848]
movzx eax, al
bt dword [edx], eax
jae 0x44070d
push 1
push 0x102
push 0x102
mov eax, dword [esi]
call fcn.0046051c
push eax
lea eax, [ebp - 0x24]
push eax
call sub.user32.dll_PeekMessageA
test eax, eax
je 0x440794
mov eax, dword [esi]
push dword [eax + 0x264]
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 8]
movzx edx, byte [edx]
call fcn.004055bc
push dword [ebp - 0x28]
lea eax, [ebp - 0x2c]
mov edx, dword [ebp - 0x1c]
call fcn.004055bc
push dword [ebp - 0x2c]
mov eax, dword [esi]
add eax, 0x264
mov edx, 3
call fcn.00405768
mov eax, dword [ebp - 8]
mov byte [eax], 0
jmp 0x440794
lea eax, [ebp - 0x30]
mov edx, dword [ebp - 8]
movzx edx, byte [edx]
call fcn.004055bc
mov edx, dword [ebp - 0x30]
mov eax, dword [esi]
add eax, 0x264
call fcn.004056a0
jmp 0x440794
mov eax, dword [esi]
mov ebx, dword [eax + 0x264]
test ebx, ebx
je 0x44073d
sub ebx, 4
mov ebx, dword [ebx]
mov eax, dword [esi]
add eax, 0x264
mov ecx, 1
mov edx, ebx
call fcn.0040590c
mov eax, dword [esi]
mov eax, dword [eax + 0x264]
call fcn.00405694
mov edx, eax
mov eax, dword [esi]
mov eax, dword [eax + 0x264]
call fcn.0040f9c0
cmp al, 2
je 0x44072c
mov eax, dword [esi]
mov eax, dword [eax + 0x264]
test eax, eax
je 0x440781
sub eax, 4
mov eax, dword [eax]
mov edx, dword [esi]
add edx, 0x264
mov ecx, 1
xchg edx, eax
call fcn.0040590c
mov eax, dword [esi]
mov eax, dword [eax + 0x264]
test eax, eax
je 0x4407a5
sub eax, 4
mov eax, dword [eax]
test eax, eax
jle 0x4407b2
push ebp
call fcn.00440528
pop ecx
jmp 0x4407c9
xor edx, edx
mov eax, dword [esi]
mov ecx, dword [eax]
call dword [ecx + 0xe0]
mov eax, dword [esi]
mov si, 0xffeb
call fcn.004045cc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4407eb
lea eax, [ebp - 0x30]
mov edx, 3
call fcn.004053f8
ret