joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10171d52
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x101c2c58
push 0x101c2c50
push str.FlsAlloc
push 0x1f
call fcn.10171b7d
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10171d86
push dword [ebp + 8]
mov ecx, esi
call dword [0x10190a00]
call esi
jmp 0x10171d8c
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x10171dd0
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x101c2c68
push 0x101c2c60
push str.FlsGetValue
push 0x21
call fcn.10171b7d
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10171e07
push dword [ebp + 8]
mov ecx, esi
call dword [0x10190a00]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x10171e0f
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x101c2c70
push 0x101c2c68
push str.FlsSetValue
push 0x22
call fcn.10171b7d
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10171e49
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x10190a00]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x10173a1b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x101effb8]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x10173a5b
cmp byte [ebx], 0xa
jne 0x10173a5b
or byte [edi + eax + 0x28], 4
jmp 0x10173a60
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x10173b5f
mov dl, byte [eax]
cmp dl, 0x1a
je 0x10173b42
inc eax
cmp dl, 0xd
je 0x10173a8c
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x10173ab2
cmp eax, ecx
jae 0x10173ac0
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x10173a74
jmp 0x10173b5f
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10173b3d
cmp dword [ebp - 0x10], 0
je 0x10173b3d
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x101effb8]
test byte [eax + edi + 0x28], 0x48
je 0x10173b17
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x10173b02
mov byte [esi], dl
jmp 0x10173b13
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x101effb8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x10173b5f
cmp byte [ebp - 1], 0xa
jne 0x10173b26
cmp esi, ebx
jne 0x10173b26
mov byte [esi], 0xa
jmp 0x10173b5e
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.101745a1
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x10173b5f
mov byte [esi], 0xd
jmp 0x10173b5e
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x101effb8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x10173b5c
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x10173b5f
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x10173b68
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x101effb8]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x10173bae
cmp word [ebx], dx
jne 0x10173bae
or byte [eax + edi + 0x28], 4
jmp 0x10173bb3
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x10173d16
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x10173cf6
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x10173bf4
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x10173c2a
cmp eax, edx
jae 0x10173c38
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x10173bcf
jmp 0x10173d16
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10173cf1
cmp dword [ebp - 0x18], 0
je 0x10173cf1
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x101effb8]
test byte [eax + edi + 0x28], 0x48
je 0x10173cc7
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x10173c8b
mov word [esi], cx
jmp 0x10173cc2
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x101effb8]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x101effb8]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x101effb8]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x10173d16
pop eax
cmp word [ebp - 4], ax
jne 0x10173cd7
cmp esi, ebx
jne 0x10173cd7
mov word [esi], ax
jmp 0x10173d13
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.101745a1
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x10173d16
push 0xd
pop eax
jmp 0x10173cd2
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x101effb8]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x10173d10
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x10173d16
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x10177bdf
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x10177c7c
push ebx
push esi
call fcn.10177ba8
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.1016edc2
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x10177c29
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10177c7b
push edi
push eax
call fcn.1016ece4
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x10177c49
call fcn.1016e5f8
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10177c7a
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1016edc2
add esp, 0x20
test eax, eax
jne 0x10177c68
push edi
call fcn.1016e5f8
jmp 0x10177c70
push ebx
call fcn.1016e5f8
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x10177c7f
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x10177c90
pop esi
ret
push ebx
push edi
push esi
call fcn.10177ba8
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.1016ece4
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x10177cb8
push ebx
push esi
push edi
call fcn.101579a0
add esp, 0xc
push 0
call fcn.1016e5f8
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x10178088
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.10177ccd

Function at 0x1017c9a1
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.1016e9f9
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1017ca10
cmp esi, dword [ebp - 4]
je 0x1017ca0b
cmp dword [ebp + 0xc], 0
je 0x1017ca0b
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x1017c9e8
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.1017c4f3
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x1017ca12
xor eax, eax
inc eax
jmp 0x1017ca12
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x1017ca77
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x101e7000]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.1016e9f9
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.1016e9f9
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x1017caee
cmp word [ecx], dx
je 0x1017caee
mov eax, dword [0x101c34bc]
push edi
dec eax
push eax
push 0x101c33a8
call fcn.1017ca16
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x1017cb61
cmp word [eax], dx
je 0x1017cb61
mov eax, dword [edi]
test eax, eax
je 0x1017cb12
cmp word [eax], dx
je 0x1017cb12
lea eax, [ebp - 0x10]
push eax
call fcn.1017c3f9
jmp 0x1017cb1b
lea eax, [ebp - 0x10]
push eax
call fcn.1017c494
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x1017cb8b
mov eax, dword [0x101c33a4]
push dword [ebp - 0x14]
dec eax
push eax
push 0x101c3098
call fcn.1017ca16
add esp, 0xc
test al, al
je 0x1017cb8b
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x1017cb56
cmp word [eax], di
je 0x1017cb56
lea eax, [ebp - 0x10]
push eax
call fcn.1017c3f9
pop ecx
jmp 0x1017cb8d
lea eax, [ebp - 0x10]
push eax
call fcn.1017c494
jmp 0x1017cb53
mov eax, dword [edi]
test eax, eax
je 0x1017cb78
cmp word [eax], dx
je 0x1017cb78
lea eax, [ebp - 0x10]
push eax
call fcn.1017c3ae
pop ecx
jmp 0x1017cb8b
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x1017cc56
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.1017c89b
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x1017cc56
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x1017cc56
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x1017cc56
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x1017cbe3
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.10171f4f
test ebx, ebx
je 0x1017cc51
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.10171f4f
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1017cc56
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1017cc56
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.10166e19
add esp, 0x10
xor eax, eax
inc eax
jmp 0x1017cc58
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10154fa7
leave
ret
Function at 0x1017f454
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.1017f3d0
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x1017f5c3
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x1017f5c3
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x1017f578
jg 0x1017f4b0
test eax, eax
je 0x1017f56e
push 1
push 0x1000
call fcn.1016e632
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x1017f4d3
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x1017f565
push 0x8000
push ebx
call fcn.1017f301
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x1017f4fc
jg 0x1017f4f7
cmp ecx, 0x1000
jb 0x1017f4fc
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.101731b4
add esp, 0x10
cmp eax, 0xffffffff
je 0x1017f541
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x1017f4f7
jl 0x1017f528
test ecx, ecx
jne 0x1017f4e9
push dword [ebp - 0xc]
push ebx
call fcn.1017f301
push esi
call fcn.1016e5f8
add esp, 0xc
xor ebx, ebx
jmp 0x1017f5d1
cmp byte [edi + 0x24], 0
je 0x1017f558
cmp dword [edi + 0x20], 5
jne 0x1017f558
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x1017f563
mov ebx, dword [edi + 0x18]
jmp 0x1017f565
xor ebx, ebx
push esi
call fcn.1016e5f8
pop ecx
jmp 0x1017f5d1
test ecx, ecx
jg 0x1017f53a
jl 0x1017f578
test eax, eax
jae 0x1017f53a
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.101745a1
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x1017f598
cmp byte [edi + 0x1c], 0
je 0x1017f53a
jmp 0x1017f5c9
push ebx
call fcn.1016c3da
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1017f53a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x1017f5d1
cmp byte [edi + 0x1c], 0
je 0x1017f5ce
mov ebx, dword [edi + 0x18]
jmp 0x1017f5d1
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.101745a1
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1017ffe0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1018000d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1018000d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x402480
Capabilities:
Create thread
Hide graphical window
Resume thread

Disassembly:
push ecx
mov eax, dword [esi]
mov edx, dword [eax + 0x8c]
push 0xffffffffffffffec
mov ecx, esi
call edx
push eax
call dword [sym.imp.USER32.dll_GetWindowLongW]
and eax, 0xfffbffff
or eax, 0x80
push eax
mov eax, dword [esi]
mov edx, dword [eax + 0x8c]
push 0xffffffffffffffec
mov ecx, esi
call edx
push eax
call dword [sym.imp.USER32.dll_SetWindowLongW]
mov eax, dword [esi]
mov edx, dword [eax + 0x8c]
push 0x51
push 0
push 0
push 0xfffff830
push 0xfffff830
push 1
mov ecx, esi
call edx
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
mov eax, dword [esi]
mov edx, dword [eax + 0x8c]
push 1
mov ecx, esi
call edx
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [esi]
mov edx, dword [eax + 0x8c]
mov ecx, esi
call edx
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
cmp dword [esi + 0xd0], 0
jne 0x402535
lea eax, [esp]
push eax
push 0
push esi
push 0x402730
push 0
push 0
call fcn.0040b6e8
add esp, 0x18
mov dword [esi + 0xd0], eax
test eax, eax
je 0x402535
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
pop ecx
ret
Function at 0x402540
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
push esi
push edi
mov edi, eax
mov edi, edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [edi + 0xd4]
cmp eax, 0xc8
jb 0x4026d2
push ecx
mov eax, esp
mov dword [esp + 0x18], esp
push eax
mov esi, 0x422aa4
call fcn.00402d00
lea ebx, [edi + 0xc8]
call fcn.0040a0d0
test eax, eax
je 0x4026d2
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [edi + 0xd4], eax
mov ebx, dword [0x422ab0]
mov esi, dword [0x422aa8]
mov ecx, ebx
sub ecx, esi
cmp ecx, 0x2a
jge 0x4025b6
lea esi, [ebx - 0x2a]
mov dword [0x422aa8], esi
mov ecx, dword [0x422aa4]
mov eax, dword [0x422aac]
sub eax, ecx
sub eax, ebx
add eax, esi
cdq
sub eax, edx
sar eax, 1
add ecx, eax
mov edx, ecx
sub edx, esi
add edx, ebx
mov dword [0x422aac], edx
mov dword [0x422aa4], ecx
mov eax, dword [edi + 0xf4]
sub ebx, esi
imul eax, ebx
cdq
idiv dword [edi + 0xf8]
sub esp, 0x10
mov dword [esp + 0x24], 1
mov dword [esp + 0x20], eax
sub eax, ebx
cdq
sub eax, edx
sar eax, 1
neg eax
add ecx, eax
mov eax, dword [esp + 0x20]
lea edx, [ecx + eax]
mov eax, esp
mov dword [eax], ecx
mov dword [eax + 4], esi
mov dword [0x422aa4], ecx
mov ecx, dword [0x422ab0]
mov dword [eax + 8], edx
mov esi, edi
mov dword [0x422aac], edx
mov dword [eax + 0xc], ecx
call fcn.00402970
test al, al
je 0x402641
xor edx, edx
jmp 0x402645
mov edx, dword [esp + 0x14]
mov eax, dword [0x422aa8]
mov ecx, dword [0x422ab0]
mov esi, dword [0x422aac]
push 0x58
sub ecx, eax
push ecx
mov ecx, dword [0x422aa4]
sub esi, ecx
push esi
push eax
push ecx
push edx
mov edx, dword [edi]
mov eax, dword [edx + 0x8c]
mov ecx, edi
call eax
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, dword [esp + 0x10]
xor eax, eax
sub esp, 0x10
mov dword [0x422aa8], eax
mov dword [0x422aa4], eax
mov dword [esp + 0x24], esp
mov eax, esp
push 0x422aa4
push eax
mov dword [0x422ab0], ebx
mov dword [0x422aac], ecx
call dword [sym.imp.USER32.dll_CopyRect]
call fcn.00402b60
mov edx, dword [edi]
mov eax, dword [edx + 0x8c]
push 1
mov ecx, edi
call eax
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x402550
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [edi + 0xd4]
cmp eax, 0x1f4
jb 0x402706
mov edx, dword [edi]
mov eax, dword [edx + 0x8c]
push 0
push 0
push 0x4c8
mov ecx, edi
call eax
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x402550
sub esp, 0x10
mov dword [esp + 0x24], esp
mov eax, esp
push 0x422aa4
push eax
call dword [sym.imp.USER32.dll_CopyRect]
call fcn.00402b60
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x402550
Function at 0x402840
Capabilities:
Check if file exists
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x418b18
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x420280]
xor eax, esp
mov dword [esp + 0x38], eax
push ebx
push esi
push edi
mov eax, dword [0x420280]
xor eax, esp
push eax
lea eax, [esp + 0x4c]
mov dword fs:[0], eax
lea eax, [esp + 0x2c]
push eax
call fcn.004078b0
add esp, 4
mov ebx, str.cx_vcapp
lea ecx, [esp + 0x2c]
lea esi, [esp + 0x10]
mov dword [esp + 0x54], 0
call fcn.004037b0
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0x38]
mov byte [esp + 0x60], 1
call fcn.00403080
mov edi, 8
mov byte [esp + 0x54], 0
cmp dword [esp + 0x28], edi
jb 0x4028c8
mov ecx, dword [esp + 0x14]
push ecx
call fcn.0040b1ea
add esp, 4
mov ebx, str..exe
lea ecx, [esp + 0x2c]
lea esi, [esp + 0x10]
call fcn.004037b0
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0x38]
mov byte [esp + 0x60], 2
call fcn.00403080
cmp dword [esp + 0x28], edi
jb 0x402900
mov edx, dword [esp + 0x14]
push edx
call fcn.0040b1ea
add esp, 4
mov eax, dword [esp + 0x30]
cmp dword [esp + 0x44], edi
jae 0x40290e
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x402938
mov eax, dword [esp + 0x30]
cmp dword [esp + 0x44], edi
jae 0x402927
lea eax, [esp + 0x30]
push 1
push 0
push 0
push eax
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp dword [esp + 0x44], edi
jb 0x40294b
mov eax, dword [esp + 0x30]
push eax
call fcn.0040b1ea
add esp, 4
mov ecx, dword [esp + 0x4c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.0040b1f5
add esp, 0x48
ret
Function at 0x4029e0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x10
push ebp
push esi
push edi
mov esi, eax
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x402a05
push eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
xor al, al
pop edi
pop esi
pop ebp
add esp, 0x10
ret
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
push 0
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
push edi
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push edi
push ebp
push eax
call fcn.0040d210
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea eax, [esp + 0x10]
push eax
push 1
xor edi, edi
push esi
mov dword [esp + 0x1c], edi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x402b4c
mov eax, dword [esp + 0x10]
cmp eax, edi
je 0x402b4c
push eax
push ebx
call fcn.00401420
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
cmp dword [ebx + 0x18], 0x20
mov eax, dword [ebx + 0xc]
mov ecx, dword [ebx + 0x10]
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], ecx
jne 0x402b43
cmp eax, edi
mov dword [esp + 0xc], edi
jle 0x402b43
xor ebp, ebp
cmp dword [esp + 0x14], ebp
jle 0x402b32
mov eax, dword [ebx + 0x18]
imul eax, dword [esp + 0xc]
cdq
and edx, 7
add eax, edx
mov edx, dword [ebx + 0x14]
imul edx, ebp
mov ecx, eax
sar ecx, 3
add ecx, edx
add ecx, dword [ebx + 8]
mov eax, 0x80808081
movzx edi, byte [ecx + 3]
movzx esi, byte [ecx]
imul esi, edi
add esi, 0x7f
imul esi
add edx, esi
movzx esi, byte [ecx + 1]
sar edx, 7
imul esi, edi
mov eax, edx
shr eax, 0x1f
add eax, edx
mov byte [ecx], al
add esi, 0x7f
mov eax, 0x80808081
imul esi
add edx, esi
movzx esi, byte [ecx + 2]
sar edx, 7
imul esi, edi
mov eax, edx
shr eax, 0x1f
add eax, edx
mov byte [ecx + 1], al
add esi, 0x7f
mov eax, 0x80808081
imul esi
add edx, esi
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
inc ebp
cmp ebp, dword [esp + 0x14]
mov byte [ecx + 2], al
jl 0x402aa3
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0xc]
inc ecx
cmp ecx, eax
mov dword [esp + 0xc], ecx
jl 0x402a97
mov al, 1
pop edi
pop esi
pop ebp
add esp, 0x10
ret
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
pop esi
xor al, al
pop ebp
add esp, 0x10
ret