joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1002280
Capabilities:
Create process on windows
Get common file path
Read .ini file
Set current directory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xa6c
mov eax, dword [0x1007034]
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov esi, 0x104
push esi
lea eax, [ebp - 0x108]
push eax
xor ebx, ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push esi
lea eax, [ebp - 0x518]
push eax
mov byte [ebp - 0x106], bl
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [ebp - 0x518]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
cmp byte [ebp + 8], bl
jne 0x10023b2
lea eax, [ebp - 0x108]
push eax
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.01001f45
push 0x10012b4
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.0100200e
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0x20c]
push eax
push 0x400
lea eax, [ebp - 0xa18]
push eax
mov ebx, 0x10012b1
push ebx
push 0x10012ac
mov edi, 0x10012a0
push edi
call esi
lea eax, [ebp - 0x20c]
push eax
push 0x100
lea eax, [ebp - 0x618]
push eax
push ebx
push 0x1001298
push edi
call esi
lea eax, [ebp - 0xa18]
push eax
call fcn.01002236
push 4
lea eax, [ebp - 0x618]
push eax
lea eax, [ebp - 0xa18]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 7
je 0x100245b
push 0x1001288
mov esi, 0x208
push esi
lea eax, [ebp - 0x414]
push eax
call fcn.01001f45
lea eax, [ebp - 0x108]
push eax
push esi
lea eax, [ebp - 0x414]
push eax
call fcn.0100200e
push 0x1001270
push esi
lea eax, [ebp - 0x414]
push eax
call fcn.0100200e
xor ebx, ebx
jmp 0x10023ef
push 0x100123c
mov esi, 0x208
push esi
lea eax, [ebp - 0x414]
push eax
call fcn.01001f45
lea eax, [ebp - 0x108]
push eax
push esi
lea eax, [ebp - 0x414]
push eax
call fcn.0100200e
push 0x1001224
push esi
lea eax, [ebp - 0x414]
push eax
call fcn.0100200e
xor eax, eax
mov dword [ebp - 0xa28], ebx
push 0x10
lea edi, [ebp - 0xa24]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
pop ecx
stosd dword es:[edi], eax
xor eax, eax
mov dword [ebp - 0xa6c], ebx
lea edi, [ebp - 0xa68]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0xa28]
push eax
lea eax, [ebp - 0xa6c]
push eax
lea eax, [ebp - 0x518]
push eax
push ebx
push 0x10
push ebx
push ebx
push ebx
lea eax, [ebp - 0x414]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x1002445
or eax, 0xffffffff
jmp 0x100245d
push dword [ebp - 0xa24]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0xa28]
call esi
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.01002558
leave
ret 4
Function at 0x10026cd
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
push 0x60
push 0x10012e8
call fcn.010036bc
mov edi, 0x94
mov eax, edi
call fcn.01003820
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x1007910], ecx
mov eax, dword [esi + 4]
mov dword [0x100791c], eax
mov edx, dword [esi + 8]
mov dword [0x1007920], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x1007914], esi
cmp ecx, 2
je 0x100272d
or esi, 0x8000
mov dword [0x1007914], esi
shl eax, 8
add eax, edx
mov dword [0x1007918], eax
cmp word [0x1000000], 0x5a4d
jne 0x100276a
mov eax, dword [0x100003c]
cmp dword [eax + 0x1000000], 0x4550
jne 0x100276a
movzx ecx, word [eax + 0x1000018]
cmp ecx, 0x10b
je 0x1002783
cmp ecx, 0x20b
je 0x1002770
and dword [ebp - 0x1c], 0
jmp 0x100279a
cmp dword [eax + 0x1000084], 0xe
jbe 0x100276a
xor ecx, ecx
cmp dword [eax + 0x10000f8], ecx
jmp 0x1002794
cmp dword [eax + 0x1000074], 0xe
jbe 0x100276a
xor ecx, ecx
cmp dword [eax + 0x10000e8], ecx
setne cl
mov dword [ebp - 0x1c], ecx
push 1
call fcn.0100365f
pop ecx
test eax, eax
jne 0x10027ae
push 0x1c
call fcn.0100269f
pop ecx
call fcn.010035d1
test eax, eax
jne 0x10027bf
push 0x10
call fcn.0100269f
pop ecx
and dword [ebp - 4], 0
call fcn.0100331b
test eax, eax
jge 0x10027d4
push 0x1b
call fcn.01002670
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x1008114], eax
call fcn.010031ee
mov dword [0x1007900], eax
call fcn.01003145
test eax, eax
jge 0x10027fa
push 8
call fcn.01002670
pop ecx
call fcn.01002eeb
test eax, eax
jge 0x100280b
push 9
call fcn.01002670
pop ecx
call fcn.0100298f
mov dword [ebp - 0x28], eax
test eax, eax
je 0x100281e
push eax
call fcn.01002670
pop ecx
and dword [ebp - 0x44], 0
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.01002e7d
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x1002840
movzx eax, word [ebp - 0x40]
jmp 0x1002843
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push 0
push 0x1000000
call fcn.01002046
mov esi, eax
mov dword [ebp - 0x2c], esi
cmp dword [ebp - 0x1c], 0
jne 0x1002864
push esi
call fcn.01002a80
call fcn.01002ab8
jmp 0x1002896
or dword [ebp - 4], 0xffffffff
mov eax, esi
lea esp, [ebp - 0x7c]
call fcn.010036f7
ret
Function at 0x1002ae7
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x1007034]
mov ecx, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 4], eax
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x1007040]
je 0x1002b11
inc eax
cmp eax, 0x12
jb 0x1002b02
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x1007040]
mov dword [ebp - 0x110], esi
jne 0x1002cbc
mov eax, dword [0x1007908]
cmp eax, 1
je 0x1002c8a
test eax, eax
jne 0x1002b47
cmp dword [0x100703c], 1
je 0x1002c8a
cmp ecx, 0xfc
je 0x1002cbc
push 0x104
lea eax, [ebp - 0x10c]
push eax
push 0
mov byte [ebp - 8], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x1002b82
push 5
pop ecx
mov esi, 0x100165c
lea edi, [ebp - 0x10c]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea ebx, [ebp - 0x10c]
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1002b8d
sub eax, edx
inc eax
cmp eax, 0x3c
jbe 0x1002bc5
lea eax, [ebp - 0x10c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1002ba5
sub eax, edx
push 3
lea ebx, [ebp + eax - 0x147]
push 0x1001658
push ebx
call fcn.01003bd0
add esp, 0xc
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1002bca
sub eax, edx
mov ecx, eax
mov eax, dword [ebp - 0x110]
mov eax, dword [eax + 0x1007044]
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x1002be4
sub eax, esi
lea eax, [eax + ecx + 0x1c]
add eax, 3
and eax, 0xfffffffc
call fcn.01003820
mov edx, esp
push 6
pop ecx
mov esi, 0x100163c
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov eax, ebx
movsw word es:[edi], word [esi]
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1002c10
mov edi, edx
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x1002c1c
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, edx
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x1002c35
mov eax, dword [ebp - 0x110]
mov esi, 0x1001638
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov eax, dword [eax + 0x1007044]
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1002c53
mov edi, edx
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x1002c5f
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push 0x12010
mov ecx, eax
and ecx, 3
push 0x1001610
push edx
rep movsb byte es:[edi], byte [esi]
call fcn.01003ac7
add esp, 0xc
jmp 0x1002cbc
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
test eax, eax
je 0x1002cbc
mov esi, dword [esi + 0x1007044]
mov ecx, esi
lea edx, [ecx + 1]
mov bl, byte [ecx]
inc ecx
test bl, bl
jne 0x1002ca1
push 0
sub ecx, edx
lea edx, [ebp - 0x114]
push edx
push ecx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x120]
mov ecx, dword [ebp - 4]
call fcn.01002558
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10031ee
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x1007a60]
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
push edi
xor ebx, ebx
xor edi, edi
cmp eax, ebx
jne 0x100323a
call esi
mov edi, eax
cmp edi, ebx
je 0x1003220
mov dword [0x1007a60], 1
jmp 0x100323f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x1003235
push 2
pop eax
mov dword [0x1007a60], eax
jmp 0x100323a
mov eax, dword [0x1007a60]
cmp eax, 1
jne 0x10032b7
cmp edi, ebx
jne 0x100324b
call esi
mov edi, eax
cmp edi, ebx
je 0x10032c0
cmp word [edi], bx
mov eax, edi
je 0x1003260
inc eax
inc eax
cmp word [eax], bx
jne 0x1003252
inc eax
inc eax
cmp word [eax], bx
jne 0x1003252
mov esi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push ebx
push ebx
push ebx
sub eax, edi
push ebx
sar eax, 1
inc eax
push eax
push edi
push ebx
push ebx
mov dword [ebp - 0xc], eax
call esi
cmp eax, ebx
mov dword [ebp - 8], eax
je 0x10032ae
push eax
call fcn.0100435f
cmp eax, ebx
pop ecx
mov dword [ebp - 4], eax
je 0x10032ae
push ebx
push ebx
push dword [ebp - 8]
push eax
push dword [ebp - 0xc]
push edi
push ebx
push ebx
call esi
test eax, eax
jne 0x10032ab
push dword [ebp - 4]
call fcn.01004236
pop ecx
mov dword [ebp - 4], ebx
mov ebx, dword [ebp - 4]
push edi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x100330f
cmp eax, 2
je 0x10032c4
cmp eax, ebx
je 0x10032c4
xor eax, eax
jmp 0x1003311
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov esi, eax
cmp esi, ebx
mov dword [ebp - 4], esi
je 0x10032c0
cmp byte [esi], bl
je 0x10032e1
inc eax
cmp byte [eax], bl
jne 0x10032d7
inc eax
cmp byte [eax], bl
jne 0x10032d7
sub eax, esi
inc eax
mov edi, eax
push edi
call fcn.0100435f
cmp eax, ebx
pop ecx
je 0x1003308
mov ecx, edi
mov edx, ecx
shr ecx, 2
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebp - 4]
mov ebx, eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x100355e
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov edi, edi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [0x100717c]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x10035c0
push 0x88
push 1
call fcn.01004425
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x10035b8
push esi
push dword [0x100717c]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x10035b8
push esi
call fcn.01003541
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
or dword [esi + 4], 0xffffffff
mov dword [esi], eax
jmp 0x10035c0
push 0x10
call fcn.01002670
pop ecx
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
mov eax, esi
pop esi
ret
Function at 0x10035d1
Capabilities:
Allocate thread local storage
Set thread local storage value

Disassembly:
call fcn.01003941
test eax, eax
je 0x10035ea
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [0x100717c], eax
jne 0x10035f2
call fcn.0100351e
xor eax, eax
ret
push esi
push 0x88
push 1
call fcn.01004425
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x1003632
push esi
push dword [0x100717c]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x1003632
push esi
call fcn.01003541
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
or dword [esi + 4], 0xffffffff
mov dword [esi], eax
xor eax, eax
inc eax
pop esi
ret
call fcn.0100351e
xor eax, eax
pop esi
ret

Function at 0x1003ac7
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x1007bb8], ebx
push esi
push edi
jne 0x1003b49
push 0x10016d8
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x1003b84
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x10016cc
push edi
call esi
test eax, eax
mov dword [0x1007bb8], eax
je 0x1003b84
push 0x10016bc
push edi
call esi
push 0x10016a8
push edi
mov dword [0x1007bbc], eax
call esi
cmp dword [0x1007910], 2
mov dword [0x1007bc0], eax
jne 0x1003b49
push 0x100168c
push edi
call esi
test eax, eax
mov dword [0x1007bc8], eax
je 0x1003b49
push 0x1001674
push edi
call esi
mov dword [0x1007bc4], eax
mov eax, dword [0x1007bc4]
test eax, eax
je 0x1003b8e
call eax
test eax, eax
je 0x1003b75
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x1007bc8]
test eax, eax
je 0x1003b75
test byte [ebp - 8], 1
jne 0x1003b8e
cmp dword [0x100791c], 4
jb 0x1003b88
or byte [ebp + 0x12], 0x20
jmp 0x1003bad
xor eax, eax
jmp 0x1003bbd
or byte [ebp + 0x12], 4
jmp 0x1003bad
mov eax, dword [0x1007bbc]
test eax, eax
je 0x1003bad
call eax
mov ebx, eax
test ebx, ebx
je 0x1003bad
mov eax, dword [0x1007bc0]
test eax, eax
je 0x1003bad
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x1007bb8]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1005072
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x10050a3
mov eax, dword fs:[4]
mov dword [ebp + 8], eax
mov eax, dword fs:[8]
mov dword [ebp - 4], eax
cmp ebx, dword [ebp - 4]
jb 0x10050aa
cmp ebx, dword [ebp + 8]
jae 0x10050aa
xor eax, eax
jmp 0x100529a
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x10050bb
xor eax, eax
inc eax
jmp 0x1005299
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x10050d1
cmp ecx, edx
jae 0x1005216
cmp dword [eax + 4], 0
je 0x10050da
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x10050c2
cmp dword [ebp + 8], 0
je 0x10050fc
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x1005216
cmp eax, esi
jae 0x1005216
mov eax, dword [0x1007be0]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x1005121
cmp dword [esi*4 + 0x1007be8], edi
je 0x100521a
inc esi
cmp esi, eax
jl 0x100510f
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x1005296
cmp dword [ebp - 8], 0x1000000
jne 0x1005296
test byte [ebp - 0xc], 0xcc
je 0x100519f
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x1005296
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x1005296
cmp word [eax + 0x18], 0x10b
jne 0x1005296
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x1005296
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x100519f
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x100519f
test byte [ecx + 0x27], 0x80
jne 0x1005216
push 1
push 0x1007c28
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x10050b3
mov ecx, dword [0x1007be0]
test ecx, ecx
mov edx, ecx
jle 0x10051d3
lea eax, [ecx*4 + 0x1007be4]
cmp dword [eax], edi
je 0x10051d3
dec edx
sub eax, 4
test edx, edx
jg 0x10051c7
test edx, edx
jne 0x1005204
push 0xf
pop ebx
cmp ecx, ebx
jg 0x10051e0
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x10051f8
lea eax, [edx*4 + 0x1007be8]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x10051e6
cmp ecx, 0x10
jge 0x1005204
inc ecx
mov dword [0x1007be0], ecx
push 0
push 0x1007c28
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x10050b3
xor eax, eax
jmp 0x1005299
test esi, esi
jle 0x10050b3
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x1007c28
call ebx
test eax, eax
jne 0x10050b3
cmp dword [esi*4 + 0x1007be8], edi
je 0x1005270
mov eax, dword [0x1007be0]
lea esi, [eax - 1]
test esi, esi
jl 0x100525e
cmp dword [esi*4 + 0x1007be8], edi
je 0x100525a
dec esi
jns 0x100524e
test esi, esi
jge 0x100526e
cmp eax, 0x10
jge 0x1005269
inc eax
mov dword [0x1007be0], eax
lea esi, [eax - 1]
jmp 0x1005270
je 0x1005288
xor ecx, ecx
test esi, esi
jl 0x1005288
lea eax, [ecx*4 + 0x1007be8]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x1005276
push 0
push 0x1007c28
call ebx
jmp 0x10050b3
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10061a3
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push esi
push edi
push 4
pop eax
call fcn.01003820
mov ebx, esp
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x1006209
mov edi, dword [ebp - 0x1c]
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [0x1007910]
mov esi, dword [ebp - 0x40]
mov ecx, eax
dec ecx
neg ecx
sbb ecx, ecx
lea edx, [esi - 1]
and ecx, 0x103
not edx
and edx, ebx
inc ecx
sub edx, esi
dec eax
neg eax
sbb eax, eax
and eax, 0xfffffff1
add eax, 0x11
imul eax, esi
add eax, edi
cmp edx, eax
jae 0x100620d
xor eax, eax
jmp 0x100621a
lea eax, [ebp - 4]
push eax
push ecx
push esi
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x50]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x8003b13
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
mov dword [0x800438c], 0x30
mov dword [0x8004394], 0x8003424
mov dword [0x8004390], 2
mov dword [0x8004398], 0
mov dword [0x800439c], 0
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
jmp 0x8003b56
mov dword [0x80043a0], eax
mov dword [0x80043b4], 0x80041cc
mov dword [0x80043ac], 0xf
mov dword [0x80040ee], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadIconA]
mov dword [0x80043a4], eax
mov dword [0x80043b8], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadCursorA]
mov dword [0x80040f6], ebp
mov dword [0x80043a8], eax
push 0x800438c
call dword [sym.imp.user32.dll_RegisterClassExA]
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x800440c], eax
push 0
push dword [0x80040ee]
push 0
push 0
push 0x1ef
push 0x21c
push 0xffffe688
push 0xfffff524
push 0xcf0000
push str.uno_momento
push str.verba
push 0
call dword [sym.imp.user32.dll_CreateWindowExA]
mov dword [0x8004404], eax
push 1
push dword [0x8004404]
call dword [sym.imp.user32.dll_ShowWindow]
push dword [0x8004404]
call dword [sym.imp.user32.dll_UpdateWindow]
jmp 0x8003c14
xor edi, edi
lea ebx, [0x80043bc]
jmp 0x8003c2c
push ebx
call dword [sym.imp.user32.dll_TranslateMessage]
push ebx
call dword [sym.imp.user32.dll_DispatchMessageA]
push edi
push edi
push edi
push ebx
call dword [sym.imp.user32.dll_GetMessageA]
test al, al
jne 0x8003c1e
jmp 0x8003c40
mov eax, dword [0x80043c4]
jmp section..htext
Function at 0x401530
Capabilities:
Check for time delay via gettickcount
Enumerate gui resources

Disassembly:
push ecx
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetTickCount]
push esi
push edi
mov esi, ecx
call ebp
mov edi, dword [sym.imp.USER32.dll_EnumWindows]
push esi
push 0x4015a0
mov dword [esp + 0x18], eax
mov dword [esi + 4], 0
call edi
mov eax, dword [esp + 0x18]
test eax, eax
je 0x401594
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [esp + 0x18]
mov eax, dword [esi + 4]
cmp eax, dword [ecx + 4]
jne 0x401594
call ebp
sub eax, dword [esp + 0x10]
cmp eax, 0x1770
ja 0x401594
push 0x64
call ebx
push esi
push 0x4015a0
mov dword [esi + 4], 0
call edi
jmp 0x401566
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 4

Function at 0x401670
Capabilities:
Create process on windows

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x428f16
push eax
mov eax, 0x227c
mov dword fs:[0], esp
call fcn.0040ec60
xor eax, eax
push esi
mov dword [esp + 0xc], eax
xor esi, esi
mov dword [esp + 0x10], eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x14], eax
mov word [esp + 4], 0x100
mov word [esp + 6], si
mov word [esp + 8], si
mov word [esp + 0xa], si
mov dword [esp + 0x18], eax
call fcn.004014a0
lea ecx, [esp + 0x28]
mov dword [esp + 0x2288], esi
call fcn.004014a0
lea ecx, [esp + 0x78]
push 0x208
push ecx
mov byte [esp + 0x2290], 1
call fcn.004017f0
add esp, 8
test eax, eax
je 0x401703
lea edx, [esp + 4]
lea eax, [esp + 0x78]
push edx
push eax
call fcn.004018a0
add esp, 8
mov ecx, dword [esp + 0x2290]
push edi
push ecx
lea edx, [esp + 0x288]
push str.open__s
push edx
call fcn.0040ebe9
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x44]
add esp, 0xc
rep stosd dword es:[edi], eax
push esi
lea ecx, [esp + 0x24]
mov dword [esp + 0x3c], 0x44
mov dword [esp + 0x68], 1
mov word [esp + 0x6c], 5
call fcn.00401530
lea eax, [esp + 0x10]
lea ecx, [esp + 0x38]
push eax
push ecx
push esi
push esi
push 0x10
push esi
push esi
lea edx, [esp + 0x2a0]
push esi
lea eax, [esp + 0x9c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov eax, dword [esp + 0x10]
pop edi
cmp eax, esi
je 0x4017bd
push 0x7d0
push eax
call dword [sym.imp.USER32.dll_WaitForInputIdle]
mov ecx, dword [esp + 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
mov edx, dword [esp + 0xc]
push edx
call esi
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x28]
push eax
call fcn.00401530
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x2c]
call fcn.00401610
mov esi, eax
lea ecx, [esp + 0x28]
call fcn.004014b0
lea ecx, [esp + 0x1c]
call fcn.004014b0
mov ecx, dword [esp + 0x2280]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x2288
ret
Function at 0x4017f0
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
push esi
lea eax, [esp + 4]
push edi
xor edi, edi
push eax
push 0x20019
push edi
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_PathsIEXPLORE.EXE_
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x1c], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40187e
mov esi, dword [esp + 0x10]
test esi, esi
je 0x40187e
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x401834
mov dword [esp + 0x14], 0x208
mov edx, dword [esp + 8]
lea ecx, [esp + 0x14]
push ecx
push esi
push 0
push 0
push 0x4377d4
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [esp + 0x14]
shr ecx, 1
test eax, eax
mov dword [esp + 0x14], ecx
jne 0x401884
mov eax, ecx
dec ecx
cmp eax, 1
mov dword [esp + 0x14], ecx
jbe 0x401884
mov word [esi + ecx*2], 0
mov ecx, dword [esp + 8]
push ecx
mov edi, 1
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
pop ecx
ret
mov ecx, dword [esp + 8]
xor edi, edi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
pop ecx
ret

Function at 0x4018a0
Capabilities:
Get file version info

Disassembly:
sub esp, 8
push ebx
mov ebx, dword [esp + 0x10]
push ebp
push esi
xor ebp, ebp
push edi
push ebp
push ebx
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], ebp
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
cmp esi, ebp
jne 0x4018cc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
add esi, 2
lea eax, [esi + 2]
push eax
call fcn.004215c7
mov edi, eax
add esp, 4
cmp edi, ebp
jne 0x4018eb
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
push edi
push esi
push ebp
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x40194b
lea ecx, [esp + 0x14]
lea edx, [esp + 0x10]
push ecx
push edx
push 0x435170
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x40194b
mov eax, dword [esp + 0x10]
cmp eax, ebp
je 0x40194b
cmp dword [esp + 0x14], ebp
jbe 0x40194b
mov edx, dword [eax + 8]
mov ecx, dword [esp + 0x20]
shr edx, 0x10
mov word [ecx], dx
mov dx, word [eax + 8]
mov word [ecx + 2], dx
mov edx, dword [eax + 0xc]
shr edx, 0x10
mov word [ecx + 4], dx
mov ax, word [eax + 0xc]
mov ebp, 1
mov word [ecx + 6], ax
push edi
call fcn.004215f0
add esp, 4
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret