joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5c52ff63
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0
push ecx
xor ecx, ecx
jne 0x5c52ffad
mov ecx, esp
xor dword [ecx - 0x55], edi
pop ecx
call 0x5c52ff54
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
call 0x5c52ff63
cld
test edx, ebx
or ebp, eax
add dword [esi - 0x7cc26b19], esp
les ecx, [eax]
or dword [esp], ebp
mov ebp, esp
sub esp, 0x100
push ebx
push edx
push ecx
push edi
push esi
mov ebx, dword [ebp + 8]
mov edx, ebx
add ebx, dword [ebx + 0x3c]
mov ebx, dword [ebx + 0x78]
lea ebx, [ebx + edx]
mov eax, dword [ebx + 0x24]
add eax, edx
xor edi, edi
jne 0x5c935c06
or edi, dword [ebx + 0x20]
add edi, edx
mov ecx, dword [ebx + 0x18]
mov esi, dword [edi]
add esi, edx
push 0
push ecx
mov ecx, esp
push 0x55d34c8a
call 0x5c52ffb4
sti
sbb byte [ecx + 0x56], dh
xlatb
les ebp, [ebp + 0x8c483e2]
xchg dword [ecx + 4], eax
xor eax, edx
shl eax, 3
xor ecx, 0
shl eax, 0x1d
add eax, dword [ecx + 4]
pop ecx
push esi
call fcn.5c516e2a
cmp eax, dword [ebp + 0xc]
pop eax
je 0x5c530053
add edi, 4
add eax, 2
dec ecx
jne 0x5c52ff99
call 0x5c530000
loope 0x5c52fff6
invalid
sbb esi, ebx
mov edi, 0xdbead58c
js 0x5c530050
mov dh, pe_nt_image_headers32
or byte [eax], al
add byte [eax], al
mov bh, 0x24
lea eax, [edx + 0x53]
nop
mov dword [esi + 0x2308c483], ecx
sal byte [ecx], 0xc0
fsub st(7)
int 0xf
mov bh, 0
movzx eax, word [eax]
jmp 0x5c530061
shl eax, 2
add eax, dword [ebx + 0x1c]
add eax, edx
mov eax, dword [eax]
add eax, edx
mov ebx, edx
add ebx, dword [edx + 0x3c]
mov ecx, dword [ebx + 0x7c]
mov ebx, dword [ebx + 0x78]
add ebx, edx
add ecx, ebx
cmp eax, ebx
jb 0x5c530014
cmp eax, ecx
ja 0x5c530014
mov esi, eax
lea edi, [ebp - 0x100]
mov al, byte [esi]
mov byte [edi], al
inc edi
inc esi
js 0x5c53009e
or ecx, ecx
xor dword [esp - 0x6b], eax
cmp al, 0x2e
jne 0x5c530094
lea edi, [ebp - 0x100]
push 0x100
push edi
push esi
call fcn.5c517309
lea esp, [esp - 0x60]
mov dword [esp + 0x5c], edi
lea esp, [esp + 0x5c]
Function at 0x83a300
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x302000]
push edi
jmp 0x83a31a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x83a321
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x83a310
mov eax, 1
add ebx, ebx
jne 0x83a333
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x83a344
jne 0x83a363
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x83a363
dec eax
add ebx, ebx
jne 0x83a350
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x83a328
add ebx, ebx
jne 0x83a35f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x83a3b5
xor ecx, ecx
sub eax, 3
jb 0x83a37b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x83a3ea
sar eax, 1
mov ebp, eax
jmp 0x83a386
add ebx, ebx
jne 0x83a386
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x83a354
inc ecx
add ebx, ebx
jne 0x83a394
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x83a354
add ebx, ebx
jne 0x83a3a1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x83a396
jne 0x83a3b2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x83a396
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x83a3d4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x83a3c6
jmp 0x83a316
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x83a3d4
add edi, ecx
jmp 0x83a316
pop esi
mov edi, esi
mov ecx, 0x878c
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x83a3f2
cmp byte [edi], 0x35
jne 0x83a3f2
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x83a3f7
lea edi, [esi + 0x436000]
mov eax, dword [edi]
or eax, eax
je 0x83a46f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x44c098]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x44c1d8]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x83a424
mov ecx, edi
jns 0x83a453
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x44c1dc]
or eax, eax
je 0x83a469
mov dword [ebx], eax
add ebx, 4
jmp 0x83a441
call dword [esi + 0x44c1ec]
mov ebp, dword [esi + 0x44c1e0]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x31f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x83a4a3
sub esp, 0xffffff80
jmp section.UPX0
Function at 0x41eef0
Capabilities:
Terminate process

Disassembly:
push 0x14
push 0x43b900
call fcn.0041efb0
push 1
call fcn.0041e87a
pop ecx
test al, al
jne 0x41eda1
push 7
call fcn.0041f1b5
xor bl, bl
mov byte [ebp - 0x19], bl
and dword [ebp - 4], 0
call fcn.0041e845
mov byte [ebp - 0x24], al
mov eax, dword [0x460cf4]
xor ecx, ecx
inc ecx
cmp eax, ecx
je 0x41ed9a
test eax, eax
jne 0x41ee0b
mov dword [0x460cf4], ecx
push 0x4332b4
push 0x433298
call fcn.0042856d
pop ecx
pop ecx
test eax, eax
je 0x41edee
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x41eee4
push 0x433294
push 0x433264
call fcn.00428511
pop ecx
pop ecx
mov dword [0x460cf4], 2
jmp 0x41ee10
mov bl, cl
mov byte [ebp - 0x19], bl
push dword [ebp - 0x24]
call fcn.0041e9d4
pop ecx
call fcn.0041f45f
mov esi, eax
xor edi, edi
cmp dword [esi], edi
je 0x41ee40
push esi
call fcn.0041e94a
pop ecx
test al, al
je 0x41ee40
push edi
push 2
push edi
mov esi, dword [esi]
mov ecx, esi
call fcn.0041efa0
call esi
call fcn.0041f465
mov esi, eax
cmp dword [esi], edi
je 0x41ee5e
push esi
call fcn.0041e94a
pop ecx
test al, al
je 0x41ee5e
push dword [esi]
call fcn.00427940
pop ecx
call fcn.0041f2d0
movzx eax, ax
push eax
call fcn.004284be
push eax
push edi
push 0x400000
call fcn.0041d891
mov esi, eax
call fcn.0042784f
test al, al
jne 0x41ee89
push esi
call fcn.00427978
test bl, bl
jne 0x41ee92
call fcn.0042791b
push edi
push 1
call fcn.0041e9f1
pop ecx
pop ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
jmp 0x41eee4
call fcn.0041eff6
ret
mov edi, edi
push ebp
mov ebp, esp
jmp 0x41ed82
Function at 0x401f10
Capabilities:
Get disk information
Inspect load icon resource
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x148
push ebx
push esi
push edi
push 0x65
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [esp + 0xc]
call fcn.00401000
lea ecx, [esp + 0x50]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x50]
lea ecx, [esp + 0xc]
push edx
call fcn.004012b0
test eax, eax
je 0x402021
lea eax, [esp + 0x50]
push 0x404030
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x402084
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x10]
call fcn.00401290
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
sub eax, 8
push 0
push eax
push esi
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea edx, [esp + 0x24]
push 8
push edx
call ebx
mov eax, dword [esp + 0x2c]
push 0
push eax
push esi
call edi
push esi
push 1
lea ecx, [esp + 0x48]
push 0x38
push ecx
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x50]
add esp, 0x3c
test eax, eax
mov eax, dword [esp + 0x10]
push edx
push eax
jne 0x401ffe
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401800
jmp 0x402084
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401a90
jmp 0x402084
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
mov esi, 1
xor ebx, ebx
test edi, esi
je 0x40206a
mov dl, bl
lea ecx, [esp + 0x10]
add dl, 0x41
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x40412c
lea ecx, [esp + 0x14]
call fcn.004020e2
lea ecx, [esp + 0xc]
mov eax, dword [esp + 0x10]
push eax
push 0
call fcn.00401cf0
add esi, esi
inc ebx
cmp ebx, 0x1a
jl 0x402039
lea ecx, [esp + 0xc]
call fcn.00401040
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
call fcn.00401030
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x148
ret 0x10

Function at 0x431005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
call 0x43100c
nop
nop
nop
nop
pop eax
nop
add eax, 0x403e6a
nop
sub eax, 0x403e10
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
jl 0x431030
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43101e
nop
nop
nop
popal
nop
nop
nop
nop
jmp loc.00401219
Function at 0x4031cc
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 0x403208
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 0x403228
lea eax, [esp + 0x109]
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
mov eax, esi
lea edx, [esp + 4]
mov ecx, 0x105
call fcn.00405438
add esp, 0x210
pop esi
pop ebx
ret

Function at 0x403530
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.004051c8
test esi, esi
jne 0x403566
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.004052b8
jmp 0x403584
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004033d4
mov edi, eax
test esi, esi
je 0x403584
cmp dword [ebx], 0
je 0x403584
dec esi
jmp 0x40356d
add esp, 0x108
pop edi
pop esi
pop ebx
ret

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

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

Function at 0x404130
Capabilities:
Query or enumerate registry value

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

Function at 0x405048
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x51a048], 0
je 0x4050a9
cmp word [0x51a21c], 0xd7b2
jne 0x405071
cmp dword [0x51a224], 0
jbe 0x405071
mov eax, 0x51a218
call dword [0x51a234]
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 0x4050d0
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x512030], 0
jne 0x4050c5
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x409748
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x40979a
test eax, edx
je 0x40979d
movzx ecx, byte [edx]
cmp cl, byte [eax]
je 0x40975d
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 0x409783
add ecx, 4
js 0x409773
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 3
add ecx, ebx
jns 0x409780
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 0x4097a9
test edx, edx
jne 0x409750
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

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

Disassembly:
push ebx
push esi
mov esi, eax
mov eax, esi
call fcn.00405658
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x40a2ca
test al, 0x10
sete al
pop esi
pop ebx
ret
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
cmp ebx, 2
je 0x40a2eb
cmp ebx, 3
je 0x40a2eb
cmp ebx, 0x7b
je 0x40a2eb
mov eax, esi
call fcn.0040a26c
test al, al
jne 0x40a2ef
xor eax, eax
jmp 0x40a2f1
mov al, 1
pop esi
pop ebx
ret

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

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

Function at 0x40a460
Capabilities:
Get file attributes

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

Function at 0x40a474
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.00405658
push eax
call sub.kernel32.dll_SetFileAttributesA
test eax, eax
jne 0x40a496
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
mov eax, ebx
pop edi
pop esi
pop ebx
ret

Function at 0x40dea0
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 0x40ded9
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004052b8
jmp 0x40dee2
mov eax, ebx
mov edx, esi
call fcn.0040521c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40e564
mov eax, dword [0x519938]
cmp byte [eax], 0
je 0x40e768
mov eax, dword [0x5194bc]
call fcn.004039f4
call fcn.00403120
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.0040aad0
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 0x40e7b0
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40e79e
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x519420]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x51c7f4]
call fcn.004067cc
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 0x40f04c
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 0x40f122
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00405260
lea eax, [ebp - 4]
call fcn.004056b0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00405658
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40f10c
mov eax, ebx
call fcn.00402fc4
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40f105
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.00405658
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40f0ef
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40f134
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40f0ef
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 0x40f10c
mov eax, dword [ebp - 0x10]
call fcn.00402fe0
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40f129
lea eax, [ebp - 4]
call fcn.004051c8
ret

Function at 0x410aac
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffc00
mov esi, edx
mov edi, eax
mov eax, esi
call fcn.004051c8
push 0x400
lea eax, [esp + 4]
push eax
mov eax, edi
call fcn.00405658
mov ebp, eax
push ebp
call sub.kernel32.dll_GetEnvironmentVariableA
mov ebx, eax
cmp ebx, 0x400
jge 0x410af1
mov edx, esp
mov eax, esi
mov ecx, ebx
call fcn.004052b8
jmp 0x410b0a
mov edx, ebx
dec edx
mov eax, esi
call fcn.004058e8
push ebx
mov eax, dword [esi]
call fcn.00405658
push eax
push ebp
call sub.kernel32.dll_GetEnvironmentVariableA
add esp, 0x400
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4260b8
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x51e9e8
cmp dword [edi], 0
jne 0x426134
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x51e9e4]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x512c04
mov ecx, 2
call fcn.004032d4
mov edx, 0x426090
lea eax, [esi + 5]
call fcn.004260b0
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.004260b0
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 0x426109
mov dword [0x51e9e4], 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 0x429db8
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.00405658
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x429e10
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x519be0]
mov dl, 1
mov eax, dword [0x4296f4]
call fcn.0040e8d0
call fcn.00404bec
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.00429868
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 0x42b1a8
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 0x42b1ae
ret
Function at 0x441a60
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 0x441c34
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 8]
mov eax, dword [esi]
call fcn.00460504
mov eax, dword [esi]
cmp byte [eax + 0x258], 0
je 0x441c19
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 0x441ac6
mov eax, dword [esi]
add eax, 0x264
call fcn.004051c8
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 0x441ba0
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
mov edx, dword [0x519bac]
movzx eax, al
bt dword [edx], eax
jae 0x441b5d
push 1
push 0x102
push 0x102
mov eax, dword [esi]
call fcn.00461630
push eax
lea eax, [ebp - 0x24]
push eax
call sub.user32.dll_PeekMessageA
test eax, eax
je 0x441be4
mov eax, dword [esi]
push dword [eax + 0x264]
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 8]
movzx edx, byte [edx]
call fcn.004053b0
push dword [ebp - 0x28]
lea eax, [ebp - 0x2c]
mov edx, dword [ebp - 0x1c]
call fcn.004053b0
push dword [ebp - 0x2c]
mov eax, dword [esi]
add eax, 0x264
mov edx, 3
call fcn.0040555c
mov eax, dword [ebp - 8]
mov byte [eax], 0
jmp 0x441be4
lea eax, [ebp - 0x30]
mov edx, dword [ebp - 8]
movzx edx, byte [edx]
call fcn.004053b0
mov edx, dword [ebp - 0x30]
mov eax, dword [esi]
add eax, 0x264
call fcn.00405494
jmp 0x441be4
mov eax, dword [esi]
mov ebx, dword [eax + 0x264]
test ebx, ebx
je 0x441b8d
sub ebx, 4
mov ebx, dword [ebx]
mov eax, dword [esi]
add eax, 0x264
mov ecx, 1
mov edx, ebx
call fcn.00405700
mov eax, dword [esi]
mov eax, dword [eax + 0x264]
call fcn.00405488
mov edx, eax
mov eax, dword [esi]
mov eax, dword [eax + 0x264]
call fcn.0040f1b4
cmp al, 2
je 0x441b7c
mov eax, dword [esi]
mov eax, dword [eax + 0x264]
test eax, eax
je 0x441bd1
sub eax, 4
mov eax, dword [eax]
mov edx, dword [esi]
add edx, 0x264
mov ecx, 1
xchg edx, eax
call fcn.00405700
mov eax, dword [esi]
mov eax, dword [eax + 0x264]
test eax, eax
je 0x441bf5
sub eax, 4
mov eax, dword [eax]
test eax, eax
jle 0x441c02
push ebp
call fcn.00441978
pop ecx
jmp 0x441c19
xor edx, edx
mov eax, dword [esi]
mov ecx, dword [eax]
call dword [ecx + 0xe0]
mov eax, dword [esi]
mov si, 0xffeb
call fcn.00404534
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x441c3b
lea eax, [ebp - 0x30]
mov edx, 3
call fcn.004051ec
ret
Function at 0x449688
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.00405648
xor eax, eax
push ebp
push 0x4497bd
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
call sub.user32.dll_OpenClipboard
test eax, eax
je 0x449790
xor edx, edx
push ebp
push 0x449789
push dword fs:[edx]
mov dword fs:[edx], esp
mov ebx, dword [ebp - 4]
mov eax, ebx
test eax, eax
je 0x4496d5
sub eax, 4
mov eax, dword [eax]
inc eax
push eax
push 0x2002
call sub.kernel32.dll_GlobalAlloc
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x44975e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalLock
mov esi, eax
xor eax, eax
push ebp
push 0x44974d
push dword fs:[eax]
mov dword fs:[eax], esp
test ebx, ebx
je 0x449714
sub ebx, 4
mov ebx, dword [ebx]
mov eax, dword [ebp - 4]
call fcn.00405658
lea ecx, [ebx + 1]
mov edx, esi
call fcn.004032d4
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 0x449754
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalUnlock
ret
mov ecx, dword [0x519318]
mov dl, 1
mov eax, dword [0x4087ec]
call fcn.0040e894
call fcn.00404bec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4497c4
lea eax, [ebp - 4]
call fcn.004051c8
ret