joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4018f8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x854
and byte [ebp - 0x854], 0
push ebx
push esi
mov ebx, ecx
push edi
mov ecx, 0x1ff
xor eax, eax
lea edi, [ebp - 0x853]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x854]
xor esi, esi
push 0x40b12c
push eax
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
add ebx, 0x312
lea eax, [ebp - 0x854]
push ebx
push eax
call edi
lea eax, [ebp - 0x854]
push 0x40b128
push eax
call edi
lea eax, [ebp - 4]
push eax
push 0x20019
lea eax, [ebp - 0x854]
push esi
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401af4
push 1
lea ecx, [ebp - 0x38]
call fcn.00401b09
mov eax, 0x800
and byte [ebp - 0x10], 0
mov edi, dword [ebp - 4]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x38]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x14]
mov dword [ebp - 8], esi
call fcn.00401e5c
push eax
push esi
push esi
push 0x40b118
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ebx, eax
lea ecx, [ebp - 0x14]
neg ebx
sbb bl, bl
inc bl
call fcn.00401c24
test bl, bl
je 0x401aec
cmp word [0x40b110], si
mov ecx, dword [0x409200]
push 2
mov eax, 0x40b112
pop ebx
je 0x4019f7
mov dx, word [eax]
add eax, ebx
test dx, dx
jne 0x4019ed
push ecx
mov ecx, 0x40b110
sub eax, ecx
sar eax, 1
dec eax
push eax
push ecx
lea ecx, [ebp - 0x38]
call fcn.00401de9
mov edx, dword [0x409200]
mov ecx, eax
cmp ecx, edx
jne 0x401a53
cmp word [0x40b108], si
mov eax, 0x40b10a
je 0x401a30
mov cx, word [eax]
add eax, ebx
test cx, cx
jne 0x401a26
mov ecx, 0x40b108
push edx
sub eax, ecx
sar eax, 1
dec eax
push eax
push ecx
lea ecx, [ebp - 0x38]
call fcn.00401de9
mov ecx, eax
cmp ecx, dword [0x409200]
je 0x401aec
xor eax, eax
lea edi, [ebp - 0x16]
mov word [ebp - 0x18], si
add ecx, 3
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [ebp - 0x28]
cmp word [eax + ecx*2], 0x30
jne 0x401aec
mov dx, word [eax + ecx*2 + 2]
cmp dx, 0x78
je 0x401a80
cmp dx, 0x58
jne 0x401aec
add ecx, ebx
lea ecx, [eax + ecx*2]
mov ax, word [ecx]
cmp ax, si
je 0x401aa8
lea edx, [ebp - 0x18]
cmp ax, 0x20
je 0x401aa8
mov ax, word [ecx]
add ecx, ebx
mov word [edx], ax
add edx, ebx
mov ax, word [ecx]
cmp ax, si
jne 0x401a90
lea eax, [ebp - 0x18]
push 1
push eax
lea ecx, [ebp - 0x54]
call fcn.00401c4b
mov edi, eax
mov ecx, edi
call fcn.00406fc7
push dword [edi + 4]
call fcn.00407938
pop ecx
mov edi, eax
lea ecx, [ebp - 0x54]
call fcn.00401cb7
lea ecx, [ebp - 0x38]
call fcn.00401b92
cmp dword [ebp - 4], esi
je 0x401ae8
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
jmp 0x401b04
lea ecx, [ebp - 0x38]
call fcn.00401b92
cmp dword [ebp - 4], esi
je 0x401b02
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x403a86
Capabilities:
Copy file
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x270
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp byte [esi + 0x22f], bl
jne 0x403c1c
cmp byte [esi + 0x22b], bl
jne 0x403c1c
cmp byte [esi + 0x22e], bl
je 0x403c1c
cmp byte [esi + 0x228], bl
jne 0x403c1c
lea eax, [ebp - 0x270]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x403c1c
lea eax, [ebp - 0x16c]
push eax
push ebx
lea eax, [ebp - 0x270]
push 0x40b380
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
je 0x403c1c
lea eax, [ebp - 0x16c]
push ebx
push eax
lea ecx, [esi + 0x240]
call fcn.0040740b
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x403c1c
push edi
push ebx
push 0x4000000
push 3
push ebx
push 1
lea eax, [ebp - 0x16c]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0x10
mov dword [ebp - 8], eax
pop ecx
xor eax, eax
lea edi, [ebp - 0x64]
push 0x40b368
rep stosd dword es:[edi], eax
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x68], 0x44
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov edi, dword [sym.imp.OLEAUT32.dll_VariantInit]
mov dword [ebp - 0x14], eax
mov eax, dword [esi + 0x24c]
mov dword [ebp - 0x10], ebx
push eax
mov dword [ebp - 4], eax
call edi
push eax
lea ecx, [ebp - 0x14]
push dword [ebp - 4]
call fcn.0040202e
push 0x40b360
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
push eax
mov dword [ebp - 4], eax
call edi
push eax
lea ecx, [ebp - 0x14]
push dword [ebp - 4]
call fcn.0040202e
push dword [ebp - 4]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov esi, dword [esi + 0x234]
push esi
call edi
push eax
push esi
lea ecx, [ebp - 0x14]
call fcn.0040202e
lea eax, [ebp - 0x24]
lea ecx, [ebp - 0x14]
push eax
lea eax, [ebp - 0x68]
push eax
push ebx
push ebx
push ebx
push 1
push ebx
push ebx
call fcn.0040740b
push eax
lea eax, [ebp - 0x16c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [ebp - 0x10]
call fcn.00401d65
push dword [ebp - 0x14]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
lea ecx, [ebp - 0x24]
call fcn.00403c22
cmp dword [ebp - 8], 0xffffffff
pop edi
je 0x403c18
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
jmp 0x403c1e
xor al, al
pop esi
pop ebx
leave
ret
Function at 0x40524c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
and byte [ebp - 0x148], 0
push esi
push edi
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x147]
xor esi, esi
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 8]
mov dword [ebp - 4], esi
push eax
push 0x40b1f0
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 8], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x4052c5
cmp dword [ebp + 0xc], 1
mov dword [ebp - 0xc], 0x104
mov eax, 0x40b1e0
je 0x4052a5
mov eax, 0x40b494
lea ecx, [ebp - 0xc]
push ecx
lea ecx, [ebp - 0x148]
push ecx
push esi
push esi
push eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [ebp - 0x148], 0
je 0x40530b
lea eax, [ebp - 0x148]
mov edi, 0x409278
push esi
push eax
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x38], 0x409280
mov dword [ebp - 0x30], edi
call fcn.00406a5b
mov esi, 0x409274
push 0x40b3ec
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x44], esi
mov dword [ebp - 4], 1
call fcn.00404cdd
jmp 0x40533c
lea eax, [ebp - 0x148]
mov edi, 0x409278
push esi
push eax
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x1c], 0x409280
mov dword [ebp - 0x14], edi
call fcn.00406a5b
mov esi, 0x409274
mov dword [ebp - 4], 2
mov dword [ebp - 0x28], esi
lea eax, [ebp - 0x28]
mov ecx, dword [ebp + 8]
push 0
push eax
mov dword [ecx + 0xc], 0x409280
mov dword [ecx + 0x14], edi
call fcn.00406aca
mov edi, dword [ebp + 8]
test byte [ebp - 4], 2
mov dword [edi], esi
je 0x405368
and dword [ebp - 4], 0xfffffffd
lea ecx, [ebp - 0x28]
call fcn.00401b92
test byte [ebp - 4], 1
je 0x405376
lea ecx, [ebp - 0x44]
call fcn.00401b92
mov eax, edi
pop edi
pop esi
leave
ret
Function at 0x406688
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
and dword [ebp - 4], 0
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [ebp - 4]
push edi
mov ebx, 0xf003f
push eax
push ebx
push 0
mov edi, VariantInit
push 0x40b610
push edi
mov dword [ebp - 0xc], 0xa
call esi
test eax, eax
jne 0x4066dd
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x18]
push eax
push 0
push 0
push 0x40b6a0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x406738
and dword [ebp - 8], 0
lea eax, [ebp - 8]
push eax
push ebx
push 0
push 0x40b5e8
push edi
call esi
mov esi, eax
xor edi, edi
cmp esi, edi
jne 0x406712
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x18]
push eax
push edi
push edi
push 0x40b5e0
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
cmp dword [ebp - 8], edi
je 0x406720
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, edi
je 0x40673a
cmp dword [ebp - 4], edi
je 0x406732
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ax, 0x409
jmp 0x406757
xor edi, edi
lea eax, [ebp - 0x18]
push eax
call fcn.00407938
cmp dword [ebp - 4], edi
pop ecx
mov esi, eax
je 0x406754
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ax, si
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40797b
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 8]
push ebx
push eax
mov ebx, ecx
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeA
test eax, eax
mov dword [ebp - 4], eax
je 0x4079cd
push eax
call fcn.00402590
pop ecx
mov dword [ebx + 0x40], eax
push eax
push dword [ebp - 4]
push dword [ebp - 8]
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x4079cd
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x40b684
push dword [ebx + 0x40]
call sub.VERSION.dll_VerQueryValueA
test eax, eax
jne 0x4079d1
xor al, al
jmp 0x407a32
push esi
push edi
mov edi, ebx
lea eax, [ebx + 4]
neg edi
sbb edi, edi
mov esi, dword [ebp - 0xc]
push 0xd
and edi, eax
pop ecx
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x40b668
rep movsd dword es:[edi], dword [esi]
push dword [ebx + 0x40]
call sub.VERSION.dll_VerQueryValueA
pop edi
pop esi
test eax, eax
je 0x407a30
mov eax, dword [ebp - 4]
shr eax, 2
mov dword [ebx + 0x3c], eax
shl eax, 2
push eax
call fcn.00402590
mov dword [ebx + 0x38], eax
xor eax, eax
cmp dword [ebx + 0x3c], eax
pop ecx
jbe 0x407a30
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebx + 0x38]
mov edx, dword [edx + eax*4]
mov dword [ecx + eax*4], edx
inc eax
cmp eax, dword [ebx + 0x3c]
jb 0x407a1e
mov al, 1
pop ebx
leave
ret 4
Function at 0x401a7f
Capabilities:
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x198]
sub esp, 0x218
mov eax, dword [0x431c20]
xor eax, ebp
mov dword [ebp + 0x194], eax
push esi
xor eax, eax
xor esi, esi
push 0x206
mov word [ebp - 0x74], ax
lea eax, [ebp - 0x72]
push esi
push eax
mov dword [ebp - 0x7c], esi
call fcn.004152d0
add esp, 0xc
mov dword [ebp - 0x78], esi
cmp ebx, esi
je 0x401b31
push edi
mov edi, 0x42b86c
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, si
jne 0x401aca
sub eax, edx
sar eax, 1
je 0x401b30
lea eax, [ebp - 0x74]
push eax
mov esi, 0x104
push esi
call dword [fcn.00428234]
push edi
lea eax, [ebp - 0x74]
push esi
push eax
call fcn.00412ef7
push 0x42b888
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x78]
push eax
call fcn.0041344b
add esp, 0x18
cmp dword [ebp - 0x78], 0
je 0x401b30
push dword [ebp - 0x78]
xor esi, esi
inc esi
push esi
push 0x200
push ebx
call fcn.0041373e
push dword [ebp - 0x78]
call fcn.004137d2
add esp, 0x14
mov dword [ebp - 0x7c], esi
pop edi
mov ecx, dword [ebp + 0x194]
mov eax, dword [ebp - 0x7c]
xor ecx, ebp
pop esi
call fcn.00412ee8
add ebp, 0x198
leave
ret

Function at 0x401b4a
Capabilities:
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x198]
sub esp, 0x218
mov eax, dword [0x431c20]
xor eax, ebp
mov dword [ebp + 0x194], eax
push esi
xor eax, eax
xor esi, esi
push 0x206
mov word [ebp - 0x74], ax
lea eax, [ebp - 0x72]
push esi
push eax
mov dword [ebp - 0x7c], esi
call fcn.004152d0
add esp, 0xc
mov dword [ebp - 0x78], esi
cmp ebx, esi
je 0x401c25
push edi
mov edi, 0x42b7b8
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, si
jne 0x401b99
sub eax, edx
sar eax, 1
je 0x401c24
cmp dword [0x432fbc], 3
mov esi, 0x104
lea eax, [ebp - 0x74]
jne 0x401bd6
push esi
push eax
call dword [0x428214]
push 0x42b890
lea eax, [ebp - 0x74]
push esi
push eax
call fcn.00412ef7
add esp, 0xc
jmp 0x401bde
push eax
push esi
call dword [fcn.00428234]
push edi
lea eax, [ebp - 0x74]
push esi
push eax
call fcn.00412ef7
push 0x42b888
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x78]
push eax
call fcn.0041344b
add esp, 0x18
cmp dword [ebp - 0x78], 0
je 0x401c24
push dword [ebp - 0x78]
xor esi, esi
inc esi
push esi
push 0x200
push ebx
call fcn.0041373e
push dword [ebp - 0x78]
call fcn.004137d2
add esp, 0x14
mov dword [ebp - 0x7c], esi
pop edi
mov ecx, dword [ebp + 0x194]
mov eax, dword [ebp - 0x7c]
xor ecx, ebp
pop esi
call fcn.00412ee8
add ebp, 0x198
leave
ret
Function at 0x4022c1
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x194]
sub esp, 0x214
mov eax, dword [0x431c20]
xor eax, ebp
mov dword [ebp + 0x190], eax
push esi
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x78], ax
lea eax, [ebp - 0x76]
push eax
xor esi, esi
call fcn.004152d0
add esp, 0xc
test edi, edi
je 0x402387
and dword [ebp - 0x7c], esi
mov ecx, 0x42b768
mov eax, ecx
lea esi, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
test dx, dx
jne 0x40230c
sub eax, esi
sar eax, 1
je 0x402330
push 0x42b904
push ecx
lea eax, [ebp - 0x7c]
push eax
call fcn.0041344b
add esp, 0xc
jmp 0x402364
lea eax, [ebp - 0x78]
push eax
mov esi, 0x104
push esi
call dword [fcn.00428234]
push 0x42b86c
lea eax, [ebp - 0x78]
push esi
push eax
call fcn.00412ef7
push 0x42b904
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x7c]
push eax
call fcn.0041344b
add esp, 0x18
xor esi, esi
inc esi
cmp dword [ebp - 0x7c], 0
je 0x402387
push dword [ebp - 0x7c]
push esi
push 0x200
push edi
call fcn.00413a11
push dword [ebp - 0x7c]
call fcn.004137d2
add esp, 0x14
mov ecx, dword [ebp + 0x190]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00412ee8
add ebp, 0x194
leave
ret

Function at 0x40239f
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push edi
push 0x42b888
push dword [ebp + 8]
lea eax, [ebp - 4]
xor edi, edi
push eax
mov dword [ebp - 4], edi
call fcn.0041344b
add esp, 0xc
test eax, eax
je 0x4023c9
xor eax, eax
jmp 0x40244c
push ebx
push esi
push 2
push edi
push dword [ebp - 4]
call fcn.00413b1d
push dword [ebp - 4]
call fcn.00413d3f
push edi
push edi
push dword [ebp - 4]
mov esi, eax
call fcn.00413b1d
lea eax, [esi + 0x32]
push eax
mov dword [ebp - 8], eax
call fcn.00413dfc
push dword [ebp - 4]
mov edi, eax
push 1
push esi
push edi
call fcn.0041373e
push dword [ebp - 4]
call fcn.004137d2
push 0x32
lea ebx, [edi + esi]
call fcn.0040244f
push 0x42b904
push dword [ebp + 0xc]
lea eax, [ebp - 4]
push eax
call fcn.0041344b
add esp, 0x44
pop esi
pop ebx
test eax, eax
jne 0x4023c2
push dword [ebp - 4]
push 1
push dword [ebp - 8]
push edi
call fcn.00413a11
push dword [ebp - 4]
call fcn.004137d2
xor eax, eax
add esp, 0x14
inc eax
pop edi
leave
ret
Function at 0x403be8
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0xf90]
mov eax, 0x1010
call fcn.00417780
mov eax, dword [0x431c20]
xor eax, ebp
mov dword [ebp + 0xf8c], eax
mov eax, dword [ebp + 0xf98]
push ebx
push esi
mov esi, dword [0x4283f4]
xor ebx, ebx
push ebx
mov dword [ebp - 0x7c], eax
push 4
lea eax, [ebp - 0x78]
push eax
push dword [edi]
call esi
cmp eax, 4
je 0x403c2e
xor eax, eax
jmp 0x403c76
cmp dword [ebp - 0x78], ebx
jbe 0x403c65
push 0
push 0x1000
lea eax, [ebp - 0x74]
push eax
push dword [edi]
call esi
mov dword [ebp - 0x80], eax
test eax, eax
je 0x403c65
mov ecx, dword [ebp - 0x7c]
push dword [ecx]
push eax
lea eax, [ebp - 0x74]
push 1
push eax
call fcn.00413a11
add ebx, dword [ebp - 0x80]
add esp, 0x10
cmp ebx, dword [ebp - 0x78]
jb 0x403c33
mov eax, dword [ebp - 0x7c]
push dword [eax]
call fcn.004137d2
cmp ebx, dword [ebp - 0x78]
pop ecx
sbb eax, eax
inc eax
mov ecx, dword [ebp + 0xf8c]
pop esi
xor ecx, ebp
pop ebx
call fcn.00412ee8
add ebp, 0xf90
leave
ret

Function at 0x405392
Capabilities:
Hash data using sha1

Disassembly:
and dword [eax + 4], 0
and dword [eax], 0
mov dword [eax + 8], 0x67452301
mov dword [eax + 0xc], 0xefcdab89
mov dword [eax + 0x10], 0x98badcfe
mov dword [eax + 0x14], 0x10325476
mov dword [eax + 0x18], 0xc3d2e1f0
ret

Function at 0x405526
Capabilities:
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0xff0]
mov eax, 0x1070
call fcn.00417780
mov eax, dword [0x431c20]
xor eax, ebp
mov dword [ebp + 0xfec], eax
mov eax, dword [ebp + 0xff8]
push esi
push edi
push 0x42b888
push eax
lea eax, [ebp - 0x18]
mov esi, ecx
xor edi, edi
push eax
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], edi
call fcn.0041344b
add esp, 0xc
cmp dword [ebp - 0x18], edi
jne 0x405581
mov edi, esi
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
jmp 0x405614
push ebx
push 2
push edi
push dword [ebp - 0x18]
call fcn.00413b1d
push dword [ebp - 0x18]
call fcn.00413d3f
push edi
push edi
push dword [ebp - 0x18]
mov dword [ebp - 0x24], eax
call fcn.00413b1d
lea eax, [ebp - 0x80]
call fcn.00405392
push dword [ebp - 0x18]
mov esi, 0x1000
push esi
lea eax, [ebp - 0x14]
push 1
push eax
call fcn.0041373e
mov ebx, eax
add esp, 0x2c
cmp ebx, edi
jbe 0x4055ee
push ebx
lea edi, [ebp - 0x80]
lea ecx, [ebp - 0x14]
call fcn.004053bd
push dword [ebp - 0x18]
add dword [ebp - 0x1c], ebx
push esi
lea eax, [ebp - 0x14]
push 1
push eax
call fcn.0041373e
mov ebx, eax
add esp, 0x14
test ebx, ebx
ja 0x4055c7
mov edi, dword [ebp - 0x20]
push edi
lea esi, [ebp - 0x80]
call fcn.00405456
push dword [ebp - 0x18]
call fcn.004137d2
mov eax, dword [ebp - 0x1c]
pop ecx
pop ecx
pop ebx
cmp eax, dword [ebp - 0x24]
jb 0x405573
xor eax, eax
inc eax
mov ecx, dword [ebp + 0xfec]
pop edi
xor ecx, ebp
pop esi
call fcn.00412ee8
add ebp, 0xff0
leave
ret
Function at 0x406db7
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push edi
mov edi, edx
test ecx, ecx
jne 0x406dc2
xor eax, eax
pop edi
ret
push esi
not eax
mov edx, 0xff
cmp edi, 8
jb 0x406e74
mov esi, edi
shr esi, 3
push ebx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x42ce38]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x42ce38]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x42ce38]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x42ce38]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x42ce38]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x42ce38]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x42ce38]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x42ce38]
inc ecx
sub edi, 8
dec esi
jne 0x406dd9
pop ebx
test edi, edi
je 0x406e8d
movzx esi, byte [ecx]
xor esi, eax
and esi, edx
shr eax, 8
xor eax, dword [esi*4 + 0x42ce38]
inc ecx
dec edi
jne 0x406e78
pop esi
not eax
pop edi
ret

Function at 0x406e92
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
mov eax, dword [ecx]
movsx edx, dl
xor edx, eax
push esi
mov esi, 0xff
and edx, esi
mov edx, dword [edx*4 + 0x42ce38]
shr eax, 8
xor edx, eax
mov eax, dword [ecx + 8]
mov dword [ecx], edx
movzx edx, dl
add edx, dword [ecx + 4]
imul edx, edx, 0x8088405
inc edx
mov dword [ecx + 4], edx
shr edx, 0x18
xor edx, eax
and edx, esi
shr eax, 8
xor eax, dword [edx*4 + 0x42ce38]
pop esi
mov dword [ecx + 8], eax
ret
Function at 0x40ae13
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x41659c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00406b1b
mov dword [ebp - 0x14], eax
cmp dword [0x4aa4f0], esi
jne 0x40af06
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40ae93
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40afe6
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40afe6
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40afe6
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x4aa4f0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x4aa4f4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x4aa4f8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4aa500], eax
test eax, eax
je 0x40af03
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4aa4fc], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40af2b
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40af1e
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40af40
push 4
pop eax
jmp 0x40afe8
cmp dword [ebp - 0x14], esi
je 0x40af40
push dword [0x4aa4f0]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40af25
mov eax, dword [0x4aa4fc]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40af9e
cmp dword [0x4aa500], edi
je 0x40af9e
push eax
call ebx
push dword [0x4aa500]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40af9e
test eax, eax
je 0x40af9e
call ecx
test eax, eax
je 0x40af93
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x40af93
test byte [ebp - 8], 1
jne 0x40af9e
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40afce
mov eax, dword [0x4aa4f4]
cmp eax, edi
je 0x40afcb
push eax
call ebx
test eax, eax
je 0x40afcb
call eax
mov esi, eax
test esi, esi
je 0x40afcb
mov eax, dword [0x4aa4f8]
cmp eax, edi
je 0x40afcb
push eax
call ebx
test eax, eax
je 0x40afcb
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x4aa4f0]
call ebx
test eax, eax
je 0x40afe6
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40afe8
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403689
mov esp, ebp
pop ebp
ret
Function at 0x40cc10
Capabilities:
Create thread
Terminate process

Disassembly:
push 0x24
mov eax, 0x483ef8
call fcn.0046a143
mov esi, ecx
call fcn.0043816d
mov edi, eax
mov ecx, esi
lea eax, [ebp - 0x30]
push eax
call fcn.004383ac
xor ebx, ebx
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], ebx
push dword [eax]
call fcn.0040d051
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x30]
lea ecx, [ecx - 0x10]
call fcn.0040c28c
mov eax, edi
dec eax
je 0x40cc7f
dec eax
je 0x40cc62
call fcn.0042a90c
push ebx
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push ebx
push ebx
push esi
push 0x40cbb7
push ebx
push ebx
call fcn.0046612f
add esp, 0x18
mov ecx, esi
call fcn.0040cc10
mov edi, eax
jmp 0x40ccce
cmp dword [ebp - 0x1c], 0
je 0x40ccce
mov eax, dword [esi + 0x354]
mov byte [eax + 0x711], bl
lea eax, [ebp - 0x2c]
mov ecx, dword [esi + 0x354]
add ecx, 0x6c8
cmp ecx, eax
je 0x40ccad
push 0xffffffffffffffff
push ebx
push eax
call fcn.0040d705
mov ecx, dword [esi + 0x354]
call fcn.00413367
mov ecx, dword [esi + 0x358]
test al, al
je 0x40ccc9
call fcn.0043076b
jmp 0x40ccce
call fcn.004307d4
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.0040d2b7
mov eax, edi
call fcn.0046a0f2
ret