joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403b64
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b40e0
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x6300f4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [ebp + 8]
lea edi, [ebx + 4]
lea esi, [ebp + 0xc]
mov dword [ebx], eax
movsd dword es:[edi], dword [esi]
lea ecx, [ebx + 0x18]
push 0x5e8884
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
and dword [ebx + 0x10], 0
and dword [ebx + 0x14], 0
call fcn.004116f2
push 0x5f4bbf
lea ecx, [ebx + 0x30]
call fcn.004116f2
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x404bca
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x404c25
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x404c16
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, dword [ebp + 8]
lea ecx, [esi + eax]
and edx, 0xf
jbe 0x404c12
cmp esi, ecx
jae 0x404c16
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edx, 1
jne 0x404c00
cmp esi, ecx
jb 0x404c1a
xor eax, eax
jmp 0x404c24
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x40cb99
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x6300f4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov edx, dword [ebp + 8]
xor ebx, ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
add eax, eax
mov dword [edi], ebx
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push esi
lea eax, [ebp - 8]
push eax
push ebx
push edx
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40cc10
cmp dword [ebp - 8], 1
je 0x40cbe8
cmp dword [ebp - 8], 2
je 0x40cbe8
push 0xd
pop eax
jmp 0x40cc10
mov ecx, dword [ebp - 0xc]
test esi, esi
je 0x40cc0a
test ecx, ecx
je 0x40cc05
test cl, 1
jne 0x40cbe3
mov eax, ecx
shr eax, 1
cmp word [esi + eax*2 - 2], bx
je 0x40cc0a
jmp 0x40cbe3
xor eax, eax
mov word [esi], ax
shr ecx, 1
xor eax, eax
mov dword [edi], ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0057086f
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4189f0
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push edi
mov edi, ecx
test edx, edx
jne 0x418a04
xor eax, eax
jmp 0x418b27
push ebx
mov eax, edx
xor edx, edx
push 3
pop ecx
div ecx
mov ecx, eax
mov ebx, edx
xor eax, eax
mov dword [ebp - 4], ecx
test ebx, ebx
mov dword [ebp - 8], ebx
setne al
add eax, ecx
xor ecx, ecx
shl eax, 2
add eax, 1
setb cl
neg ecx
or ecx, eax
push ecx
call fcn.0058e699
mov edx, eax
mov dword [ebp - 0xc], edx
pop ecx
test edx, edx
je 0x418b26
cmp dword [ebp - 4], 0
push esi
mov esi, edx
jbe 0x418ab1
mov ebx, dword [ebp - 4]
movzx ecx, byte [edi]
movzx eax, byte [edi + 1]
movzx edx, byte [edi + 2]
add edi, 3
shl eax, 8
shl ecx, 0x10
or ecx, eax
or edx, ecx
mov eax, edx
shr eax, 0x12
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi], al
mov eax, edx
shr eax, 0xc
and eax, 0x3f
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi + 1], al
mov eax, edx
shr eax, 6
and edx, 0x3f
and eax, 0x3f
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi + 2], al
mov al, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi + 3], al
add esi, 4
sub ebx, 1
jne 0x418a50
mov ebx, dword [ebp - 8]
mov edx, dword [ebp - 0xc]
cmp ebx, 1
jne 0x418add
movzx ecx, byte [edi]
mov eax, ecx
and ecx, 3
shr eax, 2
shl ecx, 4
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi], al
mov al, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi + 1], al
mov word [esi + 2], 0x3d3d
jmp 0x418b1d
cmp ebx, 2
jne 0x418b20
movzx ecx, byte [edi]
movzx eax, byte [edi + 1]
shl ecx, 8
or ecx, eax
mov eax, ecx
shr eax, 0xa
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi], al
mov eax, ecx
shr eax, 4
and eax, 0x3f
and ecx, 0xf
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi + 1], al
mov al, byte [ecx*4 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi + 2], al
mov byte [esi + 3], 0x3d
add esi, 4
mov byte [esi], 0
mov eax, edx
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x41c30f
Capabilities:
Parse credit card information

Disassembly:
push ecx
push ebx
push esi
mov esi, ecx
xor cl, cl
mov eax, dword [esi + 0x4c]
cmp eax, 0xffffffff
je 0x41c478
mov edx, 0x10000000
cmp eax, 0x7c
je 0x41c478
cmp eax, 0x29
jne 0x41c348
cmp dword [esi + 0x10], 0
jne 0x41c478
test dword [esi + 0x50], edx
je 0x41c47e
cmp eax, 0x2e
jne 0x41c363
push 5
lea ecx, [esi + 0x24]
call fcn.0041c572
mov ecx, esi
call fcn.0041c2ea
jmp 0x41c462
cmp eax, 0x5c
jne 0x41c3c0
mov ecx, esi
call fcn.0041c2ea
mov eax, dword [esi + 0x50]
and eax, 0x80
je 0x41c396
cmp word [esi + 0x48], 0x62
jne 0x41c396
push 4
lea ecx, [esi + 0x24]
call fcn.0041c572
mov ecx, esi
call fcn.0041c2ea
jmp 0x41c469
test eax, eax
je 0x41c3b4
cmp word [esi + 0x48], 0x42
jne 0x41c3b4
push 4
lea ecx, [esi + 0x24]
call fcn.0041c572
mov eax, dword [esi + 0x28]
xor dword [eax + 8], 1
jmp 0x41c38a
mov ecx, esi
call fcn.0041c8e4
jmp 0x41c462
cmp eax, 0x5b
jne 0x41c3e4
mov ecx, esi
call fcn.0041c2ea
mov ecx, esi
call fcn.0041c898
cmp dword [esi + 0x4c], 0x5d
je 0x41c357
push 4
jmp 0x41c480
cmp eax, 0x28
jne 0x41c408
mov ecx, esi
call fcn.0041c2ea
mov ecx, esi
call fcn.0041c9dc
cmp dword [esi + 0x4c], 0x29
mov bl, al
jne 0x41c47e
mov ecx, esi
call fcn.0041c2ea
jmp 0x41c45e
cmp eax, 0x5e
jne 0x41c414
push 2
jmp 0x41c382
cmp eax, 0x24
jne 0x41c420
push 3
jmp 0x41c382
cmp eax, 0x2a
je 0x41c474
cmp eax, 0x2b
je 0x41c474
cmp eax, 0x3f
je 0x41c474
cmp eax, 0x7b
je 0x41c474
cmp eax, 0x7d
jne 0x41c43e
test dword [esi + 0x50], edx
je 0x41c470
cmp eax, 0x5d
jne 0x41c448
test dword [esi + 0x50], edx
je 0x41c3dd
movzx eax, word [esi + 0x48]
lea ecx, [esi + 0x24]
push eax
call fcn.0041cb92
mov ecx, esi
call fcn.0041c2ea
mov bl, 1
test bl, bl
je 0x41c469
mov ecx, esi
call fcn.0041cace
mov cl, 1
jmp 0x41c316
push 6
jmp 0x41c480
push 0xa
jmp 0x41c480
pop esi
mov al, cl
pop ebx
pop ecx
ret
push 5
call fcn.0055ad03
int3
Function at 0x41ef2e
Capabilities:
Check for time delay via gettickcount
Delete file
Move file

Disassembly:
push 0x34
mov eax, 0x5b5f65
call fcn.005718de
cmp dword [0x639d08], 0
je 0x41f0c5
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
sub eax, dword [0x63a070]
cmp eax, 0x927c0
jb 0x41f0c5
mov edi, 0x400000
cmp dword [0x639cf8], edi
jg 0x41f0c5
push 0x800000
push 0x639cf8
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
mov ebx, eax
cmp ebx, edi
je 0x41efb1
test ebx, ebx
je 0x41efb1
cmp ebx, edi
jle 0x41ef99
push 0xff800000
jmp 0x41f0ba
lea eax, [ebx - 1]
cmp eax, 0x3ffffe
ja 0x41f0c5
push 0xffc00000
jmp 0x41f0ba
call esi
cmp dword [0x630b3c], 0xffffffff
mov dword [0x63a070], eax
je 0x41f0b2
push 9
pop ecx
xor eax, eax
lea edi, [ebp - 0x40]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x40]
xor esi, esi
push eax
push esi
mov edi, 0x639d10
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
mov eax, dword [0x630b3c]
cmp dword [ebp - 0x24], esi
jb 0x41f0b2
ja 0x41effb
cmp dword [ebp - 0x20], eax
jb 0x41f0b2
push edi
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], esi
call fcn.0041fbce
push str..old
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], esi
call fcn.0041f946
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push dword [0x639d08]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push dword [ebp - 0x14]
mov dword [0x639d08], esi
push 0x639d10
call dword [sym.imp.KERNEL32.dll_MoveFileW]
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
push ecx
push ecx
push 0x80
push 2
push ecx
push 0x40000000
push 0x639d10
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.00401e30
test eax, eax
js 0x41f09d
push 2
push ecx
push ecx
lea ecx, [ebp - 0x1c]
call fcn.0041e9da
cmp byte [0x639d0c], 0
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x1c], esi
mov dword [0x639d08], eax
je 0x41f0a7
push str.NewFile
push esi
push esi
call fcn.0041f355
add esp, 0xc
jmp 0x41f0a0
mov esi, dword [ebp - 0x1c]
test esi, esi
je 0x41f0a7
push esi
call edi
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.0040cb81
mov eax, 0xff800000
sub eax, ebx
push eax
push 0x639cf8
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
call fcn.00571888
ret
Function at 0x41f0cb
Capabilities:
Delete file
Move file

Disassembly:
push 0x38
mov eax, 0x5b5faa
call fcn.005718de
mov edi, ecx
mov dword [ebp - 0x14], edi
push 0x639cfc
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
cmp eax, 1
jne 0x41f248
xor ebx, ebx
mov dword [0x630b3c], 0x400000
mov byte [ebp - 0x41], bl
mov dword [ebp - 0x1c], ebx
call fcn.0040cabf
push eax
lea ecx, [ebp - 0x1c]
call fcn.00403c09
mov dword [ebp - 4], ebx
test edi, edi
jne 0x41f144
lea ecx, [ebp - 0x14]
call fcn.0041edf6
push eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.00418e86
mov byte [ebp - 4], bl
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.0040cb81
mov esi, dword [ebp - 0x1c]
mov edi, esi
mov dword [ebp - 0x14], esi
jmp 0x41f147
mov esi, dword [ebp - 0x1c]
push edi
call fcn.0058e083
push edi
push 0x5f5794
push 0x104
push 0x639d10
call fcn.0041fb38
add esp, 0x14
lea edi, [ebp - 0x40]
xor eax, eax
push 9
pop ecx
rep stosd dword es:[edi], eax
mov edi, dword [ebp - 0x14]
lea eax, [ebp - 0x40]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
cmp dword [ebp - 0x24], ebx
ja 0x41f18c
cmp dword [ebp - 0x20], 0x400000
jb 0x41f1cd
push edi
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], ebx
call fcn.0041fbce
push 2
pop eax
push str..old
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], al
call fcn.0041f946
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push dword [ebp - 0x14]
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileW]
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
mov byte [ebp - 0x41], 1
call fcn.0040cb81
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
cmp byte [ebp - 0x41], 0
push ecx
push ecx
push 0x80
push 4
pop eax
push 2
pop ecx
cmovne eax, ecx
mov byte [ebp - 4], 3
push eax
push ecx
push 0x40000000
push edi
lea ecx, [ebp - 0x18]
call fcn.00401e30
test eax, eax
js 0x41f232
push 2
pop eax
push eax
push ecx
push ecx
lea ecx, [ebp - 0x18]
call fcn.0041e9da
cmp byte [0x639d0c], 0
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x18], ebx
mov dword [0x639d08], eax
je 0x41f240
push str.BEGAIN_n
push ebx
push ebx
call fcn.0041f355
add esp, 0xc
jmp 0x41f235
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x41f240
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esi - 0x10]
call fcn.0040cb81
call fcn.00571888
ret
Function at 0x41f24e
Capabilities:
Write file on windows

Disassembly:
push 0x18
mov eax, 0x5b5fef
call fcn.005718de
mov esi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x14], ebx
call fcn.0040cabf
push eax
lea ecx, [ebp - 0x14]
call fcn.00403c09
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
lea eax, [ebp - 0x14]
push str.:__Tid_d_
push eax
call fcn.0041facf
add esp, 0xc
push 0x5f5820
call fcn.0058cab0
pop ecx
push eax
push ecx
mov ecx, esi
call fcn.0041f9c4
lea ecx, [ebp - 0x24]
call fcn.0041eebb
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
push ecx
mov edx, eax
lea ecx, [ebp - 0x20]
call fcn.0041f68b
pop ecx
push esi
mov edx, eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1c]
call fcn.0041f68b
pop ecx
push eax
mov ecx, esi
mov byte [ebp - 4], 3
call fcn.0041f7a8
mov ecx, dword [ebp - 0x1c]
lea ecx, [ecx - 0x10]
call fcn.0040cb81
mov ecx, dword [ebp - 0x20]
lea ecx, [ecx - 0x10]
call fcn.0040cb81
mov byte [ebp - 4], bl
mov ecx, dword [ebp - 0x24]
lea ecx, [ecx - 0x10]
call fcn.0040cb81
call fcn.0041ef2e
cmp dword [0x639cf8], 0x400000
jge 0x41f344
mov edi, 0x639cf8
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
cmp eax, 0x400000
jge 0x41f33d
mov ecx, dword [0x639d08]
test ecx, ecx
je 0x41f33d
mov eax, dword [esi]
lea edx, [ebp - 0x18]
push ebx
push edx
mov dword [ebp - 0x18], ebx
push dword [eax - 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.0040cb81
call fcn.00571888
ret
Function at 0x420485
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x6300f4]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x40
lea eax, [ebp - 0x50]
push 0
push eax
call fcn.00589540
add esp, 0xc
xorps xmm0, xmm0
movlpd qword [ebp - 0x10], xmm0
push str.GetPhysicallyInstalledSystemMemory
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4204ce
lea ecx, [ebp - 0x10]
push ecx
call eax
mov eax, dword [ebp - 0x10]
mov ecx, eax
mov edx, dword [ebp - 0xc]
or ecx, edx
je 0x4204e3
shrd eax, edx, 0xa
shr edx, 0xa
jmp 0x420501
lea eax, [ebp - 0x50]
mov dword [ebp - 0x50], 0x40
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x44]
shrd eax, ecx, 0x14
shr ecx, 0x14
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0057086f
mov esp, ebp
pop ebp
ret
Function at 0x421393
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x220
mov eax, 0x5b64e3
call fcn.005718de
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x21c]
mov ebx, dword [ebp + 0xc]
xor esi, esi
push 0x20a
push esi
push eax
mov dword [ebp - 0x22c], edi
mov dword [ebp - 0x228], esi
call fcn.00589540
mov dword [edi + 0x14], 7
add esp, 0xc
cmp dword [edi + 0x14], 8
mov dword [edi + 0x10], esi
jb 0x4213df
mov eax, dword [edi]
jmp 0x4213e1
mov eax, edi
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x224]
mov dword [ebp - 4], esi
push eax
push 0x20019
push esi
push ebx
push closesocket
mov dword [ebp - 0x228], 1
mov dword [ebp - 0x224], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x421478
lea eax, [ebp - 0x220]
mov dword [ebp - 0x220], 0x104
push eax
lea eax, [ebp - 0x21c]
push eax
push esi
push esi
push 0x5f5eac
push dword [ebp - 0x224]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x42146c
cmp word [ebp - 0x21c], ax
je 0x42145d
lea eax, [ebp - 0x21c]
push eax
call fcn.0058e083
pop ecx
mov esi, eax
push esi
lea eax, [ebp - 0x21c]
mov ecx, edi
push eax
call fcn.004107ce
push dword [ebp - 0x224]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
call fcn.00571888
ret 0x10

Function at 0x421482
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x220
mov eax, 0x5b64e3
call fcn.005718de
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x21c]
mov ebx, dword [ebp + 0xc]
xor esi, esi
push 0x20a
push esi
push eax
mov dword [ebp - 0x22c], edi
mov dword [ebp - 0x228], esi
call fcn.00589540
mov dword [edi + 0x14], 7
add esp, 0xc
cmp dword [edi + 0x14], 8
mov dword [edi + 0x10], esi
jb 0x4214ce
mov eax, dword [edi]
jmp 0x4214d0
mov eax, edi
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x224]
mov dword [ebp - 4], esi
push eax
push 0x20019
push esi
push ebx
push closesocket
mov dword [ebp - 0x228], 1
mov dword [ebp - 0x224], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x421567
lea eax, [ebp - 0x220]
mov dword [ebp - 0x220], 0x104
push eax
lea eax, [ebp - 0x21c]
push eax
push esi
push esi
push str.InstallPath
push dword [ebp - 0x224]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x42155b
cmp word [ebp - 0x21c], ax
je 0x42154c
lea eax, [ebp - 0x21c]
push eax
call fcn.0058e083
pop ecx
mov esi, eax
push esi
lea eax, [ebp - 0x21c]
mov ecx, edi
push eax
call fcn.004107ce
push dword [ebp - 0x224]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
call fcn.00571888
ret 0xc
Function at 0x421ae5
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x6300f4]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x30]
xor esi, esi
push eax
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x18], esi
call fcn.00409ab4
cmp dword [eax + 0x14], 8
jb 0x421b14
mov eax, dword [eax]
lea ecx, [ebp - 0x18]
push ecx
push 0x20019
push esi
push eax
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
lea ecx, [ebp - 0x30]
push esi
neg ebx
push 1
sbb bl, bl
call fcn.0041164f
add bl, 1
je 0x421b7e
push 4
pop ebx
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], ebx
push eax
lea eax, [ebp - 0x10]
mov dword [ebp - 0xc], esi
push eax
lea eax, [ebp - 0xc]
push eax
push esi
push str.SupplyId
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x421b75
cmp dword [ebp - 0xc], ebx
jne 0x421b75
mov eax, dword [ebp - 0x10]
xor esi, esi
mov dword [edi], eax
inc esi
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 8]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0057086f
mov esp, ebp
pop ebp
ret 4

Function at 0x421cd6
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
lea eax, [ebp - 0x1c]
push esi
push ecx
push eax
mov esi, ecx
call fcn.0042229c
add esi, 0x224
cmp dword [esi + 0x14], 8
jb 0x421cf7
mov esi, dword [esi]
cmp dword [eax + 0x14], 8
jb 0x421cff
mov eax, dword [eax]
push esi
push 0
push str.VMIndexBase
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push 0
push 1
lea ecx, [ebp - 0x1c]
mov esi, eax
call fcn.0041164f
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x421d25
Capabilities:
Check if file exists

Disassembly:
push 0x270
mov eax, 0x5b655f
call fcn.005718de
mov ebx, ecx
push 0x208
lea eax, [ebp - 0x21c]
push 0
push eax
call fcn.00589540
add esp, 0xc
lea eax, [ebp - 0x21c]
push 0x103
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov edi, dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x21c]
push eax
call edi
cmp word [ebp - 0x21c], 0
jne 0x421d7d
xor eax, eax
jmp 0x421d8a
lea eax, [ebp - 0x21c]
push eax
call fcn.0058e083
pop ecx
push eax
lea eax, [ebp - 0x21c]
lea esi, [ebx + 0x224]
push eax
mov ecx, esi
call fcn.004107ce
push 0x5f5a10
mov edx, esi
lea ecx, [ebp - 0x264]
call fcn.0042075b
and dword [ebp - 4], 0
lea ecx, [ebp - 0x24c]
mov edx, eax
mov dword [esp], str.Config.ini
call fcn.00420942
pop ecx
push eax
mov ecx, esi
call fcn.0040d5cc
push 0
push 1
lea ecx, [ebp - 0x24c]
call fcn.0041164f
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x264]
push 0
push 1
call fcn.0041164f
cmp dword [esi + 0x14], 8
jb 0x421dfe
mov eax, dword [esi]
jmp 0x421e00
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x421e99
lea eax, [ebp - 0x21c]
push eax
call edi
cmp word [ebp - 0x21c], 0
jne 0x421e26
xor eax, eax
jmp 0x421e33
lea eax, [ebp - 0x21c]
push eax
call fcn.0058e083
pop ecx
push eax
lea eax, [ebp - 0x21c]
mov ecx, esi
push eax
call fcn.004107ce
push 0x5f5a10
mov edx, esi
lea ecx, [ebp - 0x24c]
call fcn.0042075b
xor edi, edi
lea ecx, [ebp - 0x264]
inc edi
mov edx, eax
mov dword [ebp - 4], edi
mov dword [esp], str.Config.ini
call fcn.00420942
pop ecx
push eax
mov ecx, esi
call fcn.0040d5cc
push 0
push edi
lea ecx, [ebp - 0x264]
call fcn.0041164f
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24c]
push 0
push edi
call fcn.0041164f
jmp 0x421e9c
xor edi, edi
inc edi
and dword [ebp - 0x224], 0
xor eax, eax
mov esi, 0x5f5a74
mov dword [ebp - 0x220], 7
push esi
mov word [ebp - 0x234], ax
call fcn.0058e083
pop ecx
push eax
push esi
lea ecx, [ebp - 0x234]
call fcn.004107ce
lea eax, [ebp - 0x234]
mov dword [ebp - 4], 2
push eax
push ecx
push ecx
lea eax, [ebp - 0x27c]
mov ecx, ebx
push eax
call fcn.00421b93
push eax
lea ecx, [ebx + 0x20c]
call fcn.0040d5cc
push 0
push edi
lea ecx, [ebp - 0x27c]
call fcn.0041164f
push 0
push edi
lea ecx, [ebp - 0x234]
call fcn.0041164f
call fcn.00571888
ret 4
Function at 0x42209d
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
mov eax, dword [0x6300f4]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x60], eax
test edi, edi
jne 0x4220c9
xor eax, eax
xor edx, edx
jmp 0x422157
push 0x42
xor esi, esi
lea eax, [ebp - 0x54]
xorps xmm0, xmm0
push esi
push eax
movlpd qword [ebp - 0x6c], xmm0
call fcn.00589540
add esp, 0xc
mov dword [ebp - 0x5c], esi
lea eax, [ebp - 0x5c]
push eax
push 0x20019
push esi
push edi
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x422151
lea eax, [ebp - 0x58]
mov dword [ebp - 0x58], 0x40
push eax
lea eax, [ebp - 0x54]
push eax
push esi
push esi
push dword [ebp - 0x60]
push dword [ebp - 0x5c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x422148
cmp word [ebp - 0x54], si
je 0x422132
lea eax, [ebp - 0x54]
push eax
call fcn.0058e083
pop ecx
mov esi, eax
push esi
lea eax, [ebp - 0x54]
mov ecx, ebx
push eax
call fcn.004107ce
lea eax, [ebp - 0x6c]
push eax
push ebx
call fcn.00421fa7
push dword [ebp - 0x5c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x6c]
mov edx, dword [ebp - 0x68]
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0057086f
mov esp, ebp
pop ebp
ret 0xc
Function at 0x42216a
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
mov eax, dword [0x6300f4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
xorps xmm0, xmm0
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
mov dword [ebp - 0x64], eax
movlpd qword [ebp - 0x60], xmm0
cmp dword [esi + 0x14], 8
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0x50], edi
jb 0x4221a0
mov eax, dword [esi]
jmp 0x4221a2
mov eax, esi
push edi
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov dword [ebp - 0x54], eax
test eax, eax
je 0x42227f
push eax
call fcn.0058e699
mov ebx, eax
pop ecx
test ebx, ebx
je 0x42227f
push dword [ebp - 0x54]
push edi
push ebx
call fcn.00589540
add esp, 0xc
cmp dword [esi + 0x14], 8
jb 0x4221db
mov esi, dword [esi]
push ebx
push dword [ebp - 0x54]
push edi
push esi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x422270
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x50]
push eax
push 0x5f5a10
push ebx
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x422270
mov esi, dword [ebp - 0x50]
xor eax, eax
push 0x40
push edi
or eax, dword [esi + 0xc]
mov ecx, dword [esi + 8]
mov dword [ebp - 0x54], eax
or ecx, edi
lea eax, [ebp - 0x48]
mov dword [ebp - 0x5c], ecx
push eax
call fcn.00589540
movzx eax, word [esi + 0xc]
push eax
movzx eax, word [esi + 0xe]
push eax
movzx eax, word [esi + 8]
push eax
movzx eax, word [esi + 0xa]
push eax
lea eax, [ebp - 0x48]
push str._d._d._d._d
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x24
cmp word [ebp - 0x48], di
je 0x42225e
lea eax, [ebp - 0x48]
push eax
call fcn.0058e083
pop ecx
mov edi, eax
mov ecx, dword [ebp - 0x64]
lea eax, [ebp - 0x48]
push edi
push eax
call fcn.004107ce
mov esi, dword [ebp - 0x54]
jmp 0x422273
mov esi, dword [ebp - 0x60]
mov edi, dword [ebp - 0x5c]
push ebx
call fcn.0058e253
pop ecx
jmp 0x422285
mov edi, dword [ebp - 0x5c]
mov esi, dword [ebp - 0x60]
mov ecx, dword [ebp - 4]
mov edx, edi
pop edi
mov eax, esi
xor ecx, ebp
pop esi
pop ebx
call fcn.0057086f
mov esp, ebp
pop ebp
ret 8