joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4010f0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x4263d0]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x4269c2], 0
je 0x401113
cmp byte [ebp + 8], 0
je 0x401216
lea eax, [ebp - 0x14]
push eax
push 0x20019
push 0
push str.SOFTWAREAdobeAdobe_AcrobatDCInstaller_
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40120f
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x40120f
cmp byte [0x4269c2], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0x10], 4
jne 0x40118d
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 0xc]
push ecx
push 0
push str.bIsSingleClientApp
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40118d
cmp dword [ebp - 0xc], 4
jne 0x40118d
cmp dword [ebp - 8], eax
setne byte [0x4269c1]
cmp byte [0x4269c1], 0
je 0x401206
lea eax, [ebp - 0x10]
mov dword [ebp - 8], 0
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push str.bIsSCAcroAppInstalled
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4011cd
cmp dword [ebp - 0xc], 4
jne 0x4011cd
cmp dword [ebp - 8], eax
setne byte [0x4269c0]
lea eax, [ebp - 0x10]
mov dword [ebp - 8], 0
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push str.SCAPackageLevel
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x401206
mov eax, dword [section..data]
cmp dword [ebp - 0xc], 4
cmove eax, dword [ebp - 8]
mov dword [section..data], eax
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [0x4269c2], 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041b330
mov esp, ebp
pop ebp
ret
Function at 0x7c7364
Capabilities:
Encode data using xor

Disassembly:
jmp 0x7c736e
pushal
call 0x7c7374
pop ebp
sub ebp, 0x10
sub ebp, 0x3c7364
jmp 0x7c738a
mov eax, 0x3c7364
add eax, ebp
add eax, 0x4c
mov ecx, 0x60c
mov edx, 0xf01764d9
xor byte [eax], dl
inc eax
dec ecx
jne 0x7c73a1
jmp 0x7c73b4
push edx
adc al, 0x52
push eax
in eax, 0xd9
fstpnce st(1), st(0)
pop eax
sbb byte [ecx], ah
fstpnce st(1), st(0)
fstpnce st(2), st(0)
adc al, 0x61
fstp st(1)
fstpnce st(1), st(0)
arpl cx, si
fstpnce st(1), st(0)
fldcw word [esi]
cmp ebx, edx
adc dword [edx + 0x58], edx
aad 0xd9
fstpnce st(1), st(0)
ficomp dword [esp + edx*2]
mov ebp, 0xdd5025fd
std
mov dword [ecx - 0x26285a8b], esi
mov cl, 0x61
das
hlt
Function at 0x41570b
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
pushal
call 0x41571a
pop dword [ebp - 0x10]
mov eax, 0x41571a
sub dword [ebp - 0x10], eax
mov dword [ebp - 0x20], 0x1360391c
add dword [ebp - 0x20], 0x3af20c2f
mov dword [ebp - 0x1c], 0x63dc628
sub dword [ebp - 0x1c], 0xd40a79e3
mov dword [ebp - 0x18], 0x9aed3253
sub dword [ebp - 0x18], 0x4ea0ee25
mov dword [ebp - 0x14], 0x1eaf6341
sub dword [ebp - 0x14], 0x1eaf6341
lea eax, [ebp - 0x20]
push eax
mov eax, 0xffd74c0d
add eax, 0x6a34d7
add eax, dword [ebp - 0x10]
call dword [eax]
mov dword [ebp - 0x20], 0x9c9cac29
sub dword [ebp - 0x20], 0x282a42d3
mov dword [ebp - 0x1c], 0xa4e119e3
sub dword [ebp - 0x1c], 0x6374b86e
mov dword [ebp - 0x18], 0x400ce35c
sub dword [ebp - 0x18], 0xdc9d76f0
mov dword [ebp - 0x14], 0xb4125145
sub dword [ebp - 0x14], 0xb4125145
lea ebx, [ebp - 0x20]
push ebx
push eax
mov eax, 0xd88e8063
sub eax, 0xd84cff8b
add eax, dword [ebp - 0x10]
call dword [eax]
push 0x40
push 0x1000
push 0x3a687
push 0
call eax
mov ecx, 0x9e5042a7
sub ecx, 0x9e4ff2f4
xor edi, edi
add edi, eax
mov esi, 0x429600
add esi, dword [ebp - 0x10]
mov ebx, 0x17bb7555
add ebx, 0xac1983a4
sub dword [ebp - 0xc], 0x4402f8d
mov edx, dword [esi]
add dword [ebp - 0xc], 0xd7ff195c
xor edx, ebx
sub dword [ebp - 4], ebx
mov dword [edi], edx
xor dword [ebp - 0xc], 0x51537def
add edi, 4
add esi, 0xa1d8f325
add esi, 0x5e270cdf
loop 0x415833
add eax, 0xd3bbe6ae
add eax, 0x2c454af1
xor ebx, ebx
add ebx, eax
add eax, 0x27286260
add eax, 0xd8d79da5
mov ecx, 0x4bf382cb
add ecx, 0xb44c7d35
add ecx, dword [ebp - 0x10]
call ebx
leave
ret
Function at 0x4043b0
Capabilities:
Get disk size

Disassembly:
sub esp, 0x28
push esi
mov esi, ecx
mov eax, dword [esi]
call dword [eax + 0xc]
test eax, eax
je 0x40443a
add esi, 4
push 0x41f28c
mov ecx, esi
call fcn.004065b0
cmp eax, 0xffffffff
je 0x40443a
add eax, 2
lea ecx, [esp + 0x14]
push eax
push ecx
mov ecx, esi
call fcn.00406520
lea edx, [esp + 8]
lea eax, [esp + 4]
push edx
lea ecx, [esp + 0x10]
push eax
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x18]
push ecx
xor esi, esi
push edx
push eax
mov dword [esp + 0x24], esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
je 0x404431
cmp dword [esp + 4], esi
je 0x404431
lea ecx, [esp + 0x14]
call fcn.004060c0
mov eax, 1
pop esi
add esp, 0x28
ret
lea ecx, [esp + 0x14]
call fcn.004060c0
xor eax, eax
pop esi
add esp, 0x28
ret

Function at 0x4045c0
Capabilities:
Get disk information

Disassembly:
mov edx, dword [ecx + 8]
sub esp, 0x140
test edx, edx
je 0x40463d
mov eax, dword [ecx + 4]
cmp byte [eax], 0x2e
je 0x40463d
cmp edx, 3
jne 0x40460d
cmp byte [eax + 1], 0x3a
jne 0x40460d
cmp byte [eax + 2], 0x5c
jne 0x40460d
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 3
je 0x404631
cmp eax, 4
je 0x404631
cmp eax, 2
je 0x404631
cmp eax, 6
jne 0x40463d
mov eax, 1
add esp, 0x140
ret
lea ecx, [esp]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x40463d
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov edx, dword [esp]
and edx, 0x10
cmp dl, 0x10
jne 0x40463d
mov eax, 1
add esp, 0x140
ret
xor eax, eax
add esp, 0x140
ret

Function at 0x40cf80
Capabilities:
Get disk size

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
jne 0x40cf8c
xor ecx, ecx
jmp 0x40cfb0
cmp eax, 0x1a
jbe 0x40cf97
mov eax, 0x57
ret
add al, 0x40
lea ecx, [esp + 4]
mov byte [esp + 4], al
mov byte [esp + 5], 0x3a
mov byte [esp + 6], 0x5c
mov byte [esp + 7], 0
mov eax, dword [esp + 8]
push eax
lea edx, [eax + 4]
push edx
lea edx, [eax + 0xc]
add eax, 8
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
jne 0x40cfd2
jmp dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
ret

Function at 0x40d8a0
Capabilities:
Terminate process

Disassembly:
cmp dword [0x433e94], 1
jne 0x40d8ae
call fcn.00411270
mov eax, dword [esp + 4]
push eax
call fcn.004112b0
add esp, 4
push 0xff
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x40f850
Capabilities:
Terminate process

Disassembly:
push ebx
push ebp
push esi
call fcn.0040f910
mov eax, dword [0x434128]
mov ebp, dword [esp + 0x10]
cmp eax, 1
jne 0x40f874
push ebp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
test eax, eax
mov dword [0x434124], 1
mov byte [0x434120], bl
jne 0x40f8ce
mov ecx, dword [0x434588]
test ecx, ecx
je 0x40f8bc
mov esi, dword [0x434584]
sub esi, 4
cmp esi, ecx
jb 0x40f8bc
mov eax, dword [esi]
test eax, eax
je 0x40f8b5
call eax
mov ecx, dword [0x434588]
sub esi, 4
cmp esi, ecx
jae 0x40f8a7
push 0x41f030
push 0x41f024
call fcn.0040f930
add esp, 8
push 0x41f03c
push 0x41f034
call fcn.0040f930
add esp, 8
test ebx, ebx
je 0x40f8ed
call fcn.0040f920
pop esi
pop ebp
pop ebx
ret
push ebp
mov dword [0x434128], 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x410ce0
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [0x434238]
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
push esi
xor esi, esi
xor ebx, ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test eax, eax
jne 0x410d22
call edi
mov esi, eax
test esi, esi
je 0x410d0c
mov eax, 1
jmp 0x410d1d
call ebp
mov ebx, eax
test ebx, ebx
je 0x410e2f
mov eax, 2
mov dword [0x434238], eax
cmp eax, 1
jne 0x410dc2
test esi, esi
jne 0x410d3b
call edi
mov esi, eax
test esi, esi
je 0x410e2f
cmp word [esi], 0
mov eax, esi
je 0x410d55
add eax, 2
cmp word [eax], 0
jne 0x410d43
add eax, 2
cmp word [eax], 0
jne 0x410d43
sub eax, esi
push 0
sar eax, 1
inc eax
push 0
mov ebp, eax
push 0
push 0
push ebp
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
je 0x410db4
push edi
call fcn.0040ef60
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x410db4
push 0
push 0
push edi
push ebx
push ebp
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x410da6
push ebx
call fcn.0040f030
add esp, 4
xor ebx, ebx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
cmp eax, 2
jne 0x410e2f
test ebx, ebx
jne 0x410dd3
call ebp
mov ebx, eax
test ebx, ebx
je 0x410e2f
mov cl, byte [ebx]
mov eax, ebx
test cl, cl
je 0x410deb
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x410ddb
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x410ddb
sub eax, ebx
inc eax
mov esi, eax
push esi
call fcn.0040ef60
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x410e0d
push ebx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov ecx, esi
mov esi, ebx
mov eax, ecx
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
Function at 0x411050
Capabilities:
Allocate thread local storage
Set thread local storage value

Disassembly:
push esi
call fcn.00411490
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [0x41fa24], eax
je 0x4110a8
push 0x74
push 1
call fcn.0040f980
mov esi, eax
add esp, 8
test esi, esi
je 0x4110a8
mov eax, dword [0x41fa24]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x4110a8
push esi
call fcn.004110b0
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esi], eax
mov dword [esi + 4], 0xffffffff
mov eax, 1
pop esi
ret
xor eax, eax
pop esi
ret

Function at 0x4110d0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [0x41fa24]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x41113e
push 0x74
push 1
call fcn.0040f980
mov esi, eax
add esp, 8
test esi, esi
je 0x411134
mov ecx, dword [0x41fa24]
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x411134
push esi
call fcn.004110b0
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push edi
mov dword [esi], eax
mov dword [esi + 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
pop edi
pop esi
ret
push 0x10
call fcn.0040d870
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
pop edi
pop esi
ret
Function at 0x4112b0
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x1a8
mov eax, 0x41fa30
push ebx
push ebp
push esi
push edi
xor ebp, ebp
cmp ecx, dword [eax]
je 0x4112d4
add eax, 8
inc ebp
cmp eax, 0x41fac0
jb 0x4112c5
cmp ecx, dword [ebp*8 + 0x41fa30]
jne 0x41147b
mov eax, dword [0x433e94]
cmp eax, 1
je 0x41143d
test eax, eax
jne 0x411300
cmp dword [0x41f434], 1
je 0x41143d
cmp ecx, 0xfc
je 0x41147b
lea eax, [esp + 0xb4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x41133b
mov ecx, 5
mov esi, str._program_name_unknown_
lea edi, [esp + 0xb4]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
xor eax, eax
lea ebx, [esp + 0xb4]
repne scasb al, byte es:[edi]
not ecx
cmp ecx, 0x3c
jbe 0x411384
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 3
mov ebx, ecx
lea ecx, [esp + 0xb8]
sub ecx, 0x3b
push 0x41ce1c
add ebx, ecx
push ebx
call fcn.0040e0c0
add esp, 0xc
mov ecx, 6
mov esi, str.Runtime_Error__n_nProgram:
lea edi, [esp + 0x14]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
or ecx, 0xffffffff
mov edi, ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x14]
mov ebx, ecx
mov esi, edi
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x14]
and ecx, 3
push 0x12010
rep movsb byte es:[edi], byte [esi]
mov edi, 0x41cdfc
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push str.Microsoft_Visual_C_Runtime_Library
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x1c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp*8 + 0x41fa34]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x1c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.004152d0
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
mov eax, dword [0x434480]
test eax, eax
je 0x41144e
mov esi, dword [eax + 0x48]
cmp esi, 0xffffffff
jne 0x411458
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
mov edx, dword [ebp*8 + 0x41fa34]
lea ecx, [esp + 0x10]
push 0
push ecx
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
Function at 0x412170
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x41c
push ebx
mov ebx, dword [esp + 0x42c]
push ebp
xor ebp, ebp
push esi
cmp ebx, ebp
push edi
mov dword [esp + 0x10], ebp
mov dword [esp + 0x20], ebp
jne 0x41219c
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov ecx, dword [esp + 0x430]
mov eax, ecx
sar eax, 5
lea edi, [eax*4 + 0x434480]
mov eax, ecx
and eax, 0x1f
mov dword [esp + 0x24], edi
mov edx, dword [edi]
lea esi, [eax + eax*8]
shl esi, 2
mov dword [esp + 0x14], esi
test byte [esi + edx + 4], 0x20
je 0x4121d7
push 2
push ebp
push ecx
call fcn.00414fc0
add esp, 0xc
mov eax, dword [edi]
add eax, esi
test byte [eax + 4], 0x80
je 0x412339
mov ebp, dword [esp + 0x434]
mov dword [esp + 0x18], 0
test ebx, ebx
mov edi, ebp
jbe 0x412281
lea eax, [esp + 0x28]
mov ecx, edi
sub ecx, ebp
cmp ecx, ebx
jae 0x412232
mov cl, byte [edi]
inc edi
cmp cl, 0xa
jne 0x41221f
mov esi, dword [esp + 0x20]
mov byte [eax], 0xd
inc esi
inc eax
mov dword [esp + 0x20], esi
mov byte [eax], cl
inc eax
mov edx, eax
lea ecx, [esp + 0x28]
sub edx, ecx
cmp edx, 0x400
jl 0x412202
mov esi, eax
lea edx, [esp + 0x28]
lea eax, [esp + 0x1c]
sub esi, edx
mov edx, dword [esp + 0x24]
push 0
push eax
lea ecx, [esp + 0x30]
mov eax, dword [edx]
push esi
push ecx
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx + eax]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x41232a
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
add edx, eax
cmp eax, esi
mov dword [esp + 0x10], edx
jl 0x41227d
mov eax, edi
sub eax, ebp
cmp eax, ebx
jb 0x4121fe
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x412319
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4122d5
cmp eax, 5
jne 0x4122be
call fcn.0040e340
mov dword [eax], 9
call fcn.0040e350
mov dword [eax], 5
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
push eax
call fcn.0040e2c0
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx]
test byte [esi + edx + 4], 0x40
je 0x4122f5
cmp byte [ebp], 0x1a
jne 0x4122f5
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
call fcn.0040e340
mov dword [eax], 0x1c
call fcn.0040e350
mov dword [eax], 0
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
sub eax, ecx
pop ebx
add esp, 0x41c
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x18], eax
jmp 0x41227d
mov edx, dword [eax]
lea ecx, [esp + 0x1c]
push ebp
mov ebp, dword [esp + 0x438]
push ecx
push ebx
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x41236a
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], eax
jmp 0x412281
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x18], eax
jmp 0x412281
Function at 0x412380
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4123a3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0040e2c0
add esp, 4
or eax, 0xffffffff
ret
test al, 1
je 0x4123c8
test byte [esp + 8], 2
je 0x4123c8
call fcn.0040e340
mov dword [eax], 0xd
call fcn.0040e350
mov dword [eax], 5
or eax, 0xffffffff
ret
xor eax, eax
ret

Function at 0x4157b0
Capabilities:
Clear file content

Disassembly:
mov eax, 0x1004
call fcn.00416e20
push ebx
mov ebx, dword [esp + 0x100c]
push ebp
push esi
push edi
xor ebp, ebp
push 1
push ebp
push ebx
call fcn.00414fc0
mov edi, eax
add esp, 0xc
cmp edi, 0xffffffff
mov dword [esp + 0x10], edi
je 0x4158f0
push 2
push ebp
push ebx
call fcn.00414fc0
add esp, 0xc
cmp eax, 0xffffffff
je 0x4158f0
mov ecx, dword [esp + 0x101c]
mov esi, ecx
sub esi, eax
test esi, esi
jle 0x415891
mov ecx, 0x400
xor eax, eax
lea edi, [esp + 0x14]
push 0x8000
rep stosd dword es:[edi], eax
push ebx
call fcn.00416db0
add esp, 8
mov edi, eax
cmp esi, 0x1000
mov eax, 0x1000
jge 0x415836
mov eax, esi
push eax
lea eax, [esp + 0x18]
push eax
push ebx
call fcn.00412170
add esp, 0xc
cmp eax, 0xffffffff
je 0x415852
sub esi, eax
test esi, esi
jle 0x41586a
jmp 0x415827
call fcn.0040e350
cmp dword [eax], 5
jne 0x415867
call fcn.0040e340
mov dword [eax], 0xd
or ebp, 0xffffffff
push edi
push ebx
call fcn.00416db0
mov edi, dword [esp + 0x18]
add esp, 8
push 0
push edi
push ebx
call fcn.00414fc0
add esp, 0xc
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1004
ret
jge 0x4158d7
push 0
push ecx
push ebx
call fcn.00414fc0
add esp, 0xc
push ebx
call fcn.004156c0
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov ebp, eax
neg ebp
sbb ebp, ebp
neg ebp
dec ebp
cmp ebp, 0xffffffff
jne 0x4158d7
call fcn.0040e340
mov dword [eax], 0xd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call fcn.0040e350
mov dword [eax], esi
push 0
push edi
push ebx
call fcn.00414fc0
add esp, 0xc
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1004
ret
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x1004
ret
Function at 0x415fe0
Capabilities:
Set environment variable

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x18]
test edi, edi
je 0x41619e
push 0x3d
push edi
call fcn.00416e50
mov esi, eax
add esp, 8
test esi, esi
je 0x41619e
cmp edi, esi
je 0x41619e
mov dl, byte [esi + 1]
mov ecx, dword [0x43410c]
xor eax, eax
test dl, dl
sete al
mov ebp, eax
mov eax, dword [0x434108]
cmp eax, ecx
jne 0x416037
push eax
call fcn.00416270
add esp, 4
mov dword [0x434108], eax
test eax, eax
jne 0x4160b2
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x41605e
mov eax, dword [0x434110]
test eax, eax
je 0x41605e
call fcn.00412c60
test eax, eax
je 0x4160ad
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
test ebp, ebp
je 0x41606a
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 4
call fcn.0040ef60
add esp, 4
mov dword [0x434108], eax
test eax, eax
je 0x41619e
mov dword [eax], 0
mov eax, dword [0x434110]
test eax, eax
jne 0x4160ad
push 4
call fcn.0040ef60
add esp, 4
mov dword [0x434110], eax
test eax, eax
je 0x41619e
mov dword [eax], 0
mov eax, dword [0x434108]
mov ebx, eax
mov eax, esi
sub eax, edi
push eax
push edi
mov dword [esp + 0x18], eax
call fcn.004161f0
mov esi, eax
add esp, 8
test esi, esi
jl 0x4161af
cmp dword [ebx], 0
je 0x4161af
test ebp, ebp
je 0x4161a7
mov ecx, dword [ebx + esi*4]
lea edi, [ebx + esi*4]
push ecx
call fcn.0040f030
mov eax, dword [edi]
add esp, 4
test eax, eax
je 0x416109
mov eax, edi
mov edx, dword [eax + 4]
add eax, 4
mov dword [edi], edx
inc esi
mov ecx, dword [eax]
mov edi, eax
test ecx, ecx
jne 0x4160f8
lea eax, [esi*4]
push eax
push ebx
call fcn.0040f0a0
add esp, 8
test eax, eax
je 0x416123
mov dword [0x434108], eax
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x416196
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
inc ecx
push ecx
call fcn.0040ef60
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x416196
mov edi, dword [esp + 0x18]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, dword [esp + 0x10]
mov edx, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
neg ebp
rep movsb byte es:[edi], byte [esi]
sbb ebp, ebp
mov byte [ebx + eax], 0
lea eax, [ebx + eax + 1]
not ebp
and ebp, eax
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
push ebx
call fcn.0040f030
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
pop ecx
ret
mov dword [ebx + esi*4], edi
jmp 0x416127
test ebp, ebp
jne 0x416196
test esi, esi
jge 0x4161b9
neg esi
lea ecx, [esi*4 + 8]
push ecx
push ebx
call fcn.0040f0a0
add esp, 8
test eax, eax
je 0x41619e
mov dword [eax + esi*4], edi
mov dword [eax + esi*4 + 4], 0
mov dword [0x434108], eax
jmp 0x416127
Function at 0x419cd0
Capabilities:
Get geographical location

Disassembly:
mov eax, dword [0x43445c]
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
push edi
test eax, eax
jne 0x419d18
push 0
push 0
push 1
push 0
call esi
test eax, eax
je 0x419cf8
mov eax, 1
jmp 0x419d13
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x419de9
mov eax, 2
mov dword [0x43445c], eax
cmp eax, 1
jne 0x419d38
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push eax
mov eax, dword [esp + 0x18]
push ecx
push edx
push eax
call esi
pop edi
pop esi
pop ebp
pop ebx
ret
cmp eax, 2
jne 0x419dfb
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x419d53
mov ecx, dword [0x4342c8]
mov dword [esp + 0x24], ecx
mov ebx, dword [esp + 0x18]
mov ebp, dword [esp + 0x14]
push 0
push 0
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov esi, eax
test esi, esi
jne 0x419d72
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
call fcn.0040ef60
mov edi, eax
add esp, 4
test edi, edi
jne 0x419d86
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
push edi
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x419de0
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x419dc4
mov edx, dword [esp + 0x24]
push eax
push eax
push 0xffffffffffffffff
push edi
push 1
push edx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov esi, eax
test esi, esi
je 0x419de0
push edi
call fcn.0040f030
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret
mov ecx, dword [esp + 0x24]
push eax
mov eax, dword [esp + 0x20]
push eax
push 0xffffffffffffffff
push edi
push 1
push ecx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov esi, eax
test esi, esi
jne 0x419df0
push edi
call fcn.0040f030
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
push edi
call fcn.0040f030
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret