joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401ee2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x411280]
jne 0x401eec
repz ret
jmp fcn.00404369

Function at 0x4025e7
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
push 0x14
push 0x40f530
call fcn.00403770
mov eax, 0x5a4d
cmp word [0x400000], ax
jne 0x4024e7
mov eax, dword [0x40003c]
cmp dword [eax + 0x400000], 0x4550
jne 0x4024e7
mov ecx, 0x10b
cmp word [eax + 0x400018], cx
jne 0x4024e7
cmp dword [eax + 0x400074], 0xe
jbe 0x4024e7
xor ecx, ecx
cmp dword [eax + 0x4000e8], ecx
setne cl
mov dword [ebp - 0x1c], ecx
jmp 0x4024eb
and dword [ebp - 0x1c], 0
push 1
call fcn.00407571
pop ecx
test eax, eax
jne 0x4024ff
push 0x1c
call fcn.00407571
pop ecx
call fcn.00405287
test eax, eax
jne 0x402510
push 0x10
call fcn.00407571
pop ecx
call fcn.00405952
and dword [ebp - 4], 0
call fcn.004032ff
test eax, eax
jge 0x40252a
push 0x1b
call fcn.00407571
pop ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x412ba0], eax
call fcn.00407571
mov dword [0x41203c], eax
call fcn.00407571
test eax, eax
jge 0x402550
push 8
call fcn.00407571
pop ecx
call fcn.00405fde
test eax, eax
jge 0x402561
push 9
call fcn.00407571
pop ecx
push 1
call fcn.00407571
pop ecx
test eax, eax
je 0x402574
push eax
call fcn.00407571
pop ecx
mov eax, dword [0x412018]
mov dword [0x41201c], eax
push eax
push dword [0x412010]
push dword [0x41200c]
call main
add esp, 0xc
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x1c], 0
jne 0x4025a2
push eax
call fcn.00407571
call fcn.00402400
jmp 0x4025d7
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x20]
call fcn.004037b5
ret
call fcn.00407571
jmp 0x402495

Function at 0x407571
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
pushal
call 0x407580
pop dword [ebp - 0x4c]
mov eax, 0x407580
sub dword [ebp - 0x4c], eax
push 0x40
push 0x1000
push 0x3828c
push 0
mov eax, 0x6c1736f9
sub eax, 0x6bd65621
add eax, dword [ebp - 0x4c]
call dword [eax]
mov ecx, 0x96c7fc4d
add ecx, 0x69384734
xor edx, edx
add edx, eax
mov esi, 0xd489d1f0
sub esi, 0xd448962c
add esi, dword [ebp - 0x4c]
mov ebx, 0xeb792631
add ebx, 0xc87da83b
xor dword [ebp - 0x30], 0xb6548d8e
mov edi, dword [esi]
xor dword [ebp - 0x34], ecx
xor edi, ebx
sub dword [ebp - 0x40], 0x7c499562
mov dword [edx], edi
xor dword [ebp - 0x10], ecx
add edx, 4
add esi, 0x6ba04584
sub esi, 0x6ba04580
loop 0x4075dc
add eax, 0x9b5e162d
add eax, 0x64a2eaaa
mov ebx, eax
add eax, 0x5831623c
add eax, 0xa7ce9dc9
mov ecx, 0x9c63e631
sub ecx, 0x9c23e631
add ecx, dword [ebp - 0x4c]
call ebx
leave
ret
Function at 0x402c3e
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
xor ecx, ecx
push 8
mov eax, ecx
pop edx
test al, 1
je 0x402c52
shr eax, 1
xor eax, 0xedb88320
jmp 0x402c54
shr eax, 1
dec edx
jne 0x402c45
mov dword [ecx*4 + 0x4141c0], eax
mov dword [ecx*4 + 0x4161c0], eax
inc ecx
cmp ecx, 0x100
jb 0x402c40
push ebx
push esi
push edi
mov ecx, 0x4145c0
mov edi, 0x101
mov eax, dword [ecx - 0x400]
push 7
mov edx, ecx
pop esi
movzx ebx, al
shr eax, 8
xor eax, dword [ebx*4 + 0x4141c0]
mov dword [edx], eax
add edx, 0x400
dec esi
jne 0x402c86
add ecx, 4
dec edi
jne 0x402c7b
pop edi
pop esi
pop ebx
ret

Function at 0x402ca8
Capabilities:
Encode data using xor

Disassembly:
cmp dword [0x4161c4], 0
jne 0x402cb6
call fcn.00402c3e
mov ecx, dword [esp + 8]
mov eax, dword [esp + 4]
push esi
mov esi, dword [esp + 0x10]
push edi
test esi, esi
jbe 0x402ce3
test cl, 7
je 0x402ce3
movzx edx, byte [ecx]
movzx edi, al
xor edx, edi
shr eax, 8
xor eax, dword [edx*4 + 0x4141c0]
dec esi
inc ecx
jmp 0x402cc4
cmp esi, 8
jb 0x402d76
mov edi, esi
shr edi, 3
push ebx
xor eax, dword [ecx]
sub esi, 8
mov ebx, eax
shr ebx, 0x10
movzx ebx, bl
mov edx, eax
shr edx, 0x18
mov edx, dword [edx*4 + 0x4151c0]
xor edx, dword [ebx*4 + 0x4155c0]
mov ebx, eax
shr ebx, 8
movzx ebx, bl
xor edx, dword [ebx*4 + 0x4159c0]
movzx ebx, byte [ecx + 6]
xor edx, dword [ebx*4 + 0x4145c0]
movzx ebx, byte [ecx + 5]
xor edx, dword [ebx*4 + 0x4149c0]
movzx ebx, byte [ecx + 4]
xor edx, dword [ebx*4 + 0x414dc0]
movzx ebx, byte [ecx + 7]
xor edx, dword [ebx*4 + 0x4141c0]
movzx eax, al
xor edx, dword [eax*4 + 0x415dc0]
add ecx, 8
dec edi
mov eax, edx
jne 0x402cf2
pop ebx
jmp 0x402d76
movzx edx, byte [ecx]
movzx edi, al
xor edx, edi
shr eax, 8
xor eax, dword [edx*4 + 0x4141c0]
dec esi
inc ecx
test esi, esi
ja 0x402d62
pop edi
pop esi
ret 0xc

Function at 0x40323e
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1000
call fcn.00401200
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 3
jne 0x4032d0
push esi
push edi
mov edi, 0x400
push edi
lea eax, [ebp - 0x800]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004068a7
lea eax, [ebp - 0x800]
push eax
call fcn.004098ab
mov esi, eax
lea eax, [ebp - 0x800]
push eax
call fcn.00407184
test al, al
jne 0x4032ac
lea eax, [ebp - 0x1000]
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_GetCurrentDirectoryW]
lea eax, [ebp - 0x1000]
push eax
call fcn.004098ab
lea esi, [esi + eax + 1]
mov eax, 0x104
pop edi
cmp esi, eax
pop esi
jbe 0x4032d0
push eax
push 0xaf
call fcn.00408b90
push eax
push 0x4122dc
call fcn.0040a7a9
add esp, 0xc
leave
ret 8
Function at 0x404af9
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x30c8
call fcn.00401200
push ebx
push esi
push edi
lea ecx, [ebp - 0x30c8]
call fcn.00403676
xor edi, edi
push edi
lea eax, [ebp - 0x30c8]
push eax
push dword [ebp + 8]
push edi
call fcn.0040612c
test al, al
je 0x404c9e
cmp word [ebp - 0x2448], di
je 0x404c9e
lea eax, [ebp - 0x2448]
push eax
lea eax, [ebp - 0x2cc8]
push eax
call fcn.004069ab
push eax
call fcn.0040db59
test eax, eax
je 0x404c9e
lea eax, [ebp - 0x2448]
push eax
push dword [ebp + 8]
call fcn.004069ab
push eax
call fcn.0040db59
test eax, eax
jne 0x404c9e
mov word [ebp - 0x800], ax
xor ebx, ebx
mov esi, 0x400
cmp word [ebp - 0x800], di
jne 0x404bef
push esi
push dword [ebp + 8]
lea eax, [ebp - 0x800]
push eax
call fcn.0040d222
push ebx
push str.rtmp_d
push esi
lea eax, [ebp - 0x800]
push eax
call fcn.004069ab
push eax
call fcn.00409b49
add esp, 0x10
lea eax, [ebp - 0x800]
push eax
push edi
call fcn.00405859
test al, al
je 0x404bd7
xor eax, eax
mov word [ebp - 0x800], ax
add ebx, 0x7b
cmp ebx, 0x2710
jl 0x404b88
cmp word [ebp - 0x800], di
je 0x404c9e
push esi
push dword [ebp + 8]
lea eax, [ebp - 0x1000]
push eax
call fcn.0040d222
lea eax, [ebp - 0x2cc8]
push eax
call fcn.004069ab
push eax
lea eax, [ebp - 0x1000]
push eax
call fcn.004069ab
push eax
call fcn.004098d5
mov esi, dword [sym.imp.KERNEL32.DLL_MoveFileW]
lea eax, [ebp - 0x800]
push eax
lea eax, [ebp - 0x1000]
push eax
call esi
test eax, eax
je 0x404c9e
lea ecx, [ebp - 0x1c28]
call fcn.00404f1e
push dword [ebp + 8]
xor bl, bl
push edi
call fcn.00405859
test al, al
jne 0x404c65
push 9
push dword [ebp + 8]
lea ecx, [ebp - 0x1c28]
push edi
call fcn.004052a2
mov bl, al
lea eax, [ebp - 0x1000]
push eax
lea eax, [ebp - 0x800]
push eax
call esi
test bl, bl
je 0x404c8f
lea ecx, [ebp - 0x1c28]
call fcn.00404f90
lea ecx, [ebp - 0x1c28]
call fcn.00405015
lea ecx, [ebp - 0x1c28]
call fcn.0040510a
mov al, 1
jmp 0x404ca0
xor al, al
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x40512d
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov dword [esi + 0xc20], ebx
cmp byte [esi + 0x1c], bl
jne 0x40514d
test byte [ebp + 0x10], 4
jne 0x40514d
xor al, al
jmp 0x40514f
mov al, 1
mov ecx, dword [ebp + 0x10]
shr ecx, 1
and cl, 1
movzx edi, cl
neg edi
sbb edi, edi
and edi, 0xc0000000
add edi, 0x80000000
test byte [ebp + 0x10], 1
je 0x405176
or edi, 0x40000000
mov dword [ebp + 0x10], 1
cmp al, bl
je 0x405188
mov dword [ebp + 0x10], 3
xor eax, eax
cmp byte [esi + 0x15], bl
setne al
dec eax
and eax, 0x8000000
mov dword [ebp - 4], eax
call fcn.004061fb
test eax, eax
je 0x4051c2
mov eax, dword [ebp + 0xc]
cmp eax, ebx
je 0x4051c2
cmp word [eax], bx
je 0x4051c2
push ebx
push dword [ebp - 4]
push 3
push ebx
push dword [ebp + 0x10]
push edi
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
jmp 0x4051d6
push ebx
push dword [ebp - 4]
push 3
push ebx
push dword [ebp + 0x10]
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4051f2
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 2
jne 0x4051f2
mov dword [esi + 0xc20], 1
cmp edi, 0xffffffff
setne byte [ebp + 0x13]
mov byte [esi + 0x12], bl
mov dword [esi + 0xc], ebx
mov byte [esi + 0x10], bl
cmp byte [ebp + 0x13], bl
je 0x40526a
mov dword [esi + 4], edi
mov edi, dword [ebp + 0xc]
cmp edi, ebx
je 0x40522b
push edi
call fcn.004098ab
lea eax, [eax + eax + 2]
push eax
push edi
lea eax, [esi + 0x41e]
push eax
call fcn.004095da
jmp 0x405234
xor eax, eax
mov word [esi + 0x41e], ax
cmp dword [ebp + 8], ebx
je 0x405251
push dword [ebp + 8]
call fcn.00409625
inc eax
push eax
push dword [ebp + 8]
lea eax, [esi + 0x1d]
push eax
call fcn.004095da
jmp 0x405260
push 0x1000000
lea eax, [esi + 0x1d]
push eax
push edi
call fcn.0040d921
push dword [esi + 4]
mov ecx, esi
call fcn.00404f69
mov al, byte [ebp + 0x13]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x405388
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, ecx
cmp dword [edi + 0xc], 1
mov esi, 0x4e20
jne 0x4053ae
cmp dword [ebp + 0xc], esi
jbe 0x4053a3
mov dword [ebp + 0xc], esi
push 0xfffffffffffffff6
call dword [sym.imp.KERNEL32.DLL_GetStdHandle]
mov dword [edi + 4], eax
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [edi + 4]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
jne 0x4053fe
mov ecx, edi
call fcn.004050e7
test al, al
je 0x4053e4
cmp dword [ebp + 0xc], esi
jbe 0x4053e4
push esi
push dword [ebp + 8]
mov ecx, edi
call fcn.00405388
jmp 0x405401
cmp dword [edi + 0xc], 1
jne 0x4053f9
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x6d
jne 0x4053f9
xor eax, eax
jmp 0x405401
or eax, 0xffffffff
jmp 0x405401
mov eax, dword [ebp - 4]
pop edi
pop esi
leave
ret 8
Function at 0x405659
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 0xc], 0
push esi
mov esi, ecx
je 0x405769
mov eax, dword [esi + 0xc]
test eax, eax
je 0x405686
dec eax
je 0x40567b
dec eax
jne 0x405686
push 0xfffffffffffffff4
jmp 0x40567d
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.DLL_GetStdHandle]
mov dword [esi + 4], eax
push ebx
mov ebx, dword [sym.imp.KERNEL32.DLL_WriteFile]
push edi
xor edi, edi
mov dword [ebp - 4], edi
cmp dword [esi + 0xc], edi
je 0x4056d5
cmp dword [ebp + 0xc], edi
jbe 0x4056f0
mov ecx, dword [ebp + 0xc]
sub ecx, edi
mov eax, 0x4000
cmp ecx, eax
jae 0x4056ad
mov eax, ecx
push 0
lea ecx, [ebp - 4]
push ecx
push eax
mov eax, dword [ebp + 8]
add eax, edi
push eax
push dword [esi + 4]
call ebx
dec eax
neg eax
sbb al, al
inc al
je 0x4056f0
add edi, 0x4000
cmp edi, dword [ebp + 0xc]
jb 0x40569d
jmp 0x4056ec
push edi
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 4]
call ebx
dec eax
neg eax
sbb al, al
inc al
test al, al
jne 0x405763
cmp byte [esi + 0x14], 0
je 0x405763
cmp dword [esi + 0xc], 0
jne 0x405763
push 0
lea eax, [esi + 0x41e]
push eax
lea eax, [esi + 0x1d]
mov edi, 0x416e7c
push eax
mov ecx, edi
call fcn.004033b3
test al, al
je 0x40574d
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 0xc]
jae 0x40568e
test eax, eax
jbe 0x40568e
push 0
mov ecx, esi
call fcn.00405045
mov ecx, dword [ebp - 4]
xor edi, edi
sub eax, ecx
sbb edx, edi
push edx
push eax
mov ecx, esi
call fcn.004055ba
jmp 0x40568e
lea eax, [esi + 0x41e]
push eax
lea eax, [esi + 0x1d]
push eax
push 0
push 0
mov ecx, edi
call fcn.0040363d
pop edi
mov byte [esi + 8], 1
pop ebx
pop esi
leave
ret 8

Function at 0x405859
Capabilities:
Check if file exists
Get file attributes

Disassembly:
call fcn.004061fb
test eax, eax
je 0x405883
mov eax, dword [esp + 8]
test eax, eax
je 0x405883
cmp word [eax], 0
je 0x405883
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov al, cl
jmp 0x4058a0
cmp dword [esp + 4], 0
je 0x40589e
push dword [esp + 4]
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40589e
xor eax, eax
inc eax
jmp 0x4058a0
xor eax, eax
ret 8

Function at 0x4058ce
Capabilities:
Get file attributes

Disassembly:
call fcn.004061fb
test eax, eax
je 0x4058ee
mov eax, dword [esp + 8]
test eax, eax
je 0x4058ee
cmp word [eax], 0
je 0x4058ee
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
jmp 0x4058f8
push dword [esp + 4]
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
ret 8

Function at 0x4058fb
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
call fcn.004061fb
test eax, eax
je 0x405920
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x405920
cmp word [eax], 0
je 0x405920
push dword [ebp + 0x10]
push eax
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesW]
jmp 0x405932
cmp dword [ebp + 8], 0
je 0x405939
push dword [ebp + 0x10]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesA]
test eax, eax
setne al
jmp 0x40593b
xor al, al
pop ebp
ret 0xc
Function at 0x405971
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
call fcn.004061fb
mov esi, dword [ebp + 0xc]
xor ebx, ebx
test eax, eax
je 0x405997
cmp esi, ebx
je 0x405997
cmp word [esi], bx
je 0x405997
push ebx
push esi
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryW]
jmp 0x4059a6
cmp dword [ebp + 8], ebx
je 0x4059d4
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryA]
cmp eax, ebx
je 0x4059bf
cmp byte [ebp + 0x10], bl
je 0x4059bb
push dword [ebp + 0x14]
push esi
push dword [ebp + 8]
call fcn.004058fb
xor eax, eax
jmp 0x4059d7
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 2
je 0x4059d4
cmp eax, 3
je 0x4059d4
xor eax, eax
inc eax
jmp 0x4059d7
push 2
pop eax
pop esi
pop ebx
pop ebp
ret 0x10
Function at 0x408c3e
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
push edi
push 0x20
push dword [ebp + 8]
lea eax, [ebp - 0x28]
push eax
mov dword [ebp - 8], ecx
call fcn.00409552
xor eax, eax
push 4
xor ecx, ecx
mov dword [ebp + 8], eax
xor ebx, ebx
pop edx
cmp eax, 0xa
jg 0x408d4c
cmp ebx, edx
jge 0x408c93
lea esi, [ebp + ebx*4 - 0x28]
mov dword [ebp - 4], esi
cmp ecx, edx
jge 0x408c95
mov edi, dword [ebp - 8]
lea esi, [ecx + eax*4]
lea edi, [edi + esi*4 + 0x14]
mov esi, dword [ebp - 4]
add dword [ebp - 4], edx
inc ebx
inc ecx
cmp ebx, edx
movsd dword es:[edi], dword [esi]
jl 0x408c78
cmp ecx, edx
jne 0x408c9d
inc eax
mov dword [ebp + 8], eax
xor ecx, ecx
cmp ebx, edx
jl 0x408c64
cmp eax, 0xa
jg 0x408d4c
mov dword [ebp - 4], 0x41beb0
movzx esi, byte [ebp - 0x1b]
mov al, byte [ebp - 0x28]
xor al, byte [esi + 0x41bfd0]
movzx esi, byte [ebp - 0x1a]
mov bl, byte [esi + 0x41bfd0]
movzx esi, byte [ebp - 0x19]
xor byte [ebp - 0x27], bl
mov bl, byte [esi + 0x41bfd0]
movzx esi, byte [ebp - 0x1c]
xor byte [ebp - 0x26], bl
mov bl, byte [esi + 0x41bfd0]
mov esi, dword [ebp - 4]
xor al, byte [esi]
xor byte [ebp - 0x25], bl
inc dword [ebp - 4]
push 3
mov byte [ebp - 0x28], al
lea eax, [ebp - 0x24]
pop edi
xor esi, esi
mov bl, byte [eax + esi - 4]
xor byte [eax + esi], bl
inc esi
cmp esi, edx
jl 0x408cf8
add eax, edx
dec edi
jne 0x408cf6
xor ebx, ebx
cmp dword [ebp + 8], 0xa
jg 0x408d4c
cmp ebx, edx
jge 0x408d35
lea eax, [ebp + ebx*4 - 0x28]
cmp ecx, edx
jge 0x408d37
mov esi, dword [ebp + 8]
mov edi, dword [ebp - 8]
lea esi, [ecx + esi*4]
lea edi, [edi + esi*4 + 0x14]
mov esi, eax
inc ebx
add eax, edx
inc ecx
cmp ebx, edx
movsd dword es:[edi], dword [esi]
jl 0x408d19
cmp ecx, edx
jne 0x408d3e
inc dword [ebp + 8]
xor ecx, ecx
cmp ebx, edx
jl 0x408d0b
cmp dword [ebp + 8], 0xa
jle 0x408cb1
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x408d53
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
add ecx, 0x24
push 4
mov dword [ebp - 4], ecx
mov dword [ebp - 0xc], 9
pop edi
xor eax, eax
mov ecx, dword [ebp - 4]
lea esi, [ebp + eax - 0x1c]
add ecx, 2
mov dword [ebp - 8], edi
movzx edx, byte [ecx + 1]
movzx ebx, byte [ecx - 1]
mov dl, byte [eax + edx*4 + 0x418eb0]
xor dl, byte [eax + ebx*4 + 0x4196b0]
movzx ebx, byte [ecx - 2]
xor dl, byte [eax + ebx*4 + 0x419ab0]
movzx ebx, byte [ecx]
xor dl, byte [eax + ebx*4 + 0x4192b0]
add ecx, edi
mov byte [esi], dl
add esi, edi
dec dword [ebp - 8]
jne 0x408d7b
inc eax
cmp eax, edi
jl 0x408d6e
push 0x10
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 4]
call fcn.00409552
add dword [ebp - 4], 0x10
dec dword [ebp - 0xc]
jne 0x408d6c
pop edi
pop esi
pop ebx
leave
ret
Function at 0x409da0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
cmp dword [0x4140b0], 0
push ebx
push esi
push edi
mov edi, 0x400
jne 0x409deb
push 0x64
lea eax, [ebp - 0x12c]
push eax
push 0xf
push edi
call dword [sym.imp.KERNEL32.DLL_GetLocaleInfoW]
mov ax, word [ebp - 0x12c]
mov word [0x428a50], ax
xor eax, eax
mov word [0x428a52], ax
mov dword [0x4140b0], 0x428a50
lea eax, [ebp - 0x64]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040d2a2
mov ebx, dword [ebp + 0x14]
mov esi, dword [ebp + 0x10]
push ebx
push esi
xor eax, eax
push 0x4140a0
mov word [esi], ax
lea eax, [ebp - 0x64]
push eax
push 0
push edi
call dword [sym.imp.KERNEL32.DLL_GetNumberFormatW]
xor eax, eax
pop edi
mov word [esi + ebx*2 - 2], ax
pop esi
pop ebx
leave
ret 0x10

Function at 0x40a16a
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
push ebx
push esi
push edi
push 0x68
push dword [0x422a00]
call dword [sym.imp.USER32.dll_GetDlgItem]
cmp byte [0x423b14], 0
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
mov edi, eax
mov dword [ebp - 4], edi
mov ebx, 0xb1
jne 0x40a1cc
mov ecx, dword [0x41c0d4]
call fcn.00410fd1
push 5
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
push 0xffffffffffffffff
push 0
push ebx
push edi
call esi
push 0x412408
push 0
push 0xc2
push edi
call esi
mov byte [0x423b14], 1
mov edi, 0x5f5e100
push edi
push edi
push ebx
push dword [ebp - 4]
call esi
lea eax, [ebp - 0x60]
push eax
push 0
push 0x43a
push dword [ebp - 4]
mov dword [ebp - 0x60], 0x5c
call esi
xor eax, eax
inc eax
cmp byte [ebp + 8], 0
mov byte [ebp - 0x47], 0
mov dword [ebp - 0x5c], eax
je 0x40a21c
mov ecx, dword [ebp - 0x58]
and ecx, 0xbfffffff
or ecx, eax
mov dword [ebp - 0x58], ecx
mov dword [ebp - 0x4c], 0xa0
mov dword [ebp - 0x5c], 0x40000001
lea ecx, [ebp - 0x60]
push ecx
push eax
push 0x444
push dword [ebp - 4]
call esi
push dword [ebp + 0xc]
push 0
push 0xc2
push dword [ebp - 4]
call esi
push edi
push edi
push ebx
push dword [ebp - 4]
call esi
cmp byte [ebp + 8], 0
je 0x40a266
mov eax, dword [ebp - 0x58]
and eax, 0xfffffffe
or eax, 0x40000000
mov dword [ebp - 0x58], eax
lea eax, [ebp - 0x60]
push eax
push 1
push 0x444
push dword [ebp - 4]
call esi
push 0x41242c
push 0
push 0xc2
push dword [ebp - 4]
call esi
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x40a9ec
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2000
call fcn.00401200
push ebx
mov ebx, ecx
push edi
mov edi, dword [ebp + 8]
test ebx, ebx
je 0x40aa07
mov byte [ebx], 0
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x40aa11
mov byte [eax], 0
test edi, edi
je 0x40aaba
movzx eax, word [edi]
test ax, ax
je 0x40aaba
push esi
xor esi, esi
xor ecx, ecx
movzx eax, ax
inc edi
inc edi
cmp ax, 0x3d
jne 0x40aa4a
cmp dword [ebp + 0xc], 0
je 0x40aa56
test esi, esi
jne 0x40aa56
test ebx, ebx
je 0x40aa46
mov byte [ebx], 1
mov esi, edx
jmp 0x40aa65
cmp ax, 0xd
je 0x40aa78
cmp ax, 0xa
je 0x40aa7a
mov word [edx], ax
mov eax, dword [ebp + 0x14]
inc edx
add eax, 0xfffffffe
inc edx
cmp ecx, eax
jg 0x40aa70
movzx eax, word [edi]
inc ecx
test ax, ax
jne 0x40aa2a
jmp 0x40aa7a
mov eax, dword [ebp + 0x10]
mov byte [eax], 1
jmp 0x40aa7a
inc edi
inc edi
mov ebx, dword [ebp + 0xc]
xor eax, eax
mov word [edx], ax
test ebx, ebx
je 0x40aab5
mov word [ebx], ax
test esi, esi
je 0x40aab5
push 0x1000
lea eax, [ebp - 0x2000]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_ExpandEnvironmentStringsW]
push dword [ebp + 0x14]
lea eax, [ebp - 0x2000]
push eax
push ebx
call fcn.0040d222
xor eax, eax
mov word [esi], ax
mov eax, edi
pop esi
jmp 0x40aabc
xor eax, eax
pop edi
pop ebx
leave
ret 0x10

Function at 0x40ab01
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x820
push 0x400
lea eax, [ebp - 0x820]
push eax
call fcn.00411a52
cmp byte [0x423b15], 0
jne 0x40ab8f
push 6
push dword [0x41409c]
lea eax, [ebp - 0x820]
push eax
call fcn.004069ab
push eax
call fcn.0040dc16
test eax, eax
jne 0x40ab8f
push 0x4124a8
call fcn.00411a3f
lea eax, [ebp - 0x820]
push eax
call fcn.004098ab
xor ecx, ecx
push 0x1e
mov word [ebp + eax*2 - 0x81e], cx
push ecx
lea eax, [ebp - 0x20]
push eax
call fcn.00409525
push 0x14
pop eax
mov word [ebp - 0x10], ax
lea eax, [ebp - 0x820]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x1c], 3
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
leave
ret

Function at 0x40ac5a
Capabilities:
Delete file

Disassembly:
push ebx
xor ebx, ebx
mov byte [0x4229f1], 1
cmp dword [0x422a00], ebx
je 0x40ac82
push 0x7d
call fcn.00408b90
push eax
push 2
push dword [0x422a00]
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
mov eax, dword [0x422a00]
mov dword [0x4229f4], ebx
mov byte [0x4229f0], 1
cmp eax, ebx
je 0x40ace3
push 1
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
cmp dword [0x423b24], ebx
jne 0x40acb1
cmp byte [0x423b14], bl
je 0x40acb9
cmp dword [0x4229f8], ebx
jne 0x40acdb
push ebx
push 1
push 0x111
push dword [0x422a00]
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x40acdb
push ebx
call dword [sym.imp.KERNEL32.DLL_Sleep]
call fcn.00409d61
cmp dword [0x422a00], ebx
jne 0x40accf
cmp byte [0x422a08], bl
pop ebx
je 0x40acf1
jmp fcn.0040ab01
ret