joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4143bf
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov eax, dword [esi]
call dword [eax + 4]
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x41443b
cmp dword [ebp + 0x10], ebx
je 0x41443b
mov eax, ecx
shr eax, 0x10
test ax, ax
jne 0x4143e6
movzx ecx, cx
push edi
push dword [ebp + 0x10]
push ecx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x41443a
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
push dword [ebp + 8]
mov dword [ebp + 0x10], eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x41443a
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x41443a
mov dword [esi + 8], eax
mov eax, dword [ebp + 0x10]
mov dword [esi + 0xc], eax
xor eax, eax
inc eax
mov byte [esi + 4], bl
mov dword [esi + 0x10], ebx
mov dword [esi + 0x1c], ebx
mov ebx, eax
mov dword [esi + 0x18], eax
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret 0xc

Function at 0x414443
Capabilities:
Check if file exists
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 0x18], ebx
je 0x414466
cmp dword [edi + 8], ebx
je 0x414466
push dword [edi + 8]
call fcn.0041f658
pop ecx
mov dword [edi + 8], ebx
mov dword [edi + 0x18], ebx
cmp dword [ebp + 8], ebx
je 0x414536
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x414536
push 0x207
push dword [ebp + 8]
lea esi, [edi + 0x20]
push esi
call fcn.0041ff67
add esp, 0xc
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x414536
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [edi + 0xc], eax
mov dword [ebp + 8], ebx
test eax, eax
jle 0x41453f
cmp eax, 0x6400000
jg 0x41453f
inc eax
push eax
call fcn.0041daa8
pop ecx
mov ecx, eax
mov dword [edi + 8], ecx
test ecx, ecx
je 0x41453f
mov eax, dword [edi + 0xc]
inc eax
push eax
push ebx
push ecx
call fcn.00422860
add esp, 0xc
lea eax, [ebp + 8]
push ebx
push eax
push dword [edi + 0xc]
push dword [edi + 8]
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41451e
mov eax, dword [edi + 0xc]
cmp eax, dword [ebp + 8]
jne 0x41451e
xor eax, eax
mov ecx, edi
inc eax
mov ebx, eax
mov dword [edi + 0x18], eax
mov eax, dword [edi]
call dword [eax + 0x1c]
jmp 0x41452f
cmp dword [edi + 8], ebx
je 0x41452f
push dword [edi + 8]
call fcn.0041f658
pop ecx
mov dword [edi + 8], ebx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
pop edi
pop esi
pop ebx
pop ebp
ret 4
xor eax, eax
jmp 0x414538
Function at 0x414d30
Capabilities:
Check for time delay via gettickcount
Download url
Get common file path
Receive data

Disassembly:
push 0x424
mov eax, 0x43c8d4
call fcn.00423093
mov ebx, edx
mov dword [ebp - 0x430], ecx
xor eax, eax
mov dword [ebp - 4], eax
call fcn.004083ea
push eax
lea ecx, [ebp - 0x424]
call fcn.00407e3b
mov byte [ebp - 4], 1
call fcn.0040e04a
mov ecx, dword [eax + 0x44]
sub ecx, 0x10
call fcn.004080e8
add eax, 0x10
mov dword [ebp - 0x42c], eax
mov esi, str.360360base.dll
mov byte [ebp - 4], 2
mov ecx, esi
call fcn.004080cc
push eax
push esi
lea ecx, [ebp - 0x42c]
call fcn.00407faf
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x428]
mov edi, dword [ebp - 0x42c]
mov edx, edi
cmp dword [eax - 0xc], 0
jne 0x414ded
call fcn.0041ce30
mov esi, eax
mov byte [ebp - 4], 3
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push 0x45e850
push dword [esi]
lea eax, [ebp - 0x424]
push 0x45ec70
push 0x448fc0
push dword [ebp - 0x430]
push 0x44a848
push eax
call fcn.0040a280
add esp, 0x20
jmp 0x414e2d
call fcn.0041ce30
mov esi, eax
mov byte [ebp - 4], 4
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x424]
push 0x45e850
push dword [esi]
push 0x45ec70
push 0x448fc0
push dword [ebp - 0x430]
push str.http:__res.qhsetup.com_360game_stat.html_state_dver_spid_sm_syid_sfile__s_t_d
push eax
call fcn.0040a280
add esp, 0x24
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x428]
lea ecx, [ecx - 0x10]
call fcn.0040233b
test ebx, ebx
je 0x414e5f
xor eax, eax
cmp word [ebx], ax
je 0x414e5f
push ebx
lea eax, [ebp - 0x424]
push 0x44a9a8
push eax
call fcn.0040a2d8
add esp, 0xc
xor eax, eax
mov esi, 0x206
push esi
mov word [ebp - 0x218], ax
xor ebx, ebx
lea eax, [ebp - 0x216]
push ebx
push eax
call fcn.00422860
xor eax, eax
push esi
mov word [ebp - 0x420], ax
lea eax, [ebp - 0x41e]
push ebx
push eax
call fcn.00422860
add esp, 0x18
lea eax, [ebp - 0x218]
push eax
push 0x103
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x420]
push eax
push ebx
push str.sta_
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
mov esi, dword [ebp - 0x424]
lea eax, [ebp - 0x420]
push ebx
push ebx
push eax
push esi
push ebx
call dword [sym.imp.urlmon.dll_URLDownloadToFileW]
lea ecx, [edi - 0x10]
call fcn.0040233b
lea ecx, [esi - 0x10]
call fcn.0040233b
mov ecx, dword [ebp + 8]
lea ecx, [ecx - 0x10]
call fcn.0040233b
call fcn.00423042
ret
Function at 0x4151bc
Capabilities:
Download url
Get common file path
Receive data

Disassembly:
push 0x420
mov eax, 0x43c971
call fcn.00423093
mov esi, ecx
call fcn.0040e04a
mov ecx, dword [eax + 0x44]
sub ecx, 0x10
call fcn.004080e8
add eax, 0x10
mov dword [ebp - 0x428], eax
and dword [ebp - 4], 0
mov edi, str.360360base.dll
mov ecx, edi
call fcn.004080cc
push eax
push edi
lea ecx, [ebp - 0x428]
call fcn.00407faf
call fcn.004083ea
push eax
lea ecx, [ebp - 0x424]
call fcn.00407e3b
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x42c]
mov edi, dword [ebp - 0x428]
mov edx, edi
call fcn.0041cfe0
mov ebx, eax
mov byte [ebp - 4], 2
cmp word [0x4603a8], 0
jne 0x415240
call fcn.0041cdb0
cmp word [0x4605b8], 0
jne 0x41524f
call fcn.0041cd30
push 0x4603a8
push 0x4605b8
push 0x448fc0
push dword [ebx]
lea eax, [ebp - 0x424]
push str.http:__dtdd.mgame.360.cn_t_game_hall_case_keygamehallmid_slog_srcclientversion_spid_scpid_siptime_str
push eax
call fcn.0040a280
mov byte [ebp - 4], 1
add esp, 0x18
mov ecx, dword [ebp - 0x42c]
lea ecx, [ecx - 0x10]
call fcn.0040233b
test esi, esi
je 0x41529f
push esi
lea eax, [ebp - 0x424]
push 0x44a9a8
push eax
call fcn.0040a2d8
add esp, 0xc
xor eax, eax
mov esi, 0x206
push esi
mov word [ebp - 0x420], ax
xor ebx, ebx
lea eax, [ebp - 0x41e]
push ebx
push eax
call fcn.00422860
xor eax, eax
push esi
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push ebx
push eax
call fcn.00422860
add esp, 0x18
lea eax, [ebp - 0x420]
push eax
push 0x103
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x218]
push eax
push ebx
push str.sta_
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
mov esi, dword [ebp - 0x424]
lea eax, [ebp - 0x218]
push ebx
push ebx
push eax
push esi
push ebx
call dword [sym.imp.urlmon.dll_URLDownloadToFileW]
lea ecx, [esi - 0x10]
call fcn.0040233b
lea ecx, [edi - 0x10]
call fcn.0040233b
call fcn.00423042
ret
Function at 0x418bcf
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0x1c], 0
push ebx
push esi
push edi
mov esi, ecx
jne 0x418d08
mov eax, dword [ebp + 0xc]
xor ebx, ebx
inc ebx
cmp eax, ebx
jne 0x418c2c
xor edi, edi
lea eax, [ebp + 0x1c]
push eax
push edi
push esi
push 0x419b5b
push edi
push edi
mov dword [ebp + 0x1c], edi
call fcn.004224a3
add esp, 0x18
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x2c], edi
call fcn.0040e04a
mov ecx, dword [eax + 0x14ac]
mov dword [esi + 0x30], ecx
mov dword [esi + 0x34], ecx
mov ecx, dword [ebp + 0x18]
mov dword [ecx], edi
mov eax, ebx
jmp 0x418d0a
cmp eax, 0x113
jne 0x418c45
push ecx
push ecx
push dword [ebp + 0x10]
push ecx
call fcn.00418e4c
mov ecx, dword [ebp + 0x18]
mov dword [ecx], eax
jmp 0x418c25
cmp eax, 0x401
jne 0x418c5f
push 5
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [ebp + 0x18]
and dword [eax], 0
jmp 0x418c25
cmp eax, 0x402
jne 0x418c70
sub esp, 0x10
call fcn.00418fe4
jmp 0x418c3e
cmp eax, 0x403
jne 0x418ca2
xor edi, edi
mov dword [esi + 0x2c], 5
push edi
push dword [esi + 4]
mov dword [esi + 0x264], edi
push 0x1402
call fcn.00419c3a
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
mov eax, dword [ebp + 0x18]
mov dword [eax], edi
jmp 0x418c25
cmp eax, 0x404
jne 0x418cb2
mov dword [esi + 0x2c], 3
jmp 0x418c57
cmp eax, 0x405
jne 0x418cdb
call fcn.0041951b
xor edi, edi
mov ecx, esi
cmp dword [esi + 0x38], edi
je 0x418cce
mov eax, dword [esi]
call dword [eax + 0x10]
jmp 0x418c9b
mov dword [esi + 0x260], ebx
call fcn.0041903e
jmp 0x418c9b
cmp eax, 0x406
jne 0x418cff
mov dword [esi + 0x25c], ebx
call fcn.0040e04a
mov ecx, esi
mov dword [eax + 0x14a8], ebx
call fcn.0041903e
jmp 0x418c57
cmp eax, 0x10
je 0x418c57
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 0x18
Function at 0x418e4c
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0xc]
push esi
mov esi, ecx
push edi
dec eax
je 0x418f5e
dec eax
je 0x418f2c
dec eax
dec eax
je 0x418ef9
dec eax
je 0x418ec2
dec eax
je 0x418e97
dec eax
jne 0x418fda
mov eax, dword [esi + 0x254]
cmp eax, 0x50
jae 0x418e93
add eax, 2
mov dword [esi + 0x254], eax
jmp 0x418fda
push 7
jmp 0x418eeb
call fcn.00419c3a
mov edi, eax
push edi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x418fda
push 0
push dword [esi + 4]
push 0x1403
push edi
call dword [sym.imp.USER32.dll_PostMessageW]
push 6
jmp 0x418eeb
call fcn.00419c3a
mov edi, eax
push edi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x418fda
push 0
push dword [esi + 4]
push 0x1401
push edi
call dword [sym.imp.USER32.dll_PostMessageW]
push 5
push dword [esi + 4]
call dword [sym.imp.USER32.dll_KillTimer]
jmp 0x418fda
push 4
push dword [esi + 4]
call dword [sym.imp.USER32.dll_KillTimer]
xor edi, edi
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp + 0xc]
mov dword [esi + 0x264], edi
push eax
push 0x419423
push edi
push edi
mov dword [ebp + 0xc], edi
call fcn.004224a3
add esp, 0x18
jmp 0x418fda
cmp dword [esi + 0x2c], 3
jl 0x418fda
push 2
push dword [esi + 4]
call dword [sym.imp.USER32.dll_KillTimer]
mov ecx, esi
call fcn.0041951b
cmp dword [0x4525f8], 0
je 0x418fda
mov ecx, esi
call fcn.0041903e
jmp 0x418fda
mov eax, dword [esi + 0x254]
cmp eax, 0x64
jae 0x418f72
add eax, 2
mov dword [esi + 0x254], eax
push 7
push dword [esi + 4]
call dword [sym.imp.USER32.dll_KillTimer]
xor edi, edi
cmp dword [esi + 0x254], 0x5a
jne 0x418fa4
push edi
push dword [esi + 4]
mov dword [esi + 0x2c], 6
push 0x1404
call fcn.00419c3a
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
cmp dword [esi + 0x254], 0x64
jb 0x418fda
push 1
push dword [esi + 4]
call dword [sym.imp.USER32.dll_KillTimer]
push edi
push 0x3e8
push 4
push dword [esi + 4]
mov dword [esi + 0x254], 0x64
mov dword [esi + 0x2c], 7
call dword [sym.imp.USER32.dll_SetTimer]
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4193aa
Capabilities:
Check if file exists
Copy file
Delete file
Move file

Disassembly:
push 0x10
mov eax, 0x43c256
call fcn.00423060
mov esi, ecx
push 0x448d58
lea edx, [esi + 0x44]
xor edi, edi
lea ecx, [ebp - 0x1c]
call fcn.004133f8
and dword [ebp - 4], edi
lea ecx, [ebp - 0x10]
mov edx, eax
mov dword [esp], 0x449914
call fcn.004133f8
pop ecx
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x1c]
lea ecx, [ecx - 0x10]
call fcn.0040233b
call fcn.004083ea
push eax
lea ecx, [ebp - 0x14]
call fcn.00407e3b
push str.360GameNew.exe
mov byte [ebp - 4], 3
lea eax, [ebp - 0x14]
push dword [esi + 0x40]
push 0x448dec
push eax
call fcn.0040a280
add esp, 0x10
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov esi, dword [ebp - 0x14]
test eax, eax
je 0x41027a
mov ebx, dword [sym.imp.KERNEL32.dll_MoveFileExW]
push 1
push esi
push dword [ebp - 0x10]
call ebx
mov edi, eax
test edi, edi
jne 0x41027a
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x410253
push str..tmp
lea edx, [ebp - 0x14]
lea ecx, [ebp - 0x18]
call fcn.004133f8
pop ecx
push 1
push dword [ebp - 0x18]
push esi
call ebx
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx - 0x10]
call fcn.0040233b
push 0
push esi
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov edi, eax
test edi, edi
je 0x41027a
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x41027a
push 4
push eax
push dword [ebp - 0x10]
call ebx
lea ecx, [esi - 0x10]
call fcn.0040233b
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.0040233b
mov eax, edi
call fcn.0042302e
ret
push esi
mov esi, ecx
call fcn.0040e04a
mov ecx, eax
call fcn.0040e3cd
call fcn.0040e04a
call fcn.004114f1
call fcn.0040e04a
mov ecx, eax
call fcn.00411f3a
call fcn.0040e04a
mov ecx, eax
call fcn.0040ee44
test eax, eax
je 0x4193ec
call fcn.0040e04a
mov ecx, eax
pop esi
jmp 0x410191
call fcn.0040e04a
mov ecx, eax
call fcn.00410295
cmp dword [esi + 0x25c], 0
jne 0x419413
cmp dword [0x4525f8], 0
jne 0x419413
cmp dword [0x45f494], 0
je 0x419421
push 0
call fcn.0040e04a
mov ecx, eax
call fcn.0040ff47
pop esi
ret
Function at 0x41a790
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x674
mov eax, dword [0x4516e0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
push 0x24c
mov dword [ebp - 0x66c], eax
lea eax, [ebp - 0x664]
push 0
push eax
mov dword [ebp - 0x670], edx
mov dword [ebp - 0x668], 0
call fcn.00422860
add esp, 0xc
xor eax, eax
mov word [ebp - 0x418], ax
push 0x206
push eax
lea eax, [ebp - 0x416]
push eax
call fcn.00422860
add esp, 0xc
lea eax, [ebp - 0x418]
push 0x44b0fc
push esi
push 0x448dec
push 0x103
push eax
call fcn.00420412
add esp, 0x14
lea eax, [ebp - 0x668]
push eax
lea eax, [ebp - 0x418]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
test ebx, ebx
je 0x41a9d3
cmp ebx, 0xffffffff
je 0x41a9d3
mov edi, edi
mov ecx, 0x44b104
lea eax, [ebp - 0x63c]
jmp 0x41a850
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x41a876
test dx, dx
je 0x41a872
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x41a876
add eax, 4
add ecx, 4
test dx, dx
jne 0x41a850
xor eax, eax
jmp 0x41a87b
sbb eax, eax
or eax, 1
test eax, eax
je 0x41a995
mov eax, 0x44a7b8
lea ecx, [ebp - 0x63c]
mov edi, edi
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x41a8b6
test dx, dx
je 0x41a8b2
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x41a8b6
add ecx, 4
add eax, 4
test dx, dx
jne 0x41a890
xor eax, eax
jmp 0x41a8bb
sbb eax, eax
or eax, 1
test eax, eax
je 0x41a995
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push eax
call fcn.00422860
add esp, 0xc
lea eax, [ebp - 0x63c]
test byte [ebp - 0x668], 0x10
push eax
push esi
push 0x448dec
lea eax, [ebp - 0x210]
push 0x103
push eax
je 0x41a941
call fcn.00420412
add esp, 0x14
lea eax, [ebp - 0x210]
push dword [ebp - 0x66c]
push eax
call fcn.0041e921
add esp, 8
test eax, eax
je 0x41a995
push dword [ebp - 0x66c]
mov edx, dword [ebp - 0x670]
lea ecx, [ebp - 0x210]
push edi
call fcn.0041a790
add esp, 8
jmp 0x41a995
call fcn.00420412
add esp, 0x14
lea eax, [ebp - 0x210]
push dword [ebp - 0x670]
push eax
call fcn.0041e921
add esp, 8
test eax, eax
je 0x41a995
lea eax, [ebp - 0x210]
push edi
push eax
call fcn.0041e921
add esp, 8
test eax, eax
je 0x41a995
push 0xa0
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x668]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x41a840
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0x20
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041e635
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041e635
mov esp, ebp
pop ebp
ret
Function at 0x41adb0
Capabilities:
Check if file exists
Create directory
Delete file
Set file attributes

Disassembly:
push esi
mov esi, ecx
test esi, esi
je 0x41ae10
cmp word [esi], 0
je 0x41ae10
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x41ae07
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41ade6
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov esi, eax
test esi, esi
jne 0x41ae0c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x41ae0c
lea eax, [esi + 1]
pop esi
ret
mov esi, 1
mov eax, esi
pop esi
ret
xor eax, eax
pop esi
ret
Function at 0x41b3c0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4010
call fcn.0042b9a0
mov eax, dword [0x4516e0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
mov ebx, edx
test esi, esi
je 0x41b4cf
test ebx, ebx
je 0x41b4cf
cmp dword [ebp + 8], 0
je 0x41b4cf
xor eax, eax
push 0x3ffe
push eax
mov word [ebp - 0x4004], ax
lea eax, [ebp - 0x4002]
push eax
call fcn.00422860
add esp, 0xc
mov dword [ebp - 0x4008], 0
lea eax, [ebp - 0x4008]
push eax
push esi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
test eax, eax
je 0x41b4cf
cmp eax, 0x3fff
ja 0x41b4cf
lea ecx, [ebp - 0x4004]
push ecx
push eax
push 0
push esi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x41b4cf
lea eax, [ebp - 0x400c]
mov dword [ebp - 0x4010], 0
push eax
lea eax, [ebp - 0x4010]
mov dword [ebp - 0x400c], 0
push eax
push 0x448d58
lea eax, [ebp - 0x4004]
push eax
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x41b4cf
mov ecx, dword [ebp - 0x4010]
movzx eax, word [ecx + 0xc]
push eax
movzx eax, word [ecx + 0xe]
push eax
movzx eax, word [ecx + 8]
push eax
movzx eax, word [ecx + 0xa]
push eax
push 0x44b108
push 0xffffffffffffffff
push dword [ebp + 8]
push ebx
call fcn.00420818
add esp, 0x20
mov eax, 1
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041e635
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop esi
xor ecx, ebp
pop ebx
call fcn.0041e635
mov esp, ebp
pop ebp
ret
Function at 0x41b5f0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x4516e0]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x45c780], 0
je 0x41b7a0
push 0x114
lea eax, [ebp - 0x120]
push 0
push eax
call fcn.00422860
add esp, 0xc
lea ecx, [ebp - 0x120]
call fcn.0041b7c0
test eax, eax
jne 0x41b661
push 0x114
push eax
lea eax, [ebp - 0x120]
push eax
call fcn.00422860
add esp, 0xc
mov dword [ebp - 0x120], 0x114
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [ebp - 0x11c]
cmp eax, 5
jne 0x41b6ff
mov eax, dword [ebp - 0x118]
test eax, eax
jne 0x41b689
mov eax, 1
mov dword [0x4613a4], eax
jmp 0x41b7a5
cmp eax, 1
jne 0x41b6e7
push 0x7f
lea eax, [ebp - 0x10c]
push eax
push str.Service_Pack_1
call fcn.0041e6cc
add esp, 0xc
test eax, eax
je 0x41b6d8
push 0x7f
lea eax, [ebp - 0x10c]
push eax
push str.Service_Pack_2
call fcn.0041e6cc
add esp, 0xc
test eax, eax
je 0x41b6d8
push 0x7f
lea eax, [ebp - 0x10c]
push eax
push str.Service_Pack_3
call fcn.0041e6cc
add esp, 0xc
mov eax, 2
mov dword [0x4613a4], eax
jmp 0x41b7a5
cmp eax, 2
jne 0x41b7a0
mov eax, 6
mov dword [0x4613a4], eax
jmp 0x41b7a5
cmp eax, 6
jne 0x41b744
mov eax, dword [ebp - 0x118]
test eax, eax
jne 0x41b71d
mov eax, 7
mov dword [0x4613a4], eax
jmp 0x41b7a5
cmp eax, 1
je 0x41b749
cmp eax, 2
jne 0x41b733
mov eax, 0xc
mov dword [0x4613a4], eax
jmp 0x41b7a5
cmp eax, 3
jne 0x41b7a0
mov eax, 0xd
mov dword [0x4613a4], eax
jmp 0x41b7a5
cmp eax, 7
jne 0x41b755
mov eax, 0xb
mov dword [0x4613a4], eax
jmp 0x41b7a5
cmp eax, 0xa
jne 0x41b7a0
mov eax, dword [0x4613ec]
test al, 1
jne 0x41b789
or eax, 1
mov dword [0x4613ec], eax
call fcn.0041b880
mov ecx, eax
xor eax, eax
test ecx, ecx
mov dword [0x4613f0], ecx
setne al
add eax, 0xe
mov dword [0x4613a4], eax
jmp 0x41b7a5
mov ecx, dword [0x4613f0]
xor eax, eax
test ecx, ecx
setne al
add eax, 0xe
mov dword [0x4613a4], eax
jmp 0x41b7a5
mov eax, dword [0x4613a4]
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov dword [0x45c780], 0
call fcn.0041e635
mov esp, ebp
pop ebp
ret
Function at 0x41b7c0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x4516e0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
lea eax, [ebp - 8]
xor edi, edi
push eax
push 0x20019
push edi
push str.SOFTWAREMicrosoftWindows_NTCurrentVersion
mov ebx, ecx
mov dword [ebp - 8], edi
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x10], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41b84c
mov edi, dword [ebp - 8]
lea eax, [ebp - 8]
push eax
lea eax, [ebx + 4]
mov dword [ebp - 8], 4
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push str.CurrentMajorVersionNumber
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 8]
mov dword [ebp - 8], 4
push eax
lea eax, [ebx + 8]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push str.CurrentMinorVersionNumber
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test edi, edi
je 0x41b84c
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor edi, edi
mov eax, dword [ebp - 0x10]
xor ebx, ebx
cmp dword [eax + 4], ebx
setne bl
test edi, edi
je 0x41b862
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
xor ecx, ebp
pop ebx
call fcn.0041e635
mov esp, ebp
pop ebp
ret
Function at 0x41b920
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x142c
call fcn.0042b9a0
mov eax, dword [0x4516e0]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x142c], edx
mov eax, ecx
mov dword [ebp - 0x1428], eax
test edx, edx
je 0x41bad2
test eax, eax
je 0x41bad2
lea eax, [ebp - 0x1418]
push eax
push 0x1000
lea eax, [ebp - 0x1414]
push eax
call dword [sym.imp.PSAPI.DLL_EnumProcesses]
test eax, eax
je 0x41bad2
push ebx
mov ebx, dword [ebp - 0x1418]
xor eax, eax
push edi
push 0x206
push eax
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
shr ebx, 2
push eax
mov dword [ebp - 0x1424], ebx
call fcn.00422860
add esp, 0xc
mov dword [ebp - 0x1420], 0
xor edi, edi
test ebx, ebx
je 0x41bac0
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
push dword [ebp + edi*4 - 0x1414]
push 0
push 0x411
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x41ba8a
lea eax, [ebp - 0x141c]
push eax
push 4
lea eax, [ebp - 0x1420]
push eax
push esi
call dword [sym.imp.PSAPI.DLL_EnumProcessModules]
test eax, eax
je 0x41ba87
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.00422860
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
push dword [ebp - 0x1420]
push esi
call dword [sym.imp.PSAPI.DLL_GetModuleBaseNameW]
test eax, eax
je 0x41ba87
push dword [ebp - 0x142c]
lea eax, [ebp - 0x20c]
push eax
call fcn.0041e921
add esp, 8
test eax, eax
jne 0x41ba87
push 0x103
lea eax, [ebp - 0x414]
push eax
push dword [ebp - 0x1420]
push esi
call dword [sym.imp.PSAPI.DLL_GetModuleFileNameExW]
test eax, eax
je 0x41ba87
push dword [ebp - 0x1428]
lea eax, [ebp - 0x414]
push eax
call fcn.0041ffa7
add esp, 8
test eax, eax
jne 0x41baaa
push esi
call ebx
inc edi
cmp edi, dword [ebp - 0x1424]
jb 0x41b9c0
pop esi
pop edi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041e635
mov esp, ebp
pop ebp
ret
pop esi
pop edi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041e635
mov esp, ebp
pop ebp
ret
pop edi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041e635
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.0041e635
mov esp, ebp
pop ebp
ret