joyce8/EMBER2024-capa huggingface dataset:
Function at 0x455378
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x4fa580]
cmp dword [eax + 0x30], 0
je 0x455422
cmp dword [ebx + 0x94], 0
jne 0x45541c
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x455308
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x45541c
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x4553e2
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x45541c
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.00417bc0
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x4553f1
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x45613c
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xac], 0
je 0x456171
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.004047d0
jmp 0x45617e
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404734
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x4574e0
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x45754e
mov eax, esi
call fcn.00441e9c
test al, al
je 0x45754e
mov eax, dword [ebx + 0x84]
call fcn.00441b40
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x45754e
mov eax, dword [ebx + 0x84]
mov edx, dword [eax]
call dword [edx + 0xf0]
test al, al
je 0x457542
push 0
mov eax, dword [ebx + 0x84]
call fcn.00441b40
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x84]
call fcn.0043a04c
jmp 0x45754e
mov cl, 1
mov edx, dword [ebx + 0x74]
mov eax, ebx
call fcn.0045731c
pop esi
pop ebx
ret
Function at 0x4017e9
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x401828
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x401828
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x401828
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x401828
cmp dword [ecx + 0x74], 0xe
jbe 0x401828
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x407966
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4155f8
push 0x4155f0
push str.FlsAlloc
push 0x1f
call fcn.00407825
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40799a
push dword [ebp + 8]
mov ecx, esi
call dword [0x414118]
call esi
jmp 0x4079a0
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4079e4
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x415608
push 0x415600
push str.FlsGetValue
push 0x21
call fcn.00407825
mov esi, eax
add esp, 0x10
test esi, esi
je 0x407a1b
push dword [ebp + 8]
mov ecx, esi
call dword [0x414118]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x407a23
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x415610
push 0x415608
push str.FlsSetValue
push 0x22
call fcn.00407825
mov esi, eax
add esp, 0x10
test esi, esi
je 0x407a5d
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x414118]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x40afa8
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x40b045
push ebx
push esi
call fcn.0040af71
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0040af05
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x40aff2
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40b044
push edi
push eax
call fcn.00408115
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x40b012
call fcn.004076b8
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40b043
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0040af05
add esp, 0x20
test eax, eax
jne 0x40b031
push edi
call fcn.004076b8
jmp 0x40b039
push ebx
call fcn.004076b8
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret
Function at 0x413100
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41312d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41312d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x402de2
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x4151c4], 0
jne 0x402df0
call fcn.00402db8
mov ecx, dword [esp + 8]
mov eax, dword [esp + 4]
push esi
mov esi, dword [esp + 0x10]
push edi
test esi, esi
jbe 0x402e1d
test cl, 7
je 0x402e1d
movzx edx, byte [ecx]
movzx edi, al
xor edx, edi
shr eax, 8
xor eax, dword [edx*4 + 0x4151c0]
dec esi
inc ecx
jmp 0x402dfe
cmp esi, 8
jb 0x402ea1
mov edi, esi
shr edi, 3
xor eax, dword [ecx]
add ecx, 8
movzx edx, al
shr eax, 8
xor eax, dword [edx*4 + 0x4151c0]
sub esi, 8
movzx edx, al
shr eax, 8
xor eax, dword [edx*4 + 0x4151c0]
movzx edx, al
shr eax, 8
xor eax, dword [edx*4 + 0x4151c0]
mov edx, eax
movzx eax, dl
mov eax, dword [eax*4 + 0x4151c0]
xor eax, dword [ecx - 4]
shr edx, 8
xor eax, edx
movzx edx, al
shr eax, 8
xor eax, dword [edx*4 + 0x4151c0]
movzx edx, al
shr eax, 8
xor eax, dword [edx*4 + 0x4151c0]
movzx edx, al
shr eax, 8
xor eax, dword [edx*4 + 0x4151c0]
movzx edx, al
shr eax, 8
xor eax, dword [edx*4 + 0x4151c0]
dec edi
jne 0x402e27
xor edx, edx
test esi, esi
jbe 0x402ec1
push ebx
movzx edi, byte [edx + ecx]
movzx ebx, al
xor edi, ebx
shr eax, 8
xor eax, dword [edi*4 + 0x4151c0]
inc edx
cmp edx, esi
jb 0x402ea8
pop ebx
pop edi
pop esi
ret 0xc

Function at 0x403385
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1000
call fcn.00401200
call dword [0x413184]
cmp eax, 3
jne 0x403417
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.00407905
lea eax, [ebp - 0x800]
push eax
call fcn.0040af5b
mov esi, eax
lea eax, [ebp - 0x800]
push eax
call fcn.004081e2
test al, al
jne 0x4033f3
lea eax, [ebp - 0x1000]
push eax
push edi
call dword [0x41315c]
lea eax, [ebp - 0x1000]
push eax
call fcn.0040af5b
lea esi, [esi + eax + 1]
mov eax, 0x104
pop edi
cmp esi, eax
pop esi
jbe 0x403417
push eax
push 0xaf
call fcn.0040a245
push eax
push 0x413300
call fcn.0040be5e
add esp, 0xc
leave
ret 8
Function at 0x405062
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x30c0
call fcn.00401200
push ebx
push esi
push edi
lea ecx, [ebp - 0x30c0]
call fcn.0040387e
xor edi, edi
push edi
lea eax, [ebp - 0x30c0]
push eax
push dword [ebp + 8]
push edi
call fcn.00406651
test al, al
je 0x405207
cmp word [ebp - 0x2440], di
je 0x405207
lea eax, [ebp - 0x2440]
push eax
lea eax, [ebp - 0x2cc0]
push eax
call fcn.00407a09
push eax
call fcn.0040f3a6
test eax, eax
je 0x405207
lea eax, [ebp - 0x2440]
push eax
push dword [ebp + 8]
call fcn.00407a09
push eax
call fcn.0040f3a6
test eax, eax
jne 0x405207
mov word [ebp - 0x800], ax
xor ebx, ebx
mov esi, 0x400
cmp word [ebp - 0x800], di
jne 0x405158
push esi
push dword [ebp + 8]
lea eax, [ebp - 0x800]
push eax
call fcn.0040ea2b
push ebx
push str.rtmp_d
push esi
lea eax, [ebp - 0x800]
push eax
call fcn.00407a09
push eax
call fcn.0040b1f9
add esp, 0x10
lea eax, [ebp - 0x800]
push eax
push edi
call fcn.00405d8d
test al, al
je 0x405140
xor eax, eax
mov word [ebp - 0x800], ax
add ebx, 0x7b
cmp ebx, 0x2710
jl 0x4050f1
cmp word [ebp - 0x800], di
je 0x405207
push esi
push dword [ebp + 8]
lea eax, [ebp - 0x1000]
push eax
call fcn.0040ea2b
lea eax, [ebp - 0x2cc0]
push eax
call fcn.00407a09
push eax
lea eax, [ebp - 0x1000]
push eax
call fcn.00407a09
push eax
call fcn.0040af85
mov esi, dword [0x413170]
lea eax, [ebp - 0x800]
push eax
lea eax, [ebp - 0x1000]
push eax
call esi
test eax, eax
je 0x405207
lea ecx, [ebp - 0x1c20]
call fcn.00405473
push dword [ebp + 8]
xor bl, bl
push edi
call fcn.00405d8d
test al, al
jne 0x4051ce
push 1
push dword [ebp + 8]
lea ecx, [ebp - 0x1c20]
push edi
call fcn.004057d6
mov bl, al
lea eax, [ebp - 0x1000]
push eax
lea eax, [ebp - 0x800]
push eax
call esi
test bl, bl
je 0x4051f8
lea ecx, [ebp - 0x1c20]
call fcn.004054de
lea ecx, [ebp - 0x1c20]
call fcn.00405563
lea ecx, [ebp - 0x1c20]
call fcn.00405658
mov al, 1
jmp 0x405209
xor al, al
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x40567b
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 + 0xc18], ebx
cmp byte [esi + 0x16], bl
je 0x405695
mov byte [ebp + 0x10], 1
mov dword [ebp - 4], 0x80000000
cmp byte [ebp + 0x14], bl
je 0x4056a8
mov dword [ebp - 4], 0xc0000000
mov dword [ebp + 0x14], 1
cmp byte [ebp + 0x10], bl
je 0x4056bb
mov dword [ebp + 0x14], 3
xor eax, eax
cmp byte [esi + 0x15], bl
setne al
dec eax
and eax, 0x8000000
mov edi, eax
call fcn.00407266
test eax, eax
je 0x4056f4
mov eax, dword [ebp + 0xc]
cmp eax, ebx
je 0x4056f4
cmp word [eax], bx
je 0x4056f4
push ebx
push edi
push 3
push ebx
push dword [ebp + 0x14]
push dword [ebp - 4]
push eax
call dword [0x413158]
jmp 0x405708
push ebx
push edi
push 3
push ebx
push dword [ebp + 0x14]
push dword [ebp - 4]
push dword [ebp + 8]
call dword [0x413160]
mov edi, eax
cmp edi, 0xffffffff
jne 0x405724
call dword [0x413184]
cmp eax, 2
jne 0x405724
mov dword [esi + 0xc18], 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 0x40579c
mov dword [esi + 4], edi
mov edi, dword [ebp + 0xc]
cmp edi, ebx
je 0x40575d
push edi
call fcn.0040af5b
lea eax, [eax + eax + 2]
push eax
push edi
lea eax, [esi + 0x418]
push eax
call fcn.0040ac8a
jmp 0x405766
xor eax, eax
mov word [esi + 0x418], ax
cmp dword [ebp + 8], ebx
je 0x405783
push dword [ebp + 8]
call fcn.0040acd5
inc eax
push eax
push dword [ebp + 8]
lea eax, [esi + 0x17]
push eax
call fcn.0040ac8a
jmp 0x405792
push 0x1000000
lea eax, [esi + 0x17]
push eax
push edi
call fcn.0040f16e
push dword [esi + 4]
mov ecx, esi
call fcn.004054b7
mov al, byte [ebp + 0x13]
pop edi
pop esi
pop ebx
leave
ret 0x10

Function at 0x4058d3
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 0x4058f9
cmp dword [ebp + 0xc], esi
jbe 0x4058ee
mov dword [ebp + 0xc], esi
push 0xfffffffffffffff6
call dword [0x413150]
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 [0x413154]
test eax, eax
jne 0x405949
mov ecx, edi
call fcn.00405635
test al, al
je 0x40592f
cmp dword [ebp + 0xc], esi
jbe 0x40592f
push esi
push dword [ebp + 8]
mov ecx, edi
call fcn.004058d3
jmp 0x40594c
cmp dword [edi + 0xc], 1
jne 0x405944
call dword [0x413184]
cmp eax, 0x6d
jne 0x405944
xor eax, eax
jmp 0x40594c
or eax, 0xffffffff
jmp 0x40594c
mov eax, dword [ebp - 4]
pop edi
pop esi
leave
ret 8
Function at 0x405b8d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 0xc], 0
push esi
mov esi, ecx
je 0x405c9d
mov eax, dword [esi + 0xc]
test eax, eax
je 0x405bba
dec eax
je 0x405baf
dec eax
jne 0x405bba
push 0xfffffffffffffff4
jmp 0x405bb1
push 0xfffffffffffffff5
call dword [0x413150]
mov dword [esi + 4], eax
push ebx
mov ebx, dword [0x41314c]
push edi
xor edi, edi
mov dword [ebp - 4], edi
cmp dword [esi + 0xc], edi
je 0x405c09
cmp dword [ebp + 0xc], edi
jbe 0x405c24
mov ecx, dword [ebp + 0xc]
sub ecx, edi
mov eax, 0x4000
cmp ecx, eax
jae 0x405be1
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 0x405c24
add edi, 0x4000
cmp edi, dword [ebp + 0xc]
jb 0x405bd1
jmp 0x405c20
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 0x405c97
cmp byte [esi + 0x14], 0
je 0x405c97
cmp dword [esi + 0xc], 0
jne 0x405c97
push 0
lea eax, [esi + 0x418]
push eax
lea eax, [esi + 0x17]
mov edi, 0x415e7c
push eax
mov ecx, edi
call fcn.004034fb
test al, al
je 0x405c81
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 0xc]
jae 0x405bc2
test eax, eax
jbe 0x405bc2
push 0
mov ecx, esi
call fcn.00405593
mov ecx, dword [ebp - 4]
xor edi, edi
sub eax, ecx
sbb edx, edi
push edx
push eax
mov ecx, esi
call fcn.00405aee
jmp 0x405bc2
lea eax, [esi + 0x418]
push eax
lea eax, [esi + 0x17]
push eax
push 0
push 0
mov ecx, edi
call fcn.00403785
pop edi
mov byte [esi + 8], 1
pop ebx
pop esi
leave
ret 8

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

Disassembly:
call fcn.00407266
test eax, eax
je 0x405db7
mov eax, dword [esp + 8]
test eax, eax
je 0x405db7
cmp word [eax], 0
je 0x405db7
push eax
call dword [0x413144]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov al, cl
jmp 0x405dd4
cmp dword [esp + 4], 0
je 0x405dd2
push dword [esp + 4]
call dword [0x413148]
cmp eax, 0xffffffff
je 0x405dd2
xor eax, eax
inc eax
jmp 0x405dd4
xor eax, eax
ret 8

Function at 0x405e02
Capabilities:
Get file attributes

Disassembly:
call fcn.00407266
test eax, eax
je 0x405e22
mov eax, dword [esp + 8]
test eax, eax
je 0x405e22
cmp word [eax], 0
je 0x405e22
push eax
call dword [0x413144]
jmp 0x405e2c
push dword [esp + 4]
call dword [0x413148]
ret 8

Function at 0x405e2f
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
call fcn.00407266
test eax, eax
je 0x405e54
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x405e54
cmp word [eax], 0
je 0x405e54
push dword [ebp + 0x10]
push eax
call dword [0x4130d0]
jmp 0x405e66
cmp dword [ebp + 8], 0
je 0x405e6d
push dword [ebp + 0x10]
push dword [ebp + 8]
call dword [0x413140]
test eax, eax
setne al
jmp 0x405e6f
xor al, al
pop ebp
ret 0xc
Function at 0x405ea5
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
call fcn.00407266
mov esi, dword [ebp + 0xc]
xor ebx, ebx
test eax, eax
je 0x405ecb
cmp esi, ebx
je 0x405ecb
cmp word [esi], bx
je 0x405ecb
push ebx
push esi
call dword [0x413074]
jmp 0x405eda
cmp dword [ebp + 8], ebx
je 0x405f08
push ebx
push dword [ebp + 8]
call dword [0x413070]
cmp eax, ebx
je 0x405ef3
cmp byte [ebp + 0x10], bl
je 0x405eef
push dword [ebp + 0x14]
push esi
push dword [ebp + 8]
call fcn.00405e2f
xor eax, eax
jmp 0x405f0b
call dword [0x413184]
cmp eax, 2
je 0x405f08
cmp eax, 3
je 0x405f08
xor eax, eax
inc eax
jmp 0x405f0b
push 2
pop eax
pop esi
pop ebx
pop ebp
ret 0x10
Function at 0x406aa9
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
mov ebx, dword [0x41308c]
push esi
push edi
xor edi, edi
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
call ebx
mov esi, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov eax, dword [esi]
lea ecx, [ebp - 4]
push ecx
push esi
call dword [eax + 0x48]
test eax, eax
jl 0x406adb
cmp dword [ebp - 4], edi
jne 0x406b1c
call ebx
sub eax, dword [ebp - 0xc]
cmp eax, 0x2710
ja 0x406b1c
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x28]
push eax
call dword [0x413240]
test eax, eax
je 0x406ac8
push edi
push edi
push edi
lea eax, [ebp - 0x28]
push eax
call dword [0x413244]
lea eax, [ebp - 0x28]
push eax
call dword [0x413248]
lea eax, [ebp - 0x28]
push eax
call dword [0x41324c]
jmp 0x406ac8
mov eax, dword [esi]
lea ecx, [ebp - 4]
push ecx
push esi
call dword [eax + 0x48]
mov esi, eax
cmp esi, edi
jl 0x406b72
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
lea edx, [ebp - 8]
push edx
push 0x413b6c
push eax
call dword [ecx]
mov esi, eax
cmp esi, edi
jl 0x406b69
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x20]
mov esi, eax
cmp esi, edi
jl 0x406b60
mov eax, dword [ebp - 8]
push dword [ebp + 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov esi, eax
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor eax, eax
cmp esi, edi
pop edi
pop esi
setge al
pop ebx
leave
ret 8
Function at 0x40a2f3
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

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.0040ac07
xor eax, eax
push 4
xor ecx, ecx
mov dword [ebp + 8], eax
xor ebx, ebx
pop edx
cmp eax, 0xa
jg 0x40a401
cmp ebx, edx
jge 0x40a348
lea esi, [ebp + ebx*4 - 0x28]
mov dword [ebp - 4], esi
cmp ecx, edx
jge 0x40a34a
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 0x40a32d
cmp ecx, edx
jne 0x40a352
inc eax
mov dword [ebp + 8], eax
xor ecx, ecx
cmp ebx, edx
jl 0x40a319
cmp eax, 0xa
jg 0x40a401
mov dword [ebp - 4], 0x41aeb0
movzx esi, byte [ebp - 0x1b]
mov al, byte [ebp - 0x28]
xor al, byte [esi + 0x41afd0]
movzx esi, byte [ebp - 0x1a]
mov bl, byte [esi + 0x41afd0]
movzx esi, byte [ebp - 0x19]
xor byte [ebp - 0x27], bl
mov bl, byte [esi + 0x41afd0]
movzx esi, byte [ebp - 0x1c]
xor byte [ebp - 0x26], bl
mov bl, byte [esi + 0x41afd0]
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 0x40a3ad
add eax, edx
dec edi
jne 0x40a3ab
xor ebx, ebx
cmp dword [ebp + 8], 0xa
jg 0x40a401
cmp ebx, edx
jge 0x40a3ea
lea eax, [ebp + ebx*4 - 0x28]
cmp ecx, edx
jge 0x40a3ec
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 0x40a3ce
cmp ecx, edx
jne 0x40a3f3
inc dword [ebp + 8]
xor ecx, ecx
cmp ebx, edx
jl 0x40a3c0
cmp dword [ebp + 8], 0xa
jle 0x40a366
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x40a408
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 + 0x417eb0]
xor dl, byte [eax + ebx*4 + 0x4186b0]
movzx ebx, byte [ecx - 2]
xor dl, byte [eax + ebx*4 + 0x418ab0]
movzx ebx, byte [ecx]
xor dl, byte [eax + ebx*4 + 0x4182b0]
add ecx, edi
mov byte [esi], dl
add esi, edi
dec dword [ebp - 8]
jne 0x40a430
inc eax
cmp eax, edi
jl 0x40a423
push 0x10
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 4]
call fcn.0040ac07
add dword [ebp - 4], 0x10
dec dword [ebp - 0xc]
jne 0x40a421
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40b455
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
cmp dword [0x4150b0], 0
push ebx
push esi
push edi
mov edi, 0x400
jne 0x40b4a0
push 0x64
lea eax, [ebp - 0x12c]
push eax
push 0xf
push edi
call dword [0x4130cc]
mov ax, word [ebp - 0x12c]
mov word [0x427a50], ax
xor eax, eax
mov word [0x427a52], ax
mov dword [0x4150b0], 0x427a50
lea eax, [ebp - 0x64]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040eaab
mov ebx, dword [ebp + 0x14]
mov esi, dword [ebp + 0x10]
push ebx
push esi
xor eax, eax
push 0x4150a0
mov word [esi], ax
lea eax, [ebp - 0x64]
push eax
push 0
push edi
call dword [0x413188]
xor eax, eax
pop edi
mov word [esi + ebx*2 - 2], ax
pop esi
pop ebx
leave
ret 0x10

Function at 0x40c1d0
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 0x40c1eb
mov byte [ebx], 0
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x40c1f5
mov byte [eax], 0
test edi, edi
je 0x40c29e
movzx eax, word [edi]
test ax, ax
je 0x40c29e
push esi
xor esi, esi
xor ecx, ecx
movzx eax, ax
inc edi
inc edi
cmp ax, 0x3d
jne 0x40c22e
cmp dword [ebp + 0xc], 0
je 0x40c23a
test esi, esi
jne 0x40c23a
test ebx, ebx
je 0x40c22a
mov byte [ebx], 1
mov esi, edx
jmp 0x40c249
cmp ax, 0xd
je 0x40c25c
cmp ax, 0xa
je 0x40c25e
mov word [edx], ax
mov eax, dword [ebp + 0x14]
inc edx
add eax, 0xfffffffe
inc edx
cmp ecx, eax
jg 0x40c254
movzx eax, word [edi]
inc ecx
test ax, ax
jne 0x40c20e
jmp 0x40c25e
mov eax, dword [ebp + 0x10]
mov byte [eax], 1
jmp 0x40c25e
inc edi
inc edi
mov ebx, dword [ebp + 0xc]
xor eax, eax
mov word [edx], ax
test ebx, ebx
je 0x40c299
mov word [ebx], ax
test esi, esi
je 0x40c299
push 0x1000
lea eax, [ebp - 0x2000]
push eax
push esi
call dword [0x4130e8]
push dword [ebp + 0x14]
lea eax, [ebp - 0x2000]
push eax
push ebx
call fcn.0040ea2b
xor eax, eax
mov word [esi], ax
mov eax, edi
pop esi
jmp 0x40c2a0
xor eax, eax
pop edi
pop ebx
leave
ret 0x10

Function at 0x40c2e5
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x820
push 0x400
lea eax, [ebp - 0x820]
push eax
call fcn.00412922
cmp byte [0x422b15], 0
jne 0x40c373
push 6
push dword [0x41509c]
lea eax, [ebp - 0x820]
push eax
call fcn.00407a09
push eax
call fcn.0040f463
test eax, eax
jne 0x40c373
push 0x4137bc
call fcn.0041290f
lea eax, [ebp - 0x820]
push eax
call fcn.0040af5b
xor ecx, ecx
push 0x1e
mov word [ebp + eax*2 - 0x81e], cx
push ecx
lea eax, [ebp - 0x20]
push eax
call fcn.0040abda
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 [0x4131a0]
leave
ret