joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4011c0
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [0x43dba0], 0x24e1
mov eax, dword [0x43dba0]
sub eax, 0x24e1
mov dword [0x43dba0], eax
mov ecx, 1
test ecx, ecx
je 0x40126b
mov edx, dword [0x43dba0]
cmp edx, dword [ebp + 0xc]
jb 0x4011f7
jmp 0x40126b
cmp dword [0x43dba0], 0
jne 0x401215
push 0x263
push 0
call dword [sym.imp.USER32.dll_LoadIconW]
test eax, eax
je 0x401215
xor eax, eax
jmp 0x40126b
mov eax, dword [ebp + 8]
add eax, dword [0x43dba0]
mov ecx, dword [eax]
add ecx, dword [0x43dba0]
mov edx, dword [ebp + 8]
add edx, dword [0x43dba0]
mov dword [edx], ecx
mov dword [ebp - 4], 0x7d06f
mov eax, dword [0x43dba0]
mov ecx, dword [ebp - 4]
lea edx, [ecx + eax + 2]
push edx
mov eax, dword [ebp + 8]
add eax, dword [0x43dba0]
push eax
call fcn.00401270
add esp, 8
mov ecx, dword [0x43dba0]
add ecx, 4
mov dword [0x43dba0], ecx
jmp 0x4011dd
mov esp, ebp
pop ebp
ret
Function at 0x402c76
Capabilities:
Encode data using xor

Disassembly:
cmp dword [0x4141c4], 0
jne 0x402c84
call fcn.00402c4c
mov ecx, dword [esp + 8]
mov eax, dword [esp + 4]
push esi
mov esi, dword [esp + 0x10]
push edi
test esi, esi
jbe 0x402cb1
test cl, 7
je 0x402cb1
movzx edx, byte [ecx]
movzx edi, al
xor edx, edi
shr eax, 8
xor eax, dword [edx*4 + 0x4141c0]
dec esi
inc ecx
jmp 0x402c92
cmp esi, 8
jb 0x402d35
mov edi, esi
shr edi, 3
xor eax, dword [ecx]
add ecx, 8
movzx edx, al
shr eax, 8
xor eax, dword [edx*4 + 0x4141c0]
sub esi, 8
movzx edx, al
shr eax, 8
xor eax, dword [edx*4 + 0x4141c0]
movzx edx, al
shr eax, 8
xor eax, dword [edx*4 + 0x4141c0]
mov edx, eax
movzx eax, dl
mov eax, dword [eax*4 + 0x4141c0]
xor eax, dword [ecx - 4]
shr edx, 8
xor eax, edx
movzx edx, al
shr eax, 8
xor eax, dword [edx*4 + 0x4141c0]
movzx edx, al
shr eax, 8
xor eax, dword [edx*4 + 0x4141c0]
movzx edx, al
shr eax, 8
xor eax, dword [edx*4 + 0x4141c0]
movzx edx, al
shr eax, 8
xor eax, dword [edx*4 + 0x4141c0]
dec edi
jne 0x402cbb
xor edx, edx
test esi, esi
jbe 0x402d55
push ebx
movzx edi, byte [edx + ecx]
movzx ebx, al
xor edi, ebx
shr eax, 8
xor eax, dword [edi*4 + 0x4141c0]
inc edx
cmp edx, esi
jb 0x402d3c
pop ebx
pop edi
pop esi
ret 0xc

Function at 0x403219
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 0x4032ab
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.004074d1
lea eax, [ebp - 0x800]
push eax
call fcn.0040a4d4
mov esi, eax
lea eax, [ebp - 0x800]
push eax
call fcn.00407dae
test al, al
jne 0x403287
lea eax, [ebp - 0x1000]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea eax, [ebp - 0x1000]
push eax
call fcn.0040a4d4
lea esi, [esi + eax + 1]
mov eax, 0x104
pop edi
cmp esi, eax
pop esi
jbe 0x4032ab
push eax
push 0xaf
call fcn.004097be
push eax
push 0x4122dc
call fcn.0040b3d7
add esp, 0xc
leave
ret 8
Function at 0x404aa8
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.00403651
xor edi, edi
push edi
lea eax, [ebp - 0x30c0]
push eax
push dword [ebp + 8]
push edi
call fcn.0040605b
test al, al
je 0x404c4d
cmp word [ebp - 0x2440], di
je 0x404c4d
lea eax, [ebp - 0x2440]
push eax
lea eax, [ebp - 0x2cc0]
push eax
call fcn.004075d5
push eax
call fcn.0040e756
test eax, eax
je 0x404c4d
lea eax, [ebp - 0x2440]
push eax
push dword [ebp + 8]
call fcn.004075d5
push eax
call fcn.0040e756
test eax, eax
jne 0x404c4d
mov word [ebp - 0x800], ax
xor ebx, ebx
mov esi, 0x400
cmp word [ebp - 0x800], di
jne 0x404b9e
push esi
push dword [ebp + 8]
lea eax, [ebp - 0x800]
push eax
call fcn.0040de3b
push ebx
push str.rtmp_d
push esi
lea eax, [ebp - 0x800]
push eax
call fcn.004075d5
push eax
call fcn.0040a772
add esp, 0x10
lea eax, [ebp - 0x800]
push eax
push edi
call fcn.00405797
test al, al
je 0x404b86
xor eax, eax
mov word [ebp - 0x800], ax
add ebx, 0x7b
cmp ebx, 0x2710
jl 0x404b37
cmp word [ebp - 0x800], di
je 0x404c4d
push esi
push dword [ebp + 8]
lea eax, [ebp - 0x1000]
push eax
call fcn.0040de3b
lea eax, [ebp - 0x2cc0]
push eax
call fcn.004075d5
push eax
lea eax, [ebp - 0x1000]
push eax
call fcn.004075d5
push eax
call fcn.0040a4fe
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 0x404c4d
lea ecx, [ebp - 0x1c20]
call fcn.00404eb9
push dword [ebp + 8]
xor bl, bl
push edi
call fcn.00405797
test al, al
jne 0x404c14
push 1
push dword [ebp + 8]
lea ecx, [ebp - 0x1c20]
push edi
call fcn.0040521c
mov bl, al
lea eax, [ebp - 0x1000]
push eax
lea eax, [ebp - 0x800]
push eax
call esi
test bl, bl
je 0x404c3e
lea ecx, [ebp - 0x1c20]
call fcn.00404f24
lea ecx, [ebp - 0x1c20]
call fcn.00404fa9
lea ecx, [ebp - 0x1c20]
call fcn.0040509e
mov al, 1
jmp 0x404c4f
xor al, al
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x4050c1
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 0x4050db
mov byte [ebp + 0x10], 1
mov dword [ebp - 4], 0x80000000
cmp byte [ebp + 0x14], bl
je 0x4050ee
mov dword [ebp - 4], 0xc0000000
mov dword [ebp + 0x14], 1
cmp byte [ebp + 0x10], bl
je 0x405101
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.00406e32
test eax, eax
je 0x40513a
mov eax, dword [ebp + 0xc]
cmp eax, ebx
je 0x40513a
cmp word [eax], bx
je 0x40513a
push ebx
push edi
push 3
push ebx
push dword [ebp + 0x14]
push dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
jmp 0x40514e
push ebx
push edi
push 3
push ebx
push dword [ebp + 0x14]
push dword [ebp - 4]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40516a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x40516a
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 0x4051e2
mov dword [esi + 4], edi
mov edi, dword [ebp + 0xc]
cmp edi, ebx
je 0x4051a3
push edi
call fcn.0040a4d4
lea eax, [eax + eax + 2]
push eax
push edi
lea eax, [esi + 0x418]
push eax
call fcn.0040a203
jmp 0x4051ac
xor eax, eax
mov word [esi + 0x418], ax
cmp dword [ebp + 8], ebx
je 0x4051c9
push dword [ebp + 8]
call fcn.0040a24e
inc eax
push eax
push dword [ebp + 8]
lea eax, [esi + 0x17]
push eax
call fcn.0040a203
jmp 0x4051d8
push 0x1000000
lea eax, [esi + 0x17]
push eax
push edi
call fcn.0040e51e
push dword [esi + 4]
mov ecx, esi
call fcn.00404efd
mov al, byte [ebp + 0x13]
pop edi
pop esi
pop ebx
leave
ret 0x10

Function at 0x4052dd
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 0x405303
cmp dword [ebp + 0xc], esi
jbe 0x4052f8
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 0x405353
mov ecx, edi
call fcn.0040507b
test al, al
je 0x405339
cmp dword [ebp + 0xc], esi
jbe 0x405339
push esi
push dword [ebp + 8]
mov ecx, edi
call fcn.004052dd
jmp 0x405356
cmp dword [edi + 0xc], 1
jne 0x40534e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
jne 0x40534e
xor eax, eax
jmp 0x405356
or eax, 0xffffffff
jmp 0x405356
mov eax, dword [ebp - 4]
pop edi
pop esi
leave
ret 8
Function at 0x405597
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 0xc], 0
push esi
mov esi, ecx
je 0x4056a7
mov eax, dword [esi + 0xc]
test eax, eax
je 0x4055c4
dec eax
je 0x4055b9
dec eax
jne 0x4055c4
push 0xfffffffffffffff4
jmp 0x4055bb
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 0x405613
cmp dword [ebp + 0xc], edi
jbe 0x40562e
mov ecx, dword [ebp + 0xc]
sub ecx, edi
mov eax, 0x4000
cmp ecx, eax
jae 0x4055eb
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 0x40562e
add edi, 0x4000
cmp edi, dword [ebp + 0xc]
jb 0x4055db
jmp 0x40562a
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 0x4056a1
cmp byte [esi + 0x14], 0
je 0x4056a1
cmp dword [esi + 0xc], 0
jne 0x4056a1
push 0
lea eax, [esi + 0x418]
push eax
lea eax, [esi + 0x17]
mov edi, 0x414e7c
push eax
mov ecx, edi
call fcn.0040338e
test al, al
je 0x40568b
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 0xc]
jae 0x4055cc
test eax, eax
jbe 0x4055cc
push 0
mov ecx, esi
call fcn.00404fd9
mov ecx, dword [ebp - 4]
xor edi, edi
sub eax, ecx
sbb edx, edi
push edx
push eax
mov ecx, esi
call fcn.004054f8
jmp 0x4055cc
lea eax, [esi + 0x418]
push eax
lea eax, [esi + 0x17]
push eax
push 0
push 0
mov ecx, edi
call fcn.00403618
pop edi
mov byte [esi + 8], 1
pop ebx
pop esi
leave
ret 8

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

Disassembly:
call fcn.00406e32
test eax, eax
je 0x4057c1
mov eax, dword [esp + 8]
test eax, eax
je 0x4057c1
cmp word [eax], 0
je 0x4057c1
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov al, cl
jmp 0x4057de
cmp dword [esp + 4], 0
je 0x4057dc
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4057dc
xor eax, eax
inc eax
jmp 0x4057de
xor eax, eax
ret 8

Function at 0x40580c
Capabilities:
Get file attributes

Disassembly:
call fcn.00406e32
test eax, eax
je 0x40582c
mov eax, dword [esp + 8]
test eax, eax
je 0x40582c
cmp word [eax], 0
je 0x40582c
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
jmp 0x405836
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
ret 8

Function at 0x405839
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
call fcn.00406e32
test eax, eax
je 0x40585e
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x40585e
cmp word [eax], 0
je 0x40585e
push dword [ebp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
jmp 0x405870
cmp dword [ebp + 8], 0
je 0x405877
push dword [ebp + 0x10]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
setne al
jmp 0x405879
xor al, al
pop ebp
ret 0xc
Function at 0x4058af
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
call fcn.00406e32
mov esi, dword [ebp + 0xc]
xor ebx, ebx
test eax, eax
je 0x4058d5
cmp esi, ebx
je 0x4058d5
cmp word [esi], bx
je 0x4058d5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jmp 0x4058e4
cmp dword [ebp + 8], ebx
je 0x405912
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
cmp eax, ebx
je 0x4058fd
cmp byte [ebp + 0x10], bl
je 0x4058f9
push dword [ebp + 0x14]
push esi
push dword [ebp + 8]
call fcn.00405839
xor eax, eax
jmp 0x405915
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x405912
cmp eax, 3
je 0x405912
xor eax, eax
inc eax
jmp 0x405915
push 2
pop eax
pop esi
pop ebx
pop ebp
ret 0x10
Function at 0x4064b3
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
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 0x4064e5
cmp dword [ebp - 4], edi
jne 0x406526
call ebx
sub eax, dword [ebp - 0xc]
cmp eax, 0x2710
ja 0x406526
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x4064d2
push edi
push edi
push edi
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.USER32.dll_GetMessageW]
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
jmp 0x4064d2
mov eax, dword [esi]
lea ecx, [ebp - 4]
push ecx
push esi
call dword [eax + 0x48]
mov esi, eax
cmp esi, edi
jl 0x40657c
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
lea edx, [ebp - 8]
push edx
push 0x412afc
push eax
call dword [ecx]
mov esi, eax
cmp esi, edi
jl 0x406573
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x20]
mov esi, eax
cmp esi, edi
jl 0x40656a
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 0x406d20
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
mov al, byte [ebp + 0x18]
sub esp, 0x10
push ebx
push esi
push edi
push 0
push dword [ebp + 0xc]
mov esi, ecx
mov byte [esi + 0x21], al
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [ebp + 8]
mov ecx, esi
call fcn.00406cb9
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x10], eax
mov eax, dword [ebp + 0x14]
mov dword [esi + 0x14], eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ebx, dword [sym.imp.USER32.dll_GetParent]
push 2
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0xc]
call ebx
push eax
push 0
call dword [sym.imp.USER32.dll_MapWindowPoints]
mov eax, dword [esi + 4]
test eax, eax
je 0x406d87
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
mov eax, dword [ebp - 0x10]
mov edi, dword [ebp - 8]
push esi
push dword [esi]
sub edi, eax
push 0
push dword [ebp + 0xc]
lea ecx, [eax + 1]
dec edi
mov dword [ebp + 0x18], ecx
dec edi
call ebx
push eax
mov eax, dword [ebp - 4]
sub eax, dword [ebp - 0xc]
push eax
push edi
push dword [ebp - 0xc]
xor edi, edi
push dword [ebp + 0x18]
push 0x40000000
push edi
push str.RarHtmlClassName
push edi
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov dword [esi + 4], eax
cmp dword [esi + 0xc], edi
jne 0x406e08
cmp dword [ebp + 0xc], edi
je 0x406e2b
cmp dword [esi + 0x14], edi
jne 0x406e2b
mov eax, dword [esi + 0x10]
cmp eax, edi
je 0x406e2b
push eax
mov ecx, esi
call fcn.00406999
mov esi, eax
cmp esi, edi
je 0x406e2b
push 5
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_SetWindowTextW]
push esi
call fcn.0040a0cf
jmp 0x406e2b
cmp eax, edi
je 0x406e1e
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [esi + 4]
call dword [sym.imp.USER32.dll_UpdateWindow]
cmp dword [esi + 0x1c], 0x64
jbe 0x406e2b
mov ecx, esi
call fcn.004066ae
pop edi
pop esi
pop ebx
leave
ret 0x14
Function at 0x40986c
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.0040a180
xor eax, eax
push 4
xor ecx, ecx
mov dword [ebp + 8], eax
xor ebx, ebx
pop edx
cmp eax, 0xa
jg 0x40997a
cmp ebx, edx
jge 0x4098c1
lea esi, [ebp + ebx*4 - 0x28]
mov dword [ebp - 4], esi
cmp ecx, edx
jge 0x4098c3
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 0x4098a6
cmp ecx, edx
jne 0x4098cb
inc eax
mov dword [ebp + 8], eax
xor ecx, ecx
cmp ebx, edx
jl 0x409892
cmp eax, 0xa
jg 0x40997a
mov dword [ebp - 4], 0x419eb0
movzx esi, byte [ebp - 0x1b]
mov al, byte [ebp - 0x28]
xor al, byte [esi + 0x419fd0]
movzx esi, byte [ebp - 0x1a]
mov bl, byte [esi + 0x419fd0]
movzx esi, byte [ebp - 0x19]
xor byte [ebp - 0x27], bl
mov bl, byte [esi + 0x419fd0]
movzx esi, byte [ebp - 0x1c]
xor byte [ebp - 0x26], bl
mov bl, byte [esi + 0x419fd0]
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 0x409926
add eax, edx
dec edi
jne 0x409924
xor ebx, ebx
cmp dword [ebp + 8], 0xa
jg 0x40997a
cmp ebx, edx
jge 0x409963
lea eax, [ebp + ebx*4 - 0x28]
cmp ecx, edx
jge 0x409965
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 0x409947
cmp ecx, edx
jne 0x40996c
inc dword [ebp + 8]
xor ecx, ecx
cmp ebx, edx
jl 0x409939
cmp dword [ebp + 8], 0xa
jle 0x4098df
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x409981
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 + 0x416eb0]
xor dl, byte [eax + ebx*4 + 0x4176b0]
movzx ebx, byte [ecx - 2]
xor dl, byte [eax + ebx*4 + 0x417ab0]
movzx ebx, byte [ecx]
xor dl, byte [eax + ebx*4 + 0x4172b0]
add ecx, edi
mov byte [esi], dl
add esi, edi
dec dword [ebp - 8]
jne 0x4099a9
inc eax
cmp eax, edi
jl 0x40999c
push 0x10
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 4]
call fcn.0040a180
add dword [ebp - 4], 0x10
dec dword [ebp - 0xc]
jne 0x40999a
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40a9ce
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 0x40aa19
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 [0x426a50], ax
xor eax, eax
mov word [0x426a52], ax
mov dword [0x4140b0], 0x426a50
lea eax, [ebp - 0x64]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040debb
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 0x40ad98
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
push ebx
push esi
push edi
push 0x68
push dword [0x420a00]
call dword [sym.imp.USER32.dll_GetDlgItem]
cmp byte [0x421b14], 0
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
mov edi, eax
mov dword [ebp - 4], edi
mov ebx, 0xb1
jne 0x40adfa
mov ecx, dword [0x41a0d4]
call fcn.0040649c
push 5
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
push 0xffffffffffffffff
push 0
push ebx
push edi
call esi
push 0x4126ac
push 0
push 0xc2
push edi
call esi
mov byte [0x421b14], 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 0x40ae4a
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 0x40ae94
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 0x4126d0
push 0
push 0xc2
push dword [ebp - 4]
call esi
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x40b61a
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 0x40b635
mov byte [ebx], 0
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x40b63f
mov byte [eax], 0
test edi, edi
je 0x40b6e8
movzx eax, word [edi]
test ax, ax
je 0x40b6e8
push esi
xor esi, esi
xor ecx, ecx
movzx eax, ax
inc edi
inc edi
cmp ax, 0x3d
jne 0x40b678
cmp dword [ebp + 0xc], 0
je 0x40b684
test esi, esi
jne 0x40b684
test ebx, ebx
je 0x40b674
mov byte [ebx], 1
mov esi, edx
jmp 0x40b693
cmp ax, 0xd
je 0x40b6a6
cmp ax, 0xa
je 0x40b6a8
mov word [edx], ax
mov eax, dword [ebp + 0x14]
inc edx
add eax, 0xfffffffe
inc edx
cmp ecx, eax
jg 0x40b69e
movzx eax, word [edi]
inc ecx
test ax, ax
jne 0x40b658
jmp 0x40b6a8
mov eax, dword [ebp + 0x10]
mov byte [eax], 1
jmp 0x40b6a8
inc edi
inc edi
mov ebx, dword [ebp + 0xc]
xor eax, eax
mov word [edx], ax
test ebx, ebx
je 0x40b6e3
mov word [ebx], ax
test esi, esi
je 0x40b6e3
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.0040de3b
xor eax, eax
mov word [esi], ax
mov eax, edi
pop esi
jmp 0x40b6ea
xor eax, eax
pop edi
pop ebx
leave
ret 0x10

Function at 0x40b72f
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x820
push 0x400
lea eax, [ebp - 0x820]
push eax
call fcn.004119a8
cmp byte [0x421b15], 0
jne 0x40b7bd
push 6
push dword [0x41409c]
lea eax, [ebp - 0x820]
push eax
call fcn.004075d5
push eax
call fcn.0040e813
test eax, eax
jne 0x40b7bd
push 0x41274c
call fcn.00411995
lea eax, [ebp - 0x820]
push eax
call fcn.0040a4d4
xor ecx, ecx
push 0x1e
mov word [ebp + eax*2 - 0x81e], cx
push ecx
lea eax, [ebp - 0x20]
push eax
call fcn.0040a153
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 0x40b888
Capabilities:
Delete file

Disassembly:
push ebx
xor ebx, ebx
mov byte [0x4209f1], 1
cmp dword [0x420a00], ebx
je 0x40b8b0
push 0x7d
call fcn.004097be
push eax
push 2
push dword [0x420a00]
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
mov eax, dword [0x420a00]
mov dword [0x4209f4], ebx
mov byte [0x4209f0], 1
cmp eax, ebx
je 0x40b911
push 1
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
cmp dword [0x421b24], ebx
jne 0x40b8df
cmp byte [0x421b14], bl
je 0x40b8e7
cmp dword [0x4209f8], ebx
jne 0x40b909
push ebx
push 1
push 0x111
push dword [0x420a00]
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x40b909
push ebx
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.0040a98f
cmp dword [0x420a00], ebx
jne 0x40b8fd
cmp byte [0x420a08], bl
pop ebx
je 0x40b91f
jmp fcn.0040b72f
ret