joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41a123
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 0x41a1c0
push ebx
push esi
call fcn.0041a0ec
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.00418dde
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x41a16d
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41a1bf
push edi
push eax
call fcn.004174aa
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x41a18d
call fcn.00414941
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41a1be
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00418dde
add esp, 0x20
test eax, eax
jne 0x41a1ac
push edi
call fcn.00414941
jmp 0x41a1b4
push ebx
call fcn.00414941
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 0x41c96b
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.0041383f
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x41c9da
cmp esi, dword [ebp - 4]
je 0x41c9d5
cmp dword [ebp + 0xc], 0
je 0x41c9d5
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x41c9b2
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.0041c4bd
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x41c9dc
xor eax, eax
inc eax
jmp 0x41c9dc
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x41ca41
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x42c080]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.0041383f
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.0041383f
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x41cab8
cmp word [ecx], dx
je 0x41cab8
mov eax, dword [0x425a44]
push edi
dec eax
push eax
push 0x425930
call fcn.0041c9e0
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x41cb2b
cmp word [eax], dx
je 0x41cb2b
mov eax, dword [edi]
test eax, eax
je 0x41cadc
cmp word [eax], dx
je 0x41cadc
lea eax, [ebp - 0x10]
push eax
call fcn.0041c3c3
jmp 0x41cae5
lea eax, [ebp - 0x10]
push eax
call fcn.0041c45e
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x41cb55
mov eax, dword [0x42592c]
push dword [ebp - 0x14]
dec eax
push eax
push 0x425620
call fcn.0041c9e0
add esp, 0xc
test al, al
je 0x41cb55
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x41cb20
cmp word [eax], di
je 0x41cb20
lea eax, [ebp - 0x10]
push eax
call fcn.0041c3c3
pop ecx
jmp 0x41cb57
lea eax, [ebp - 0x10]
push eax
call fcn.0041c45e
jmp 0x41cb1d
mov eax, dword [edi]
test eax, eax
je 0x41cb42
cmp word [eax], dx
je 0x41cb42
lea eax, [ebp - 0x10]
push eax
call fcn.0041c378
pop ecx
jmp 0x41cb55
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x41cc20
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.0041c865
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x41cc20
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x41cc20
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x41cc20
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x41cbad
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.004153b9
test ebx, ebx
je 0x41cc1b
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.004153b9
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x41cc20
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x41cc20
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.0041ef07
add esp, 0x10
xor eax, eax
inc eax
jmp 0x41cc22
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00408efb
leave
ret
Function at 0x41f365
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.0041f2e1
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x41f4d4
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x41f4d4
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x41f489
jg 0x41f3c1
test eax, eax
je 0x41f47f
push 1
push 0x1000
call fcn.00414d25
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x41f3e4
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x41f476
push 0x8000
push ebx
call fcn.00410df1
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x41f40d
jg 0x41f408
cmp ecx, 0x1000
jb 0x41f40d
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.00414725
add esp, 0x10
cmp eax, 0xffffffff
je 0x41f452
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x41f408
jl 0x41f439
test ecx, ecx
jne 0x41f3fa
push dword [ebp - 0xc]
push ebx
call fcn.00410df1
push esi
call fcn.00414941
add esp, 0xc
xor ebx, ebx
jmp 0x41f4e2
cmp byte [edi + 0x24], 0
je 0x41f469
cmp dword [edi + 0x20], 5
jne 0x41f469
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x41f474
mov ebx, dword [edi + 0x18]
jmp 0x41f476
xor ebx, ebx
push esi
call fcn.00414941
pop ecx
jmp 0x41f4e2
test ecx, ecx
jg 0x41f44b
jl 0x41f489
test eax, eax
jae 0x41f44b
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00416abf
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x41f4a9
cmp byte [edi + 0x1c], 0
je 0x41f44b
jmp 0x41f4da
push ebx
call fcn.0041a93c
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x41f44b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x41f4e2
cmp byte [edi + 0x1c], 0
je 0x41f4df
mov ebx, dword [edi + 0x18]
jmp 0x41f4e2
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.00416abf
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x420ab0
Capabilities:
Parse pe header

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

Disassembly:
cmp dword [0x4100d4], 0
jne 0x40179d
call fcn.00401765
mov ecx, dword [esp + 8]
mov eax, dword [esp + 4]
push esi
mov esi, dword [esp + 0x10]
push edi
test esi, esi
jbe 0x4017ca
test cl, 7
je 0x4017ca
movzx edx, byte [ecx]
movzx edi, al
xor edx, edi
shr eax, 8
xor eax, dword [edx*4 + 0x4100d0]
dec esi
inc ecx
jmp 0x4017ab
cmp esi, 8
jb 0x40184e
mov edi, esi
shr edi, 3
xor eax, dword [ecx]
add ecx, 8
movzx edx, al
shr eax, 8
xor eax, dword [edx*4 + 0x4100d0]
sub esi, 8
movzx edx, al
shr eax, 8
xor eax, dword [edx*4 + 0x4100d0]
movzx edx, al
shr eax, 8
xor eax, dword [edx*4 + 0x4100d0]
mov edx, eax
movzx eax, dl
mov eax, dword [eax*4 + 0x4100d0]
xor eax, dword [ecx - 4]
shr edx, 8
xor eax, edx
movzx edx, al
shr eax, 8
xor eax, dword [edx*4 + 0x4100d0]
movzx edx, al
shr eax, 8
xor eax, dword [edx*4 + 0x4100d0]
movzx edx, al
shr eax, 8
xor eax, dword [edx*4 + 0x4100d0]
movzx edx, al
shr eax, 8
xor eax, dword [edx*4 + 0x4100d0]
dec edi
jne 0x4017d4
xor edx, edx
test esi, esi
jbe 0x40186e
push ebx
movzx edi, byte [edx + ecx]
movzx ebx, al
xor edi, ebx
shr eax, 8
xor eax, dword [edi*4 + 0x4100d0]
inc edx
cmp edx, esi
jb 0x401855
pop ebx
pop edi
pop esi
ret 0xc

Function at 0x40191c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1000
call fcn.004012c0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 3
jne 0x4019ae
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.00407421
lea eax, [ebp - 0x800]
push eax
call fcn.00409939
mov esi, eax
lea eax, [ebp - 0x800]
push eax
call fcn.00407858
test al, al
jne 0x40198a
lea eax, [ebp - 0x1000]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea eax, [ebp - 0x1000]
push eax
call fcn.00409939
lea esi, [esi + eax + 1]
mov eax, 0x104
pop edi
cmp esi, eax
pop esi
jbe 0x4019ae
push eax
push 0xaf
call fcn.004093c8
push eax
push 0x40e2b0
call fcn.0040a73c
add esp, 0xc
leave
ret 8
Function at 0x4036e4
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 0x4036fe
mov byte [ebp + 0x10], 1
mov dword [ebp - 4], 0x80000000
cmp byte [ebp + 0x14], bl
je 0x403711
mov dword [ebp - 4], 0xc0000000
mov dword [ebp + 0x14], 1
cmp byte [ebp + 0x10], bl
je 0x403724
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.00406d8f
test eax, eax
je 0x40375d
mov eax, dword [ebp + 0xc]
cmp eax, ebx
je 0x40375d
cmp word [eax], bx
je 0x40375d
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 0x403771
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 0x40378d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x40378d
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 0x403805
mov dword [esi + 4], edi
mov edi, dword [ebp + 0xc]
cmp edi, ebx
je 0x4037c6
push edi
call fcn.00409939
lea eax, [eax + eax + 2]
push eax
push edi
lea eax, [esi + 0x418]
push eax
call fcn.004096ba
jmp 0x4037cf
xor eax, eax
mov word [esi + 0x418], ax
cmp dword [ebp + 8], ebx
je 0x4037ec
push dword [ebp + 8]
call fcn.00409705
inc eax
push eax
push dword [ebp + 8]
lea eax, [esi + 0x17]
push eax
call fcn.004096ba
jmp 0x4037fb
push 0x1000000
lea eax, [esi + 0x17]
push eax
push edi
call fcn.0040d5d8
push dword [esi + 4]
mov ecx, esi
call fcn.00403533
mov al, byte [ebp + 0x13]
pop edi
pop esi
pop ebx
leave
ret 0x10

Function at 0x4038d0
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 0x4038f6
cmp dword [ebp + 0xc], esi
jbe 0x4038eb
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 0x403946
mov ecx, edi
call fcn.0040369e
test al, al
je 0x40392c
cmp dword [ebp + 0xc], esi
jbe 0x40392c
push esi
push dword [ebp + 8]
mov ecx, edi
call fcn.004038d0
jmp 0x403949
cmp dword [edi + 0xc], 1
jne 0x403941
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
jne 0x403941
xor eax, eax
jmp 0x403949
or eax, 0xffffffff
jmp 0x403949
mov eax, dword [ebp - 4]
pop edi
pop esi
leave
ret 8
Function at 0x403b82
Capabilities:
Check if file exists
Get file attributes

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

Function at 0x403c28
Capabilities:
Get file attributes

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

Function at 0x403c55
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
call fcn.00406d8f
test eax, eax
je 0x403c7a
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x403c7a
cmp word [eax], 0
je 0x403c7a
push dword [ebp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
jmp 0x403c8c
cmp dword [ebp + 8], 0
je 0x403c93
push dword [ebp + 0x10]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
setne al
jmp 0x403c95
xor al, al
pop ebp
ret 0xc

Function at 0x403e03
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
call fcn.00406d8f
mov esi, dword [ebp + 0xc]
xor ebx, ebx
test eax, eax
je 0x403e29
cmp esi, ebx
je 0x403e29
cmp word [esi], bx
je 0x403e29
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jmp 0x403e38
cmp dword [ebp + 8], ebx
je 0x403e66
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
cmp eax, ebx
je 0x403e51
cmp byte [ebp + 0x10], bl
je 0x403e4d
push dword [ebp + 0x14]
push esi
push dword [ebp + 8]
call fcn.00403c55
xor eax, eax
jmp 0x403e69
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x403e66
cmp eax, 3
je 0x403e66
xor eax, eax
inc eax
jmp 0x403e69
push 2
pop eax
pop esi
pop ebx
pop ebp
ret 0x10
Function at 0x4052e2
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 0x405314
cmp dword [ebp - 4], edi
jne 0x405355
call ebx
sub eax, dword [ebp - 0xc]
cmp eax, 0x2710
ja 0x405355
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 0x405301
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 0x405301
mov eax, dword [esi]
lea ecx, [ebp - 4]
push ecx
push esi
call dword [eax + 0x48]
mov esi, eax
cmp esi, edi
jl 0x4053ab
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
lea edx, [ebp - 8]
push edx
push 0x40ec00
push eax
call dword [ecx]
mov esi, eax
cmp esi, edi
jl 0x4053a2
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x20]
mov esi, eax
cmp esi, edi
jl 0x405399
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 0x4059ce
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.00405967
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 0x405a35
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]
push dword [ebp + 0x18]
push 0x40000000
push 0
push str.RarHtmlClassName
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov dword [esi + 4], eax
test eax, eax
je 0x405a8b
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 0x405a98
mov ecx, esi
call fcn.004054dd
pop edi
pop esi
pop ebx
leave
ret 0x14
Function at 0x40958f
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 0xc]
imul eax, dword [ebp + 0x10]
push eax
push dword [ebp + 8]
mov eax, dword [ebp + 0x14]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4095c7
mov eax, dword [ebp - 4]
xor edx, edx
div dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
jmp 0x4095cb
and dword [ebp - 0xc], 0
mov eax, dword [ebp - 0xc]
leave
ret 0x10

Function at 0x4095d2
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 0xc]
imul eax, dword [ebp + 0x10]
push eax
push dword [ebp + 8]
mov eax, dword [ebp + 0x14]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x40960a
mov eax, dword [ebp - 4]
xor edx, edx
div dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
jmp 0x40960e
and dword [ebp - 0xc], 0
mov eax, dword [ebp - 0xc]
leave
ret 0x10

Function at 0x409d33
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
cmp dword [0x410028], 0
push ebx
push esi
push edi
mov edi, 0x400
jne 0x409d7e
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 [0x42b6f0], ax
xor eax, eax
mov word [0x42b6f2], ax
mov dword [0x410028], 0x42b6f0
lea eax, [ebp - 0x64]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040cba2
mov ebx, dword [ebp + 0x14]
mov esi, dword [ebp + 0x10]
push ebx
push esi
xor eax, eax
push 0x410018
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 0x40a0fd
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
push ebx
push esi
push edi
push 0x68
push dword [0x425680]
call dword [sym.imp.USER32.dll_GetDlgItem]
cmp byte [0x426794], 0
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
mov edi, eax
mov dword [ebp - 4], edi
mov ebx, 0xb1
jne 0x40a15f
mov ecx, dword [0x42454c]
call fcn.004052cb
push 5
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
push 0xffffffffffffffff
push 0
push ebx
push edi
call esi
push 0x40e2f8
push 0
push 0xc2
push edi
call esi
mov byte [0x426794], 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 0x40a1af
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 0x40a1f9
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 0x40e7c8
push 0
push 0xc2
push dword [ebp - 4]
call esi
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x40aa4f
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2000
call fcn.004012c0
push ebx
mov ebx, ecx
push edi
mov edi, dword [ebp + 8]
test ebx, ebx
je 0x40aa6a
mov byte [ebx], 0
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x40aa74
mov byte [eax], 0
test edi, edi
je 0x40ab1d
movzx eax, word [edi]
test ax, ax
je 0x40ab1d
push esi
xor esi, esi
xor ecx, ecx
movzx eax, ax
inc edi
inc edi
cmp ax, 0x3d
jne 0x40aaad
cmp dword [ebp + 0xc], 0
je 0x40aab9
test esi, esi
jne 0x40aab9
test ebx, ebx
je 0x40aaa9
mov byte [ebx], 1
mov esi, edx
jmp 0x40aac8
cmp ax, 0xd
je 0x40aadb
cmp ax, 0xa
je 0x40aadd
mov word [edx], ax
mov eax, dword [ebp + 0x14]
inc edx
add eax, 0xfffffffe
inc edx
cmp ecx, eax
jg 0x40aad3
movzx eax, word [edi]
inc ecx
test ax, ax
jne 0x40aa8d
jmp 0x40aadd
mov eax, dword [ebp + 0x10]
mov byte [eax], 1
jmp 0x40aadd
inc edi
inc edi
mov ebx, dword [ebp + 0xc]
xor eax, eax
mov word [edx], ax
test ebx, ebx
je 0x40ab18
mov word [ebx], ax
test esi, esi
je 0x40ab18
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.0040cb78
xor eax, eax
mov word [esi], ax
mov eax, edi
pop esi
jmp 0x40ab1f
xor eax, eax
pop edi
pop ebx
leave
ret 0x10