joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41130b
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
cmp dword [ebp + 0x10], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edx, ebx
je 0x4114df
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x44ee00]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x4114df
test cl, 0x48
je 0x411376
cmp byte [eax + 5], 0xa
je 0x411376
mov eax, dword [edi]
mov al, byte [eax + esi + 5]
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea edx, [ebx + 1]
mov dword [ebp - 8], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push edx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4113c8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x4113b0
call fcn.004080f5
mov dword [eax], 9
call fcn.004080fe
mov dword [eax], esi
jmp 0x4113c0
cmp eax, 0x6d
je 0x4114df
push eax
call fcn.00408107
pop ecx
or eax, 0xffffffff
jmp 0x4114e1
mov eax, dword [ebp - 0xc]
mov ecx, dword [edi]
add dword [ebp - 8], eax
test byte [ecx + esi + 4], 0x80
je 0x4114da
test eax, eax
je 0x4113ef
cmp byte [ebx], 0xa
jne 0x4113ef
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x4113f8
mov eax, dword [edi]
lea eax, [eax + esi + 4]
and byte [eax], 0xfb
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
add ecx, eax
cmp eax, ecx
mov dword [ebp + 0x10], eax
mov dword [ebp - 8], ecx
jae 0x4114d4
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x4114c4
cmp al, 0xd
je 0x41142a
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x4114b6
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x411444
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x41143f
add dword [ebp + 0x10], 2
jmp 0x411498
mov dword [ebp + 0x10], eax
jmp 0x4114b2
inc dword [ebp + 0x10]
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [edi]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x41146c
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4114b2
cmp dword [ebp - 0xc], 0
je 0x4114b2
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x41148d
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x411498
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x4114b5
cmp ebx, dword [ebp + 0xc]
jne 0x41149d
cmp byte [ebp - 1], 0xa
jne 0x41149d
mov byte [ebx], 0xa
jmp 0x4114b5
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0040f495
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x4114b6
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x41140e
jmp 0x4114d4
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x4114d4
lea esi, [eax + esi + 4]
or byte [esi], 2
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jmp 0x4114e1
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x411e0b
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x437ca0
call fcn.00407e24
xor edi, edi
xor ebx, ebx
inc ebx
cmp dword [0x44cbd4], edi
jne 0x411e4f
push edi
push edi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x411e3a
mov dword [0x44cbd4], ebx
jmp 0x411e4f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x411e4f
mov dword [0x44cbd4], 2
mov eax, dword [0x44cbd4]
cmp eax, ebx
jne 0x411e6f
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
jmp 0x411f32
cmp eax, 2
je 0x411e78
cmp eax, edi
jne 0x411ea0
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x24], edi
cmp dword [ebp + 0x18], edi
jne 0x411e8b
mov eax, dword [0x44ca5c]
mov dword [ebp + 0x18], eax
push edi
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov dword [ebp - 0x20], eax
cmp eax, edi
jne 0x411ea7
xor eax, eax
jmp 0x411f32
mov dword [ebp - 4], edi
add eax, 3
and eax, 0xfffffffc
call fcn.00406c80
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [ebp - 0x28], esi
or dword [ebp - 4], 0xffffffff
jmp 0x411eda
cmp esi, edi
jne 0x411ef0
push dword [ebp - 0x20]
call fcn.004065c8
pop ecx
mov esi, eax
cmp esi, edi
je 0x411ea0
mov dword [ebp - 0x24], ebx
push dword [ebp - 0x20]
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x411f23
cmp dword [ebp + 0x14], edi
jne 0x411f0d
push edi
push edi
jmp 0x411f13
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0xffffffffffffffff
push esi
push ebx
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x24], edi
je 0x411f2f
push esi
call fcn.004064b0
pop ecx
mov eax, dword [ebp - 0x1c]
lea esp, [ebp - 0x34]
call fcn.00407e5f
ret
Function at 0x411f3b
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x437cb0
call fcn.00407e24
xor esi, esi
cmp dword [0x44cbd8], esi
jne 0x411f7f
push esi
push esi
xor edi, edi
inc edi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x411f6a
mov dword [0x44cbd8], edi
jmp 0x411f7f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x411f7f
mov dword [0x44cbd8], 2
mov eax, dword [0x44cbd8]
cmp eax, 2
je 0x412060
cmp eax, esi
je 0x412060
cmp eax, 1
jne 0x411fc4
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], esi
cmp dword [ebp + 0x18], esi
jne 0x411fad
mov eax, dword [0x44ca5c]
mov dword [ebp + 0x18], eax
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov ebx, eax
mov dword [ebp - 0x24], ebx
cmp ebx, esi
jne 0x411fcb
xor eax, eax
jmp 0x412072
mov dword [ebp - 4], esi
lea eax, [ebx + ebx]
add eax, 3
and eax, 0xfffffffc
call fcn.00406c80
mov dword [ebp - 0x18], esp
mov edi, esp
mov dword [ebp - 0x28], edi
or dword [ebp - 4], 0xffffffff
jmp 0x412001
cmp edi, esi
jne 0x41201c
lea eax, [ebx + ebx]
push eax
call fcn.004065c8
pop ecx
mov edi, eax
cmp edi, esi
je 0x411fc4
mov dword [ebp - 0x20], 1
push ebx
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x41204f
push esi
push esi
cmp dword [ebp + 0x14], esi
jne 0x412039
push esi
push esi
jmp 0x41203f
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0xffffffffffffffff
push edi
push esi
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x20], esi
je 0x41205b
push edi
call fcn.004064b0
pop ecx
mov eax, dword [ebp - 0x1c]
jmp 0x412072
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
lea esp, [ebp - 0x34]
call fcn.00407e5f
ret
Function at 0x4128e0
Capabilities:
Encrypt data using des

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
mov esi, dword [esp + 0x1c]
push edi
xor eax, eax
lea ecx, [ecx]
mov edx, eax
sar edx, 3
mov dl, byte [edx + esi]
mov cl, al
and cl, 7
sar dl, cl
and dl, 1
mov byte [eax + 0x44d728], dl
inc eax
cmp eax, 0x40
jl 0x4128f0
xor eax, eax
movsx ecx, byte [eax + str.91__]
mov dl, byte [ecx + 0x44d727]
movsx ecx, byte [eax + 0x437e19]
mov byte [eax + 0x44cbe0], dl
mov dl, byte [ecx + 0x44d727]
movsx ecx, byte [eax + 0x437e1a]
mov byte [eax + 0x44cbe1], dl
mov dl, byte [ecx + 0x44d727]
movsx ecx, byte [eax + 0x437e1b]
mov byte [eax + 0x44cbe2], dl
mov dl, byte [ecx + 0x44d727]
mov byte [eax + 0x44cbe3], dl
add eax, 4
cmp eax, 0x38
jl 0x412910
mov edx, dword [0x449cac]
mov ebp, dword [0x449ca8]
mov ecx, 0xe
mov esi, 0x44cbe0
mov edi, 0x44d728
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x1c]
xor eax, eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ecx
nop
movsx eax, byte [eax + 0x437e80]
mov ecx, eax
mov ebx, ecx
shr ecx, 2
mov esi, edx
mov edi, 0x44cbe0
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x1c
sub ecx, eax
mov ebx, ecx
shr ecx, 2
lea esi, [edx + eax]
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, eax
shr ecx, 2
mov edi, edx
sub edi, eax
add edi, 0x1c
mov esi, 0x44cbe0
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x10]
movsx eax, byte [ecx + 0x437e80]
mov ecx, eax
mov ebx, ecx
shr ecx, 2
mov esi, ebp
mov edi, 0x44cbe0
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x1c
sub ecx, eax
mov ebx, ecx
shr ecx, 2
lea esi, [eax + ebp]
mov edi, ebp
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, ebp
sub edi, eax
mov ecx, eax
shr ecx, 2
add edi, 0x1c
mov esi, 0x44cbe0
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
xor eax, eax
lea ebx, [ebx]
movsx ecx, byte [eax + 0x437e50]
mov cl, byte [ecx + 0x44d727]
mov byte [eax + 0x44cbe0], cl
movsx ecx, byte [eax + 0x437e51]
mov cl, byte [ecx + 0x44d727]
mov byte [eax + 0x44cbe1], cl
movsx ecx, byte [eax + 0x437e52]
mov cl, byte [ecx + 0x44d727]
mov byte [eax + 0x44cbe2], cl
movsx ecx, byte [eax + 0x437e53]
mov cl, byte [ecx + 0x44d727]
mov byte [eax + 0x44cbe3], cl
movsx ecx, byte [eax + 0x437e54]
mov cl, byte [ecx + 0x44d727]
mov byte [eax + 0x44cbe4], cl
movsx ecx, byte [eax + 0x437e55]
mov cl, byte [ecx + 0x44d727]
mov byte [eax + 0x44cbe5], cl
add eax, 6
cmp eax, 0x30
jl 0x412a40
mov ebx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
mov edi, ebx
inc eax
add ebx, 0x30
cmp eax, 0x10
mov ecx, 0xc
mov esi, 0x44cbe0
rep movsd dword es:[edi], dword [esi]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ebx
jl 0x412990
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
Function at 0x412bf0
Capabilities:
Encode data using xor
Encrypt data using des

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
push edi
xor eax, eax
lea esp, [esp]
movsx ecx, byte [eax + 0x437dc8]
mov dl, byte [ecx + ebx - 1]
movsx ecx, byte [eax + 0x437dc9]
mov byte [eax + 0x44cbe0], dl
mov dl, byte [ecx + ebx - 1]
movsx ecx, byte [eax + 0x437dca]
mov byte [eax + 0x44cbe1], dl
mov dl, byte [ecx + ebx - 1]
movsx ecx, byte [eax + 0x437dcb]
mov byte [eax + 0x44cbe2], dl
mov dl, byte [ecx + ebx - 1]
movsx ecx, byte [eax + 0x437dcc]
mov byte [eax + 0x44cbe3], dl
mov dl, byte [ecx + ebx - 1]
movsx ecx, byte [eax + 0x437dcd]
mov byte [eax + 0x44cbe4], dl
mov dl, byte [ecx + ebx - 1]
mov byte [eax + 0x44cbe5], dl
add eax, 6
cmp eax, 0x30
jl 0x412c00
mov ecx, 0xc
mov esi, 0x44cbe0
mov edi, 0x44d768
rep movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x14]
mov edi, esi
xor eax, eax
sub edi, 0x44d768
lea ecx, [ecx]
mov cl, byte [edi + eax + 0x44d768]
mov dl, byte [eax + 0x44d768]
xor dl, cl
mov cl, byte [eax + 0x44d769]
mov byte [eax + 0x44d768], dl
mov dl, byte [esi + eax + 1]
xor cl, dl
mov dl, byte [eax + 0x44d76a]
mov byte [eax + 0x44d769], cl
mov cl, byte [esi + eax + 2]
xor dl, cl
mov cl, byte [eax + 0x44d76b]
mov byte [eax + 0x44d76a], dl
mov dl, byte [esi + eax + 3]
xor cl, dl
mov dl, byte [eax + 0x44d76c]
mov byte [eax + 0x44d76b], cl
mov cl, byte [esi + eax + 4]
xor dl, cl
mov cl, byte [eax + 0x44d76d]
mov byte [eax + 0x44d76c], dl
mov dl, byte [esi + eax + 5]
xor cl, dl
mov byte [eax + 0x44d76d], cl
add eax, 6
cmp eax, 0x30
jl 0x412c90
push 0x44d768
push ebx
call fcn.00412b70
add esp, 8
xor eax, eax
jmp 0x412d20
movsx ecx, byte [eax + 0x437df8]
mov dl, byte [ecx + ebx - 1]
movsx ecx, byte [eax + 0x437df9]
mov byte [eax + 0x44cbe0], dl
mov dl, byte [ecx + ebx - 1]
movsx ecx, byte [eax + 0x437dfa]
mov byte [eax + 0x44cbe1], dl
mov dl, byte [ecx + ebx - 1]
movsx ecx, byte [eax + 0x437dfb]
mov byte [eax + 0x44cbe2], dl
mov dl, byte [ecx + ebx - 1]
mov byte [eax + 0x44cbe3], dl
add eax, 4
cmp eax, 0x20
jl 0x412d20
mov edi, ebx
mov ecx, 8
mov esi, 0x44cbe0
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
pop ebx
ret
Function at 0x418e70
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x432a6e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xfc
push esi
mov esi, dword [esp + 0x110]
push edi
push 1
push 0x1b6
push 0x20
mov edi, ecx
push esi
lea ecx, [esp + 0x38]
call fcn.00417fd0
mov eax, dword [esp + 0x28]
mov eax, dword [eax + 4]
test byte [esp + eax + 0x30], 6
mov dword [esp + 0x10c], 0
je 0x418f2c
push 0x11
push str.cannot_open_file
lea ecx, [esp + 0x14]
mov dword [esp + 0x2c], 0xf
mov dword [esp + 0x28], 0
mov byte [esp + 0x18], 0
call fcn.004014f0
push esi
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0xf0]
push edx
mov byte [esp + 0x118], 1
call fcn.00418340
add esp, 0xc
push eax
lea ecx, [esp + 0xc4]
mov byte [esp + 0x110], 2
call fcn.00417320
push 0x445944
lea eax, [esp + 0xc4]
push eax
call fcn.00406476
mov ecx, dword [esp + eax + 0x38]
lea eax, [esp + eax + 0x28]
and ecx, 0xfffffffe
push 2
mov dword [eax + 0x10], ecx
push 0
lea ecx, [esp + 0x30]
call fcn.00415250
lea ecx, [esp + 0xc]
push ecx
lea ecx, [esp + 0x2c]
call fcn.004152c0
mov ecx, dword [eax]
mov esi, dword [eax + 8]
sub esp, 0x18
mov eax, esp
mov dword [eax], 0
mov edx, dword [0x44dd30]
add esi, ecx
mov dword [eax + 8], edx
mov ecx, dword [0x44dd34]
mov dword [eax + 0xc], ecx
mov edx, dword [0x44d7f8]
lea ecx, [esp + 0x40]
mov dword [esp + 0x20], esp
mov dword [eax + 0x10], edx
call fcn.004151c0
push 0
lea eax, [esi + 1]
push eax
mov ecx, edi
call fcn.00418500
mov eax, dword [edi + 4]
push esi
push eax
lea ecx, [esp + 0x30]
call fcn.00415c70
mov edi, dword [edi + 4]
lea ecx, [esp + 0x8c]
mov byte [edi + esi], 0
mov dword [esp + 0x10c], 0xffffffff
call fcn.00418110
lea ecx, [esp + 0x8c]
mov dword [esp + 0x8c], 0x438320
call fcn.00429a70
mov ecx, dword [esp + 0x104]
pop edi
mov eax, esi
mov dword fs:[0], ecx
pop esi
add esp, 0x108
ret 4

Function at 0x41c080
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x432ca8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
xor eax, eax
push esi
mov esi, ecx
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov dword [esp + 0x1c], 0xf
mov dword [esp + 0x18], eax
mov byte [esp + 8], al
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x28], eax
lea eax, [esp + 4]
push eax
push ecx
mov ecx, esi
call fcn.0041c010
cmp dword [esp + 0x1c], 0x10
jb 0x41c0e2
mov edx, dword [esp + 8]
push edx
call fcn.0042a4eb
add esp, 4
mov ecx, dword [esp + 0x20]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x28
ret 4
Function at 0x41c810
Capabilities:
Terminate process

Disassembly:
push ecx
push esi
mov esi, ecx
mov eax, dword [esi + 0x2c]
lea ecx, [eax + 1]
mov dword [esi + 0x2c], ecx
cmp eax, dword [esi + 0x30]
push edi
jl 0x41c831
mov ecx, esi
call fcn.0041c520
mov dword [esi + 0x2c], 0
mov eax, dword [esi + 0x20025c]
mov edx, dword [esi + 0x200260]
mov edi, dword [esi + 0x200264]
mov dword [esi + 0x200260], eax
mov dword [esi + 0x200264], eax
mov eax, dword [esi + 0x20]
sub edi, edx
test eax, eax
mov dword [esi + 0x20025c], edx
je 0x41c876
push eax
push edi
mov eax, edx
push 1
push eax
call fcn.00424d6f
mov ecx, dword [esi + 0x20]
push ecx
call fcn.004112b2
add esp, 0x14
mov eax, dword [esi + 0x20026c]
test eax, eax
je 0x41c8c0
mov eax, dword [esi + 0x20025c]
mov ecx, dword [esi + 0x18]
push 0
lea edx, [esp + 0xc]
push edx
push edi
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteConsoleA]
test eax, eax
jne 0x41c8c0
mov edx, dword [esi + 0x1c]
push 0x14
push 0x4391f8
push 0x43925c
push edx
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 6
jne 0x41c8c0
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop edi
pop esi
pop ecx
ret
Function at 0x428c31
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.00406c80
mov eax, dword [0x448924]
push ebx
push esi
push 1
xor esi, esi
push esi
push dword [ebp + 8]
mov dword [ebp - 4], eax
call fcn.0040f495
or ebx, 0xffffffff
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 0x1008], eax
je 0x428d64
push 2
push esi
push dword [ebp + 8]
call fcn.0040f495
add esp, 0xc
cmp eax, ebx
je 0x428d64
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x428d04
mov ebx, 0x1000
push ebx
lea eax, [ebp - 0x1004]
push esi
push eax
call fcn.00407500
push 0x8000
push dword [ebp + 8]
call fcn.004292f7
add esp, 0x14
mov dword [ebp - 0x100c], eax
cmp edi, ebx
mov eax, ebx
jge 0x428cba
mov eax, edi
push eax
lea eax, [ebp - 0x1004]
push eax
push dword [ebp + 8]
call fcn.0040f5b4
add esp, 0xc
cmp eax, 0xffffffff
je 0x428cda
sub edi, eax
test edi, edi
jg 0x428cb2
jmp 0x428cf2
call fcn.004080fe
cmp dword [eax], 5
jne 0x428cef
call fcn.004080f5
mov dword [eax], 0xd
or esi, 0xffffffff
push dword [ebp - 0x100c]
push dword [ebp + 8]
call fcn.004292f7
pop ecx
pop ecx
jmp 0x428d4c
jge 0x428d4c
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040f495
push dword [ebp + 8]
call fcn.00410cf7
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov esi, eax
neg esi
sbb esi, esi
neg esi
dec esi
cmp esi, ebx
jne 0x428d4c
call fcn.004080f5
mov dword [eax], 0xd
call fcn.004080fe
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
push 0
push dword [ebp - 0x1008]
push dword [ebp + 8]
call fcn.0040f495
add esp, 0xc
mov eax, esi
pop edi
jmp 0x428d66
mov eax, ebx
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.0040660b
leave
ret

Function at 0x42e89a
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov eax, dword [0x448924]
push esi
push dword [ebp + 0xc]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
mov eax, 0x100
cmp esi, eax
ja 0x42e8e9
push eax
lea eax, [ebp - 0x104]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextA]
cmp eax, esi
jne 0x42e8e9
push dword [ebp + 0xc]
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x42e8f5
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov ecx, dword [ebp - 4]
pop esi
call fcn.0040660b
leave
ret 8
Function at 0x42f99f
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x448924]
push esi
mov esi, ecx
cmp dword [esi + 0x50], 0
mov dword [ebp - 4], eax
je 0x42f9ec
push dword [ebp + 8]
call fcn.00430924
mov esi, eax
test esi, esi
je 0x42fa14
push edi
push 4
lea eax, [ebp + 0x10]
push eax
push 4
push 0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push esi
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test edi, edi
sete al
pop edi
jmp 0x42fa14
push dword [ebp + 0x10]
lea eax, [ebp - 0x14]
push 0x434e94
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push dword [esi + 0x64]
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov ecx, dword [ebp - 4]
pop esi
call fcn.0040660b
leave
ret 0xc

Function at 0x42fcb3
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
cmp dword [ebp + 0xc], 0x800
mov eax, dword [0x448924]
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
jne 0x42fd11
push 0x4348ec
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push esi
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
mov esi, 0x112
lea eax, [ebp - 0x118]
push esi
push eax
call fcn.004066cd
add esp, 0x10
cmp eax, 0xffffffff
je 0x42fd25
cmp eax, esi
jae 0x42fd25
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
jmp 0x42fd27
push 4
push eax
push 3
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x42fcdc
jmp 0x42fd28
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
call fcn.0040660b
leave
ret
Function at 0x42fd48
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x448924]
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
xor ebx, ebx
push str.kernel32.dll
mov dword [ebp - 4], eax
mov dword [ebp - 0x18], ebx
xor esi, esi
call edi
push str.GetUserDefaultUILanguage
push eax
mov dword [ebp - 0x20], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x42fdea
call eax
mov esi, dword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
mov ebx, 0x3ff
mov edi, 0xfc00
mov dword [ebp - 0x18], eax
movzx eax, ax
mov ecx, eax
and ecx, ebx
movzx ecx, cx
and eax, edi
or eax, ecx
push eax
mov dword [ebp - 0x1c], ecx
call esi
push dword [ebp - 0x1c]
mov dword [ebp - 0x3c], eax
call esi
push str.GetSystemDefaultUILanguage
push dword [ebp - 0x20]
mov dword [ebp - 0x38], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
call eax
mov dword [ebp - 0x18], eax
movzx eax, ax
mov ecx, eax
and ecx, ebx
movzx ebx, cx
and eax, edi
or eax, ebx
push eax
call esi
push ebx
mov dword [ebp - 0x34], eax
call esi
mov dword [ebp - 0x30], eax
push 4
xor ebx, ebx
jmp 0x42feec
call dword [sym.imp.KERNEL32.dll_GetVersion]
test eax, eax
jns 0x42fe9a
lea eax, [ebp - 0x1c]
push eax
push 0x20019
push ebx
push str.Control_PanelDesktopResourceLocale
push 0x80000001
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x42feed
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x24]
push eax
push ebx
push ebx
push dword [ebp - 0x1c]
mov dword [ebp - 0x20], 0x10
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x42fe8f
cmp dword [ebp - 0x24], 1
jne 0x42fe8f
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x14]
push 0x4348fc
push eax
call fcn.00406edb
add esp, 0xc
cmp eax, 1
jne 0x42fe8f
mov eax, dword [ebp - 0x28]
mov esi, dword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
mov dword [ebp - 0x18], eax
movzx eax, ax
mov ecx, eax
and ecx, 0x3ff
movzx edi, cx
and eax, 0xfc00
or eax, edi
push eax
call esi
push edi
mov dword [ebp - 0x3c], eax
call esi
push 2
mov dword [ebp - 0x38], eax
pop esi
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x42feed
push str.ntdll.dll
call edi
cmp eax, ebx
je 0x42feed
lea ecx, [ebp - 0x18]
push ecx
push 0x42fd32
push 1
push 0x10
push eax
mov dword [ebp - 0x18], ebx
call dword [sym.imp.KERNEL32.dll_EnumResourceLanguagesA]
cmp word [ebp - 0x18], bx
je 0x42feed
movzx eax, word [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
mov ecx, eax
and ecx, 0x3ff
movzx edi, cx
and eax, 0xfc00
or eax, edi
push eax
call esi
push edi
mov dword [ebp - 0x3c], eax
call esi
mov dword [ebp - 0x38], eax
push 2
pop esi
mov dword [ebp + esi*4 - 0x3c], 0x800
inc esi
xor edi, edi
cmp esi, ebx
jle 0x42ff13
push dword [ebp + edi*4 - 0x3c]
push dword [ebp + 8]
call fcn.0042fcb3
cmp eax, ebx
pop ecx
pop ecx
jne 0x42ff15
inc edi
cmp edi, esi
jl 0x42fefc
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0040660b
leave
ret 4