joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40bd00
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x540
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x140]
push ebx
push ebp
push esi
push edi
mov edi, 0x42fd34
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x150]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str._session_
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 + 0x10]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x154]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x40be65
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileA]
lea edx, [esp + 0x3c]
lea eax, [esp + 0x150]
push edx
push 0x42fd34
push str._s__s
push eax
call fcn.004143bf
add esp, 0x10
mov esi, 0x423714
lea eax, [esp + 0x3c]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x40bdd4
test cl, cl
je 0x40bdd0
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x40bdd4
add eax, 2
add esi, 2
test cl, cl
jne 0x40bdb0
xor eax, eax
jmp 0x40bdd9
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40be4e
mov esi, 0x424490
lea eax, [esp + 0x3c]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x40be0a
test cl, cl
je 0x40be06
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x40be0a
add eax, 2
add esi, 2
test cl, cl
jne 0x40bde6
xor eax, eax
jmp 0x40be0f
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40be4e
mov eax, dword [esp + 0x10]
and eax, 0x10
cmp al, 0x10
jne 0x40be4e
lea edi, [esp + 0x150]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, 0x430134
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.0040b410
test eax, eax
jne 0x40be5e
lea eax, [esp + 0x10]
push eax
push ebp
call ebx
test eax, eax
jne 0x40bd88
push ebp
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x540
ret

Function at 0x40cfa0
Capabilities:
Terminate process

Disassembly:
push esi
push 1
push 0xc
call fcn.004150a5
mov esi, eax
add esp, 8
test esi, esi
jne 0x40cfcc
push str.plot_model_db_create:Calloc_Failure_A_n
push 0x4258d8
call fcn.0041460d
add esp, 8
push 1
call fcn.004141ed
mov eax, dword [esp + 8]
test eax, eax
mov dword [esi + 4], eax
je 0x40d002
push eax
push 0x64
call fcn.004150a5
add esp, 8
mov dword [esi + 8], eax
test eax, eax
jne 0x40d002
push str.plot_model_db_create:Calloc_Failure_B_n
push 0x4258d8
call fcn.0041460d
add esp, 8
push 1
call fcn.004141ed
mov eax, esi
pop esi
ret
Function at 0x4115e0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Resolve dns
Set socket configuration

Disassembly:
sub esp, 0x10
push ebx
push esi
push 0
push 1
push 2
call sub.WSOCK32.dll_socket
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4115ff
pop esi
or eax, eax
pop ebx
add esp, 0x10
ret
mov eax, dword [esp + 0x20]
mov word [esp + 8], 2
push eax
call sub.WSOCK32.dll_htons
mov esi, dword [esp + 0x1c]
mov word [esp + 0xa], ax
push esi
call sub.WSOCK32.dll_inet_addr
cmp eax, 0xffffffff
jne 0x41165c
push esi
call sub.WSOCK32.dll_gethostbyname
test eax, eax
jne 0x41163d
push ebx
call sub.WSOCK32.dll_closesocket
pop esi
or eax, 0xffffffff
pop ebx
add esp, 0x10
ret
movsx ecx, word [eax + 0xa]
mov edx, dword [eax + 0xc]
mov eax, ecx
push edi
lea edi, [esp + 0x10]
mov esi, dword [edx]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
jmp 0x411660
mov dword [esp + 0xc], eax
lea ecx, [esp + 8]
push 0x10
push ecx
push ebx
call sub.WSOCK32.dll_connect
cmp eax, 0xffffffff
jne 0x411681
push ebx
call sub.WSOCK32.dll_closesocket
pop esi
or eax, 0xffffffff
pop ebx
add esp, 0x10
ret
mov eax, ebx
pop esi
pop ebx
add esp, 0x10
ret
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.004075ac
lea eax, [ebp - 0x800]
push eax
call fcn.00409769
mov esi, eax
lea eax, [ebp - 0x800]
push eax
call fcn.004078f8
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.00409769
lea esi, [esi + eax + 1]
mov eax, 0x104
pop edi
cmp esi, eax
pop esi
jbe 0x40199e
push eax
push 0xaf
call fcn.00409273
push eax
push 0x40e2b0
call fcn.0040a567
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.00406f1a
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.00409769
lea eax, [eax + eax + 2]
push eax
push edi
lea eax, [esi + 0x418]
push eax
call fcn.004094ea
jmp 0x403557
xor eax, eax
mov word [esi + 0x418], ax
cmp dword [ebp + 8], ebx
je 0x403574
push dword [ebp + 8]
call fcn.00409535
inc eax
push eax
push dword [ebp + 8]
lea eax, [esi + 0x17]
push eax
call fcn.004094ea
jmp 0x403583
push 0x1000000
lea eax, [esi + 0x17]
push eax
push edi
call fcn.0040d2e8
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.00406f1a
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.00406f1a
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.00406f1a
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.00406f1a
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 0x405293
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 0x4052c5
cmp dword [ebp - 8], ebx
jne 0x405306
call esi
sub eax, dword [ebp - 0xc]
cmp eax, 0x2710
ja 0x405306
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 0x4052b2
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 0x4052b2
mov eax, dword [ebp - 8]
cmp eax, ebx
je 0x405346
mov ecx, dword [eax]
lea edx, [ebp - 4]
push edx
push 0x40ec24
push eax
call dword [ecx]
test eax, eax
jl 0x405346
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x20]
test eax, eax
jl 0x40533d
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 0x405ae5
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 0x405b08
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.00405a7e
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 0x405b5e
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 0x405ba9
push 5
push eax
call ebx
push dword [esi + 4]
call dword [sym.imp.USER32.dll_UpdateWindow]
cmp byte [esi + 0x15], 0
je 0x405bbe
cmp dword [esi + 0x18], 0x64
jbe 0x405c31
mov ecx, esi
call fcn.00405473
jmp 0x405c31
mov eax, dword [esi + 4]
cmp eax, edi
je 0x405bcf
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.00409769
imul eax, eax, 0xc
add eax, 0x200
push eax
call fcn.004092ef
push dword [ebp + 0x10]
mov ebx, eax
push ebx
call fcn.00409793
push ebx
mov ecx, esi
call fcn.0040534f
test al, al
jne 0x405c0d
push ebx
mov ecx, esi
call fcn.00405385
mov ebx, eax
push ebx
mov ecx, esi
call fcn.00405776
push ebx
mov esi, eax
call fcn.00409308
cmp esi, edi
je 0x405c31
push esi
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_SetWindowTextW]
push esi
call fcn.00409308
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x40907f
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.00408f9c
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 0x40910c
cmp byte [ebp + 0x10], 0
jne 0x409151
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 0x409151
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.00408e57
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 0x40924d
cmp dword [ebp + 8], 0x200
jge 0x409255
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 0x4091cb
push dword [ebp + 0xc]
mov ecx, dword [ebp - 0x10]
push 1
push 0x400
lea eax, [ebp - 0x844]
push eax
push eax
call fcn.00408e57
lea eax, [ebp - 0x844]
push eax
push dword [ebp + 0x10]
call dword [sym.imp.USER32.dll_SetWindowTextW]
cmp byte [ebp - 1], 0
je 0x409237
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 0x409255
inc dword [ebp + 8]
test eax, eax
jne 0x409175
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x4093bf
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 0x4093f7
mov eax, dword [ebp - 4]
xor edx, edx
div dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
jmp 0x4093fb
and dword [ebp - 0xc], 0
mov eax, dword [ebp - 0xc]
leave
ret 0x10

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

Function at 0x409b5e
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 0x409ba9
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.0040c9be
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 0x409f28
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 0x409f8a
mov ecx, dword [0x424724]
call fcn.00405232
push 5
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
push 0xffffffffffffffff
push 0
push ebx
push edi
call esi
push 0x40e7e0
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 0x409fda
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 0x40a024
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 0x40e804
push 0
push 0xc2
push dword [ebp - 4]
call esi
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x40a8f8
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 0x40a913
mov byte [ebx], 0
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x40a91d
mov byte [eax], 0
test edi, edi
je 0x40a9c6
movzx eax, word [edi]
test ax, ax
je 0x40a9c6
push esi
xor esi, esi
xor ecx, ecx
movzx eax, ax
inc edi
inc edi
cmp ax, 0x3d
jne 0x40a956
cmp dword [ebp + 0xc], 0
je 0x40a962
test esi, esi
jne 0x40a962
test ebx, ebx
je 0x40a952
mov byte [ebx], 1
mov esi, edx
jmp 0x40a971
cmp ax, 0xd
je 0x40a984
cmp ax, 0xa
je 0x40a986
mov word [edx], ax
mov eax, dword [ebp + 0x14]
inc edx
add eax, 0xfffffffe
inc edx
cmp ecx, eax
jg 0x40a97c
movzx eax, word [edi]
inc ecx
test ax, ax
jne 0x40a936
jmp 0x40a986
mov eax, dword [ebp + 0x10]
mov byte [eax], 1
jmp 0x40a986
inc edi
inc edi
mov ebx, dword [ebp + 0xc]
xor eax, eax
mov word [edx], ax
test ebx, ebx
je 0x40a9c1
mov word [ebx], ax
test esi, esi
je 0x40a9c1
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.0040c994
xor eax, eax
mov word [esi], ax
mov eax, edi
pop esi
jmp 0x40a9c8
xor eax, eax
pop edi
pop ebx
leave
ret 0x10