joyce8/EMBER2024-capa huggingface dataset:
Function at 0x49d080
Capabilities:
Compress data via zlib inflate or deflate

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x34
push edi
test ecx, ecx
je 0x49e6b6
mov edi, dword [ecx + 0x1c]
mov dword [esp + 0x14], edi
test edi, edi
je 0x49e6b6
cmp dword [ecx + 0xc], 0
je 0x49e6b6
cmp dword [ecx], 0
jne 0x49d0b8
cmp dword [ecx + 4], 0
jne 0x49e6b6
cmp dword [edi], 0xb
jne 0x49d0c3
mov dword [edi], 0xc
mov eax, dword [ecx + 0xc]
mov edx, dword [edi + 0x38]
mov dword [esp + 0x18], eax
mov eax, dword [ecx + 0x10]
push ebx
mov ebx, dword [ecx]
mov dword [esp + 0x10], eax
mov dword [esp + 0x20], eax
xor eax, eax
push ebp
mov ebp, dword [ecx + 4]
mov dword [esp + 0x28], eax
mov eax, dword [edi]
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], edx
mov dword [esp + 0x38], ebp
push esi
mov esi, dword [edi + 0x3c]
cmp eax, 0x1e
ja 0x49da35
lea ebx, [edi + 0x54]
mov dword [esp + 0x40], ebx
mov ebx, dword [esp + 0x14]
jmp 0x49d110
jmp dword [eax*4 + 0x49e6c0]
pop esi
pop ebp
pop ebx
mov eax, 0xfffffffe
pop edi
add esp, 0x34
ret
mov eax, 0xfffffffe
pop edi
add esp, 0x34
ret
Function at 0x405523
Capabilities:
Contain obfuscated stackstrings

Disassembly:
ror byte [ebp - 0x22e43], 0xff
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
and byte [ebp - 0x12c], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x12b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
and byte [ebp - 0x654], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x653]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
and byte [ebp - 0x504], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x503]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
call fcn.00404638
or byte [eax + 0x2ff845c6], ah
mov byte [ebp - 0x24], 0x34
and byte [ebp - 0x36c], 0
and byte [ebp - 0x36b], 0
mov byte [ebp - 0x36a], 0xaa
and byte [ebp - 0x369], 0
mov byte [ebp - 0x368], 0x12
mov byte [ebp - 0x367], 0x30
mov byte [ebp - 0x366], 0x21
mov byte [ebp - 0x365], 6
mov byte [ebp - 0x364], 0x2c
mov byte [ebp - 0x363], 0x26
mov byte [ebp - 0x362], 0x21
mov byte [ebp - 0x361], 0x30
mov byte [ebp - 0x360], 0x38
mov byte [ebp - 0x35f], 0x11
mov byte [ebp - 0x35e], 0x3c
mov byte [ebp - 0x35d], 0x27
mov byte [ebp - 0x35c], 0x30
mov byte [ebp - 0x35b], 0x36
mov byte [ebp - 0x35a], 0x21
mov byte [ebp - 0x359], 0x3a
mov byte [ebp - 0x358], 0x27
mov byte [ebp - 0x357], 0x2c
mov byte [ebp - 0x356], 0x14
mov byte [ebp - 0x355], 0x55
lea eax, [ebp - 0x36c]
push eax
call fcn.0040466a
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.0040461f
add esp, 0xc
mov dword [ebp - 0x3d4], eax
call fcn.0040465a
test dword [edx + 0x4689e96], 0x8d000001
test esp, edx
invalid

Function at 0x405a4e
Capabilities:
Contain obfuscated stackstrings

Disassembly:
add esp, 0xc
and dword [ebp - 0x700], 0
jmp 0x405a67
mov eax, dword [ebp - 0x700]
inc eax
mov dword [ebp - 0x700], eax
cmp dword [ebp - 0x700], 5
jge 0x405ab0
mov eax, dword [ebp - 0x700]
movsx eax, byte [ebp + eax - 0x394]
movsx ecx, byte [ebp - 0x24]
xor eax, ecx
mov ecx, dword [ebp - 0x700]
mov byte [ebp + ecx - 0x394], al
mov eax, dword [ebp - 0x700]
movsx eax, byte [ebp + eax - 0x394]
not eax
mov ecx, dword [ebp - 0x700]
mov byte [ebp + ecx - 0x394], al
jmp 0x405a5a
call fcn.0040465a
sbb ebx, dword [edi + esi*8]
push ecx
and byte [ebp - 0x72c], 0
and byte [ebp - 0x72b], 0
mov byte [ebp - 0x72a], 0xc2
and byte [ebp - 0x729], 0
mov byte [ebp - 0x728], 0x6b
mov byte [ebp - 0x727], 0x54
mov byte [ebp - 0x726], 0x4f
mov byte [ebp - 0x725], 0x49
mov byte [ebp - 0x724], 0x48
invalid
invalid
Function at 0x4068b5
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x427dcc], 0
push esi
jne 0x4068ec
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x4068c6
mov dword [ecx*4 + 0x427dc8], eax
inc ecx
cmp ecx, 0x100
jl 0x4068c1
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x40691d
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x427dc8]
xor eax, esi
inc ecx
dec edx
jne 0x4068ff
pop edi
not eax
pop esi
ret 0xc
Function at 0x1041767
Capabilities:
Get geographical location

Disassembly:
push ecx
push ecx
push ebx
mov ebx, dword [esp + 0x10]
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x1c], 1
cmp dword [esi + 0x100], ebx
je 0x1041832
lea eax, [esp + 0x10]
push 6
push eax
push 0x80001004
push ebx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x10417c6
lea eax, [esp + 0x10]
push eax
call fcn.0104c490
pop ecx
mov ebp, eax
mov edi, 0x80
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_IsDBCSLeadByteEx]
mov byte [edi + esi], al
inc edi
cmp edi, 0x100
jl 0x10417b0
jmp 0x1041832
movzx ecx, bx
mov eax, ecx
and eax, 0x3ff
sub eax, 4
je 0x1041813
sub eax, 0xd
je 0x10417ee
dec eax
je 0x10417e4
and dword [esp + 0x1c], 0
jmp 0x1041832
lea edi, [esi + 0x81]
push 0x1f
jmp 0x1041828
push 7
mov edx, 0x1010101
lea edi, [esi + 0x81]
pop ecx
mov eax, edx
push 7
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea edi, [esi + 0xe0]
pop ecx
mov eax, edx
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
jmp 0x1041832
and cx, 0xfc00
cmp ecx, 0x800
jne 0x1041832
lea edi, [esi + 0xa1]
push 0x17
pop ecx
mov eax, 0x1010101
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [esi + 0x100]
cmp eax, 0xffffffff
je 0x104184d
cmp eax, ebx
je 0x104184d
test ebx, ebx
je 0x104184d
mov dword [esp + 0x1c], 2
mov eax, dword [esp + 0x1c]
mov dword [esi + 0x100], ebx
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret 4

Function at 0x104b870
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1018d40
push 0x104bec8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
call dword [sym.imp.KERNEL32.dll_GetVersion]
xor edx, edx
mov dl, ah
mov dword [0x1099c50], edx
mov ecx, eax
and ecx, 0xff
mov dword [0x1099c4c], ecx
shl ecx, 8
add ecx, edx
mov dword [0x1099c48], ecx
shr eax, 0x10
mov dword [0x1099c44], eax
call fcn.0104eae0
test eax, eax
jne 0x104b8da
push 0x1c
call fcn.0104b9c0
add esp, 4
mov dword [ebp - 4], 0
call fcn.0104e8e0
call fcn.0104e8d0
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x109b5ac], eax
call fcn.0104e290
mov dword [0x1099c24], eax
test eax, eax
je 0x104b90d
mov eax, dword [0x109b5ac]
test eax, eax
jne 0x104b917
push 0xffffffffffffffff
call fcn.0104bcc0
add esp, 4
call fcn.0104dfe0
call fcn.0104def0
call fcn.0104bc90
mov eax, dword [0x1099c60]
mov dword [0x1099c64], eax
push eax
mov eax, dword [0x1099c58]
push eax
mov ecx, dword [0x1099c54]
push ecx
call fcn.0103b379
add esp, 0xc
mov dword [ebp - 0x1c], eax
push eax
call fcn.0104bcc0
jmp 0x104b972
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x104b9c0
Capabilities:
Terminate process

Disassembly:
cmp dword [0x1099c2c], 2
je 0x104b9ce
call fcn.0104eb20
mov eax, dword [esp + 4]
push eax
call fcn.0104eb60
add esp, 4
push 0xff
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x104bd00
Capabilities:
Terminate process

Disassembly:
mov eax, dword [0x1099c80]
push ebx
push ebp
mov ebp, dword [esp + 0xc]
cmp eax, 1
push esi
jne 0x104bd1f
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 [0x1099c7c], 1
mov byte [0x1099c78], bl
jne 0x104bd79
mov ecx, dword [0x109b5a8]
test ecx, ecx
je 0x104bd67
mov esi, dword [0x109b5a4]
sub esi, 4
cmp esi, ecx
jb 0x104bd67
mov eax, dword [esi]
test eax, eax
je 0x104bd60
call eax
mov ecx, dword [0x109b5a8]
sub esi, 4
cmp esi, ecx
jae 0x104bd52
push 0x1094064
push 0x1094058
call fcn.0104bdb0
add esp, 8
push 0x109406c
push 0x1094068
call fcn.0104bdb0
add esp, 8
test ebx, ebx
jne 0x104bda0
push ebp
mov dword [0x1099c80], 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop esi
pop ebp
pop ebx
ret

Function at 0x104ccd0
Capabilities:
Delete file

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x104cce7
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x104cce9
xor eax, eax
test eax, eax
je 0x104ccfa
push eax
call fcn.01050e90
add esp, 4
or eax, 0xffffffff
ret
xor eax, eax
ret

Function at 0x104cde0
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 0x104ce03
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.01050e90
add esp, 4
or eax, 0xffffffff
ret
test al, 1
je 0x104ce26
test byte [esp + 8], 2
je 0x104ce26
mov dword [0x1099c38], 0xd
mov dword [0x1099c3c], 5
or eax, 0xffffffff
ret
xor eax, eax
ret
Function at 0x104e290
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [0x1099db8]
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 0x104e2d2
call edi
mov esi, eax
test esi, esi
je 0x104e2bc
mov eax, 1
jmp 0x104e2cd
call ebp
mov ebx, eax
test ebx, ebx
je 0x104e3df
mov eax, 2
mov dword [0x1099db8], eax
cmp eax, 1
jne 0x104e372
test esi, esi
jne 0x104e2eb
call edi
mov esi, eax
test esi, esi
je 0x104e3df
cmp word [esi], 0
mov eax, esi
je 0x104e305
add eax, 2
cmp word [eax], 0
jne 0x104e2f3
add eax, 2
cmp word [eax], 0
jne 0x104e2f3
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 0x104e364
push edi
call fcn.01050330
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x104e364
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 0x104e356
push ebx
call fcn.01050bd0
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 0x104e3df
test ebx, ebx
jne 0x104e383
call ebp
mov ebx, eax
test ebx, ebx
je 0x104e3df
mov cl, byte [ebx]
mov eax, ebx
test cl, cl
je 0x104e39b
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x104e38b
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x104e38b
sub eax, ebx
inc eax
mov esi, eax
push esi
call fcn.01050330
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x104e3bd
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 0x104eb60
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x1a8
mov eax, 0x1095460
push ebx
push ebp
push esi
push edi
xor ebp, ebp
cmp ecx, dword [eax]
je 0x104eb84
add eax, 8
inc ebp
cmp eax, 0x10954f0
jb 0x104eb75
cmp ecx, dword [ebp*8 + 0x1095460]
jne 0x104ed2b
mov eax, dword [0x1099c2c]
cmp eax, 1
je 0x104eced
test eax, eax
jne 0x104ebb0
cmp dword [0x109501c], 1
je 0x104eced
cmp ecx, 0xfc
je 0x104ed2b
lea eax, [esp + 0xb4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x104ebeb
mov ecx, 5
mov esi, 0x1019020
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 0x104ec34
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 0x1006788
add ebx, ecx
push ebx
call fcn.0104d2a0
add esp, 0xc
mov ecx, 6
mov esi, 0x1019004
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, 0x1019000
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x1018fd8
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 + 0x1095464]
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.010524d0
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
mov eax, dword [0x109a480]
test eax, eax
je 0x104ecfe
mov esi, dword [eax + 0x10]
cmp esi, 0xffffffff
jne 0x104ed08
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
mov edx, dword [ebp*8 + 0x1095464]
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 0x1050000
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [0x109a580]
sub esp, 0x41c
cmp eax, ecx
push ebx
push ebp
push esi
push edi
jae 0x10501ad
mov ecx, eax
mov esi, eax
sar ecx, 5
and esi, 0x1f
mov edx, dword [ecx*4 + 0x109a480]
lea edi, [ecx*4 + 0x109a480]
shl esi, 3
mov dword [esp + 0x24], edi
mov dword [esp + 0x14], esi
mov cl, byte [esi + edx + 4]
test cl, 1
je 0x10501ad
mov ebx, dword [esp + 0x438]
xor ebp, ebp
cmp ebx, ebp
mov dword [esp + 0x10], ebp
mov dword [esp + 0x20], ebp
jne 0x105006e
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
test cl, 0x20
je 0x105007f
push 2
push ebp
push eax
call fcn.01050d40
add esp, 0xc
mov eax, dword [edi]
add eax, esi
test byte [eax + 4], 0x80
je 0x10501de
mov ebp, dword [esp + 0x434]
mov dword [esp + 0x18], 0
test ebx, ebx
mov edi, ebp
jbe 0x1050129
lea eax, [esp + 0x28]
mov ecx, edi
sub ecx, ebp
cmp ecx, ebx
jae 0x10500da
mov cl, byte [edi]
inc edi
cmp cl, 0xa
jne 0x10500c7
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 0x10500aa
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 0x10501cf
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
add edx, eax
cmp eax, esi
mov dword [esp + 0x10], edx
jl 0x1050125
mov eax, edi
sub eax, ebp
cmp eax, ebx
jb 0x10500a6
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x105019e
mov eax, dword [esp + 0x18]
test eax, eax
je 0x1050172
cmp eax, 5
jne 0x105015b
mov dword [0x1099c3c], eax
mov dword [0x1099c38], 9
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
push eax
call fcn.01050e90
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 0x1050192
cmp byte [ebp], 0x1a
jne 0x1050192
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov dword [0x1099c38], 0x1c
jmp 0x10501b7
sub eax, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov dword [0x1099c38], 9
pop edi
pop esi
pop ebp
mov dword [0x1099c3c], 0
or eax, 0xffffffff
pop ebx
add esp, 0x41c
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x18], eax
jmp 0x1050125
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 0x105020f
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], eax
jmp 0x1050129
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x18], eax
jmp 0x1050129
Function at 0x1050f20
Capabilities:
Get common file path

Disassembly:
sub esp, 0x10c
push ebx
mov ebx, dword [esp + 0x114]
push esi
push edi
test ebx, ebx
je 0x1050f91
push ebx
call fcn.01051050
add esp, 4
test eax, eax
jne 0x1050f5f
mov dword [0x1099c3c], 0xf
mov dword [0x1099c38], 0xd
pop edi
pop esi
pop ebx
add esp, 0x10c
ret
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
push ecx
lea edx, [esp + 0x14]
add bl, 0x40
push 0x104
push edx
mov byte [esp + 0x1c], bl
mov byte [esp + 0x1d], 0x3a
mov byte [esp + 0x1e], 0x2e
mov byte [esp + 0x1f], 0
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
jmp 0x1050fa1
lea eax, [esp + 0x14]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x1051037
inc eax
cmp eax, 0x104
ja 0x1051037
mov edx, dword [esp + 0x120]
mov ecx, dword [esp + 0x124]
test edx, edx
jne 0x1050ff0
cmp eax, ecx
jg 0x1050fcd
mov eax, ecx
push eax
call fcn.01050330
mov edx, eax
add esp, 4
test edx, edx
jne 0x105100a
mov dword [0x1099c38], 0xc
pop edi
pop esi
pop ebx
add esp, 0x10c
ret
cmp eax, ecx
jle 0x105100a
mov dword [0x1099c38], 0x22
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x10c
ret
lea edi, [esp + 0x14]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
mov eax, edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebx
add esp, 0x10c
ret
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x10c
ret

Function at 0x1051050
Capabilities:
Get disk information

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
jne 0x105105e
mov eax, 1
ret
add al, 0x40
mov byte [esp + 5], 0x3a
mov byte [esp + 4], al
lea eax, [esp + 4]
push eax
mov byte [esp + 0xa], 0x5c
mov byte [esp + 0xb], 0
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
test eax, eax
je 0x105108d
cmp eax, 1
je 0x105108d
mov eax, 1
ret
xor eax, eax
ret
Function at 0x10540e0
Capabilities:
Set environment variable

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x18]
test edi, edi
je 0x105429e
push 0x3d
push edi
call fcn.010556a0
mov esi, eax
add esp, 8
test esi, esi
je 0x105429e
cmp edi, esi
je 0x105429e
mov dl, byte [esi + 1]
mov ecx, dword [0x1099c64]
xor eax, eax
test dl, dl
sete al
mov ebp, eax
mov eax, dword [0x1099c60]
cmp eax, ecx
jne 0x1054137
push eax
call fcn.01054370
add esp, 4
mov dword [0x1099c60], eax
test eax, eax
jne 0x10541b2
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x105415e
mov eax, dword [0x1099c68]
test eax, eax
je 0x105415e
call fcn.01050b50
test eax, eax
je 0x10541ad
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
test ebp, ebp
je 0x105416a
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 4
call fcn.01050330
add esp, 4
mov dword [0x1099c60], eax
test eax, eax
je 0x105429e
mov dword [eax], 0
mov eax, dword [0x1099c68]
test eax, eax
jne 0x10541ad
push 4
call fcn.01050330
add esp, 4
mov dword [0x1099c68], eax
test eax, eax
je 0x105429e
mov dword [eax], 0
mov eax, dword [0x1099c60]
mov ebx, eax
mov eax, esi
sub eax, edi
push eax
push edi
mov dword [esp + 0x18], eax
call fcn.010542f0
mov esi, eax
add esp, 8
test esi, esi
jl 0x10542af
cmp dword [ebx], 0
je 0x10542af
test ebp, ebp
je 0x10542a7
mov ecx, dword [ebx + esi*4]
lea edi, [ebx + esi*4]
push ecx
call fcn.01050bd0
mov eax, dword [edi]
add esp, 4
test eax, eax
je 0x1054209
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 0x10541f8
lea eax, [esi*4]
push eax
push ebx
call fcn.010519a0
add esp, 8
test eax, eax
je 0x1054223
mov dword [0x1099c60], eax
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x1054296
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
inc ecx
push ecx
call fcn.01050330
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x1054296
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.01050bd0
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 0x1054227
test ebp, ebp
jne 0x1054296
test esi, esi
jge 0x10542b9
neg esi
lea ecx, [esi*4 + 8]
push ecx
push ebx
call fcn.010519a0
add esp, 8
test eax, eax
je 0x105429e
mov dword [eax + esi*4], edi
mov dword [eax + esi*4 + 4], 0
mov dword [0x1099c60], eax
jmp 0x1054227
Function at 0x1055520
Capabilities:
Clear file content

Disassembly:
mov eax, 0x1004
call fcn.01055eb0
mov eax, dword [0x109a580]
push ebx
mov ebx, dword [esp + 0x100c]
push ebp
xor ebp, ebp
push esi
cmp ebx, eax
push edi
jae 0x1055682
mov eax, ebx
mov ecx, ebx
sar eax, 5
and ecx, 0x1f
mov edx, dword [eax*4 + 0x109a480]
test byte [edx + ecx*8 + 4], 1
je 0x1055682
push 1
push ebp
push ebx
call fcn.01050d40
mov edi, eax
add esp, 0xc
cmp edi, 0xffffffff
mov dword [esp + 0x10], edi
je 0x105568c
push 2
push ebp
push ebx
call fcn.01050d40
add esp, 0xc
cmp eax, 0xffffffff
je 0x105568c
mov ecx, dword [esp + 0x101c]
mov esi, ecx
sub esi, eax
test esi, esi
jle 0x1055628
mov ecx, 0x400
xor eax, eax
lea edi, [esp + 0x14]
push 0x8000
rep stosd dword es:[edi], eax
push ebx
call fcn.01055e30
add esp, 8
mov edi, eax
cmp esi, 0x1000
mov eax, 0x1000
jge 0x10555cf
mov eax, esi
push eax
lea eax, [esp + 0x18]
push eax
push ebx
call fcn.01050000
add esp, 0xc
cmp eax, 0xffffffff
je 0x10555eb
sub esi, eax
test esi, esi
jle 0x1055601
jmp 0x10555c0
cmp dword [0x1099c3c], 5
jne 0x10555fe
mov dword [0x1099c38], 0xd
or ebp, 0xffffffff
push edi
push ebx
call fcn.01055e30
mov edi, dword [esp + 0x18]
add esp, 8
push 0
push edi
push ebx
call fcn.01050d40
add esp, 0xc
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1004
ret
jge 0x1055669
push 0
push ecx
push ebx
call fcn.01050d40
add esp, 0xc
push ebx
call fcn.010512c0
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 0x1055669
mov dword [0x1099c38], 0xd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x1099c3c], eax
push 0
push edi
push ebx
call fcn.01050d40
add esp, 0xc
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1004
ret
mov dword [0x1099c38], 9
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x1004
ret