joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48fe10
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a42bb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
xor edx, edx
mov ecx, dword [ebp + 8]
push edi
cmp ecx, edx
mov dword [ebp - 0x10], esp
mov dword [ebp - 4], edx
jl 0x48ff48
cmp ecx, dword [esi + 0xb0]
jge 0x48ff48
xor ebx, ebx
cmp edx, dword [esi + 0x528]
jge 0x48fec5
mov eax, dword [esi + 0x524]
lea edi, [edx*8]
add eax, edi
cmp ecx, dword [eax]
jne 0x48ff26
mov ecx, dword [eax + 4]
mov eax, dword [esi + 0x528]
mov dword [ebp + 8], ecx
mov ecx, dword [esi + 0x524]
sub eax, edx
mov ebx, 1
dec eax
add ecx, edi
mov edi, ebx
dec ebx
test edi, edi
je 0x48fe96
add ecx, 8
jmp 0x48fe8a
test eax, eax
je 0x48feb5
mov ecx, dword [esi + 0x524]
shl eax, 3
push eax
lea eax, [ecx + edx*8 + 8]
lea ecx, [ecx + edx*8]
push eax
push ecx
call fcn.0056d4c0
add esp, 0xc
mov eax, dword [esi + 0x528]
mov ebx, dword [ebp + 8]
dec eax
mov dword [esi + 0x528], eax
test ebx, ebx
je 0x48ff48
mov edx, dword [ebx]
push 0
push 0x1442
push 0x111
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
mov dword [ebp + 8], ebx
mov al, byte [ebx + 0x1e]
mov byte [ebp - 4], 1
test al, al
je 0x48fef6
mov eax, dword [ebx + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebx + 0x10]
call fcn.005886c0
lea ecx, [ebx + 0xc]
mov byte [ebp - 4], 0
call fcn.005886c0
push ebx
call fcn.00584a85
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
inc edx
jmp 0x48fe4f
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x48ff60
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a42e6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
mov ebx, ecx
xor edi, edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x18], ebx
mov dword [ebp - 4], edi
mov eax, dword [ebx + 0x528]
mov dword [ebp - 0x14], edi
cmp edi, eax
jge 0x490021
mov eax, dword [ebx + 0x524]
push 0
push 0x1442
push 0x111
mov ecx, dword [eax + edi*8 + 4]
mov edx, dword [ecx]
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [ebx + 0x524]
mov esi, dword [eax + edi*8 + 4]
test esi, esi
mov dword [ebp - 0x1c], esi
je 0x490014
mov al, byte [esi + 0x1e]
mov byte [ebp - 4], 2
test al, al
je 0x48ffe1
mov eax, dword [esi + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esi + 0x10]
call fcn.005886c0
lea ecx, [esi + 0xc]
mov byte [ebp - 4], 1
call fcn.005886c0
push esi
call fcn.00584a85
add esp, 4
mov dword [ebp - 4], 0
inc edi
jmp 0x48ff8b
mov dword [ebp - 4], 0
inc edi
jmp 0x48ff8b
push 0xffffffffffffffff
push 0
lea ecx, [ebx + 0x520]
call fcn.004971d0
mov ecx, ebx
call fcn.00494820
mov esi, dword [ebx + 0x534]
test esi, esi
je 0x490080
mov dword [ebp - 0x1c], esi
mov al, byte [esi + 0x1e]
mov byte [ebp - 4], 4
test al, al
je 0x490059
mov eax, dword [esi + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esi + 0x10]
call fcn.005886c0
lea ecx, [esi + 0xc]
mov byte [ebp - 4], 0
call fcn.005886c0
push esi
call fcn.00584a85
add esp, 4
mov dword [ebx + 0x534], 0
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x491db0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a437b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xbc
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], esp
mov edi, ecx
mov dword [ebp - 4], ebx
xor esi, esi
cmp esi, dword [edi + 0xb0]
jge 0x491e99
mov eax, dword [0x65ec1c]
mov dword [ebp - 0x6c], ebx
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x64], ebx
mov word [ebp - 0x68], bx
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x58], ebx
mov word [ebp - 0x5c], bx
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0xc8], 0x5bd0e4
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
lea eax, [ebp - 0xc8]
push ebx
push eax
push esi
lea ecx, [edi + 8]
mov byte [ebp - 4], 1
call fcn.0055dfa0
cmp al, bl
je 0x491e69
cmp byte [ebp - 0x80], bl
je 0x491e69
mov eax, dword [ebp - 0x38]
cmp dword [eax - 8], ebx
jle 0x491e69
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebp - 0xc8]
mov byte [ebp - 4], bl
call fcn.00451870
inc esi
jmp 0x491ddd
mov edx, dword [edi + 0x424]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x491eb6
push edx
call fcn.0056ec2b
add esp, 4
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x492580
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a4410
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
mov eax, dword [0x65ec1c]
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], edi
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], eax
mov ecx, dword [0x663660]
lea edx, [ebp - 0x14]
push ecx
push str._sGrabberProjects_
push edx
mov byte [ebp - 4], 1
call fcn.0058148b
mov eax, dword [ebp - 0x14]
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
add esp, 0xc
push eax
call ebx
cmp eax, 0xffffffff
jne 0x4926eb
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov esi, 2
inc esi
lea ecx, [ebp - 0x14]
push esi
push 0x5c
call fcn.00588b2f
mov esi, eax
cmp esi, 0xffffffff
je 0x4926e2
lea ecx, [ebp - 0x18]
push esi
push ecx
lea ecx, [ebp - 0x14]
call fcn.0058108d
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
lea ecx, [ebp - 0x18]
sete bl
call fcn.005886c0
test bl, bl
je 0x4925f1
lea edx, [ebp - 0x20]
push esi
push edx
lea ecx, [ebp - 0x14]
call fcn.0058108d
mov eax, dword [eax]
push 0
push eax
call edi
test eax, eax
lea ecx, [ebp - 0x20]
sete bl
call fcn.005886c0
test bl, bl
je 0x4925f1
mov eax, dword [0x65ec1c]
mov dword [ebp - 0x18], eax
push 0
lea ecx, [ebp - 0x1c]
push 0
push ecx
push 0x400
mov byte [ebp - 4], 2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0
push 0x1100
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, dword [ebp - 0x1c]
mov eax, dword [0x6643bc]
push edx
lea ecx, [ebp - 0x18]
push eax
push ecx
call fcn.0058148b
mov edx, dword [ebp - 0x1c]
add esp, 0xc
push edx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
push 0x30
push eax
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.005886c0
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call fcn.005886c0
mov eax, 0x7546
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov edi, dword [ebp - 0x1c]
mov edx, dword [edi + 0x4b0]
mov eax, dword [ebp - 0x14]
push edx
lea esi, [edi + 0x4c0]
push eax
push str._sproject_ld.igp
push esi
call fcn.0058148b
add esp, 0x10
mov edi, 1
mov eax, dword [esi]
push eax
call ebx
cmp eax, 0xffffffff
je 0x492739
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x14]
inc edi
mov edx, dword [ecx + 0x4b0]
push edi
push edx
push eax
push str._sproject_ld__d.igp
push esi
call fcn.0058148b
add esp, 0x14
jmp 0x49270f
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call fcn.005886c0
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4946b0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a45d3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], esp
mov edi, ecx
mov dword [ebp - 4], ebx
xor esi, esi
cmp esi, dword [edi + 0xb0]
jge 0x49480f
mov eax, dword [0x65ec1c]
lea ecx, [ebp - 0x64]
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x70], ebx
mov dword [ebp - 0x68], ebx
mov word [ebp - 0x6c], bx
call fcn.00440200
mov eax, dword [0x65ec1c]
mov dword [ebp - 0xcc], 0x5bd0e4
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
lea eax, [ebp - 0xcc]
push ebx
push eax
push esi
lea ecx, [edi + 8]
mov byte [ebp - 4], 1
call fcn.0055dfa0
cmp al, bl
je 0x4947df
mov eax, dword [ebp - 0x3c]
cmp dword [eax - 8], ebx
jle 0x49476b
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [ebp - 0x58]
cmp dword [eax - 8], ebx
jle 0x4947d0
cmp dword [ebp - 0xb4], ebx
jne 0x4947d0
mov ecx, dword [0x65ec1c]
mov dword [ebp - 0x14], ecx
push eax
lea edx, [ebp - 0x14]
push 0x638fa8
push edx
mov byte [ebp - 4], 2
call fcn.0058148b
mov eax, dword [ebp - 0x14]
add esp, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [ebp - 0x14]
push 0x5c
push ecx
call fcn.0056c5b0
add esp, 8
cmp eax, ebx
je 0x4947c4
mov byte [eax], bl
mov edx, dword [ebp - 0x14]
push edx
call fcn.0056ec2b
add esp, 4
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.005886c0
lea eax, [ebp - 0xcc]
mov ecx, edi
push eax
push esi
call fcn.00494070
lea ecx, [ebp - 0xcc]
mov byte [ebp - 4], bl
call fcn.00451870
inc esi
jmp 0x4946dd
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x494820
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a45eb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
mov dword [ebp - 0x10], esp
mov eax, dword [edi + 0x534]
mov dword [ebp - 4], ebx
cmp eax, ebx
je 0x4948c4
mov eax, dword [eax]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x494879
mov ecx, dword [edi + 0x534]
push ebx
push 0x1442
push 0x111
mov edx, dword [ecx]
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, edi
call fcn.0048ee70
mov esi, dword [edi + 0x534]
cmp esi, ebx
mov dword [ebp - 0x14], esi
je 0x4948be
mov al, byte [esi + 0x1e]
mov byte [ebp - 4], 1
cmp al, bl
je 0x4948a2
mov eax, dword [esi + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esi + 0x10]
call fcn.005886c0
lea ecx, [esi + 0xc]
mov byte [ebp - 4], bl
call fcn.005886c0
push esi
call fcn.00584a85
add esp, 4
mov dword [edi + 0x534], ebx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x495000
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5a4666
push eax
mov dword fs:[0], esp
sub esp, 0x148
or ecx, 0xffffffff
xor eax, eax
push ebp
mov ebp, dword [esp + 0x15c]
push edi
mov edi, ebp
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp byte [ecx + ebp - 1], 0x5c
jne 0x49513c
mov eax, dword [0x65ec1c]
push ebx
push esi
mov esi, 1
mov dword [esp + 0x10], eax
push ebp
lea ecx, [esp + 0x14]
push str._sf
push ecx
mov dword [esp + 0x16c], 0
call fcn.0058148b
mov eax, dword [esp + 0x1c]
add esp, 0xc
lea edx, [esp + 0x18]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x495126
test esi, esi
je 0x49511f
lea edi, [esp + 0x44]
or ecx, 0xffffffff
xor eax, eax
xor esi, esi
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, ecx
test edi, edi
jle 0x4950c6
mov al, byte [esp + esi + 0x44]
cmp al, 0x2e
je 0x4950c6
movsx ecx, al
push ecx
call fcn.0056ccfc
add esp, 4
test eax, eax
jne 0x4950c1
cmp byte [esp + esi + 0x44], 0x66
jne 0x49510c
inc esi
cmp esi, edi
jl 0x4950a2
mov edx, dword [0x65ec1c]
mov dword [esp + 0x14], edx
lea eax, [esp + 0x44]
lea ecx, [esp + 0x14]
push eax
push ebp
push 0x639028
push ecx
mov byte [esp + 0x170], 1
call fcn.0058148b
mov edx, dword [esp + 0x24]
add esp, 0x10
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0x14]
mov byte [esp + 0x160], 0
call fcn.005886c0
lea eax, [esp + 0x18]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
mov esi, eax
jmp 0x495084
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [esp + 0x10]
mov dword [esp + 0x160], 0xffffffff
call fcn.005886c0
pop esi
pop ebx
mov ecx, dword [esp + 0x150]
pop edi
pop ebp
mov dword fs:[0], ecx
add esp, 0x154
ret
Function at 0x49a620
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a5318
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov eax, dword [0x65ec1c]
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], eax
lea ecx, [esi + 0x8a8]
mov byte [ebp - 4], 1
call fcn.004c92e0
mov ebx, dword [ebp + 8]
cmp ebx, eax
jge 0x49a6b4
mov edx, dword [esi + ebx*4 + 0x8ac]
mov edi, dword [0x663640]
xor eax, eax
cmp eax, dword [0x663644]
jge 0x49a6ae
lea ecx, [eax + eax*2]
cmp edx, dword [edi + ecx*4]
lea ecx, [edi + ecx*4]
jne 0x49a6df
mov edx, dword [ecx + 8]
lea eax, [ebp - 0x14]
push edx
push 0x638fa8
push eax
call fcn.0058148b
mov ecx, dword [ebp - 0x14]
add esp, 0xc
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x49a6e2
mov al, 1
test al, al
je 0x49a6e2
push ebx
lea ecx, [esi + 0x8a8]
call fcn.004c94f0
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call fcn.005886c0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
inc eax
jmp 0x49a677
lea ecx, [esi + 0x738]
call fcn.00483d80
mov edx, dword [ebp - 0x14]
mov ecx, esi
push edx
call fcn.0049c210
jmp 0x49a6c0
Function at 0x49d7c0
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x5a589b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov edi, dword [esi + 0x38]
mov eax, dword [esi + 0x34]
cmp eax, edi
jne 0x49d8a8
add edi, 0x64
mov dword [esi + 0x38], edi
lea eax, [edi*8 + 4]
push eax
call fcn.00584a5c
add esp, 4
mov dword [esp + 0x10], eax
xor ebp, ebp
cmp eax, ebp
mov dword [esp + 0x1c], ebp
je 0x49d82c
push fcn.0049d110
push fcn.00409380
lea ebx, [eax + 4]
push edi
push 8
push ebx
mov dword [eax], edi
call fcn.0056d1f3
mov dword [esp + 0x10], ebx
jmp 0x49d832
mov dword [esp + 0x10], ebp
mov ebx, ebp
cmp ebx, ebp
mov dword [esp + 0x1c], 0xffffffff
jne 0x49d855
lea ecx, [esp + 0x24]
push 0x60ea58
push ecx
mov dword [esp + 0x2c], 0xc0000017
call fcn.0056de79
mov eax, dword [esi + 0x34]
xor edi, edi
cmp eax, ebp
jle 0x49d881
mov edx, dword [esi + 0x30]
mov ecx, ebx
lea ebp, [edx + edi*8]
push ebp
call fcn.005887f9
mov eax, dword [ebp + 4]
inc edi
mov dword [ebx + 4], eax
mov eax, dword [esi + 0x34]
add ebx, 8
cmp edi, eax
jl 0x49d85e
mov ebx, dword [esp + 0x10]
mov eax, dword [esi + 0x30]
test eax, eax
je 0x49d8a5
mov ecx, dword [eax - 4]
lea edi, [eax - 4]
push fcn.0049d110
push ecx
push 8
push eax
call fcn.0056c0d8
push edi
call fcn.00584a85
add esp, 4
mov dword [esi + 0x30], ebx
mov edx, dword [esi + 0x34]
mov eax, dword [esi + 0x30]
mov ebx, dword [esp + 0x24]
lea edi, [eax + edx*8]
push ebx
mov ecx, edi
call fcn.005887f9
mov ecx, dword [ebx + 4]
mov dword [edi + 4], ecx
mov eax, dword [esi + 0x34]
mov ecx, dword [esp + 0x14]
inc eax
mov dword [esi + 0x34], eax
mov esi, eax
pop edi
mov dword fs:[0], ecx
lea eax, [esi - 1]
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 4
Function at 0x49d8f0
Capabilities:
Set registry value

Disassembly:
mov ax, word [esp + 4]
push ebx
push ebp
push esi
mov esi, ecx
push edi
xor edi, edi
lea ebp, [esi + 0x24]
mov dword [esi + 0x28], edi
mov word [ebp], ax
call fcn.0049db30
mov ax, word [ebp]
cmp ax, 9
je 0x49d9a6
mov ecx, dword [esi + 0x58]
cmp ecx, edi
jle 0x49d9a6
mov ebx, dword [esi + 0x54]
mov edx, eax
and edx, 0xffff
lea eax, [ebx + 8]
cmp dword [eax], edx
je 0x49d941
inc edi
add eax, 0x20
cmp edi, ecx
jl 0x49d933
jmp 0x49d9a6
shl edi, 5
add ebx, edi
lea ecx, [esi + 0x18]
push ebx
mov dword [esi + 0x28], 1
call fcn.005887f9
mov ecx, dword [esi + 0x54]
lea edx, [ecx + edi + 0xc]
lea ecx, [esi + 4]
push edx
call fcn.005887f9
mov eax, dword [esi + 0x54]
lea ecx, [eax + edi + 0x10]
push ecx
lea ecx, [esi + 8]
call fcn.005887f9
mov edx, dword [esi + 0x54]
lea ecx, [esi + 0xc]
lea eax, [edx + edi + 0x14]
push eax
call fcn.005887f9
mov ecx, dword [esi + 0x54]
lea edx, [ecx + edi + 0x18]
lea ecx, [esi + 0x10]
push edx
call fcn.005887f9
mov eax, dword [esi + 0x54]
lea ecx, [eax + edi + 0x1c]
push ecx
lea ecx, [esi + 0x14]
call fcn.005887f9
mov eax, dword [esp + 0x18]
test eax, eax
je 0x49d9d5
mov edx, dword [0x663680]
push 4
push ebp
push 4
push 0
push str.LanguageID
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, esi
call fcn.004a15c0
pop edi
pop esi
pop ebp
pop ebx
ret 8
mov eax, dword [esi + 0x28]
test eax, eax
jne 0x49d9e2
mov word [ebp], 9
mov ecx, esi
call fcn.004a15c0
pop edi
pop esi
pop ebp
pop ebx
ret 8
Function at 0x49d9f0
Capabilities:
Set registry value

Disassembly:
sub esp, 8
lea eax, [esp + 4]
lea ecx, [esp]
push eax
push ecx
push 0
push 0xf003f
push 0
push 0x663188
push 0
push str.SoftwareDownloadManagermenuExt
push reloc.WSOCK32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x49db26
mov edx, dword [0x663ca8]
push esi
push edi
mov edi, edx
or ecx, 0xffffffff
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
repne scasb al, byte es:[edi]
not ecx
push ecx
push edx
mov edx, dword [esp + 0x10]
push 1
push eax
push str.ffdownl1_str
push edx
call esi
mov edx, dword [0x663c90]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
push edx
push 1
push eax
mov eax, dword [esp + 0x18]
push str.ffdownlAll_str
push eax
call esi
mov edx, dword [0x663ca0]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
mov ecx, dword [esp + 0xc]
push edx
push 1
push eax
push str.ffdownlFLV_str
push ecx
call esi
mov edx, dword [0x663c9c]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
push edx
mov edx, dword [esp + 0x10]
push 1
push eax
push str.ffdownl10FLV_str
push edx
call esi
mov edx, dword [0x663ca4]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
push edx
push 1
push eax
mov eax, dword [esp + 0x18]
push str.ffdownlppFLV_str
push eax
call esi
mov edx, dword [0x663c98]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
push edx
push 1
mov ecx, dword [esp + 0x14]
push eax
push str.ffdownlFLVa_str
push ecx
call esi
mov edx, dword [0x663c94]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
push edx
mov edx, dword [esp + 0x10]
push 1
push eax
push str.ffdownl10FLVa_str
push edx
call esi
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
add esp, 8
ret
Function at 0x4a1410
Capabilities:
Identify system language via api
Query or enumerate registry value
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x5a5906
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xa0
push esi
push edi
mov esi, ecx
call fcn.0042eb00
mov ecx, esi
call fcn.0049cbe0
mov edx, dword [0x663680]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [esp + 0xc]
lea ecx, [esp + 8]
push eax
push ecx
push 0
push 0
push str.LanguageID
push edx
mov dword [esp + 0x24], 4
call edi
test eax, eax
jne 0x4a148d
push eax
mov eax, dword [esp + 0xc]
push eax
mov ecx, esi
call fcn.0049d8f0
pop edi
pop esi
mov ecx, dword [esp + 0xa0]
mov dword fs:[0], ecx
add esp, 0xac
ret
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
and eax, 0xffff
push 0
push eax
mov ecx, esi
call fcn.004a13d0
push eax
mov ecx, esi
call fcn.0049d8f0
cmp word [esi + 0x24], 9
je 0x4a1550
mov eax, dword [esi + 0x28]
test eax, eax
je 0x4a1550
mov eax, dword [0x663680]
lea ecx, [esp + 0xc]
lea edx, [esp + 8]
push ecx
push edx
push 0
push 0
push str.LIDwa
push eax
mov dword [esp + 0x24], 4
call edi
test eax, eax
je 0x4a1550
push 0
lea ecx, [esp + 0x14]
call fcn.004d3450
lea ecx, [esp + 0x10]
mov dword [esp + 0xb0], 0
call fcn.00584656
mov edx, dword [0x663680]
lea ecx, [esp + 8]
push 4
push ecx
push 4
push 0
mov esi, 1
push str.LIDwa
push edx
mov dword [esp + 0x20], esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea ecx, [esp + 0x6c]
mov dword [esp + 0xb0], esi
call fcn.005903f9
lea ecx, [esp + 0x10]
mov dword [esp + 0xb0], 0xffffffff
call fcn.00584297
mov ecx, dword [esp + 0xa8]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0xac
ret
Function at 0x4a6b50
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x5a59b6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x550
push esi
push edi
lea eax, [esp + 0x254]
mov edi, ecx
xor esi, esi
push 0x104
push eax
push esi
mov dword [edi + 0x58], esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 0x458]
lea edx, [esp + 0x358]
push ecx
lea eax, [esp + 0x18]
push edx
lea ecx, [esp + 0x10]
push eax
lea edx, [esp + 0x260]
push ecx
push edx
call fcn.0056d0ac
mov eax, dword [0x65ec1c]
add esp, 0x14
mov dword [esp + 0x10], eax
lea ecx, [esp + 0x14]
lea edx, [esp + 8]
push ecx
push edx
lea eax, [esp + 0x18]
push str._s_sLanguagesidm_.lng
push eax
mov dword [esp + 0x570], esi
call fcn.0058148b
mov edx, dword [esp + 0x20]
add esp, 0x10
lea ecx, [esp + 0x114]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4a6c26
lea ecx, [esp + 0x10]
mov dword [esp + 0x560], eax
call fcn.005886c0
pop edi
pop esi
mov ecx, dword [esp + 0x550]
mov dword fs:[0], ecx
add esp, 0x55c
ret
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_FindNextFileA]
mov eax, dword [0x65ec1c]
mov dword [esp + 0x10], eax
lea ecx, [esp + 0x144]
lea edx, [esp + 0x18]
push ecx
lea eax, [esp + 0x10]
push edx
push eax
lea ecx, [esp + 0x1c]
push str._s_sLanguages_s
push ecx
mov byte [esp + 0x578], 1
call fcn.0058148b
mov ecx, dword [esp + 0x24]
add esp, 0x14
lea edx, [esp + 0x18]
lea eax, [esp + 0xc]
push edx
push eax
push ecx
mov ecx, edi
call fcn.004a67d0
lea edx, [esp + 0x118]
push edx
push esi
call ebp
test eax, eax
mov byte [esp + 0x564], 0
lea ecx, [esp + 0x10]
je 0x4a6c9a
call fcn.005886c0
jmp 0x4a6c2d
call fcn.005886c0
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [esp + 0x14]
mov dword [esp + 0x564], 0xffffffff
call fcn.005886c0
mov ecx, dword [esp + 0x55c]
pop ebp
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x55c
ret

Function at 0x4a6e80
Capabilities:
Identify system language via api

Disassembly:
push esi
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
and eax, 0xffff
mov ecx, esi
push eax
call fcn.004a13d0
cmp ax, 9
jne 0x4a6ea1
xor ax, ax
pop esi
ret
push ebx
push edi
mov edi, dword [esi + 0x58]
xor edx, edx
test edi, edi
jle 0x4a6ec6
mov ecx, dword [esi + 0x54]
mov ebx, eax
and ebx, 0xffff
add ecx, 8
cmp dword [ecx], ebx
je 0x4a6ecf
inc edx
add ecx, 0x20
cmp edx, edi
jl 0x4a6eba
pop edi
pop ebx
and eax, 0xffff
pop esi
ret
pop edi
pop ebx
xor eax, eax
pop esi
ret