joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4107c0
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [esp + 0x18]
sub eax, 0
push ebx
push esi
push edi
mov esi, ecx
je 0x41085e
sub eax, 1
je 0x41081f
sub eax, 1
jne 0x41095e
cmp dword [esp + 0x14], 0x100
jne 0x41095e
mov eax, dword [esp + 0x18]
lea edi, [esp + 0x14]
mov dword [esp + 0x14], 1
call fcn.00410a30
cmp dword [esp + 0x14], 0
mov ecx, dword [esp + 0x20]
mov dword [ecx], eax
je 0x41095e
pop edi
pop esi
mov eax, 1
pop ebx
ret 0x18
cmp dword [esp + 0x14], 0x100
jne 0x41095e
mov eax, dword [esp + 0x18]
lea edi, [esp + 0x14]
mov dword [esp + 0x14], 1
call fcn.00410a30
cmp dword [esp + 0x14], 0
mov edx, dword [esp + 0x20]
mov dword [edx], eax
je 0x41095e
pop edi
pop esi
mov eax, 1
pop ebx
ret 0x18
mov eax, dword [esp + 0x14]
cmp eax, 0x10
jne 0x410892
mov eax, dword [esi + 4]
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [esi + 0x28]
push ecx
call dword [sym.imp.USER32.dll_SetFocus]
mov edx, dword [esp + 0x20]
mov dword [edx], 0
pop edi
pop esi
mov eax, 1
pop ebx
ret 0x18
cmp eax, 0x110
jne 0x4108b1
mov ebx, esi
call fcn.00410bc0
mov ecx, dword [esp + 0x20]
pop edi
pop esi
mov dword [ecx], eax
mov eax, 1
pop ebx
ret 0x18
cmp eax, 0x111
jne 0x410931
mov edi, dword [esp + 0x18]
mov edx, 1
cmp dx, di
jne 0x4108dc
call fcn.00410970
mov ecx, dword [esp + 0x20]
pop edi
pop esi
mov dword [ecx], eax
mov eax, 1
pop ebx
ret 0x18
mov ebx, dword [esp + 0x20]
mov edx, 2
cmp dx, di
jne 0x410905
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x18], 1
call fcn.00410a80
cmp dword [esp + 0x14], 0
mov dword [ebx], eax
jne 0x410887
movzx eax, di
sub eax, 0x410
cmp eax, 0x11
ja 0x410924
call fcn.00410ab0
pop edi
mov dword [ebx], eax
pop esi
mov eax, 1
pop ebx
ret 0x18
pop edi
mov eax, 1
pop esi
mov dword [ebx], eax
pop ebx
ret 0x18
cmp eax, 0x100
jne 0x41095e
mov eax, dword [esp + 0x18]
lea edi, [esp + 0x14]
mov dword [esp + 0x14], 1
call fcn.00410a30
cmp dword [esp + 0x14], 0
mov ecx, dword [esp + 0x20]
mov dword [ecx], eax
jne 0x410887
pop edi
pop esi
xor eax, eax
pop ebx
ret 0x18

Function at 0x410a30
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
mov dword [edi], 0
cmp eax, 0xd
je 0x410a66
cmp eax, 0x1b
jne 0x410a6b
mov eax, dword [esi + 4]
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [esi + 0x28]
push ecx
call dword [sym.imp.USER32.dll_SetFocus]
mov dword [edi], 1
mov eax, 1
pop esi
ret
call fcn.00410970
mov eax, 1
pop esi
ret

Function at 0x410a80
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [esi + 4]
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [esi + 0x28]
push ecx
call dword [sym.imp.USER32.dll_SetFocus]
mov edx, dword [esp + 4]
mov dword [edx], 1
xor eax, eax
ret 4
Function at 0x410c70
Capabilities:
Get graphical window text

Disassembly:
push 0xffffffffffffffff
push 0x428c80
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x4362ac]
xor eax, esp
mov dword [esp + 0x48], eax
push ebx
push ebp
push esi
mov eax, dword [0x4362ac]
xor eax, esp
push eax
lea eax, [esp + 0x5c]
mov dword fs:[0], eax
mov ecx, dword [edi + 4]
mov eax, dword [esp + 0x6c]
push 0x480
push ecx
mov dword [edi + 0x28], eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_SetFocus]
mov edx, dword [edi + 0x28]
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push 0
push 0xba
push edx
call ebx
xor ebp, ebp
xor esi, esi
mov dword [esp + 0x1c], eax
test eax, eax
jbe 0x410d06
mov eax, dword [edi + 0x28]
push 0
push esi
push 0xbb
push eax
call ebx
mov ecx, dword [edi + 0x28]
push 0
push eax
push 0xc1
push ecx
call ebx
inc esi
lea ebp, [eax + ebp + 2]
cmp esi, dword [esp + 0x1c]
jb 0x410cdf
push ebp
call fcn.0041605e
mov esi, eax
add esp, 4
test esi, esi
je 0x410e56
push ebp
push 0
push esi
call fcn.0041a930
mov edx, dword [edi + 0x28]
add esp, 0xc
push ebp
push esi
push edx
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov eax, esi
mov dword [esp + 0x54], 0xf
mov dword [esp + 0x50], 0
mov byte [esp + 0x40], 0
lea ebp, [eax + 1]
jmp 0x410d50
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x410d50
sub eax, ebp
push eax
push esi
lea ecx, [esp + 0x44]
call fcn.00405320
push esi
mov dword [esp + 0x68], 0
call fcn.00417a91
mov edx, dword [edi + 0x28]
add esp, 4
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x18]
push ecx
push 0xb0
push edx
call ebx
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov ebp, 0x10
cmp ecx, eax
je 0x410e28
sub eax, ecx
push eax
lea esi, [esp + 0x24]
lea edx, [esp + 0x40]
call fcn.00403cc0
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0x48]
mov byte [esp + 0x70], 1
call fcn.004056c0
mov byte [esp + 0x64], 0
cmp dword [esp + 0x38], ebp
jb 0x410dda
mov eax, dword [esp + 0x24]
push eax
call fcn.00416928
add esp, 4
push 1
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x44]
push edx
xor eax, eax
mov byte [esp + 0x1c], 0xd
call fcn.00404190
cmp eax, 0xffffffff
je 0x410e03
push 0xffffffffffffffff
push eax
lea ecx, [esp + 0x44]
call fcn.00405430
mov esi, dword [esp + 0x40]
cmp dword [esp + 0x54], ebp
jae 0x410e11
lea esi, [esp + 0x40]
mov eax, dword [edi + 4]
push 0x480
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push esi
push 0
push 0xc
push eax
call ebx
mov ecx, dword [edi + 4]
push 0x480
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0xffffffffffffffff
push 0
push 0xb1
push eax
call ebx
cmp dword [esp + 0x54], ebp
jb 0x410e56
mov edx, dword [esp + 0x40]
push edx
call fcn.00416928
add esp, 4
mov ecx, dword [esp + 0x5c]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.00416933
add esp, 0x58
ret 4
Function at 0x411750
Capabilities:
Log keystrokes via polling

Disassembly:
cmp dword [esp + 0x18], 0
push esi
mov esi, ecx
jne 0x4117b3
cmp dword [esp + 0xc], 0x100
jne 0x4117b3
push edi
xor edi, edi
cmp dword [esp + 0x14], 0x46
jne 0x41179b
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jge 0x41179b
mov eax, dword [esi + 0x2c]
mov edi, dword [esi + 0x30]
push eax
call fcn.00410c70
mov ecx, dword [esi + 0x30]
mov edx, dword [ecx + 4]
push 5
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
mov edi, 1
mov eax, dword [esp + 0x1c]
test edi, edi
mov dword [eax], 0
pop edi
je 0x4117b3
mov eax, 1
pop esi
ret 0x18
xor eax, eax
pop esi
ret 0x18
Function at 0x412f80
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ecx
push ebx
push ebp
push edi
call fcn.00410480
mov edi, dword [sym.imp.KERNEL32.dll_FindResourceA]
push 5
push 0x12c
push esi
xor ebp, ebp
call edi
mov ebx, eax
test ebx, ebx
je 0x41303c
push 0xf0
push 0x12c
push esi
call edi
mov edi, dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x412fc7
push eax
push esi
call edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push ebx
push esi
mov dword [esp + 0x14], ebp
call edi
test eax, eax
je 0x413023
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x413023
push edi
call fcn.0040bb90
add esp, 4
push 0
mov ebx, eax
mov eax, dword [esp + 0x18]
push 0x4068e0
push eax
push ebx
push esi
call dword [sym.imp.USER32.dll_CreateDialogIndirectParamA]
mov ebp, eax
test ebp, ebp
jne 0x41300f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0xc], eax
cmp ebx, edi
je 0x41302d
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x41302d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0xc]
test eax, eax
je 0x41303c
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
mov eax, ebp
pop ebp
pop ebx
pop ecx
ret
Function at 0x413b10
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 8
push ebx
push ebp
mov ebp, dword [esi + 0x2c]
push edi
lea esp, [esp]
mov edi, dword [esi + 0x3c]
sub edi, dword [esi + 0x74]
mov eax, dword [esi + 0x6c]
mov ecx, dword [esi + 0x2c]
sub edi, eax
lea edx, [ecx + ebp - 0x106]
mov dword [esp + 0xc], edi
cmp eax, edx
jb 0x413ba0
mov eax, dword [esi + 0x38]
push ebp
lea ecx, [eax + ebp]
push ecx
push eax
call fcn.0041a490
mov edx, dword [esi + 0x4c]
mov eax, dword [esi + 0x44]
sub dword [esi + 0x70], ebp
sub dword [esi + 0x6c], ebp
add esp, 0xc
sub dword [esi + 0x5c], ebp
lea ecx, [eax + edx*2]
movzx eax, word [ecx - 2]
sub ecx, 2
cmp eax, ebp
jb 0x413b6f
sub eax, ebp
jmp 0x413b71
xor eax, eax
sub edx, 1
mov word [ecx], ax
jne 0x413b60
mov ecx, dword [esi + 0x40]
mov edx, ebp
lea ecx, [ecx + ebp*2]
movzx eax, word [ecx - 2]
sub ecx, 2
cmp eax, ebp
jb 0x413b90
sub eax, ebp
jmp 0x413b92
xor eax, eax
sub edx, 1
mov word [ecx], ax
jne 0x413b81
add edi, ebp
mov dword [esp + 0xc], edi
mov edi, dword [esi]
cmp dword [edi + 4], 0
je 0x413c5a
mov edx, dword [esi + 0x74]
add edx, dword [esi + 0x6c]
mov eax, dword [edi + 4]
add edx, dword [esi + 0x38]
mov ecx, dword [esp + 0xc]
mov ebx, eax
mov dword [esp + 0x10], edx
cmp ebx, ecx
jbe 0x413bc8
mov ebx, ecx
test ebx, ebx
je 0x413c1c
sub eax, ebx
mov dword [edi + 4], eax
mov eax, dword [edi + 0x1c]
mov eax, dword [eax + 0x18]
cmp eax, 1
jne 0x413bea
mov edx, dword [edi]
mov ecx, dword [edi + 0x30]
mov eax, ebx
call fcn.00415d90
jmp 0x413c03
cmp eax, 2
jne 0x413c0a
mov ecx, dword [edi]
mov eax, dword [edi + 0x30]
test ecx, ecx
jne 0x413bfc
xor eax, eax
jmp 0x413c07
mov edx, ebx
call fcn.004135e0
mov edx, dword [esp + 0x10]
mov dword [edi + 0x30], eax
mov ecx, dword [edi]
push ebx
push ecx
push edx
call fcn.0041a490
add dword [edi], ebx
add esp, 0xc
add dword [edi + 8], ebx
add dword [esi + 0x74], ebx
mov edi, dword [esi + 0x74]
cmp edi, 3
jb 0x413c46
mov eax, dword [esi + 0x38]
mov edx, dword [esi + 0x6c]
mov ecx, dword [esi + 0x58]
add edx, eax
movzx eax, byte [edx]
mov dword [esi + 0x48], eax
shl eax, cl
movzx ecx, byte [edx + 1]
xor eax, ecx
and eax, dword [esi + 0x54]
mov dword [esi + 0x48], eax
cmp edi, 0x106
jae 0x413c5a
mov edx, dword [esi]
cmp dword [edx + 4], 0
jne 0x413b20
pop edi
pop ebp
pop ebx
add esp, 8
ret
Function at 0x41634d
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x438c34], 0
push esi
jne 0x4162c0
call fcn.004161e6
test eax, eax
je 0x416303
mov eax, dword [0x438c34]
cmp eax, 1
jne 0x4162e1
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x416303
pop esi
ret
push eax
call dword [0x438c3c]
test eax, eax
jne 0x41634b
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x416307
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x438c34]
call dword [0x438c3c]
mov edi, eax
test edi, edi
je 0x41632c
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x416348
mov edi, esi
add esi, 0xff0
push edi
push dword [0x438c34]
call dword [0x438c38]
add edi, 0x10
cmp edi, esi
jb 0x416334
mov eax, edi
pop edi
pop esi
ret
jmp 0x4162ad

Function at 0x416933
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4362ac]
jne 0x41693d
repz ret
jmp fcn.0041ac4f

Function at 0x4253a4
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0041d41d
and dword [ebp - 4], 0
cmp dword [0x4396d8], 0
mov ebx, eax
jne 0x425455
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x425506
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x42c034
push edi
call esi
test eax, eax
je 0x425506
push eax
call fcn.0041d3ab
mov dword [esp], 0x42c024
push edi
mov dword [0x4396d8], eax
call esi
push eax
call fcn.0041d3ab
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4396dc], eax
call esi
push eax
call fcn.0041d3ab
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4396e0], eax
call esi
push eax
call fcn.0041d3ab
pop ecx
mov dword [0x4396e8], eax
test eax, eax
je 0x425455
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0041d3ab
pop ecx
mov dword [0x4396e4], eax
mov eax, dword [0x4396e4]
cmp eax, ebx
je 0x4254ad
cmp dword [0x4396e8], ebx
je 0x4254ad
push eax
call fcn.0041d426
push dword [0x4396e8]
mov esi, eax
call fcn.0041d426
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4254ad
test edi, edi
je 0x4254ad
call esi
test eax, eax
je 0x4254a4
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4254a4
test byte [ebp - 0xc], 1
jne 0x4254ad
or dword [ebp + 0x10], 0x200000
jmp 0x4254e6
mov eax, dword [0x4396dc]
cmp eax, ebx
je 0x4254e6
push eax
call fcn.0041d426
pop ecx
test eax, eax
je 0x4254e6
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4254e6
mov eax, dword [0x4396e0]
cmp eax, ebx
je 0x4254e6
push eax
call fcn.0041d426
pop ecx
test eax, eax
je 0x4254e6
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4396d8]
call fcn.0041d426
pop ecx
test eax, eax
je 0x425506
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x425508
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401731
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
push edi
mov ebx, ecx
jne 0x40174a
push 0x80004005
call fcn.0040117a
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x40174c
push edi
push dword [ebp + 0xc]
push 7
push 0
push dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x4020d9
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x420180]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0x2001f
mov ebx, ecx
push eax
push dword [ebx]
xor esi, esi
lea ecx, [ebp - 0x208]
mov dword [ebp - 0x210], eax
mov dword [ebp - 0x208], esi
call fcn.004016a4
mov edi, eax
cmp edi, esi
je 0x402139
lea ecx, [ebp - 0x208]
call fcn.0040163f
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040c9c6
leave
ret 4
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x402157
lea eax, [ebp - 0x204]
push eax
lea ecx, [ebp - 0x208]
call fcn.004020d9
cmp eax, esi
jne 0x40219f
lea eax, [ebp - 0x218]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x204]
push eax
push esi
push dword [ebp - 0x208]
mov dword [ebp - 0x20c], 0x100
call edi
test eax, eax
je 0x402141
lea ecx, [ebp - 0x208]
call fcn.0040163f
push dword [ebp - 0x210]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
lea ecx, [ebp - 0x208]
mov esi, eax
call fcn.0040163f
mov eax, esi
jmp 0x402128
Function at 0x403e71
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x424
mov eax, 0x4191ac
call fcn.0040d142
mov edi, ecx
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x41c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x420], eax
call dword [0x420134]
xor esi, esi
mov dword [ebp - 0x424], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x42c], edi
mov dword [ebp - 0x430], esi
mov dword [ebp - 0x418], esi
push 2
push esi
push ebx
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov ebx, eax
cmp ebx, esi
mov dword [ebp - 0x428], ebx
jne 0x403ee0
call fcn.00401458
mov esi, eax
jmp 0x403fe9
push dword [ebp - 0x420]
push dword [ebp - 0x41c]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
cmp edi, esi
jne 0x403f03
call fcn.00401458
jmp 0x403fdb
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, esi
mov dword [ebp - 0x420], eax
je 0x403ef9
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
lea eax, [edi + 1]
cmp eax, edi
mov dword [ebp - 0x41c], edi
jae 0x403f5f
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x403f45
lea ecx, [ebp - 0x418]
call fcn.00401d4c
mov esi, 0x8007000e
lea ecx, [ebp - 0x424]
call fcn.00401c7d
mov eax, esi
call fcn.0040d19e
ret 0x10
push eax
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 2
call fcn.00402869
mov dword [ebp - 4], 1
jmp 0x403f8d
mov ebx, dword [ebp - 0x418]
cmp ebx, esi
jne 0x403f9e
mov esi, 0x8007000e
jmp 0x403fdd
call dword [0x420134]
push edi
push ebx
push edi
push dword [ebp - 0x420]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, esi
je 0x403ef9
mov ecx, dword [ebp - 0x418]
push dword [ebp + 0x14]
mov word [ecx + eax*2], si
push dword [ebp - 0x418]
lea ecx, [ebp - 0x430]
call fcn.00403955
mov esi, eax
push dword [ebp - 0x428]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x403f4a
lea ecx, [ebp - 0x418]
call fcn.00401d4c
jmp 0x403f4a
Function at 0x404856
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x424
mov eax, dword [0x420180]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push edi
push dword [ebp + 0xc]
mov dword [ebp - 0x41c], eax
push str.SOFTWARETENCENTPLATFORM_TYPE_LIST_lu
lea eax, [ebp - 0x414]
push 0x104
xor edi, edi
push eax
mov dword [ebp - 0x420], edi
call fcn.0040d52c
add esp, 0x10
lea eax, [ebp - 0x424]
push eax
push 0x20019
push edi
lea eax, [ebp - 0x414]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40494e
push ebx
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x420]
push eax
push edi
push str.TypePath
push dword [ebp - 0x424]
mov dword [ebp - 0x420], 1
mov dword [ebp - 0x418], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x424]
mov ebx, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp ebx, edi
pop ebx
jne 0x40494e
cmp dword [ebp - 0x420], 1
jne 0x40494e
shr dword [ebp - 0x418], 1
je 0x404934
mov eax, dword [ebp - 0x418]
cmp word [ebp + eax*2 - 0x20e], di
jne 0x404934
dec dword [ebp - 0x418]
push dword [ebp - 0x418]
mov ecx, dword [ebp - 0x41c]
lea eax, [ebp - 0x20c]
push eax
call fcn.0040247f
jmp 0x40495a
mov ecx, dword [ebp - 0x41c]
push edi
call fcn.00404789
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x41c]
xor ecx, ebp
pop edi
call fcn.0040c9c6
leave
ret
Function at 0x4061d9
Capabilities:
Create process on windows

Disassembly:
push 0x6c
mov eax, 0x419497
call fcn.0040d10c
mov eax, dword [ebp + 8]
mov esi, ecx
push eax
lea ecx, [esi + 0x20]
call fcn.0040729e
mov ecx, esi
call fcn.00404da7
movzx eax, word [ebp + 0xc]
movzx ecx, word [ebp + 0x10]
shl eax, 0x10
or eax, ecx
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00404856
pop ecx
pop ecx
mov eax, dword [ebp - 0x14]
xor ebx, ebx
cmp dword [eax - 0xc], 3
mov dword [ebp - 4], ebx
jge 0x40623b
mov ebx, 0x80004005
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.00401bb2
mov eax, ebx
call fcn.0040d18f
ret 0xc
xor eax, eax
mov dword [ebp - 0x24], ebx
lea edi, [ebp - 0x20]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0x40
stosd dword es:[edi], eax
lea eax, [ebp - 0x74]
push ebx
push eax
mov dword [ebp - 0x78], 0x44
call fcn.0040c750
xor eax, eax
add esp, 0xc
inc eax
push ebx
lea ecx, [ebp - 0x14]
mov word [ebp - 0x48], ax
mov dword [ebp - 0x4c], eax
call fcn.00403850
lea ecx, [ebp - 0x24]
push ecx
lea ecx, [ebp - 0x78]
push ecx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x14]
mov edi, eax
call fcn.00402315
cmp edi, ebx
je 0x406221
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x28], eax
mov ax, word [ebp + 0xc]
mov word [ebp - 0x2c], ax
mov ax, word [ebp + 0x10]
mov word [ebp - 0x2a], ax
lea eax, [ebp - 0x34]
push eax
lea ecx, [esi + 0x10]
call fcn.00404fa3
jmp 0x406226

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x420180]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x214]
push eax
xor esi, esi
push edi
mov dword [ebp - 0x214], esi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp dword [ebp - 0x214], esi
je 0x406e57
cmp edi, esi
je 0x406e57
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [ebp - 0x214], eax
je 0x406e57
push dword [ebp - 0x214]
push esi
push 0x100410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
cmp edi, esi
je 0x406e57
push 0x208
lea eax, [ebp - 0x20e]
push esi
push eax
mov word [ebp - 0x210], si
call fcn.0040c750
add esp, 0xc
push 0x104
lea eax, [ebp - 0x210]
push eax
push esi
push edi
call sub.PSAPI.DLL_GetModuleFileNameExW
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp word [ebp - 0x210], si
je 0x406e57
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x406e57
lea eax, [ebp - 0x210]
push eax
call fcn.00406d25
pop ecx
jmp 0x406e59
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0040c9c6
leave
ret 4
Function at 0x407f35
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
xor esi, esi
push esi
push esi
push esi
push esi
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
cmp eax, esi
mov dword [edi + 0x30], eax
jne 0x407f54
xor eax, eax
jmp 0x407f7a
push ebx
lea eax, [ebp - 4]
push eax
push esi
push edi
push 0x407c9b
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ebx, eax
cmp ebx, esi
jne 0x407f77
push dword [edi + 0x30]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
pop ebx
pop edi
pop esi
leave
ret
Function at 0x4087d2
Capabilities:
Check mutex on windows
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x420180]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
call dword [sym.imp.KERNEL32.dll_GetVersion]
and eax, 0xff
cmp eax, 6
jae 0x408852
push esi
push edi
push 0x12
pop ecx
mov esi, str.6EEF1031_4E80_409D_8718_8C079ABA8ACF
lea edi, [ebp - 0x50]
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x50]
push eax
push 1
push 0
movsw word es:[edi], word [esi]
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
test eax, eax
pop edi
mov dword [ebx + 0x40], eax
pop esi
jne 0x408824
mov eax, 0x80004005
jmp 0x40885c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x408852
push 0x3e8
push dword [ebx + 0x40]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x408852
push dword [ebx + 0x40]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [ebx + 0x40], 0
jmp 0x40881d
push dword [ebp + 8]
mov ecx, ebx
call fcn.00408526
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040c9c6
leave
ret 4