joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48ee74
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4a9b30]
jne 0x48ee7e
repz ret
jmp fcn.00493927

Function at 0x491ab1
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4a9b30]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0048c052
and dword [ebp - 0x14], 0
cmp dword [0x4acb0c], 0
mov dword [ebp - 0x18], eax
jne 0x491b64
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x491c0c
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x491c0c
mov esi, dword [fcn.00488080]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x4acb0c], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x4acb10], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x4acb14], eax
call edi
push eax
call esi
mov dword [0x4acb1c], eax
test eax, eax
je 0x491b64
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x4acb18], eax
mov eax, dword [0x4acb18]
mov ecx, dword [ebp - 0x18]
mov esi, dword [fcn.00488084]
cmp eax, ecx
je 0x491bbd
cmp dword [0x4acb1c], ecx
je 0x491bbd
push eax
call esi
push dword [0x4acb1c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x491bbd
test ebx, ebx
je 0x491bbd
call edi
test eax, eax
je 0x491bb4
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x491bb4
test byte [ebp - 8], 1
jne 0x491bbd
or dword [ebp + 0x10], 0x200000
jmp 0x491bf0
mov eax, dword [0x4acb10]
cmp eax, dword [ebp - 0x18]
je 0x491bf0
push eax
call esi
test eax, eax
je 0x491bf0
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x491bf0
mov eax, dword [0x4acb14]
cmp eax, dword [ebp - 0x18]
je 0x491bf0
push eax
call esi
test eax, eax
je 0x491bf0
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4acb0c]
call esi
test eax, eax
je 0x491c0c
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x491c0e
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0048ee74
leave
ret

Function at 0x433005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
mov eax, section..text
nop
nop
mov ebx, 0x40de38
mov ecx, 0x4848656d
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x43304e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x433024
nop
nop
mov eax, section..data
mov ebx, 0x4304d8
nop
mov ecx, 0x774574fc
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x433084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x43306c
nop
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x410220
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xa000]
push edi
jmp 0x41023a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x410241
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x410230
mov eax, 1
add ebx, ebx
jne 0x410253
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x410248
jne 0x410264
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x410248
xor ecx, ecx
sub eax, 3
jb 0x410278
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4102ea
mov ebp, eax
add ebx, ebx
jne 0x410283
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x410290
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x4102b4
inc ecx
add ebx, ebx
jne 0x4102a0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x410295
jne 0x4102b1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x410295
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4102d4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4102c5
jmp 0x410236
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4102d4
add edi, ecx
jmp 0x410236
pop esi
mov edi, esi
mov ecx, 0x278
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4102f2
cmp byte [edi], 5
jne 0x4102f2
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x4102f7
lea edi, [esi + 0xe000]
mov eax, dword [edi]
or eax, eax
je 0x410366
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x11db4]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x11e04]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x410324
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x11e08]
or eax, eax
je 0x410360
mov dword [ebx], eax
add ebx, 4
jmp 0x410341
call dword [esi + 0x11e18]
mov ebp, dword [esi + 0x11e0c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1e7]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x41039a
sub esp, 0xffffff80
jmp 0x402268
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
nop
push 4
nop
nop
nop
pop edi
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x430072
nop
nop
mov ebx, 0x408ecc
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
mov esi, 0x4d191d2a
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x430060
nop
nop
nop
mov eax, section..data
nop
cmp eax, 0
nop
nop
nop
nop
je 0x4300d2
nop
nop
nop
mov ebx, 0x42e1d0
nop
nop
nop
mov ecx, ebx
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
nop
push eax
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0xf8211f9
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
loop 0x4300c0
nop
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x405f47
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push esi
push ecx
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x405f5d
test al, 0x10
je 0x405f5d
inc esi
mov eax, esi
pop esi
ret

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

Disassembly:
mov edi, edi
push esi
push ecx
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x405f77
test al, 0x10
je 0x405f77
inc esi
mov eax, esi
pop esi
ret
Function at 0x4064b8
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x40a004]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x20], 0
push ebx
mov ebx, dword [ebp + 0x18]
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x24], 0x4010a8
push esi
push edi
test ebx, ebx
jne 0x4064ec
mov edi, 0x80070057
jmp 0x40665b
mov eax, dword [ebx]
lea ecx, [ebp - 0x20]
push ecx
push ebx
mov esi, dword [eax + 0x34]
mov ecx, esi
call dword [0x40d220]
call esi
mov edi, eax
test edi, edi
js 0x40665b
and dword [ebp - 0x28], 0
and dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0x4010a8
mov eax, dword [ebp - 0x20]
lea ecx, [ebp - 0x28]
push ecx
lea ecx, [ebp - 0x10]
push ecx
mov esi, dword [eax]
push 1
push eax
mov ecx, dword [esi + 0xc]
call dword [0x40d220]
call dword [esi + 0xc]
test eax, eax
jne 0x406653
and dword [ebp - 8], eax
lea edx, [ebp - 8]
mov eax, dword [ebp - 0x10]
push edx
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0xc]
mov ecx, esi
call dword [0x40d220]
call esi
mov edi, eax
test edi, edi
js 0x406643
mov ecx, dword [ebp - 8]
call fcn.00406366
mov esi, eax
xor edx, edx
mov eax, dword [ebp - 0x2c]
inc edx
mov ecx, eax
mov dword [ebp - 0xc], edx
mov al, byte [eax]
jmp 0x40658e
cmp al, 0x2e
jne 0x406584
and dword [ebp - 0xc], 0
jmp 0x40658b
cmp al, 0x5c
jne 0x40658b
mov dword [ebp - 0xc], edx
inc ecx
mov al, byte [ecx]
test al, al
jne 0x40657a
and dword [ebp - 0x18], 0
test esi, esi
jne 0x4065a4
mov edi, 0x8007007b
jmp 0x406643
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetConsoleCP]
mov edx, eax
mov ecx, esi
call fcn.004060ed
mov edi, eax
test edi, edi
js 0x406633
cmp dword [ebp + 0xc], 0
je 0x4065d5
push dword [ebp - 0xc]
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x18]
call fcn.00405a4f
test eax, eax
je 0x406633
cmp dword [ebp + 0x1c], 0
jne 0x406602
cmp dword [ebp + 0x20], 0
jne 0x406602
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4065f6
mov ecx, dword [ebp + 8]
test al, 0x10
jne 0x4065f9
mov ecx, dword [ebp + 0x10]
call fcn.00406366
mov esi, eax
jmp 0x40660b
cmp dword [ebp + 0x24], 0
jne 0x40660b
mov esi, dword [ebp - 8]
push ebx
push dword [ebp + 0x14]
push esi
push dword [ebp - 8]
push dword [ebp + 8]
call fcn.0040642d
push dword [ebp - 8]
mov edi, eax
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0x1c]
mov ecx, esi
call dword [0x40d220]
call esi
cmp dword [ebp - 0x18], 0
je 0x406643
push dword [ebp - 0x18]
call dword [sym.imp.msvcrt.dll_free]
pop ecx
lea ecx, [ebp - 0x14]
call fcn.00406dd0
test edi, edi
jns 0x406519
lea ecx, [ebp - 0x14]
call fcn.00406e0f
lea ecx, [ebp - 0x24]
call fcn.00406e0f
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00409710
mov esp, ebp
pop ebp
ret 0x20
Function at 0x40677d
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov eax, ecx
mov esi, 0x80004005
lea ecx, [ebp - 8]
mov dword [ebp - 4], eax
push ecx
xor ecx, ecx
mov dword [0x40a00c], esi
push ecx
push eax
push 0x4066b0
push ecx
push ecx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
test edi, edi
je 0x4067ef
mov bl, 1
push 0x3e8
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x4067dc
cmp eax, 0x102
jne 0x4067e8
mov ecx, dword [ebp - 4]
call fcn.004066ee
test eax, eax
jns 0x4067e4
mov esi, eax
jmp 0x4067e2
mov esi, dword [0x40a00c]
xor bl, bl
test bl, bl
jne 0x4067b5
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4073c1
Capabilities:
Get file size
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
xor eax, eax
push ebx
push esi
push edi
push eax
push eax
push 3
push eax
push 1
push 0x80000000
push ecx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
test esi, esi
je 0x407537
cmp esi, 0xffffffff
je 0x407537
lea eax, [ebp - 0x18]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
mov dword [ebp - 8], ebx
cmp ebx, 0xffffffff
je 0x40753a
cmp dword [ebp - 0x18], edi
je 0x407420
mov ecx, 0x80070057
mov ebx, ecx
jmp 0x40754b
push 0
lea eax, [ebp - 0xc]
push eax
push 3
lea eax, [ebp - 4]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40753a
cmp dword [ebp - 0xc], 2
mov al, byte [ebp - 3]
mov cl, byte [ebp - 4]
jb 0x407486
cmp cl, 0xfe
jne 0x407459
cmp al, 0xff
jne 0x407486
mov dword [ebp - 0x10], 3
jmp 0x407469
cmp cl, 0xff
jne 0x407486
cmp al, 0xfe
jne 0x407486
mov dword [ebp - 0x10], 2
push 1
push 0
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
sub ebx, 2
mov dword [ebp - 8], ebx
test ebx, 1
je 0x4074b9
jmp 0x407414
cmp dword [ebp - 0xc], 3
jne 0x4074aa
cmp cl, 0xef
jne 0x4074aa
cmp al, 0xbb
jne 0x4074aa
cmp byte [ebp - 2], 0xbf
jne 0x4074aa
sub ebx, 3
mov dword [ebp - 0x10], 1
mov dword [ebp - 8], ebx
jmp 0x4074b9
xor eax, eax
push eax
push eax
push eax
push esi
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [ebp - 0x14]
mov ecx, ebx
push eax
push 2
pop edx
call fcn.004076ec
mov ebx, eax
test ebx, ebx
js 0x407549
push dword [ebp - 0x14]
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
test edi, edi
jne 0x4074e5
mov ebx, 0x8007000e
jmp 0x407549
mov ebx, dword [ebp - 8]
lea eax, [ebp - 0xc]
push 0
push eax
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40753a
cmp ebx, dword [ebp - 0xc]
je 0x40750a
mov ecx, 0x8000ffff
jmp 0x407419
mov eax, dword [ebp - 0x14]
cmp eax, 2
jb 0x407500
mov word [edi + eax - 2], 0
mov ecx, edi
mov eax, dword [ebp + 8]
xor edi, edi
mov dword [eax], ecx
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov dword [eax], ebx
test ecx, ecx
je 0x407533
mov eax, dword [ebp - 0x10]
mov dword [ecx], eax
xor ebx, ebx
jmp 0x407550
or esi, 0xffffffff
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.004071b6
mov ebx, eax
mov ecx, ebx
call fcn.004071ce
mov ecx, ebx
call fcn.004071e6
test edi, edi
je 0x407562
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
test esi, esi
je 0x407572
cmp esi, 0xffffffff
je 0x407572
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40757d
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xb4
mov eax, dword [0x40a004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [ebp - 0xb0], eax
mov ebx, 0x94
mov eax, dword [ebp + 0xc]
xor esi, esi
push ebx
mov dword [ebp - 0xa8], eax
lea eax, [ebp - 0xa0]
push esi
push eax
mov dword [ebp - 0xa4], edx
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [ebp - 0xa0], ebx
lea eax, [ebp - 0xa0]
xor edi, edi
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x4075fc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.004071b6
mov edi, eax
mov ecx, edi
call fcn.004071ce
mov ebx, dword [ebp - 0xa8]
jmp 0x40761f
cmp dword [ebp - 0x90], 2
jne 0x40761d
cmp dword [ebp - 0x9c], 5
ja 0x407618
jne 0x40761d
cmp dword [ebp - 0x98], esi
jbe 0x40761d
xor ebx, ebx
inc ebx
jmp 0x40761f
xor ebx, ebx
mov ecx, edi
call fcn.004071e6
test edi, edi
jns 0x407636
mov ecx, edi
call fcn.004071ce
jmp 0x4076c5
push 0
push 0
push 0xffffffffffffffff
push dword [ebp - 0xa4]
mov eax, ebx
shl eax, 3
push eax
push 0xfde9
mov dword [ebp - 0xac], eax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ebx, eax
test ebx, ebx
jg 0x407670
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.004071b6
mov edi, eax
jmp 0x40762a
lea eax, [ebx + ebx]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
jne 0x407689
mov edi, 0x8007000e
jmp 0x40762a
push ebx
push esi
push 0xffffffffffffffff
push dword [ebp - 0xa4]
push dword [ebp - 0xac]
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
jle 0x40765f
mov edx, dword [ebp - 0xb0]
mov eax, esi
xor esi, esi
mov dword [edx], eax
mov edx, dword [ebp - 0xa8]
test edx, edx
je 0x4076c5
lea eax, [ecx + ecx]
mov dword [edx], eax
mov ecx, edi
call fcn.004071e6
test esi, esi
je 0x4076d7
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00409710
mov esp, ebp
pop ebp
ret 8
Function at 0x407c6a
Capabilities:
Timestomp file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x40a004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push edi
lea edi, [ebp - 0x18]
mov ebx, edx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [esi + 0x24]
mov edi, ecx
lea ecx, [ebp - 0x18]
push eax
mov edx, edi
call fcn.00407ff7
cmp eax, 1
je 0x407cad
cmp dword [esi + 0x24], 0xe
jge 0x407d42
lea ecx, [ebp - 0x18]
call fcn.004080b0
xor ecx, ecx
cmp eax, 1
sete cl
mov dword [ebp - 0x1c], ecx
jne 0x407cdf
cmp byte [ebp - 0x10], 0x41
je 0x407ccc
push 0xfffffffffffffff8
jmp 0x407d3a
mov eax, dword [ebp - 0xc]
mov edx, ebx
push esi
push ecx
push ecx
dec eax
mov ecx, edi
push eax
call fcn.004080f3
jmp 0x407ce9
push esi
mov edx, ebx
mov ecx, edi
call fcn.00407ba8
cmp eax, 1
jne 0x407d45
push esi
mov edx, ebx
mov cl, 0x46
call fcn.004083e9
cmp eax, 1
jne 0x407d45
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x34]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x407d42
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x34]
push eax
push ebx
call sub.KERNEL32.dll_SetFileTime
test eax, eax
je 0x407d42
cmp dword [ebp - 0x1c], 0
je 0x407d3d
mov eax, dword [ebp - 0xc]
cmp dword [esi + 0x28], eax
je 0x407d3d
push 0xfffffffffffffffd
pop eax
jmp 0x407d45
xor eax, eax
inc eax
jmp 0x407d45
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00409710
mov esp, ebp
pop ebp
ret 4

Function at 0x4087ca
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x40a004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x20
lea eax, [ebp - 0x44]
mov esi, 0xc04
push eax
push 8
push 0x404
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x408818
push 3
lea eax, [ebp - 0x44]
push 0x403328
push eax
call dword [sym.imp.msvcrt.dll_wcsncmp]
add esp, 0xc
neg eax
sbb eax, eax
and eax, 0xfffff800
add esi, eax
mov ecx, dword [ebp - 4]
mov ax, si
xor ecx, ebp
pop esi
call fcn.00409710
mov esp, ebp
pop ebp
ret
Function at 0x40882a
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x40a004]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
cmp ax, word [0x40bb98]
jne 0x4088c6
push edi
lea eax, [ebp - 0x10]
mov dword [ebp - 0x14], 6
push eax
push 1
xor edi, edi
push edi
push 0x403340
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4088c5
push esi
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
push edi
push edi
push 0x4033f8
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x10]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
pop esi
jne 0x4088c5
push 3
push dword [edi*8 + 0x401190]
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.msvcrt.dll__wcsnicmp]
add esp, 0xc
test eax, eax
je 0x4088b7
inc edi
cmp edi, 0x1c
jb 0x408895
jmp 0x4088c5
mov ax, word [edi*8 + 0x401194]
mov word [0x40bb98], ax
pop edi
mov ecx, dword [ebp - 4]
mov ax, word [0x40bb98]
xor ecx, ebp
call fcn.00409710
mov esp, ebp
pop ebp
ret
Function at 0x409025
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x44
push edi
push 0x1c
lea eax, [ebp - 0x20]
mov dword [ebp - 4], edx
mov edi, ecx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x409049
push 0x19
pop ecx
int 0x29
test byte [ebp - 0xc], 0x44
je 0x409093
push ebx
push esi
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ebx, dword [ebp - 0x40]
xor edx, edx
lea ecx, [ebx - 1]
mov eax, ecx
lea esi, [ebx - 1]
and ecx, dword [ebp - 4]
and eax, edi
add eax, ebx
dec ecx
add eax, ecx
not esi
div ebx
xor edx, edx
and esi, edi
mov ecx, eax
mov eax, dword [ebp - 4]
div ebx
add ecx, eax
je 0x409091
xor eax, eax
lock or dword [esi], eax
add esi, ebx
sub ecx, 1
jne 0x409085
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x409874
Capabilities:
Parse pe header

Disassembly:
push 0xc
push 0x409f08
call fcn.00409cd4
xor ecx, ecx
mov eax, dword [ebp + 8]
test eax, eax
je 0x4098d4
cmp eax, 0xffffffff
je 0x4098d4
mov dword [ebp - 4], ecx
mov edx, 0x5a4d
cmp word [eax], dx
jne 0x4098cd
mov edx, dword [eax + 0x3c]
test edx, edx
js 0x4098cd
cmp edx, 0x10000000
jae 0x4098cd
add eax, edx
mov dword [ebp - 0x1c], eax
mov ecx, dword [eax]
sub ecx, 0x4550
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
jmp 0x4098ca
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, ecx
call fcn.00409d19
ret 4

Function at 0x409920
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40995e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x409956
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x409960
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x409946
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x409a30
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
je 0x409a46
xor eax, eax
pop ebp
ret
mov ecx, dword [eax + 0x3c]
add ecx, eax
xor eax, eax
cmp dword [ecx], 0x4550
jne 0x409a61
mov edx, 0x10b
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
Function at 0x401720
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
push 0
push eax
push 0
push 0
push 0x80000000
push 0x80000000
push 0x80000000
push 0x80000000
push 0xcf0000
push str.Best_Application
push str.Clariot
push 0
mov dword [0x4050ff], eax
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov esi, eax
test esi, esi
jne 0x401767
pop esi
pop ebp
ret
push 0
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
call dword [sym.imp.USER32.dll_UpdateWindow]
mov eax, 1
pop esi
pop ebp
ret

Function at 0x401fad
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x405364]
test eax, eax
je 0x401fc6
call eax
test eax, eax
jne 0x401fc6
push 0xfffffffffffffffe
jmp 0x401fe0
push 1
push 0x405010
push 0x405008
call fcn.00401b91
add esp, 0xc
test eax, eax
je 0x401fe6
push 0xfffffffffffffffd
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push esi
push 0
push 0x405004
push section..data
call fcn.00401b91
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov esi, eax
test esi, esi
jne 0x40200c
mov esi, 0x4049c2
mov cl, 0x20
jmp 0x402015
cmp al, 0x20
ja 0x40201f
inc esi
mov al, byte [esi]
test al, al
jne 0x402010
cmp al, 0x20
jbe 0x402036
mov al, byte [esi]
cmp al, 0x22
jne 0x402028
xor cl, 0x20
inc esi
mov al, byte [esi]
cmp al, cl
ja 0x402021
jmp 0x402036
cmp al, cl
ja 0x40203c
inc esi
mov al, byte [esi]
test al, al
jne 0x402031
and dword [ebp - 0x18], 0
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test eax, 0xa0d0a0d
sub eax, 0x54524357
sub eax, 0xa0d0a0d
test byte [ebp - 0x18], 1
je 0x402065
movzx eax, word [ebp - 0x14]
jmp 0x402068
push 0xa
pop eax
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
push eax
call fcn.0040209d
pop ecx
pop esi
leave
ret

Function at 0x40209d
Capabilities:
Terminate process

Disassembly:
call fcn.004020e7
push 0
push 0x405018
push 0x405014
call fcn.00401b91
push 0
push 0x405020
push 0x40501c
call fcn.00401b91
add esp, 0x18
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_ExitProcess]