joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40f1c0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x14
push 0x1000
push 0
push dword [0x43e804]
mov dword [esp + 0x10], 0x1000
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, eax
mov dword [esp + 0xc], edx
test edx, edx
je 0x40f310
mov eax, dword [esp + 0x1c]
mov cl, byte [esp + 3]
push ebx
push ebp
mov ebp, dword [esp + 0x20]
push esi
push edi
mov edi, dword [esp + 0x30]
mov esi, edx
cmp edi, 0xffffffff
je 0x40f20c
test edi, edi
je 0x40f27d
dec edi
push esi
push ebp
call fcn.0041b220
mov dword [esp + 0x20], eax
test eax, eax
jne 0x40f21f
xor cl, cl
jmp 0x40f221
mov cl, byte [esi]
mov edx, dword [esp + 0x1c]
add esi, eax
mov eax, dword [esp + 0x14]
mov ebx, esi
sub ebx, edx
mov byte [esp + 0x13], cl
add eax, 0xfffffffb
cmp ebx, eax
jle 0x40f264
mov eax, dword [esp + 0x14]
add eax, 0x1000
push eax
push edx
push 8
push dword [0x43e804]
mov dword [esp + 0x24], eax
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov cl, byte [esp + 0x13]
mov edx, eax
mov dword [esp + 0x1c], edx
lea esi, [ebx + edx]
mov eax, dword [esp + 0x2c]
test cl, cl
je 0x40f27d
test eax, eax
jne 0x40f202
cmp cl, 0xd
je 0x40f281
cmp cl, 0xa
jne 0x40f202
dec esi
jmp 0x40f2f3
test eax, eax
jne 0x40f2f3
cmp cl, 0xa
jne 0x40f289
dec esi
jmp 0x40f2f3
cmp cl, 0xd
jne 0x40f2f3
dec esi
cmp dword [ebp + 4], 0
je 0x40f2a8
push 1
lea eax, [esp + 0x17]
push eax
push ebp
call fcn.0041b0f0
mov dword [esp + 0x20], eax
jmp 0x40f2bf
push 0
lea eax, [esp + 0x24]
push eax
push 1
lea eax, [esp + 0x1f]
push eax
push dword [ebp]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp byte [esp + 0x13], 0xa
je 0x40f2f3
cmp dword [ebp + 4], 0
je 0x40f2d1
inc dword [ebp + 0xc]
jmp 0x40f2f3
push 1
lea eax, [esp + 0x1c]
mov dword [esp + 0x18], 0xffffffff
push eax
push 0xffffffffffffffff
push dword [ebp]
mov dword [esp + 0x28], 0xffffffff
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esp + 0x34]
mov ecx, esi
sub ecx, dword [esp + 0x1c]
pop edi
mov dword [eax], ecx
mov eax, dword [esp + 0x18]
mov byte [esi], 0
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 0x10
xor eax, eax
add esp, 0x14
ret 0x10

Function at 0x4104e3
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42d6c0
push 0x42d6b8
push str.FlsAlloc
push 0x1f
call fcn.004108fa
mov esi, eax
add esp, 0x10
test esi, esi
je 0x410517
push dword [ebp + 8]
mov ecx, esi
call dword [0x439a78]
call esi
jmp 0x41051d
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x410561
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42d6d0
push 0x42d6c8
push str.FlsGetValue
push 0x21
call fcn.004108fa
mov esi, eax
add esp, 0x10
test esi, esi
je 0x410598
push dword [ebp + 8]
mov ecx, esi
call dword [0x439a78]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x4105a0
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42d6d8
push 0x42d6d0
push str.FlsSetValue
push 0x22
call fcn.004108fa
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4105da
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x439a78]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]

Function at 0x4143a9
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x42c4e0
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
push edi
mov edi, dword [ebp + 0xc]
mov eax, edi
cmp dword [edi + 0x14], 8
jb 0x4143d3
mov eax, dword [edi]
lea ecx, [ebp - 0x1c]
push ecx
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov ebx, eax
xor eax, eax
test ebx, ebx
jne 0x414404
mov ecx, dword [ebp + 8]
mov edi, ecx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
and dword [ecx + 0x10], ebx
xor eax, eax
mov dword [ecx + 0x14], 7
mov word [ecx], ax
mov eax, ecx
jmp 0x414508
push ebx
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
call fcn.00413cb1
cmp dword [edi + 0x14], 8
jb 0x41441e
mov edi, dword [edi]
push esi
mov esi, dword [ebp - 0x28]
push esi
push ebx
xor ebx, ebx
push ebx
push edi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
jne 0x41447d
mov ebx, dword [ebp + 8]
mov edi, ebx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
and dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 7
mov word [ebx], ax
test esi, esi
je 0x414505
mov eax, dword [ebp - 0x20]
sub eax, esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], eax
cmp eax, 0x1000
jb 0x4144fc
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.004136f4
mov eax, dword [ebp - 0x14]
mov esi, dword [ebp - 0x18]
jmp 0x4144fa
lea eax, [ebp + 0xc]
mov dword [ebp - 0x10], ebx
push eax
lea eax, [ebp - 0x10]
mov dword [ebp + 0xc], ebx
push eax
push str.StringFileInfo040904B0ProductVersion
push esi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x4144b6
cmp dword [ebp - 0x10], ebx
je 0x4144b6
cmp dword [ebp + 0xc], ebx
je 0x4144b6
push dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov ecx, ebx
push dword [ebp - 0x10]
call fcn.00413988
jmp 0x4144d1
mov ebx, dword [ebp + 8]
xor eax, eax
mov edi, ebx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
and dword [ebx + 0x10], 0
xor eax, eax
mov dword [ebx + 0x14], 7
mov word [ebx], ax
test esi, esi
je 0x414505
mov eax, dword [ebp - 0x20]
sub eax, esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x18], eax
cmp eax, 0x1000
jb 0x4144fc
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.004136f4
mov eax, dword [ebp - 0x18]
mov esi, dword [ebp - 0x14]
pop ecx
pop ecx
push eax
push esi
call fcn.0040ecd2
pop ecx
pop ecx
mov eax, ebx
pop esi
mov ecx, dword [ebp - 0xc]
pop edi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x4146d7
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
push ebp
push esi
push edi
xor ebp, ebp
lea eax, [esp + 0xc]
push eax
push ebp
push ebp
push ebp
push dword [esp + 0x24]
mov edi, ecx
mov dword [esp + 0x20], ebp
push dword [edi + 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, dword [esp + 0x18]
test eax, eax
je 0x414707
cmp eax, 0xea
jne 0x414739
mov eax, dword [esp + 0xc]
mov ecx, esi
push ebp
shr eax, 1
push eax
call fcn.00413b9d
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x414720
mov eax, dword [esi]
lea ecx, [esp + 0xc]
push ecx
push eax
push ebp
push ebp
push dword [esp + 0x24]
push dword [edi + 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x414742
push ebp
push ebp
mov ecx, esi
call fcn.00413b9d
pop edi
pop esi
pop ebp
pop ecx
ret 8

Function at 0x414749
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
push ecx
push ebp
push edi
xor ebp, ebp
lea eax, [esp + 0xc]
push eax
push ebp
push ebp
push ebp
push dword [esp + 0x24]
mov edi, ecx
mov dword [esp + 0x20], ebp
push dword [edi + 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x414786
cmp eax, 0xea
je 0x414786
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x14]
push eax
push ebp
call fcn.004165a9
jmp 0x4147c3
push esi
mov esi, dword [esp + 0x1c]
lea eax, [esp + 0xf]
push eax
push dword [esp + 0x14]
mov ecx, esi
call fcn.004165a9
lea eax, [esp + 0x10]
push eax
push dword [esi]
push ebp
push ebp
push dword [esp + 0x28]
push dword [edi + 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x4147c2
lea eax, [esp + 0x1c]
mov ecx, esi
push eax
push ebp
call fcn.004165a9
pop esi
pop edi
pop ebp
pop ecx
pop ecx
ret 8
Function at 0x419b92
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 + 0x43efa0]
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 0x419bd2
cmp byte [ebx], 0xa
jne 0x419bd2
or byte [edi + eax + 0x28], 4
jmp 0x419bd7
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 0x419cd6
mov dl, byte [eax]
cmp dl, 0x1a
je 0x419cb9
inc eax
cmp dl, 0xd
je 0x419c03
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x419c29
cmp eax, ecx
jae 0x419c37
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 0x419beb
jmp 0x419cd6
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 0x419cb4
cmp dword [ebp - 0x10], 0
je 0x419cb4
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x43efa0]
test byte [eax + edi + 0x28], 0x48
je 0x419c8e
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x419c79
mov byte [esi], dl
jmp 0x419c8a
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x43efa0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x419cd6
cmp byte [ebp - 1], 0xa
jne 0x419c9d
cmp esi, ebx
jne 0x419c9d
mov byte [esi], 0xa
jmp 0x419cd5
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041a033
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x419cd6
mov byte [esi], 0xd
jmp 0x419cd5
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x43efa0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x419cd3
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x419cd6
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x419cdf
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 + 0x43efa0]
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 0x419d25
cmp word [ebx], dx
jne 0x419d25
or byte [eax + edi + 0x28], 4
jmp 0x419d2a
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 0x419e8d
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 0x419e6d
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x419d6b
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x419da1
cmp eax, edx
jae 0x419daf
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 0x419d46
jmp 0x419e8d
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 0x419e68
cmp dword [ebp - 0x18], 0
je 0x419e68
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x43efa0]
test byte [eax + edi + 0x28], 0x48
je 0x419e3e
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 0x419e02
mov word [esi], cx
jmp 0x419e39
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x43efa0]
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 + 0x43efa0]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x43efa0]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x419e8d
pop eax
cmp word [ebp - 4], ax
jne 0x419e4e
cmp esi, ebx
jne 0x419e4e
mov word [esi], ax
jmp 0x419e8a
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0041a033
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x419e8d
push 0xd
pop eax
jmp 0x419e49
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x43efa0]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x419e87
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x419e8d
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 0x41b0f0
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
push esi
push edi
cmp dword [ebx + 0x14], 0
jne 0x41b112
push ebx
call fcn.00403e90
mov dword [ebx + 0x14], 1
mov dword [ebx + 0xc], 0
mov ebp, dword [ebx + 0xc]
mov ecx, dword [ebx + 4]
mov esi, dword [esp + 0x1c]
sub ecx, ebp
add ecx, dword [ebx + 0x10]
cmp ebp, esi
jl 0x41b18e
mov eax, esi
sub eax, 1
je 0x41b17a
sub eax, 1
je 0x41b164
sub eax, 2
je 0x41b150
push esi
push ecx
push dword [esp + 0x20]
call fcn.00418370
add esp, 0xc
mov eax, esi
sub dword [ebx + 0xc], esi
pop edi
pop esi
pop ebp
pop ebx
ret 0xc
mov eax, dword [esp + 0x18]
mov ecx, dword [ecx]
pop edi
mov dword [eax], ecx
mov eax, esi
sub dword [ebx + 0xc], esi
pop esi
pop ebp
pop ebx
ret 0xc
mov eax, dword [esp + 0x18]
mov cx, word [ecx]
pop edi
mov word [eax], cx
mov eax, esi
sub dword [ebx + 0xc], esi
pop esi
pop ebp
pop ebx
ret 0xc
mov dl, byte [ecx]
mov eax, esi
mov ecx, dword [esp + 0x18]
pop edi
mov byte [ecx], dl
sub dword [ebx + 0xc], esi
pop esi
pop ebp
pop ebx
ret 0xc
mov eax, dword [esp + 0x18]
push ebp
push ecx
push eax
call fcn.00418370
mov eax, dword [esp + 0x24]
add esp, 0xc
mov edx, dword [ebx + 8]
add eax, ebp
mov ecx, dword [ebx]
sub esi, ebp
mov dword [esp + 0x18], eax
push 0
cmp esi, edx
jl 0x41b1d6
lea edx, [esp + 0x18]
push edx
push esi
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x14]
pop edi
pop esi
add eax, ebp
mov dword [ebx + 0xc], 0
pop ebp
pop ebx
ret 0xc
lea eax, [esp + 0x18]
push eax
push edx
push dword [ebx + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x14]
mov dword [ebx + 0xc], eax
mov dword [ebx + 0x10], eax
cmp esi, eax
jle 0x41b1f6
mov esi, eax
mov eax, dword [esp + 0x18]
push esi
push dword [ebx + 4]
push eax
call fcn.00418370
sub dword [ebx + 0xc], esi
lea eax, [esi + ebp]
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
ret 0xc
Function at 0x41b220
Capabilities:
Read file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
mov dword [esp + 4], 0
cmp dword [esi + 4], 0
je 0x41b247
push 1
lea eax, [esp + 0x10]
push eax
push esi
call fcn.0041b0f0
mov dword [esp + 4], eax
jmp 0x41b261
push 0
lea eax, [esp + 8]
push eax
push 1
lea eax, [esp + 0x18]
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 4]
cmp eax, 1
jne 0x41b318
mov cl, byte [esp + 0xc]
test cl, cl
js 0x41b286
mov eax, dword [esp + 0x10]
pop esi
mov byte [eax], cl
mov byte [eax + 1], 0
mov eax, 1
pop ecx
ret 8
mov al, cl
and al, 0xe0
push edi
cmp al, 0xc0
jne 0x41b296
mov edi, 2
jmp 0x41b2b2
mov al, cl
and al, 0xf0
cmp al, 0xe0
jne 0x41b2a5
mov edi, 3
jmp 0x41b2b2
mov al, cl
and al, 0xf8
cmp al, 0xf0
jne 0x41b304
mov edi, 4
mov eax, dword [esp + 0x14]
push ebx
lea ebx, [edi - 1]
mov byte [eax], cl
inc eax
cmp dword [esi + 4], 0
je 0x41b2de
push ebx
push eax
push esi
call fcn.0041b0f0
mov ecx, eax
xor eax, eax
cmp ecx, ebx
pop ebx
setne al
dec eax
and eax, edi
pop edi
pop esi
pop ecx
ret 8
push 0
lea ecx, [esp + 0x10]
push ecx
push ebx
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [esp + 0xc]
xor eax, eax
cmp ecx, ebx
pop ebx
setne al
dec eax
and eax, edi
pop edi
pop esi
pop ecx
ret 8
mov eax, dword [esp + 0x14]
pop edi
pop esi
mov word [eax], 0x3f
mov eax, 1
pop ecx
ret 8
xor eax, eax
pop esi
pop ecx
ret 8

Function at 0x41b358
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x41b397
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41b397
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41b397
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x41b397
cmp dword [ecx + 0x74], 0xe
jbe 0x41b397
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x41eb5e
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x43c410]
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.0040fda3
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.0040fda3
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 0x41ebd5
cmp word [ecx], dx
je 0x41ebd5
mov eax, dword [0x42f89c]
push edi
dec eax
push eax
push 0x42f788
call fcn.0041ed4e
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x41ec48
cmp word [eax], dx
je 0x41ec48
mov eax, dword [edi]
test eax, eax
je 0x41ebf9
cmp word [eax], dx
je 0x41ebf9
lea eax, [ebp - 0x10]
push eax
call fcn.0041edaf
jmp 0x41ec02
lea eax, [ebp - 0x10]
push eax
call fcn.0041f09d
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x41ec72
mov eax, dword [0x42f784]
push dword [ebp - 0x14]
dec eax
push eax
push 0x42f478
call fcn.0041ed4e
add esp, 0xc
test al, al
je 0x41ec72
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x41ec3d
cmp word [eax], di
je 0x41ec3d
lea eax, [ebp - 0x10]
push eax
call fcn.0041edaf
pop ecx
jmp 0x41ec74
lea eax, [ebp - 0x10]
push eax
call fcn.0041f09d
jmp 0x41ec3a
mov eax, dword [edi]
test eax, eax
je 0x41ec5f
cmp word [eax], dx
je 0x41ec5f
lea eax, [ebp - 0x10]
push eax
call fcn.0041f1d1
pop ecx
jmp 0x41ec72
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 0x41ed3d
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.0041f2c3
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x41ed3d
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x41ed3d
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x41ed3d
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x41ecca
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.0041073d
test ebx, ebx
je 0x41ed38
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.0041073d
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x41ed3d
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 0x41ed3d
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.0042667c
add esp, 0x10
xor eax, eax
inc eax
jmp 0x41ed3f
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041826c
leave
ret
Function at 0x41f3c9
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.0040fda3
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 0x41f438
cmp esi, dword [ebp - 4]
je 0x41f433
cmp dword [ebp + 0xc], 0
je 0x41f433
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x41f410
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.0041f492
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x41f43a
xor eax, eax
inc eax
jmp 0x41f43a
xor eax, eax
pop edi
pop esi
leave
ret

Function at 0x41f4c0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41f4ed
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41f4ed
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x4296c6
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 0x429763
push ebx
push esi
call fcn.00429766
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.0041bc09
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x429710
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x429762
push edi
push eax
call fcn.0040f675
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x429730
call fcn.0040f63b
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x429761
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0041bc09
add esp, 0x20
test eax, eax
jne 0x42974f
push edi
call fcn.0040f63b
jmp 0x429757
push ebx
call fcn.0040f63b
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 0x440000
Capabilities:
Allocate thread local storage

Disassembly:
push 0x14
push 0
push 0x43e804
call fcn.00401020
add esp, 0xc
push 0
call sub.KERNEL32.dll_GetModuleHandleW
mov dword [0x43e808], eax
push 0
push 0x1000
push 0
call sub.KERNEL32.dll_HeapCreate
mov dword [0x43e804], eax
call fcn.00401000
call fcn.00404160
call fcn.00403f80
call fcn.00403e7f
call fcn.00403e32
call fcn.00403dd0
call fcn.00403d90
call fcn.00403a22
call fcn.004039d0
call fcn.004030fc
call fcn.00403056
call fcn.00402f70
call fcn.00402f3d
call fcn.00402f00
call fcn.00402e0a
call fcn.00402d6a
call fcn.00402c85
call fcn.0040271b
call fcn.0040265f
call fcn.00402565
push 0xc80001
mov eax, str.Youtube.
push eax
push 0x258
push 0x258
push 0
push 0
push 0
call fcn.00402b2f
and eax, eax
je 0x44014d
mov eax, str.chemin.txt
push eax
push 0
call fcn.00403fa0
and eax, eax
je 0x440110
push dword [0x43eb20]
push dword [0x43eb20]
push 0
call fcn.00404060
lea eax, [0x43e810]
push eax
call fcn.004041d0
push 0
call fcn.00403ee0
push 1
push dword [0x43e810]
push 0x258
push 0x258
push 0xa
push 0xa
push 0
call fcn.004016b8
mov dword [0x43e814], eax
call fcn.00402c7d
mov ebx, eax
cmp ebx, 0x333c
jne 0x44013e
push 0
call 0x44016c
call fcn.004041a0
push dword [0x43e804]
call sub.KERNEL32.dll_HeapDestroy
call sub.KERNEL32.dll_ExitProcess
call fcn.00402609
call sub.ole32.dll_OleUninitialize
call fcn.0040266e
call fcn.004026f8
call fcn.00402cf4
call fcn.00402edf
call fcn.00402f64
call fcn.00402f96
call fcn.0040304a
call fcn.00403db0
call fcn.00403e26
call fcn.00403f70
call fcn.00403db0
call fcn.00403dc0
ret