joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5dee9f
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x60b0f0]
xor eax, dword [ebp + 4]
mov ecx, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 4], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x60b9c8]
je 0x5deecc
inc eax
cmp eax, 0x12
jb 0x5deebd
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x60b9c8]
jne 0x5df000
mov eax, dword [0x655b10]
cmp eax, 1
je 0x5defdb
cmp eax, edx
jne 0x5deefc
cmp dword [0x60b0ec], 1
je 0x5defdb
cmp ecx, 0xfc
je 0x5df000
push 0x104
lea eax, [ebp - 0x10c]
push eax
push edx
mov byte [ebp - 8], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x5def35
lea eax, [ebp - 0x10c]
push str._program_name_unknown_
push eax
call fcn.005d2410
pop ecx
pop ecx
lea eax, [ebp - 0x10c]
push eax
lea edi, [ebp - 0x10c]
call fcn.005d2220
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x5def77
lea eax, [ebp - 0x10c]
push eax
call fcn.005d2220
mov edi, eax
lea eax, [ebp - 0x10c]
sub eax, 0x3b
push 3
add edi, eax
push 0x601920
push edi
call fcn.005cc410
add esp, 0x10
push edi
call fcn.005d2220
push dword [esi + 0x60b9cc]
mov ebx, eax
call fcn.005d2220
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.005cd640
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.005d2410
push edi
push ebx
call fcn.005d2420
push 0x601ef0
push ebx
call fcn.005d2420
push dword [esi + 0x60b9cc]
push ebx
call fcn.005d2420
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.005e2b11
add esp, 0x2c
jmp 0x5df000
push edx
lea eax, [ebp + 8]
push eax
lea esi, [esi + 0x60b9cc]
push dword [esi]
call fcn.005d2220
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x118]
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
call fcn.005d1690
pop edi
pop esi
pop ebx
leave
ret
Function at 0x5e2398
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x60b0f0]
xor eax, dword [ebp + 4]
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
mov dword [ebp - 4], eax
je 0x5e2413
push ebx
call fcn.005e2361
test eax, eax
pop ecx
jne 0x5e23e5
call fcn.005ce9e1
mov dword [eax], 0xf
call fcn.005ce9d8
mov dword [eax], 0xd
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop ebx
call fcn.005d1690
leave
ret
and byte [ebp + 0xb], 0
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10c]
push eax
push 0x104
lea eax, [ebp + 8]
add bl, 0x40
push eax
mov byte [ebp + 8], bl
mov byte [ebp + 9], 0x3a
mov byte [ebp + 0xa], 0x2e
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
jmp 0x5e2425
lea eax, [ebp - 0x10c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x5e23d5
inc eax
cmp eax, 0x104
ja 0x5e23d5
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jne 0x5e245d
cmp eax, dword [ebp + 0x10]
jg 0x5e2440
mov eax, dword [ebp + 0x10]
push eax
call fcn.005cc381
pop ecx
mov ecx, eax
test ecx, ecx
jne 0x5e2472
call fcn.005ce9d8
mov dword [eax], 0xc
jmp 0x5e23d5
cmp eax, dword [ebp + 0x10]
jle 0x5e2472
call fcn.005ce9d8
mov dword [eax], 0x22
jmp 0x5e23d5
lea eax, [ebp - 0x10c]
push eax
push ecx
call fcn.005d2410
pop ecx
pop ecx
jmp 0x5e23d7

Function at 0x5e2b11
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x655f2c], ebx
push esi
push edi
jne 0x5e2b91
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x5e2bcc
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x602250
push edi
call esi
test eax, eax
mov dword [0x655f2c], eax
je 0x5e2bcc
push 0x602240
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x655f30], eax
call esi
cmp dword [0x655a88], 2
mov dword [0x655f34], eax
jne 0x5e2b91
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x655f3c], eax
je 0x5e2b91
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x655f38], eax
mov eax, dword [0x655f38]
test eax, eax
je 0x5e2bd6
call eax
test eax, eax
je 0x5e2bbd
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x655f3c]
test eax, eax
je 0x5e2bbd
test byte [ebp - 8], 1
jne 0x5e2bd6
cmp dword [0x655a94], 4
jb 0x5e2bd0
or byte [ebp + 0x12], 0x20
jmp 0x5e2bf5
xor eax, eax
jmp 0x5e2c05
or byte [ebp + 0x12], 4
jmp 0x5e2bf5
mov eax, dword [0x655f30]
test eax, eax
je 0x5e2bf5
call eax
mov ebx, eax
test ebx, ebx
je 0x5e2bf5
mov eax, dword [0x655f34]
test eax, eax
je 0x5e2bf5
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x655f2c]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x5e35a1
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.005cd640
mov eax, dword [0x60b0f0]
xor eax, dword [ebp + 4]
push ebx
push esi
push 1
xor esi, esi
push esi
push dword [ebp + 8]
mov dword [ebp - 4], eax
call fcn.005d7b02
or ebx, 0xffffffff
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 8], eax
je 0x5e36cb
push 2
push esi
push dword [ebp + 8]
call fcn.005d7b02
add esp, 0xc
cmp eax, ebx
je 0x5e36cb
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x5e366e
mov ebx, 0x1000
push ebx
lea eax, [ebp - 0x100c]
push esi
push eax
call fcn.005d1d50
push 0x8000
push dword [ebp + 8]
call fcn.005e3a51
add esp, 0x14
mov dword [ebp - 0xc], eax
cmp edi, ebx
mov eax, ebx
jge 0x5e3627
mov eax, edi
push eax
lea eax, [ebp - 0x100c]
push eax
push dword [ebp + 8]
call fcn.005d7eba
add esp, 0xc
cmp eax, 0xffffffff
je 0x5e3647
sub edi, eax
test edi, edi
jg 0x5e361f
jmp 0x5e365f
call fcn.005ce9e1
cmp dword [eax], 5
jne 0x5e365c
call fcn.005ce9d8
mov dword [eax], 0xd
or esi, 0xffffffff
push dword [ebp - 0xc]
push dword [ebp + 8]
call fcn.005e3a51
pop ecx
pop ecx
jmp 0x5e36b6
jge 0x5e36b6
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.005d7b02
push dword [ebp + 8]
call fcn.005cdda2
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov esi, eax
neg esi
sbb esi, esi
neg esi
dec esi
cmp esi, ebx
jne 0x5e36b6
call fcn.005ce9d8
mov dword [eax], 0xd
call fcn.005ce9e1
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
push 0
push dword [ebp - 8]
push dword [ebp + 8]
call fcn.005d7b02
add esp, 0xc
mov eax, esi
pop edi
jmp 0x5e36cd
mov eax, ebx
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop esi
pop ebx
call fcn.005d1690
leave
ret

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x5e429a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.005ce9ea
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x5e42bd
test byte [esp + 8], 2
je 0x5e42bd
call fcn.005ce9d8
mov dword [eax], 0xd
call fcn.005ce9e1
mov dword [eax], 5
jmp 0x5e4296
xor eax, eax
ret
Function at 0x403130
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 0x40316c
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 0x40318c
lea eax, [esp + 0x109]
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
mov eax, esi
lea edx, [esp + 4]
mov ecx, 0x105
call fcn.00405038
add esp, 0x210
pop esi
pop ebx
ret

Function at 0x4033c4
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.00404dc8
test esi, esi
jne 0x4033fa
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.00404eb8
jmp 0x403418
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004032c8
mov edi, eax
test esi, esi
je 0x403418
cmp dword [ebx], 0
je 0x403418
dec esi
jmp 0x403401
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x403bbc
Capabilities:
Query or enumerate registry value

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

Function at 0x404b74
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x52a04c], 0
je 0x404bd5
cmp word [0x52a220], 0xd7b2
jne 0x404b9d
cmp dword [0x52a228], 0
jbe 0x404b9d
mov eax, 0x52a21c
call dword [0x52a238]
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 0x404bfc
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x509030], 0
jne 0x404bf1
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x406868
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 0x406a98
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x4068eb
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406a98
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x4068eb
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406ab4
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x406974
xor eax, eax
push ebp
push 0x40696d
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.004066a4
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 0x406952
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x406ad4
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x406952
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 0x406974
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 0x406a8e
cmp byte [ebp - 0xd], 0
jne 0x4069bb
cmp byte [ebp - 0x12], 0
je 0x406a8e
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x4069d4
dec ebx
cmp byte [ebx], 0x2e
je 0x4069e3
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x4069d3
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x406a8e
inc ebx
cmp byte [ebp - 0x12], 0
je 0x406a20
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 0x406a8e
cmp byte [ebp - 0xd], 0
je 0x406a8e
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 0x406a8e
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 0x4096c8
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x40971a
test eax, edx
je 0x40971d
movzx ecx, byte [edx]
cmp cl, byte [eax]
je 0x4096dd
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 0x409703
add ecx, 4
js 0x4096f3
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 3
add ecx, ebx
jns 0x409700
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 0x409729
test edx, edx
jne 0x4096d0
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

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

Disassembly:
push ebx
push esi
mov esi, eax
mov eax, esi
call fcn.00405258
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x40a39a
test al, 0x10
sete al
pop esi
pop ebx
ret
call sub.kernel32.dll_GetLastError
mov ebx, eax
cmp ebx, 2
je 0x40a3bb
cmp ebx, 3
je 0x40a3bb
cmp ebx, 0x7b
je 0x40a3bb
mov eax, esi
call fcn.0040a33c
test al, al
jne 0x40a3bf
xor eax, eax
jmp 0x40a3c1
mov al, 1
pop esi
pop ebx
ret

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

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

Function at 0x40d928
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 0x40d961
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404eb8
jmp 0x40d96a
mov eax, ebx
mov edx, esi
call fcn.00404e1c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40dea0
mov eax, dword [0x52977c]
cmp byte [eax], 0
je 0x40e0a4
mov eax, dword [0x529394]
call fcn.00403534
call fcn.004030bc
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.0040a7bc
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 0x40e0ec
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40e0da
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x529304]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x52c7f8]
call fcn.0040664c
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 0x40e9dc
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 0x40eab2
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00404e60
lea eax, [ebp - 4]
call fcn.004052b0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00405258
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40ea9c
mov eax, ebx
call fcn.00402f60
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40ea95
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.00405258
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40ea7f
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40eac4
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40ea7f
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 0x40ea9c
mov eax, dword [ebp - 0x10]
call fcn.00402f7c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40eab9
lea eax, [ebp - 4]
call fcn.00404dc8
ret

Function at 0x4232f8
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.00423034
dec esi
jne 0x42331a
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret
Function at 0x42448c
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x52e9f0
cmp dword [edi], 0
jne 0x424508
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x52e9ec]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x509ca4
mov ecx, 2
call fcn.004031c8
mov edx, 0x424464
lea eax, [esi + 5]
call fcn.00424484
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.00424484
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 0x4244dd
mov dword [0x52e9ec], 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 0x427038
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.00426a50
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.00405258
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
je 0x427097
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x5295d4]
mov dl, 1
mov eax, dword [0x4268dc]
call fcn.0040e218
call fcn.004046fc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4270a0
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.00405258
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x4270f8
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x5299ac]
mov dl, 1
mov eax, dword [0x4268dc]
call fcn.0040e218
call fcn.004046fc
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.00426a80
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 0x428530
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 0x428536
ret
Function at 0x43d9b0
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 0x43db84
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 8]
mov eax, dword [esi]
call fcn.004588fc
mov eax, dword [esi]
cmp byte [eax + 0x258], 0
je 0x43db69
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 0x43da16
mov eax, dword [esi]
add eax, 0x264
call fcn.00404dc8
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 0x43daf0
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
mov edx, dword [0x529968]
movzx eax, al
bt dword [edx], eax
jae 0x43daad
push 1
push 0x102
push 0x102
mov eax, dword [esi]
call fcn.004599b8
push eax
lea eax, [ebp - 0x24]
push eax
call sub.user32.dll_PeekMessageA
test eax, eax
je 0x43db34
mov eax, dword [esi]
push dword [eax + 0x264]
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 8]
movzx edx, byte [edx]
call fcn.00404fb0
push dword [ebp - 0x28]
lea eax, [ebp - 0x2c]
mov edx, dword [ebp - 0x1c]
call fcn.00404fb0
push dword [ebp - 0x2c]
mov eax, dword [esi]
add eax, 0x264
mov edx, 3
call fcn.0040515c
mov eax, dword [ebp - 8]
mov byte [eax], 0
jmp 0x43db34
lea eax, [ebp - 0x30]
mov edx, dword [ebp - 8]
movzx edx, byte [edx]
call fcn.00404fb0
mov edx, dword [ebp - 0x30]
mov eax, dword [esi]
add eax, 0x264
call fcn.00405094
jmp 0x43db34
mov eax, dword [esi]
mov ebx, dword [eax + 0x264]
test ebx, ebx
je 0x43dadd
sub ebx, 4
mov ebx, dword [ebx]
mov eax, dword [esi]
add eax, 0x264
mov ecx, 1
mov edx, ebx
call fcn.00405300
mov eax, dword [esi]
mov eax, dword [eax + 0x264]
call fcn.00405088
mov edx, eax
mov eax, dword [esi]
mov eax, dword [eax + 0x264]
call fcn.0040eb44
cmp al, 2
je 0x43dacc
mov eax, dword [esi]
mov eax, dword [eax + 0x264]
test eax, eax
je 0x43db21
sub eax, 4
mov eax, dword [eax]
mov edx, dword [esi]
add edx, 0x264
mov ecx, 1
xchg edx, eax
call fcn.00405300
mov eax, dword [esi]
mov eax, dword [eax + 0x264]
test eax, eax
je 0x43db45
sub eax, 4
mov eax, dword [eax]
test eax, eax
jle 0x43db52
push ebp
call fcn.0043d8c8
pop ecx
jmp 0x43db69
xor edx, edx
mov eax, dword [esi]
mov ecx, dword [eax]
call dword [ecx + 0xe0]
mov eax, dword [esi]
mov si, 0xffeb
call fcn.00403fc0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43db8b
lea eax, [ebp - 0x30]
mov edx, 3
call fcn.00404dec
ret