joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42fd40
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x42fd6c
cmp dword [ebp + 0xc], 0
je 0x42fd65
push dword [ebp + 8]
call fcn.004465d0
add esp, 4
test eax, eax
je 0x42fd6c
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x42ff80
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 8
jb 0x42ff8e
mov eax, dword [eax]
push edi
push 0x4f0204
push eax
call fcn.004ba61f
mov edi, eax
add esp, 8
test edi, edi
jne 0x42ffaf
call fcn.004b4047
pop edi
mov eax, dword [eax]
neg eax
pop ebp
ret
push ebx
push 2
push 0
push edi
call fcn.004bb569
push edi
call fcn.004bbb62
push 0
push 0
push edi
mov ebx, eax
call fcn.004bb569
add esp, 0x1c
test ebx, ebx
jne 0x42ffe2
push edi
call fcn.004ba6ed
add esp, 4
xor eax, eax
pop ebx
pop edi
pop ebp
ret
push esi
xor esi, esi
cmp ebx, 3
jl 0x430039
xor eax, eax
push edi
push 1
mov word [ebp + 8], ax
mov byte [ebp + 0xa], al
lea eax, [ebp + 8]
push 3
push eax
call fcn.004bb128
add esp, 0x10
cmp eax, 1
je 0x430020
push edi
call fcn.004ba6ed
add esp, 4
call fcn.004b4047
pop esi
pop ebx
pop edi
mov eax, dword [eax]
neg eax
pop ebp
ret
cmp byte [ebp + 8], 0xef
jne 0x430039
cmp byte [ebp + 9], 0xbb
jne 0x430039
cmp byte [ebp + 0xa], 0xbf
jne 0x430039
mov esi, 3
sub ebx, esi
push 0
push esi
push edi
call fcn.004bb569
mov esi, dword [ebp + 0xc]
add esp, 0xc
mov ecx, dword [esi + 0x10]
lea eax, [ecx + 1]
add eax, ebx
cmp eax, ecx
ja 0x430067
mov dword [esi + 0x10], eax
mov ecx, esi
cmp dword [esi + 0x14], 0x10
jb 0x430061
mov ecx, dword [esi]
mov byte [ecx + eax], 0
jmp 0x430073
sub eax, ecx
mov ecx, esi
push 0
push eax
call fcn.00431270
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x43007d
mov eax, dword [esi]
push edi
push 1
push ebx
push eax
call fcn.004bb128
push edi
mov dword [ebp + 8], eax
call fcn.004ba6ed
mov edx, dword [esi + 0x10]
add esp, 0x14
lea ecx, [edx - 1]
cmp ecx, edx
ja 0x4300ae
mov dword [esi + 0x10], ecx
cmp dword [esi + 0x14], 0x10
jb 0x4300a8
mov esi, dword [esi]
mov byte [esi + ecx], 0
jmp 0x4300ba
sub ecx, edx
push 0
push ecx
mov ecx, esi
call fcn.00431270
cmp dword [ebp + 8], 1
jne 0x430012
pop esi
mov eax, ebx
pop ebx
pop edi
pop ebp
ret
Function at 0x430130
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x524a60]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x414], eax
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x408], esi
mov dword [ebp - 0x408], ecx
push edi
mov edi, dword [ebp + 0x18]
test ecx, ecx
je 0x4301d1
test ebx, ebx
je 0x4301d1
test eax, eax
je 0x4301d1
push 0x400
lea eax, [ebp - 0x404]
push 0
push eax
call fcn.004b1030
add esp, 0xc
mov dword [ebp - 0x410], 1
lea eax, [ebp - 0x40c]
mov dword [ebp - 0x40c], 0x400
push eax
lea eax, [ebp - 0x404]
push eax
lea eax, [ebp - 0x410]
push eax
push dword [ebp - 0x414]
push ebx
push dword [ebp - 0x408]
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x4301d1
lea eax, [ebp - 0x404]
jmp 0x4301db
test edi, edi
mov eax, 0x4e8ad8
cmovne eax, edi
push eax
mov ecx, esi
call fcn.00403650
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a1588
mov esp, ebp
pop ebp
ret
Function at 0x430940
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e1880
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x524a60]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor edi, edi
cmp dword [ebp + 0x10], edi
je 0x430a2c
mov dword [ebp - 0x14], edi
call fcn.004045a0
mov ecx, eax
test ecx, ecx
je 0x430a3f
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
push str.SoftwareMicrosoftInternet_ExplorerMainFeatureControl_
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], edi
call fcn.004040f0
test al, al
jne 0x4309b2
push 0x39
push str.SoftwareMicrosoftInternet_ExplorerMainFeatureControl_
lea ecx, [ebp - 0x10]
call fcn.00404e90
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], 1
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
call fcn.0040c0e0
mov esi, dword [ebp - 0x10]
lea eax, [ebp - 0x14]
push eax
push esi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x4309ff
push 4
lea eax, [ebp + 0x14]
push eax
push 4
push 0
push dword [ebp + 0x10]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
mov ecx, 1
cmove edi, ecx
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x430a0d
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x430a2c
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00403f90
int3

Function at 0x430e30
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 8
jb 0x430e3e
mov eax, dword [eax]
push ebx
push 0x4f0220
push eax
call fcn.004ba61f
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x430e5f
call fcn.004b4047
pop ebx
mov eax, dword [eax]
neg eax
pop ebp
ret
push esi
push ebx
push dword [ebp + 0x10]
push 1
push dword [ebp + 0xc]
call fcn.004bbda5
push ebx
mov esi, eax
call fcn.004ba6ed
add esp, 0x14
xor eax, eax
cmp esi, dword [ebp + 0x10]
cmovne esi, eax
mov eax, esi
pop esi
pop ebx
pop ebp
ret

Function at 0x430e90
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 8
jb 0x430e9e
mov eax, dword [eax]
push edi
push 0x4f0220
push eax
call fcn.004ba61f
mov edi, eax
add esp, 8
test edi, edi
jne 0x430ebf
call fcn.004b4047
pop edi
mov eax, dword [eax]
neg eax
pop ebp
ret
mov eax, dword [ebp + 0xc]
push ebx
push esi
cmp dword [eax + 0x14], 0x10
lea ebx, [eax + 0x10]
jb 0x430ecf
mov eax, dword [eax]
push edi
push dword [ebx]
push 1
push eax
call fcn.004bbda5
push edi
mov esi, eax
call fcn.004ba6ed
add esp, 0x14
xor eax, eax
cmp esi, dword [ebx]
cmovne esi, eax
mov eax, esi
pop esi
pop ebx
pop edi
pop ebp
ret
Function at 0x430f40
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x14]
mov edx, 0x4e8ad8
test eax, eax
cmovne edx, eax
cmp dword [ebp + 8], 0
je 0x430f9d
cmp dword [ebp + 0xc], 0
je 0x430f9d
cmp dword [ebp + 0x10], 0
je 0x430f9d
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp + 0x14], eax
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x430f70
sub ecx, dword [ebp + 0x14]
sar ecx, 1
lea eax, [ecx + ecx]
push eax
push edx
push 1
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
neg eax
sbb eax, eax
inc eax
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x430fd0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x524a60]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x38], 0
je 0x431071
cmp byte [esi + 0x3d], 0
je 0x431071
mov eax, dword [esi]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x431027
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
mov edx, dword [ecx]
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x431039
sub eax, 1
je 0x43103d
sub eax, 2
je 0x431071
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a1588
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x43105a
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.004bbda5
add esp, 0x10
cmp edi, eax
jne 0x431027
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a1588
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
xor ecx, ebp
pop esi
call fcn.004a1588
mov esp, ebp
pop ebp
ret
Function at 0x431940
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x524a60]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x431970
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a1588
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x4319ac
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x4319ac
lea ecx, [edi - 1]
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a1588
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x431a91
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x4319d4
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [edi], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x431a07
push dword [esi + 0x4c]
movsx eax, bl
push eax
call fcn.004bae58
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a1588
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x28], bl
mov edx, dword [ecx]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x27]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x1c]
test eax, eax
js 0x431a91
cmp eax, 1
jle 0x431a64
cmp eax, 3
jne 0x431a91
push dword [esi + 0x4c]
push dword [ebp - 0x28]
call fcn.0042d290
add esp, 8
or ecx, 0xffffffff
test al, al
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a1588
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x431a81
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.004bbda5
add esp, 0x10
cmp edi, eax
jne 0x431a91
lea eax, [ebp - 0x28]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x30], eax
jne 0x431997
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a1588
mov esp, ebp
pop ebp
ret 4
Function at 0x4321e0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push edi
mov edi, ecx
cmp dword [edi + 0x38], 0
je 0x432204
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004322d0
pop edi
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [edi + 0x1c]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov eax, dword [eax]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], eax
test eax, eax
je 0x432225
mov eax, dword [edi + 0x2c]
mov eax, dword [eax]
jmp 0x432227
xor eax, eax
cdq
mov dword [ebp + 0x10], eax
mov ecx, edx
mov dword [ebp - 4], ecx
test ebx, ebx
jl 0x4322af
jg 0x43223a
test esi, esi
je 0x4322af
test ecx, ecx
jl 0x43227c
jg 0x432244
test eax, eax
je 0x43227c
cmp ebx, ecx
jg 0x432256
jl 0x43224e
cmp esi, eax
jae 0x432256
mov eax, esi
mov dword [ebp + 0x10], esi
mov dword [ebp - 4], ebx
push eax
push dword [ebp - 8]
push dword [ebp + 8]
call fcn.004b0530
mov ecx, dword [ebp + 0x10]
add esp, 0xc
mov eax, dword [edi + 0x2c]
add dword [ebp + 8], ecx
sub esi, ecx
sbb ebx, dword [ebp - 4]
sub dword [eax], ecx
mov eax, dword [edi + 0x1c]
add dword [eax], ecx
jmp 0x432282
mov eax, dword [ebp + 8]
mov dword [ebp + 8], eax
test ebx, ebx
jl 0x4322af
jg 0x43228c
test esi, esi
je 0x4322af
cmp dword [edi + 0x4c], 0
je 0x4322af
mov ecx, edi
call fcn.00431230
push dword [edi + 0x4c]
push esi
push 1
push dword [ebp + 8]
call fcn.004bb128
add esp, 0x10
sub esi, eax
sbb ebx, 0
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
sub eax, esi
pop esi
sbb edx, ebx
pop ebx
pop edi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4323a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, ecx
cmp dword [ebx + 0x38], 0
je 0x4323c4
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00432480
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x20]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov eax, dword [eax]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x10], edi
mov dword [ebp - 8], eax
test eax, eax
je 0x4323e5
mov eax, dword [ebx + 0x30]
mov eax, dword [eax]
jmp 0x4323e7
xor eax, eax
cdq
mov dword [ebp + 0x10], eax
mov ecx, edx
mov dword [ebp - 4], ecx
test edi, edi
jl 0x432464
jg 0x4323fa
test esi, esi
je 0x432464
test ecx, ecx
jl 0x43243e
jg 0x432404
test eax, eax
je 0x43243e
cmp edi, ecx
jg 0x432416
jl 0x43240e
cmp esi, eax
jae 0x432416
mov eax, esi
mov dword [ebp + 0x10], esi
mov dword [ebp - 4], edi
push eax
push dword [ebp + 8]
push dword [ebp - 8]
call fcn.004b0530
mov ecx, dword [ebp + 0x10]
add esp, 0xc
mov edx, dword [ebp + 8]
mov eax, dword [ebx + 0x30]
add edx, ecx
sub esi, ecx
sbb edi, dword [ebp - 4]
sub dword [eax], ecx
mov eax, dword [ebx + 0x20]
add dword [eax], ecx
jmp 0x432441
mov edx, dword [ebp + 8]
test edi, edi
jl 0x432464
jg 0x43244b
test esi, esi
je 0x432464
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x432464
push eax
push esi
push 1
push edx
call fcn.004bbda5
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x432f20
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
mov eax, dword [esi + 4]
test eax, eax
je 0x432f47
push 0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x432f47
mov eax, 1
pop esi
pop ebp
ret 8
mov eax, dword [esi + 4]
test eax, eax
je 0x432f62
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 4], 0
mov dword [esi], 0
push dword [ebp + 8]
mov byte [esi + 8], 0
lea ecx, [esi + 0x10]
mov byte [esi + 9], 0
call fcn.00403b10
push esi
push 0
push esi
push 0x433270
push 0
push 0
call fcn.004ba0b0
add esp, 0x18
mov dword [esi + 4], eax
test eax, eax
jne 0x432faf
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CWorkThread::Start__CreateThread_failed__errno_d
call fcn.00433920
add esp, 8
mov eax, 0x80070006
pop esi
pop ebp
ret 8
push edi
call dword [sym.imp.WINMM.dll_timeGetTime]
cmp byte [esi + 8], 0
mov edi, dword [ebp + 0xc]
mov dword [ebp + 8], eax
jne 0x433007
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
nop dword [eax]
call dword [sym.imp.WINMM.dll_timeGetTime]
sub eax, dword [ebp + 8]
cmp eax, edi
jae 0x432fe7
push 0xa
call ebx
cmp byte [esi + 8], 0
je 0x432fd0
cmp byte [esi + 8], 0
pop ebx
jne 0x433007
push edi
push str.CWorkThread::Start__wait_thread_running_timeout___d
call fcn.00433920
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebp
ret 8
pop edi
xor eax, eax
pop esi
pop ebp
ret 8
Function at 0x433d20
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e1b88
mov eax, dword fs:[0]
push eax
push esi
mov eax, dword [0x524a60]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x52a9bc]
mov esi, dword [ebp + 8]
and eax, esi
cmp eax, esi
jne 0x433e0b
call fcn.004045a0
mov ecx, eax
test ecx, ecx
je 0x433e1b
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 8], eax
push dword [ebp + 0x10]
lea ecx, [ebp + 8]
mov dword [ebp - 4], 0
push dword [ebp + 0xc]
call fcn.00433520
push 2
push 0x4f0794
lea ecx, [ebp + 8]
call fcn.0040c0e0
mov eax, dword [0x5245c4]
test al, 1
je 0x433dc3
lea eax, [ebp + 8]
push eax
push esi
call fcn.00433610
add esp, 4
mov ecx, 0x52a9c4
push eax
call fcn.0043bb00
mov ecx, 0x52a9c4
call fcn.0043bd90
mov eax, dword [0x5245c4]
test al, 2
je 0x433dd5
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, dword [0x5245c4]
test al, 4
je 0x433de9
push dword [ebp + 8]
push 0x4ea614
call fcn.00433ec0
add esp, 8
mov edx, dword [ebp + 8]
or eax, 0xffffffff
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x433e0b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00403f90
int3
Function at 0x437890
Capabilities:
Persist via run registry key
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e1d46
mov eax, dword fs:[0]
push eax
sub esp, 0x224
mov eax, dword [0x524a60]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x230], 0
mov dword [ebp - 0x22c], 0
mov dword [ebp - 0x228], 0
push 0x2001f
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push reloc.gdiplus.dll_Ordinal_1
lea ecx, [ebp - 0x230]
mov dword [ebp - 4], 0
call fcn.00415fd0
mov edi, dword [ebp - 0x230]
test eax, eax
jne 0x437a24
call fcn.004045a0
mov ecx, eax
test ecx, ecx
je 0x437a4f
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x220], eax
push dword [esi + 8]
lea eax, [ebp - 0x220]
mov byte [ebp - 4], 1
push dword [esi]
push str._s__s
push eax
call fcn.00407c50
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.004b1030
add esp, 0x1c
mov dword [ebp - 0x21c], 0x208
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x224]
push eax
push 0
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4379ad
mov eax, dword [ebp - 0x224]
cmp eax, 1
je 0x43799b
cmp eax, 2
jne 0x4379ad
cmp dword [ebp - 0x21c], 0
jne 0x4379ad
xor eax, eax
mov word [ebp - 0x218], ax
mov esi, dword [ebp - 0x220]
lea eax, [ebp - 0x218]
push eax
push esi
call fcn.004ba257
add esp, 8
test eax, eax
je 0x4379f4
test esi, esi
je 0x4379f4
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4379d0
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push esi
push 1
push 0
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push str.LDS_GAMECENTER
call fcn.00438ad0
add esp, 4
mov byte [ebp - 4], 0
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x437a1d
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, 1
jmp 0x437a26
xor esi, esi
test edi, edi
je 0x437a31
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a1588
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00403f90
int3
Function at 0x438e50
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e1fb8
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x524a60]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp word [0x52aa18], 0
jne 0x438e94
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0x100
push eax
push 0x52aa18
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
call fcn.004045a0
mov ecx, eax
test ecx, ecx
je 0x438efe
mov eax, dword [ecx]
call dword [eax + 0xc]
mov esi, dword [ebp + 8]
add eax, 0x10
mov dword [esi], eax
push 0x52aa18
mov ecx, esi
mov dword [ebp - 4], 0
call fcn.004040f0
test al, al
jne 0x438eec
mov ecx, 0x52aa18
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x438ed0
sub ecx, edx
sar ecx, 1
push ecx
push 0x52aa18
mov ecx, esi
call fcn.00404e90
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00403f90
int3
Function at 0x4393e0
Capabilities:
Enumerate process modules
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x668
mov eax, dword [0x524a60]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
xor esi, esi
mov dword [ebp - 0x668], eax
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x65c], esi
mov dword [ebp - 0x664], esi
push 0
push 2
xor bh, bh
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x660], eax
cmp eax, 0xffffffff
je 0x43954b
lea ecx, [ebp - 0x658]
mov dword [ebp - 0x658], 0x22c
push ecx
push eax
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x43951d
nop dword [eax]
push dword [ebp - 0x668]
lea eax, [ebp - 0x634]
xor bl, bl
push eax
call fcn.004ba257
add esp, 8
test eax, eax
jne 0x439503
push dword [ebp - 0x650]
push 8
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x4394fd
lea eax, [ebp - 0x42c]
mov dword [ebp - 0x42c], 0x428
push eax
push esi
call sub.KERNEL32.dll_Module32FirstW
test eax, eax
je 0x4394c9
nop
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.004ba257
add esp, 8
test eax, eax
je 0x4394c7
lea eax, [ebp - 0x42c]
push eax
push esi
call sub.KERNEL32.dll_Module32NextW
test eax, eax
jne 0x4394a0
jmp 0x4394c9
mov bl, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test bl, bl
je 0x4394fd
push dword [ebp - 0x650]
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x4394fd
push 1
push esi
mov bh, 1
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [ebp - 0x65c], esi
jmp 0x439503
mov esi, dword [ebp - 0x65c]
lea eax, [ebp - 0x658]
push eax
push dword [ebp - 0x660]
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x439450
push dword [ebp - 0x660]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test bh, bh
je 0x43954b
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 0x664]
inc eax
mov dword [ebp - 0x664], eax
cmp eax, 0x65
jl 0x439410
test esi, esi
je 0x439568
push 0x3e8
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
test bh, bh
pop edi
sete al
xor ecx, ebp
pop esi
pop ebx
call fcn.004a1588
mov esp, ebp
pop ebp
ret