joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401f80
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [0x4076f8]
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 0x401fc2
call edi
mov esi, eax
test esi, esi
je 0x401fac
mov eax, 1
jmp 0x401fbd
call ebp
mov ebx, eax
test ebx, ebx
je 0x4020cf
mov eax, 2
mov dword [0x4076f8], eax
cmp eax, 1
jne 0x402062
test esi, esi
jne 0x401fdb
call edi
mov esi, eax
test esi, esi
je 0x4020cf
cmp word [esi], 0
mov eax, esi
je 0x401ff5
add eax, 2
cmp word [eax], 0
jne 0x401fe3
add eax, 2
cmp word [eax], 0
jne 0x401fe3
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 0x402054
push edi
call fcn.00401800
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x402054
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 0x402046
push ebx
call fcn.00403130
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 0x4020cf
test ebx, ebx
jne 0x402073
call ebp
mov ebx, eax
test ebx, ebx
je 0x4020cf
mov cl, byte [ebx]
mov eax, ebx
test cl, cl
je 0x40208b
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x40207b
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x40207b
sub eax, ebx
inc eax
mov esi, eax
push esi
call fcn.00401800
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x4020ad
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 0x402810
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x1a8
mov eax, 0x4052c0
push ebx
push ebp
push esi
push edi
xor ebp, ebp
cmp ecx, dword [eax]
je 0x402834
add eax, 8
inc ebp
cmp eax, 0x405350
jb 0x402825
cmp ecx, dword [ebp*8 + 0x4052c0]
jne 0x4029db
mov eax, dword [0x40759c]
cmp eax, 1
je 0x40299d
test eax, eax
jne 0x402860
cmp dword [0x40511c], 1
je 0x40299d
cmp ecx, 0xfc
je 0x4029db
lea eax, [esp + 0xb4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40289b
mov ecx, 5
mov esi, str._program_name_unknown_
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 0x4028e4
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 0x4042e0
add ebx, ecx
push ebx
call fcn.00403210
add esp, 0xc
mov ecx, 6
mov esi, str.Runtime_Error__n_nProgram:
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, 0x4042c0
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push str.Microsoft_Visual_C_Runtime_Library
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 + 0x4052c4]
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.00403180
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
mov eax, dword [0x407880]
test eax, eax
je 0x4029ae
mov esi, dword [eax + 0x10]
cmp esi, 0xffffffff
jne 0x4029b8
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
mov edx, dword [ebp*8 + 0x4052c4]
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 0x40178e
Capabilities:
Encode data using xor

Disassembly:
cmp dword [0x4100d4], 0
jne 0x40179c
call fcn.00401764
mov ecx, dword [esp + 8]
mov eax, dword [esp + 4]
push esi
mov esi, dword [esp + 0x10]
push edi
test esi, esi
jbe 0x4017c9
test cl, 7
je 0x4017c9
movzx edx, byte [ecx]
movzx edi, al
xor edx, edi
shr eax, 8
xor eax, dword [edx*4 + 0x4100d0]
dec esi
inc ecx
jmp 0x4017aa
cmp esi, 8
jb 0x40184d
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 0x4017d3
xor edx, edx
test esi, esi
jbe 0x40186d
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 0x401854
pop ebx
pop edi
pop esi
ret 0xc
Function at 0x40335c
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 0x403376
mov byte [ebp + 0x10], 1
mov dword [ebp - 4], 0x80000000
cmp byte [ebp + 0x14], bl
je 0x403389
mov dword [ebp - 4], 0xc0000000
mov dword [ebp + 0x14], 1
cmp byte [ebp + 0x10], bl
je 0x40339c
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.00406ddd
test eax, eax
je 0x4033d5
mov eax, dword [ebp + 0xc]
cmp eax, ebx
je 0x4033d5
cmp word [eax], bx
je 0x4033d5
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 0x4033e9
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 0x403405
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x403405
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 0x403467
mov dword [esi + 4], edi
cmp dword [ebp + 0xc], ebx
je 0x403433
push dword [ebp + 0xc]
lea eax, [esi + 0x418]
push eax
call fcn.00409580
jmp 0x40343c
xor eax, eax
mov word [esi + 0x418], ax
lea eax, [esi + 0x17]
cmp dword [ebp + 8], ebx
je 0x40344f
push dword [ebp + 8]
push eax
call fcn.00409415
jmp 0x40345d
push 0x1000000
push eax
push dword [ebp + 0xc]
call fcn.0040d076
push dword [esi + 4]
mov ecx, esi
call fcn.004031ab
mov al, byte [ebp + 0x13]
pop edi
pop esi
pop ebx
leave
ret 0x10

Function at 0x403532
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 0x403558
cmp dword [ebp + 0xc], esi
jbe 0x40354d
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 0x4035a8
mov ecx, edi
call fcn.00403316
test al, al
je 0x40358e
cmp dword [ebp + 0xc], esi
jbe 0x40358e
push esi
push dword [ebp + 8]
mov ecx, edi
call fcn.00403532
jmp 0x4035ab
cmp dword [edi + 0xc], 1
jne 0x4035a3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
jne 0x4035a3
xor eax, eax
jmp 0x4035ab
or eax, 0xffffffff
jmp 0x4035ab
mov eax, dword [ebp - 4]
pop edi
pop esi
leave
ret 8

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

Disassembly:
call fcn.00406ddd
test eax, eax
je 0x4038bb
mov eax, dword [esp + 8]
test eax, eax
je 0x4038bb
cmp word [eax], 0
je 0x4038bb
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov al, cl
jmp 0x4038d8
cmp dword [esp + 4], 0
je 0x4038d6
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4038d6
xor eax, eax
inc eax
jmp 0x4038d8
xor eax, eax
ret 8
Function at 0x403937
Capabilities:
Get file attributes

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

Function at 0x403964
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
call fcn.00406ddd
test eax, eax
je 0x403989
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x403989
cmp word [eax], 0
je 0x403989
push dword [ebp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
jmp 0x40399b
cmp dword [ebp + 8], 0
je 0x4039a2
push dword [ebp + 0x10]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
setne al
jmp 0x4039a4
xor al, al
pop ebp
ret 0xc

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

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
call fcn.00406ddd
mov esi, dword [ebp + 0xc]
xor ebx, ebx
test eax, eax
je 0x403adb
cmp esi, ebx
je 0x403adb
cmp word [esi], bx
je 0x403adb
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jmp 0x403aea
cmp dword [ebp + 8], ebx
je 0x403b18
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
cmp eax, ebx
je 0x403b03
cmp byte [ebp + 0x10], bl
je 0x403aff
push dword [ebp + 0x14]
push esi
push dword [ebp + 8]
call fcn.00403964
xor eax, eax
jmp 0x403b1b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x403b18
cmp eax, 3
je 0x403b18
xor eax, eax
inc eax
jmp 0x403b1b
push 2
pop eax
pop esi
pop ebx
pop ebp
ret 0x10
Function at 0x40514a
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
xor ebx, ebx
push edi
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
call esi
mov edi, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov eax, dword [edi]
lea ecx, [ebp - 8]
push ecx
push edi
call dword [eax + 0x48]
test eax, eax
jl 0x40517c
cmp dword [ebp - 8], ebx
jne 0x4051bd
call esi
sub eax, dword [ebp - 0xc]
cmp eax, 0x2710
ja 0x4051bd
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x405169
push ebx
push ebx
push ebx
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 0x405169
mov eax, dword [ebp - 8]
cmp eax, ebx
je 0x4051fd
mov ecx, dword [eax]
lea edx, [ebp - 4]
push edx
push 0x40ec1c
push eax
call dword [ecx]
test eax, eax
jl 0x4051fd
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x20]
test eax, eax
jl 0x4051f4
mov eax, dword [ebp - 4]
push dword [ebp + 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
test eax, eax
setge bl
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
pop edi
pop esi
mov al, bl
pop ebx
leave
ret 8
Function at 0x4059aa
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, ecx
cmp byte [esi + 0x14], 0
push edi
jne 0x4059cd
push 0
call dword [sym.imp.ole32.dll_OleInitialize]
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
mov byte [esi + 0x14], 1
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
push 0
push dword [ebp + 0xc]
mov byte [esi + 0x15], 0
call ebx
push dword [ebp + 8]
mov ecx, esi
call fcn.00405943
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x10], eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edi, dword [sym.imp.USER32.dll_GetParent]
push 2
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0xc]
call edi
push eax
push 0
call dword [sym.imp.USER32.dll_MapWindowPoints]
mov eax, dword [esi + 4]
test eax, eax
je 0x405a23
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
push esi
push dword [esi]
push 0
push dword [ebp + 0xc]
call edi
mov ecx, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
sub eax, dword [ebp - 0xc]
xor edi, edi
push eax
mov eax, dword [ebp - 0x10]
sub ecx, eax
dec ecx
dec ecx
push ecx
push dword [ebp - 0xc]
inc eax
push eax
push 0x40000000
push edi
push str.RarHtmlClassName
push edi
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov dword [esi + 4], eax
cmp eax, edi
je 0x405a6e
push 5
push eax
call ebx
push dword [esi + 4]
call dword [sym.imp.USER32.dll_UpdateWindow]
cmp byte [esi + 0x15], 0
je 0x405a83
cmp dword [esi + 0x18], 0x64
jbe 0x405af4
mov ecx, esi
call fcn.0040533a
jmp 0x405af4
mov eax, dword [esi + 4]
cmp eax, edi
je 0x405a94
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
mov dword [esi + 4], edi
push 5
push dword [ebp + 0xc]
call ebx
push dword [ebp + 0x10]
call fcn.00409556
imul eax, eax, 0xc
add eax, 0x200
push eax
call fcn.00409127
push dword [ebp + 0x10]
mov ebx, eax
push ebx
call fcn.00409580
push ebx
mov ecx, esi
call fcn.00405206
test al, al
jne 0x405ad0
push ebx
mov ecx, esi
call fcn.0040523c
push ebx
mov ecx, esi
call fcn.0040563b
push ebx
mov esi, eax
call fcn.00409140
cmp esi, edi
je 0x405af4
push esi
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_SetWindowTextW]
push esi
call fcn.00409140
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x408eb7
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x844
push ebx
push esi
push edi
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0xc]
mov dword [ebp - 0x10], ecx
call fcn.00408dd4
mov ebx, dword [sym.imp.USER32.dll_GetWindowRect]
mov byte [ebp - 1], al
lea eax, [ebp - 0x24]
push eax
push dword [ebp + 8]
call ebx
lea eax, [ebp - 0x44]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetClientRect]
mov edi, dword [ebp - 0x1c]
sub edi, dword [ebp - 0x3c]
mov esi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x38]
sub edi, dword [ebp - 0x24]
sub esi, eax
sub esi, dword [ebp - 0x20]
inc edi
inc esi
cmp byte [ebp - 1], 0
je 0x408f44
cmp byte [ebp + 0x10], 0
jne 0x408f89
imul eax, dword [ebp - 8]
push 0x206
cdq
push 0x64
pop ecx
idiv ecx
add eax, esi
push eax
mov eax, dword [ebp - 0x3c]
imul eax, dword [ebp - 0xc]
cdq
idiv ecx
add eax, edi
push eax
xor eax, eax
push eax
push eax
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SetWindowPos]
cmp byte [ebp + 0x10], 0
jne 0x408f89
push 0x400
lea eax, [ebp - 0x844]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push dword [ebp + 0xc]
mov ecx, dword [ebp - 0x10]
push 1
push 0x400
lea eax, [ebp - 0x844]
push eax
push eax
call fcn.00408c8f
lea eax, [ebp - 0x844]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SetWindowTextW]
push 8
call dword [sym.imp.USER32.dll_GetSystemMetrics]
push 5
push dword [ebp + 8]
sub esi, eax
call dword [sym.imp.USER32.dll_GetWindow]
and dword [ebp + 8], 0
mov dword [ebp + 0x10], eax
mov dword [ebp - 0x14], eax
jmp 0x409085
cmp dword [ebp + 8], 0x200
jge 0x40908d
push 0x400
lea eax, [ebp - 0x844]
push eax
push dword [ebp + 0x10]
call dword [sym.imp.USER32.dll_GetWindowTextW]
cmp word [ebp - 0x844], 0
je 0x409003
push dword [ebp + 0xc]
mov ecx, dword [ebp - 0x10]
push 1
push 0x400
lea eax, [ebp - 0x844]
push eax
push eax
call fcn.00408c8f
lea eax, [ebp - 0x844]
push eax
push dword [ebp + 0x10]
call dword [sym.imp.USER32.dll_SetWindowTextW]
cmp byte [ebp - 1], 0
je 0x40906f
lea eax, [ebp - 0x34]
push eax
push dword [ebp + 0x10]
call ebx
mov eax, dword [ebp - 0x28]
sub eax, dword [ebp - 0x30]
push 0x204
inc eax
imul eax, dword [ebp - 8]
cdq
push 0x64
pop ecx
idiv ecx
push eax
mov eax, dword [ebp - 0x2c]
sub eax, dword [ebp - 0x34]
inc eax
imul eax, dword [ebp - 0xc]
cdq
idiv ecx
push eax
mov eax, dword [ebp - 0x30]
sub eax, dword [ebp - 0x20]
sub eax, esi
imul eax, dword [ebp - 8]
cdq
idiv ecx
push eax
mov eax, edi
cdq
sub eax, edx
mov ecx, eax
mov eax, dword [ebp - 0x34]
sar ecx, 1
sub eax, ecx
sub eax, dword [ebp - 0x24]
push 0x64
imul eax, dword [ebp - 0xc]
pop ecx
cdq
idiv ecx
push eax
push 0
push dword [ebp + 0x10]
call dword [sym.imp.USER32.dll_SetWindowPos]
push 2
push dword [ebp + 0x10]
call dword [sym.imp.USER32.dll_GetWindow]
mov dword [ebp + 0x10], eax
cmp eax, dword [ebp - 0x14]
je 0x40908d
inc dword [ebp + 8]
test eax, eax
jne 0x408fad
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x4091f7
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 0x40922f
mov eax, dword [ebp - 4]
xor edx, edx
div dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
jmp 0x409233
and dword [ebp - 0xc], 0
mov eax, dword [ebp - 0xc]
leave
ret 0x10

Function at 0x40923a
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 0x409272
mov eax, dword [ebp - 4]
xor edx, edx
div dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
jmp 0x409276
and dword [ebp - 0xc], 0
mov eax, dword [ebp - 0xc]
leave
ret 0x10

Function at 0x40994b
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 0x409996
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 [0x42b8b8], ax
xor eax, eax
mov word [0x42b8ba], ax
mov dword [0x410028], 0x42b8b8
lea eax, [ebp - 0x64]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040c768
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 0x409d15
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
push ebx
push esi
push edi
push 0x68
push dword [0x425858]
call dword [sym.imp.USER32.dll_GetDlgItem]
cmp byte [0x42696c], 0
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
mov edi, eax
mov dword [ebp - 4], edi
mov ebx, 0xb1
jne 0x409d77
mov ecx, dword [0x424724]
call fcn.004050e9
push 5
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
push 0xffffffffffffffff
push 0
push ebx
push edi
call esi
push 0x40e7d8
push 0
push 0xc2
push edi
call esi
mov byte [0x42696c], 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 0x409dc7
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 0x409e11
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 0x40e7fc
push 0
push 0xc2
push dword [ebp - 4]
call esi
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x40a6e5
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 0x40a700
mov byte [ebx], 0
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x40a70a
mov byte [eax], 0
test edi, edi
je 0x40a7b3
movzx eax, word [edi]
test ax, ax
je 0x40a7b3
push esi
xor esi, esi
xor ecx, ecx
movzx eax, ax
inc edi
inc edi
cmp ax, 0x3d
jne 0x40a743
cmp dword [ebp + 0xc], 0
je 0x40a74f
test esi, esi
jne 0x40a74f
test ebx, ebx
je 0x40a73f
mov byte [ebx], 1
mov esi, edx
jmp 0x40a75e
cmp ax, 0xd
je 0x40a771
cmp ax, 0xa
je 0x40a773
mov word [edx], ax
mov eax, dword [ebp + 0x14]
inc edx
add eax, 0xfffffffe
inc edx
cmp ecx, eax
jg 0x40a769
movzx eax, word [edi]
inc ecx
test ax, ax
jne 0x40a723
jmp 0x40a773
mov eax, dword [ebp + 0x10]
mov byte [eax], 1
jmp 0x40a773
inc edi
inc edi
mov ebx, dword [ebp + 0xc]
xor eax, eax
mov word [edx], ax
test ebx, ebx
je 0x40a7ae
mov word [ebx], ax
test esi, esi
je 0x40a7ae
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.0040c73e
xor eax, eax
mov word [esi], ax
mov eax, edi
pop esi
jmp 0x40a7b5
xor eax, eax
pop edi
pop ebx
leave
ret 0x10