joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4f258b
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
jne 0x4f25b8
call fcn.004f5c43
mov dword [eax], esi
call fcn.004f5c30
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.004ee8ea
add esp, 0x14
push 0x16
pop eax
pop esi
ret
test dword [esp + 0xc], 0xfffffff9
jne 0x4f2594
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4f25e7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004f5c56
pop ecx
call fcn.004f5c30
mov eax, dword [eax]
pop esi
ret
test al, 0x10
jne 0x4f260e
test al, 1
je 0x4f260e
test byte [esp + 0xc], 2
je 0x4f260e
call fcn.004f5c43
mov dword [eax], 5
call fcn.004f5c30
mov dword [eax], 0xd
jmp 0x4f25de
xor eax, eax
pop esi
ret

Function at 0x4f4add
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x55709c]
jne 0x4f4ae7
repz ret
jmp fcn.00505cc7

Function at 0x4fa8e9
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x557c08]
je 0x4fa904
inc edi
cmp edi, 0x17
jb 0x4fa8f5
cmp edi, 0x17
jae 0x4faa84
push ebp
push 3
call fcn.00507837
cmp eax, 1
pop ecx
je 0x4faa50
push 3
call fcn.00507837
test eax, eax
pop ecx
jne 0x4fa938
cmp dword [0x557098], 1
je 0x4faa50
cmp ebx, 0xfc
je 0x4faa83
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x55dc48
push ebp
call fcn.004f268d
add esp, 0xc
test eax, eax
je 0x4fa96e
push esi
push esi
push esi
push esi
push esi
call fcn.004ee7ee
add esp, 0x14
push 0x104
mov esi, 0x55dc61
push esi
push 0
mov byte [0x55dd65], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4fa9b2
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.004f268d
add esp, 0xc
test eax, eax
je 0x4fa9b2
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.004ee7ee
add esp, 0x14
push esi
call fcn.004ec3d0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x4fa9f7
push esi
call fcn.004ec3d0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x55df5c
push 0x53a334
sub ecx, eax
push ecx
push eax
call fcn.00504c09
add esp, 0x14
test eax, eax
je 0x4fa9f7
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.004ee7ee
add esp, 0x14
jmp 0x4fa9f9
xor esi, esi
push 0x53a330
push ebx
push ebp
call fcn.00504b98
add esp, 0xc
test eax, eax
je 0x4faa19
push esi
push esi
push esi
push esi
push esi
call fcn.004ee7ee
add esp, 0x14
push dword [edi*8 + 0x557c0c]
push ebx
push ebp
call fcn.00504b98
add esp, 0xc
test eax, eax
je 0x4faa3b
push esi
push esi
push esi
push esi
push esi
call fcn.004ee7ee
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.0050767a
add esp, 0xc
jmp 0x4faa83
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x4faa83
cmp ebp, 0xffffffff
je 0x4faa83
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x557c0c]
push dword [esi]
call fcn.004ec3d0
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x50767a
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.004fa36a
xor ebx, ebx
cmp dword [0x55e6e8], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x507750
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x507830
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x53af38
push edi
call esi
cmp eax, ebx
je 0x507830
push eax
call fcn.004fa2fc
mov dword [esp], 0x53af28
push edi
mov dword [0x55e6e8], eax
call esi
push eax
call fcn.004fa2fc
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x55e6ec], eax
call esi
push eax
call fcn.004fa2fc
mov dword [0x55e6f0], eax
lea eax, [ebp - 0xc]
push eax
call fcn.004f461c
test eax, eax
pop ecx
pop ecx
je 0x50771e
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004ee7ee
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x507750
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.004fa2fc
cmp eax, ebx
pop ecx
mov dword [0x55e6f8], eax
je 0x507750
push 0x53aee0
push edi
call esi
push eax
call fcn.004fa2fc
pop ecx
mov dword [0x55e6f4], eax
mov eax, dword [0x55e6f4]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x5077d5
cmp dword [0x55e6f8], ecx
je 0x5077d5
push eax
call fcn.004fa373
push dword [0x55e6f8]
mov esi, eax
call fcn.004fa373
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x5077d5
cmp edi, ebx
je 0x5077d5
call esi
cmp eax, ebx
je 0x5077a2
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x5077a2
test byte [ebp - 0x18], 1
jne 0x5077d5
lea eax, [ebp - 0x10]
push eax
call fcn.004f4653
test eax, eax
pop ecx
je 0x5077bd
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004ee7ee
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x5077cc
or dword [ebp + 0x10], 0x200000
jmp 0x507810
or dword [ebp + 0x10], 0x40000
jmp 0x507810
mov eax, dword [0x55e6ec]
cmp eax, dword [ebp - 8]
je 0x507810
push eax
call fcn.004fa373
cmp eax, ebx
pop ecx
je 0x507810
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x507810
mov eax, dword [0x55e6f0]
cmp eax, dword [ebp - 8]
je 0x507810
push eax
call fcn.004fa373
cmp eax, ebx
pop ecx
je 0x507810
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x55e6e8]
call fcn.004fa373
cmp eax, ebx
pop ecx
je 0x507830
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x507832
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x433002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..reloc
push 4
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x433072
nop
mov ebx, 0x40de38
nop
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
push eax
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
mov esi, 0xa0c39e7
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x433060
nop
nop
nop
mov eax, section..text
nop
nop
cmp eax, 0
nop
nop
nop
je 0x4330d2
nop
nop
nop
mov ebx, 0x4304d8
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
push eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x60b542e
nop
nop
nop
nop
xor dword [eax], esi
nop
add eax, edi
nop
nop
nop
loop 0x4330c0
nop
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x40177f
Capabilities:
Encode data using xor

Disassembly:
cmp dword [0x4100d4], 0
jne 0x40178d
call fcn.00401755
mov ecx, dword [esp + 8]
mov eax, dword [esp + 4]
push esi
mov esi, dword [esp + 0x10]
push edi
test esi, esi
jbe 0x4017ba
test cl, 7
je 0x4017ba
movzx edx, byte [ecx]
movzx edi, al
xor edx, edi
shr eax, 8
xor eax, dword [edx*4 + 0x4100d0]
dec esi
inc ecx
jmp 0x40179b
cmp esi, 8
jb 0x40183e
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 0x4017c4
xor edx, edx
test esi, esi
jbe 0x40185e
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 0x401845
pop ebx
pop edi
pop esi
ret 0xc

Function at 0x40190c
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 0x40199e
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.004075b4
lea eax, [ebp - 0x800]
push eax
call fcn.0040979c
mov esi, eax
lea eax, [ebp - 0x800]
push eax
call fcn.0040792b
test al, al
jne 0x40197a
lea eax, [ebp - 0x1000]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea eax, [ebp - 0x1000]
push eax
call fcn.0040979c
lea esi, [esi + eax + 1]
mov eax, 0x104
pop edi
cmp esi, eax
pop esi
jbe 0x40199e
push eax
push 0xaf
call fcn.004092a6
push eax
push 0x40e2b0
call fcn.0040a59a
add esp, 0xc
leave
ret 8
Function at 0x40346c
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 0x403486
mov byte [ebp + 0x10], 1
mov dword [ebp - 4], 0x80000000
cmp byte [ebp + 0x14], bl
je 0x403499
mov dword [ebp - 4], 0xc0000000
mov dword [ebp + 0x14], 1
cmp byte [ebp + 0x10], bl
je 0x4034ac
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.00406f22
test eax, eax
je 0x4034e5
mov eax, dword [ebp + 0xc]
cmp eax, ebx
je 0x4034e5
cmp word [eax], bx
je 0x4034e5
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 0x4034f9
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 0x403515
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x403515
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 0x40358d
mov dword [esi + 4], edi
mov edi, dword [ebp + 0xc]
cmp edi, ebx
je 0x40354e
push edi
call fcn.0040979c
lea eax, [eax + eax + 2]
push eax
push edi
lea eax, [esi + 0x418]
push eax
call fcn.0040951d
jmp 0x403557
xor eax, eax
mov word [esi + 0x418], ax
cmp dword [ebp + 8], ebx
je 0x403574
push dword [ebp + 8]
call fcn.00409568
inc eax
push eax
push dword [ebp + 8]
lea eax, [esi + 0x17]
push eax
call fcn.0040951d
jmp 0x403583
push 0x1000000
lea eax, [esi + 0x17]
push eax
push edi
call fcn.0040d393
push dword [esi + 4]
mov ecx, esi
call fcn.004032bb
mov al, byte [ebp + 0x13]
pop edi
pop esi
pop ebx
leave
ret 0x10

Function at 0x403658
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 0x40367e
cmp dword [ebp + 0xc], esi
jbe 0x403673
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 0x4036ce
mov ecx, edi
call fcn.00403426
test al, al
je 0x4036b4
cmp dword [ebp + 0xc], esi
jbe 0x4036b4
push esi
push dword [ebp + 8]
mov ecx, edi
call fcn.00403658
jmp 0x4036d1
cmp dword [edi + 0xc], 1
jne 0x4036c9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
jne 0x4036c9
xor eax, eax
jmp 0x4036d1
or eax, 0xffffffff
jmp 0x4036d1
mov eax, dword [ebp - 4]
pop edi
pop esi
leave
ret 8
Function at 0x4039b7
Capabilities:
Check if file exists
Get file attributes

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

Function at 0x403a5d
Capabilities:
Get file attributes

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

Function at 0x403a8a
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
call fcn.00406f22
test eax, eax
je 0x403aaf
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x403aaf
cmp word [eax], 0
je 0x403aaf
push dword [ebp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
jmp 0x403ac1
cmp dword [ebp + 8], 0
je 0x403ac8
push dword [ebp + 0x10]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
setne al
jmp 0x403aca
xor al, al
pop ebp
ret 0xc

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

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
call fcn.00406f22
mov esi, dword [ebp + 0xc]
xor ebx, ebx
test eax, eax
je 0x403c24
cmp esi, ebx
je 0x403c24
cmp word [esi], bx
je 0x403c24
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jmp 0x403c33
cmp dword [ebp + 8], ebx
je 0x403c61
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
cmp eax, ebx
je 0x403c4c
cmp byte [ebp + 0x10], bl
je 0x403c48
push dword [ebp + 0x14]
push esi
push dword [ebp + 8]
call fcn.00403a8a
xor eax, eax
jmp 0x403c64
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x403c61
cmp eax, 3
je 0x403c61
xor eax, eax
inc eax
jmp 0x403c64
push 2
pop eax
pop esi
pop ebx
pop ebp
ret 0x10
Function at 0x40529b
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 0x4052cd
cmp dword [ebp - 8], ebx
jne 0x40530e
call esi
sub eax, dword [ebp - 0xc]
cmp eax, 0x2710
ja 0x40530e
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 0x4052ba
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 0x4052ba
mov eax, dword [ebp - 8]
cmp eax, ebx
je 0x40534e
mov ecx, dword [eax]
lea edx, [ebp - 4]
push edx
push 0x40ec24
push eax
call dword [ecx]
test eax, eax
jl 0x40534e
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x20]
test eax, eax
jl 0x405345
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 0x405aed
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 0x405b10
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.00405a86
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 0x405b66
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 0x405bb1
push 5
push eax
call ebx
push dword [esi + 4]
call dword [sym.imp.USER32.dll_UpdateWindow]
cmp byte [esi + 0x15], 0
je 0x405bc6
cmp dword [esi + 0x18], 0x64
jbe 0x405c39
mov ecx, esi
call fcn.0040547b
jmp 0x405c39
mov eax, dword [esi + 4]
cmp eax, edi
je 0x405bd7
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.0040979c
imul eax, eax, 0xc
add eax, 0x200
push eax
call fcn.00409322
push dword [ebp + 0x10]
mov ebx, eax
push ebx
call fcn.004097c6
push ebx
mov ecx, esi
call fcn.00405357
test al, al
jne 0x405c15
push ebx
mov ecx, esi
call fcn.0040538d
mov ebx, eax
push ebx
mov ecx, esi
call fcn.0040577e
push ebx
mov esi, eax
call fcn.0040933b
cmp esi, edi
je 0x405c39
push esi
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_SetWindowTextW]
push esi
call fcn.0040933b
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x4090b2
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.00408fcf
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 0x40913f
cmp byte [ebp + 0x10], 0
jne 0x409184
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 0x409184
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.00408e8a
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 0x409280
cmp dword [ebp + 8], 0x200
jge 0x409288
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 0x4091fe
push dword [ebp + 0xc]
mov ecx, dword [ebp - 0x10]
push 1
push 0x400
lea eax, [ebp - 0x844]
push eax
push eax
call fcn.00408e8a
lea eax, [ebp - 0x844]
push eax
push dword [ebp + 0x10]
call dword [sym.imp.USER32.dll_SetWindowTextW]
cmp byte [ebp - 1], 0
je 0x40926a
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 0x409288
inc dword [ebp + 8]
test eax, eax
jne 0x4091a8
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x4093f2
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 0x40942a
mov eax, dword [ebp - 4]
xor edx, edx
div dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
jmp 0x40942e
and dword [ebp - 0xc], 0
mov eax, dword [ebp - 0xc]
leave
ret 0x10

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

Function at 0x409b91
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 0x409bdc
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.0040ca5c
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