joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4c8ee0
Capabilities:
Check if file exists
Get file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x645360
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x7496c8]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 8]
mov dword [ebp - 0x44], eax
xor esi, esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x34], esi
xor ecx, ecx
mov word [ebp - 0x38], cx
mov byte [ebp - 4], 1
mov eax, dword [0x74ea5c]
cmp eax, esi
jne 0x4c8f37
mov eax, 0x74ea60
push esi
push eax
push str._sempty.html
lea ecx, [ebp - 0x3c]
call fcn.004021b0
mov eax, dword [ebp - 0x3c]
cmp eax, esi
jne 0x4c8f50
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4c8ffc
mov eax, dword [ebp - 0x3c]
cmp eax, esi
jne 0x4c8f6a
lea eax, [ebp - 0x38]
push 0x67c6b8
push eax
call fcn.00615f0d
add esp, 8
mov ebx, eax
cmp ebx, esi
je 0x4c8fb6
mov ecx, 7
mov esi, str._HTML__BODY____BODY___HTML_
lea edi, [ebp - 0x30]
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x30]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4c8f93
sub eax, edx
push ebx
push eax
push 1
lea edx, [ebp - 0x30]
push edx
call fcn.00615dc5
push ebx
call fcn.00615be7
add esp, 0x14
xor esi, esi
jmp 0x4c8ffc
lea ecx, [ebp - 0x40]
call fcn.00402500
mov byte [ebp - 4], 2
call fcn.00618a54
mov eax, dword [eax]
push eax
push str.Gr_CreateEHTML:fopen_failed__errno_ld_n
lea ecx, [ebp - 0x40]
push ecx
call fcn.00402f80
add esp, 0xc
mov ecx, dword [0x74f038]
cmp ecx, esi
je 0x4c8ff0
push 1
mov edx, dword [ebp - 0x40]
push edx
call fcn.004b8c00
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
call fcn.00402570
mov eax, dword [ebp - 0x3c]
cmp eax, esi
jne 0x4c9006
lea eax, [ebp - 0x38]
push esi
push eax
push 0x66ae98
mov ecx, dword [ebp - 0x44]
call fcn.004021b0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x3c]
call fcn.004011f0
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00613241
mov esp, ebp
pop ebp
ret
Function at 0x4cb620
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x64e1d8
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push esi
mov eax, dword [0x7496c8]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov esi, ecx
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x14]
push ecx
push 0
push 0xf003f
push 0
push 0x66b96c
push 0
push str.SoftwareDownloadManagerGrabberSts
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x4cb6d6
lea ecx, [esp + 0xc]
call fcn.00402500
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea edx, [esp + 0x10]
push str.Gr_SetPID:RegCrKey_failed__err_ld_n
push edx
call fcn.00402f80
mov ecx, dword [0x74f038]
add esp, 0xc
test ecx, ecx
je 0x4cb6b4
mov eax, dword [esp + 0xc]
push 1
push eax
call fcn.004b8c00
mov dword [esp + 0x24], 0xffffffff
lea ecx, [esp + 0xc]
call fcn.00402570
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x20
ret
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0xc]
push edx
push 0
push 0
push str.maxProjectID
push eax
mov dword [esp + 0x2c], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4cb712
mov eax, dword [esi + 0x4b0]
cmp eax, dword [esp + 8]
jle 0x4cb71c
mov dword [esp + 8], eax
jmp 0x4cb71c
mov ecx, dword [esi + 0x4b0]
mov dword [esp + 8], ecx
mov eax, dword [esp + 0x10]
push 4
lea edx, [esp + 0xc]
push edx
push 4
push 0
push str.maxProjectID
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x20
ret
Function at 0x4cd790
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6457f3
mov eax, dword fs:[0]
push eax
sub esp, 0xe8
mov eax, dword [0x7496c8]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0xec], esi
xor ebx, ebx
mov dword [ebp - 4], ebx
xor edi, edi
mov dword [ebp - 0xf4], edi
cmp edi, dword [esi + 0xb0]
jge 0x4cd926
lea ecx, [ebp - 0xe8]
call fcn.0045d1d0
mov byte [ebp - 4], 1
push ebx
lea eax, [ebp - 0xe8]
push eax
push edi
lea ecx, [esi + 8]
call fcn.005dcd40
test al, al
jne 0x4cd817
mov byte [ebp - 4], bl
lea ecx, [ebp - 0xe8]
call fcn.0045d320
inc edi
jmp 0x4cd7d0
mov esi, dword [ebp - 0x50]
cmp esi, ebx
mov eax, esi
jne 0x4cd823
lea eax, [ebp - 0x4c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4cd826
sub eax, edx
sar eax, 1
je 0x4cd847
cmp esi, ebx
mov eax, esi
jne 0x4cd840
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp - 0x74]
cmp eax, ebx
jne 0x4cd851
lea eax, [ebp - 0x70]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4cd854
sub eax, edx
sar eax, 1
je 0x4cd8f9
cmp dword [ebp - 0xd0], ebx
jne 0x4cd8f9
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x18], ebx
xor ecx, ecx
mov word [ebp - 0x1c], cx
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x74]
cmp eax, ebx
jne 0x4cd88f
lea eax, [ebp - 0x70]
push ebx
push eax
push 0x66ae98
lea ecx, [ebp - 0x20]
call fcn.004021b0
mov eax, dword [ebp - 0x20]
cmp eax, ebx
jne 0x4cd8a8
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp - 0x20]
cmp eax, ebx
jne 0x4cd8b9
lea eax, [ebp - 0x1c]
push 0x5c
push eax
call fcn.00612d55
add esp, 8
cmp eax, ebx
je 0x4cd8ed
xor edx, edx
mov word [eax], dx
push 0x67efb0
call fcn.00615fe3
add esp, 4
mov eax, dword [ebp - 0x20]
cmp eax, ebx
jne 0x4cd8e4
lea eax, [ebp - 0x1c]
push eax
call fcn.00617f24
add esp, 4
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x20]
call fcn.004011f0
lea eax, [ebp - 0xe8]
push eax
push edi
mov ecx, dword [ebp - 0xec]
call fcn.004cd510
mov byte [ebp - 4], bl
lea ecx, [ebp - 0xe8]
call fcn.0045d320
mov esi, dword [ebp - 0xec]
inc edi
jmp 0x4cd7d0
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00613241
mov esp, ebp
pop ebp
ret
Function at 0x4cd970
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x645840
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x7496c8]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x7496c8]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov eax, dword [esp + 0x48]
mov edi, ecx
xor esi, esi
xor ecx, ecx
mov dword [esp + 0x1c], esi
mov dword [esp + 0x24], esi
mov word [esp + 0x20], cx
mov dword [esp + 0x40], esi
push esi
push eax
push str._s_fda.pdb
lea ecx, [esp + 0x28]
call fcn.004021b0
mov eax, dword [esp + 0x1c]
cmp eax, esi
jne 0x4cd9d9
lea eax, [esp + 0x20]
push 0x67714c
push eax
call fcn.00615f0d
mov ebx, eax
add esp, 8
cmp ebx, esi
jne 0x4cda8b
call fcn.00618a54
mov eax, dword [eax]
xor edx, edx
mov dword [esp + 0x28], esi
mov dword [esp + 0x30], esi
mov word [esp + 0x2c], dx
mov byte [esp + 0x40], 1
push esi
push esi
lea ecx, [esp + 0x20]
push ecx
push 0x400
push eax
push esi
push 0x1100
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
mov eax, dword [esp + 0x1c]
cmp eax, esi
jne 0x4cda31
lea eax, [esp + 0x20]
mov edx, dword [0x74eb40]
mov ecx, dword [esp + 0x18]
push edx
mov edx, dword [0x74ff78]
push ecx
push eax
push edx
lea ecx, [esp + 0x38]
call fcn.00402320
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [esp + 0x28]
cmp eax, esi
jne 0x4cda65
lea eax, [esp + 0x2c]
mov ecx, dword [0x74ff98]
push 0x30
push ecx
push eax
push esi
call fcn.0046dd00
add esp, 0x10
mov byte [esp + 0x40], 0
lea ecx, [esp + 0x28]
call fcn.004011f0
jmp 0x4cdb3d
lea ecx, [esp + 0x14]
call fcn.00402500
mov byte [esp + 0x40], 2
cmp dword [edi + 0x3e8], esi
jle 0x4cdb0f
mov edx, dword [edi + 0x3f0]
mov eax, dword [edx + esi*4]
mov ecx, dword [eax + 8]
xor edx, edx
cmp byte [eax + 0xd], dl
push ecx
setne dl
xor ecx, ecx
cmp byte [eax + 0xc], cl
setne cl
push edx
xor edx, edx
cmp byte [eax + 0x10], dl
setne dl
push ecx
mov ecx, dword [eax]
push edx
mov edx, dword [eax + 4]
push ecx
push edx
push esi
lea eax, [esp + 0x30]
push str._ld__ld__ld__d__d__d_p_s_n
push eax
call fcn.00402f80
mov ecx, dword [esp + 0x38]
mov eax, ecx
add esp, 0x24
lea ebp, [eax + 1]
lea esp, [esp]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4cdaf0
push ebx
sub eax, ebp
push eax
push 1
push ecx
call fcn.00615dc5
inc esi
add esp, 0x10
cmp esi, dword [edi + 0x3e8]
jl 0x4cdaa1
push ebx
call fcn.00615be7
add esp, 4
mov byte [esp + 0x40], 0
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4cdb3d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x40], 0xffffffff
lea ecx, [esp + 0x1c]
call fcn.004011f0
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.00613241
add esp, 0x30
ret 4
Function at 0x4cfbd0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x645c80
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push esi
push edi
mov eax, dword [0x7496c8]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov esi, ecx
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x14]
push ecx
push 0
push 0xf003f
push 0
push 0x66b96c
push 0
push str.SoftwareDownloadManagerGrabberSts
push 0x80000001
mov dword [esi + 0x4b0], 1
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x4cfc92
lea ecx, [esp + 0xc]
call fcn.00402500
mov dword [esp + 0x28], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea edx, [esp + 0x10]
push str.Gr_SetPID:RegCrKey_failed__err_ld_n
push edx
call fcn.00402f80
mov ecx, dword [0x74f038]
add esp, 0xc
test ecx, ecx
je 0x4cfc6f
mov eax, dword [esp + 0xc]
push 1
push eax
call fcn.004b8c00
mov dword [esp + 0x28], 0xffffffff
lea ecx, [esp + 0xc]
call fcn.00402570
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x20
ret
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x1c]
push edx
push 0
push 0
push str.maxProjectID
push eax
mov dword [esp + 0x2c], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edi, eax
test edi, edi
jne 0x4cfccb
mov ecx, dword [esp + 0x18]
inc ecx
mov dword [esi + 0x4b0], ecx
jmp 0x4cfd1b
cmp edi, 2
je 0x4cfd1b
lea ecx, [esp + 0xc]
call fcn.00402500
mov dword [esp + 0x28], 1
push edi
lea edx, [esp + 0x10]
push str.Gr_SetPID:RegQVE_failed__err_ld_n
push edx
call fcn.00402f80
mov ecx, dword [0x74f038]
add esp, 0xc
test ecx, ecx
je 0x4cfd0a
mov eax, dword [esp + 0xc]
push 1
push eax
call fcn.004b8c00
mov dword [esp + 0x28], 0xffffffff
lea ecx, [esp + 0xc]
call fcn.00402570
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [0x74496c]
cmp eax, dword [esi + 0x4b0]
jl 0x4cfd3a
inc eax
mov dword [esi + 0x4b0], eax
mov edx, dword [esi + 0x4b0]
mov dword [0x74496c], edx
mov eax, dword [esi + 0x4b0]
push eax
call fcn.004cc8e0
mov ecx, dword [0x74f068]
add esp, 4
test ecx, ecx
je 0x4cfd6b
mov edx, dword [esi + 0x4b0]
push edx
call fcn.004ba5e0
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x20
ret
Function at 0x4d7a30
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x6464c0
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebp
push esi
push edi
mov eax, dword [0x7496c8]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0x544], 0
mov ebp, dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, dword [sym.imp.KERNEL32.dll_SleepEx]
jne 0x4d7b03
lea eax, [esp + 0x14]
push eax
push 0
push esi
push 0x4d7560
push 0
push 0
call ebp
mov dword [esi + 0x544], eax
test eax, eax
je 0x4d7aa8
cmp dword [esi + 0x54c], 0
jne 0x4d7b03
push 1
push 0
call edi
cmp dword [esi + 0x54c], 0
je 0x4d7a97
jmp 0x4d7b03
lea ecx, [esp + 0x10]
call fcn.00402500
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [esp + 0x14]
push str.Gr_GetWW:CrTh_failed__err__ld_n
push ecx
call fcn.00402f80
mov ecx, dword [0x74f038]
add esp, 0xc
test ecx, ecx
je 0x4d7ae8
mov edx, dword [esp + 0x10]
push 1
push edx
call fcn.004b8c00
mov dword [esi + 0x54c], 0
mov dword [esp + 0x24], 0xffffffff
lea ecx, [esp + 0x10]
call fcn.00402570
cmp dword [esi + 0x548], 0
jne 0x4d7ba2
lea eax, [esp + 0x18]
push eax
push 0
push esi
push 0x4d7790
push 0
push 0
call ebp
mov dword [esi + 0x548], eax
test eax, eax
je 0x4d7b47
cmp dword [esi + 0x550], 0
jne 0x4d7ba2
push 1
push 0
call edi
cmp dword [esi + 0x550], 0
je 0x4d7b36
jmp 0x4d7ba2
lea ecx, [esp + 0x10]
call fcn.00402500
mov dword [esp + 0x24], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [esp + 0x14]
push str.Gr_GetWW:CrTh2_failed__err__ld_n
push ecx
call fcn.00402f80
mov ecx, dword [0x74f038]
add esp, 0xc
test ecx, ecx
je 0x4d7b87
mov edx, dword [esp + 0x10]
push 1
push edx
call fcn.004b8c00
mov dword [esi + 0x550], 0
mov dword [esp + 0x24], 0xffffffff
lea ecx, [esp + 0x10]
call fcn.00402570
mov eax, dword [esi + 0x54c]
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x18
ret
Function at 0x4d96e0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x646f18
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x7496c8]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, ecx
xor esi, esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x18], esi
xor eax, eax
mov word [ebp - 0x1c], ax
mov byte [ebp - 4], 1
mov byte [ebp - 0x21], al
lea ecx, [ebx + 0x768]
call fcn.00513950
mov ecx, dword [ebp + 8]
cmp ecx, eax
jl 0x4d9743
mov byte [ebp - 0x21], 1
jmp 0x4d9800
mov edi, dword [ebx + ecx*4 + 0x76c]
mov byte [ebp - 0x21], 1
mov dword [ebp - 0x28], esi
cmp esi, dword [0x74ea94]
jge 0x4d97f7
push esi
mov ecx, 0x74ea8c
call fcn.004f2480
cmp edi, dword [eax]
jne 0x4d97f1
push esi
mov ecx, 0x74ea8c
call fcn.004f2480
add eax, 8
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x20]
call fcn.004017f0
mov eax, dword [ebp - 0x20]
test eax, eax
jne 0x4d9793
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4d97f7
mov byte [ebp - 0x21], 0
lea ecx, [ebx + 0x5f0]
call fcn.004cde90
mov eax, dword [ebp - 0x20]
test eax, eax
jne 0x4d97b8
lea eax, [ebp - 0x1c]
push eax
mov ecx, ebx
call fcn.004d9300
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x20]
call fcn.004011f0
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00613241
mov esp, ebp
pop ebp
ret 4
inc esi
jmp 0x4d974e
cmp byte [ebp - 0x21], 0
je 0x4d97a3
mov ecx, dword [ebp + 8]
push ecx
lea ecx, [ebx + 0x768]
call fcn.00513960
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x20]
call fcn.004011f0
jmp 0x4d97d3
Function at 0x4dd460
Capabilities:
Get keyboard layout
Identify system language via api

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
movzx esi, ax
mov eax, esi
and eax, 0x3ff
mov ecx, 9
cmp cx, ax
jne 0x4dd524
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
movzx esi, ax
mov edx, esi
and edx, 0x3ff
mov eax, 9
cmp ax, dx
jne 0x4dd524
push str.Kernel32
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov edi, eax
test edi, edi
jne 0x4dd4d8
push str.Kernel32.dll
call fcn.00446c90
mov edi, eax
add esp, 4
mov dword [esp + 0x10], 1
test edi, edi
je 0x4dd524
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.GetSystemDefaultUILanguage
push edi
call ebp
push 0x680018
push edi
mov ebx, eax
call ebp
mov ebp, eax
test ebx, ebx
je 0x4dd4fb
call ebx
movzx esi, ax
mov ecx, esi
and ecx, 0x3ff
mov edx, 9
cmp dx, cx
jne 0x4dd516
test ebp, ebp
je 0x4dd516
call ebp
movzx esi, ax
cmp dword [esp + 0x10], 0
je 0x4dd524
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, esi
and eax, 0x3ff
mov ecx, 9
cmp cx, ax
jne 0x4dd5ce
mov ebp, dword [sym.imp.USER32.dll_GetKeyboardLayoutList]
push 0
push 0
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], 0
call ebp
mov edi, eax
test edi, edi
je 0x4dd5ce
xor ecx, ecx
lea eax, [edi*4]
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.005e76b2
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x4dd5ce
push ebx
push edi
call ebp
xor edx, edx
test eax, eax
jbe 0x4dd5b9
xor ecx, ecx
lea esp, [esp]
movzx ecx, word [ebx + ecx*4]
mov edi, ecx
and edi, 0x3ff
mov ebp, 9
cmp bp, di
je 0x4dd5b1
inc dword [esp + 0x10]
movzx ecx, cx
mov dword [esp + 0x14], ecx
inc edx
movzx ecx, dx
cmp ecx, eax
jb 0x4dd590
push ebx
call fcn.005e76a7
add esp, 4
cmp dword [esp + 0x10], 1
jne 0x4dd5ce
movzx esi, word [esp + 0x14]
mov eax, esi
and eax, 0x3ff
cmp esi, 0x416
je 0x4dd719
cmp esi, 0x403
je 0x4dd719
mov edx, 0x16
cmp dx, ax
jne 0x4dd604
pop edi
pop esi
pop ebp
mov eax, 0x816
pop ebx
add esp, 8
ret
mov ecx, 0x3e
cmp cx, ax
jne 0x4dd61b
pop edi
pop esi
pop ebp
mov eax, 0x43e
pop ebx
add esp, 8
ret
cmp esi, 0x804
je 0x4dd70c
cmp esi, 4
je 0x4dd70c
cmp esi, 0x7804
je 0x4dd70c
cmp esi, 0x1004
je 0x4dd70c
cmp esi, 0x181a
je 0x4dd6ff
cmp esi, 0x701a
je 0x4dd6ff
cmp esi, 0x7c1a
je 0x4dd6ff
cmp esi, 0x2c1a
je 0x4dd6ff
cmp esi, 0x241a
je 0x4dd6ff
cmp esi, 0x81a
je 0x4dd6ff
cmp esi, 0x1c1a
je 0x4dd6f2
cmp esi, 0x6c1a
je 0x4dd6f2
cmp esi, 0x301a
je 0x4dd6f2
cmp esi, 0x281a
je 0x4dd6f2
cmp esi, 0xc1a
je 0x4dd6f2
cmp esi, 0x141a
je 0x4dd6e5
cmp esi, 0x681a
je 0x4dd6e5
cmp esi, 0x781a
je 0x4dd6e5
cmp esi, 0x480
je 0x4dd6d8
cmp esi, 0x80
jne 0x4dd71c
pop edi
pop esi
pop ebp
mov eax, 0x480
pop ebx
add esp, 8
ret
pop edi
pop esi
pop ebp
mov eax, 0x141a
pop ebx
add esp, 8
ret
pop edi
pop esi
pop ebp
mov eax, 0xc1a
pop ebx
add esp, 8
ret
pop edi
pop esi
pop ebp
mov eax, 0x81a
pop ebx
add esp, 8
ret
pop edi
pop esi
pop ebp
mov eax, 0x804
pop ebx
add esp, 8
ret
movzx eax, si
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
Function at 0x4dd970
Capabilities:
Access peb ldr_data
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x65ad88
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x7496c8]
xor eax, esp
mov dword [esp + 0xc], eax
push ebx
push ebp
push esi
mov eax, dword [0x7496c8]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov ebx, dword [esp + 0x30]
mov ebp, dword [esp + 0x34]
mov eax, dword [esp + 0x38]
xor ecx, ecx
mov dword [esp + 0x10], 0
mov dword [esp + 0x18], 0
mov word [esp + 0x14], cx
mov dword [esp + 0x28], ecx
mov edx, dword [0x74eb40]
push edx
push eax
lea ecx, [esp + 0x18]
call fcn.00401980
mov edx, dword [esp + 0x10]
mov eax, edx
test edx, edx
jne 0x4dd9e7
lea eax, [esp + 0x14]
lea esi, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4dd9f0
sub eax, esi
sar eax, 1
mov ecx, edx
test edx, edx
jne 0x4dda09
lea ecx, [esp + 0x14]
lea eax, [eax + eax + 2]
push eax
push ecx
push 1
push 0
push ebp
push ebx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [esp + 0x28], 0xffffffff
lea ecx, [esp + 0x10]
call fcn.004011f0
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xc]
xor ecx, esp
call fcn.00613241
add esp, 0x1c
ret
Function at 0x4deef0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x6476c6
mov eax, dword fs:[0]
push eax
sub esp, 0x26c
mov eax, dword [0x7496c8]
xor eax, esp
mov dword [esp + 0x268], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x7496c8]
xor eax, esp
push eax
lea eax, [esp + 0x280]
mov dword fs:[0], eax
xor ebx, ebx
mov edi, ecx
xor eax, eax
mov dword [edi + 0x6c], ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x1c], ebx
mov word [esp + 0x18], ax
mov dword [esp + 0x288], ebx
mov eax, dword [0x74ea7c]
cmp eax, ebx
jne 0x4def56
mov eax, 0x74ea80
push ebx
push eax
push str._sLanguagesidm_.lng
lea ecx, [esp + 0x20]
call fcn.004021b0
mov eax, dword [esp + 0x14]
cmp eax, ebx
jne 0x4def72
lea eax, [esp + 0x18]
lea ecx, [esp + 0x2c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4df013
mov ebp, dword [sym.imp.KERNEL32.dll_FindNextFileW]
nop
xor edx, edx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x28], ebx
mov word [esp + 0x24], dx
mov byte [esp + 0x288], 1
mov eax, dword [0x74ea7c]
cmp eax, ebx
jne 0x4defb5
mov eax, 0x74ea80
push ebx
lea ecx, [esp + 0x5c]
push ecx
push eax
push str._sLanguages_s
lea ecx, [esp + 0x30]
call fcn.00402320
mov eax, dword [esp + 0x20]
cmp eax, ebx
jne 0x4defd6
lea eax, [esp + 0x24]
push eax
mov ecx, edi
call fcn.004de7f0
lea edx, [esp + 0x2c]
push edx
push esi
call ebp
test eax, eax
je 0x4deffc
mov byte [esp + 0x288], bl
lea ecx, [esp + 0x20]
call fcn.004011f0
jmp 0x4def90
mov byte [esp + 0x288], bl
lea ecx, [esp + 0x20]
call fcn.004011f0
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [esp + 0x288], 0xffffffff
lea ecx, [esp + 0x14]
call fcn.004011f0
mov ecx, dword [esp + 0x280]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x268]
xor ecx, esp
call fcn.00613241
add esp, 0x278
ret
Function at 0x4ea970
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x6479eb
mov eax, dword fs:[0]
push eax
sub esp, 0x90
push ebx
push ebp
push esi
push edi
mov eax, dword [0x7496c8]
xor eax, esp
push eax
lea eax, [esp + 0xa4]
mov dword fs:[0], eax
mov esi, ecx
call fcn.0044ac80
mov ecx, esi
call fcn.004deef0
mov ecx, esi
call fcn.004e3dc0
mov edi, dword [esp + 0xb4]
mov ebx, 4
mov dword [esp + 0x18], ebx
test di, di
je 0x4eaa56
mov ecx, dword [0x74ea0c]
push ebx
lea eax, [esp + 0x18]
push eax
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 0
push str.LIDwa
mov ebp, 1
push ecx
mov dword [esp + 0x2c], ebp
call ebx
push 0
push edi
mov ecx, esi
call fcn.004ea720
mov ecx, dword [0x74ea0c]
push 4
lea eax, [esp + 0x20]
push eax
push 4
push 0
movzx edx, di
push str.LanguageID
push ecx
mov dword [esp + 0x34], edx
call ebx
cmp di, word [esi + 0x3c]
je 0x4eab36
mov word [esi + 0x30], di
mov edi, dword [esp + 0xb8]
mov eax, edi
mov dword [esi + 0x2c], ebp
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4eaa38
sub eax, edx
je 0x4eaa4c
push edi
lea ecx, [esi + 0x1c]
call fcn.00545860
call fcn.004789f0
jmp 0x4eab36
mov ecx, esi
call fcn.004dd460
mov ecx, dword [0x74ea0c]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea edx, [esp + 0x18]
push edx
movzx edi, ax
lea eax, [esp + 0x18]
push eax
push 0
push 0
push str.LanguageID
push ecx
call ebp
push 0
mov ecx, esi
test eax, eax
jne 0x4eaa99
mov edx, dword [esp + 0x18]
push edx
call fcn.004ea720
jmp 0x4eab36
push edi
call fcn.004ea720
cmp dword [0x74e9f4], 0
jne 0x4eab36
mov eax, 9
cmp ax, word [esi + 0x3c]
je 0x4eab36
cmp dword [esi + 0x40], 0
je 0x4eab36
mov eax, dword [0x74ea0c]
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x18]
push edx
push 0
push 0
push str.LIDwa
push eax
mov dword [esp + 0x30], ebx
call ebp
test eax, eax
je 0x4eab36
push 0
lea ecx, [esp + 0x28]
call fcn.00523000
mov dword [esp + 0xac], 0
lea ecx, [esp + 0x24]
call fcn.005e96b1
mov edx, dword [0x74ea0c]
push ebx
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0
push str.LIDwa
push edx
mov dword [esp + 0x2c], 1
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [esp + 0xac], 0xffffffff
lea ecx, [esp + 0x24]
call fcn.004dd730
mov ecx, dword [esp + 0xa4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x9c
ret 8