joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40a7aa
Capabilities:
Create directory
Delete directory

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
sub esp, 0x28
push ebx
push esi
push edi
call fcn.0040a46e
test al, al
je 0x40a7c6
xor eax, eax
jmp 0x40a8c1
mov eax, dword [ebp + 8]
call fcn.0040a596
mov byte [ebp - 1], al
lea eax, [ebp - 0x24]
xor ebx, ebx
push eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
call fcn.0040a621
mov edi, dword [ebp - 0x20]
cmp edi, ebx
pop ecx
jg 0x40a7ff
push ebx
push ebx
push 1
push 0xc000008c
call dword [sym.imp.KERNEL32.dll_RaiseException]
mov eax, dword [ebp - 0x24]
mov eax, dword [eax]
sub eax, 0x10
call fcn.00409cf0
mov esi, eax
add esi, 0x10
dec edi
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x18], edi
cmp byte [ebp + 0xc], bl
je 0x40a821
inc edi
mov dword [ebp - 0x18], edi
xor eax, eax
inc eax
cmp edi, eax
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], eax
jle 0x40a8a2
mov edi, 0x44a8c0
jmp 0x40a837
xor ebx, ebx
lea eax, [esi - 0x10]
call fcn.00409cf0
add eax, 0x10
mov dword [ebp - 8], eax
push edi
lea eax, [ebp - 8]
push eax
call fcn.00402171
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 0x24]
call fcn.0040df7b
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
lea eax, [ebp - 8]
call fcn.00402357
push ebx
mov ebx, dword [ebp - 8]
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x40a8c6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x14], eax
cmp eax, 0xb7
je 0x40a8d8
cmp byte [ebp - 1], 0
jne 0x40a8d8
cmp dword [ebp - 0x10], 1
jle 0x40a89a
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
lea eax, [ebx - 0x10]
call fcn.0040469f
lea eax, [esi - 0x10]
call fcn.0040469f
lea esi, [ebp - 0x24]
call fcn.00408ee6
mov eax, dword [ebp - 0x14]
sub eax, 0xb7
neg eax
sbb eax, eax
and eax, dword [ebp - 0x14]
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x40a8d8
lea ebx, [ebp - 8]
call fcn.004096f9
mov ebx, dword [ebp - 8]
push edi
lea eax, [ebp - 0xc]
push eax
call fcn.00402171
mov esi, dword [ebp - 0x10]
mov eax, esi
lea ecx, [ebp - 0x24]
call fcn.0040df7b
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
lea eax, [ebp - 0xc]
call fcn.00402357
lea eax, [ebx - 0x10]
call fcn.0040469f
inc esi
cmp esi, dword [ebp - 0x18]
mov dword [ebp - 0x10], esi
mov esi, dword [ebp - 0xc]
jl 0x40a835
jmp 0x40a8a2
Function at 0x40b284
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
mov ebx, dword [ebp + 8]
cmp byte [ebx + 0xc0], 0
push esi
push edi
je 0x40b404
cmp byte [ebx + 0xd8], 0
jne 0x40b404
lea esi, [ebx + 0x84]
cmp dword [esi], 3
je 0x40b2e2
push ebx
call fcn.0040c7e8
mov esi, dword [esi]
cmp esi, 2
je 0x40b2e2
cmp esi, 1
je 0x40b2e2
mov eax, dword [ebx + 0x44]
mov ecx, eax
shr ecx, 3
test cl, 1
jne 0x40b2db
shr eax, 6
test al, 1
je 0x40b2e2
mov eax, ebx
call fcn.0040ba4f
mov ecx, dword [ebx + 0xa8]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
cmp ecx, eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], eax
jle 0x40b353
lea eax, [ebx + 0xa4]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
call fcn.0040df7b
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, eax
call edi
test esi, esi
jne 0x40b348
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
call fcn.0040df7b
mov ebx, eax
lea esi, [ebp - 0x24]
call fcn.004096f9
mov ebx, dword [ebp + 8]
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0xc]
jl 0x40b315
mov esi, dword [ebx + 0xb4]
dec esi
mov dword [ebp - 4], esi
js 0x40b3a5
lea eax, [ebx + 0xb0]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov eax, esi
call fcn.0040df7b
push dword [eax]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov dword [ebp - 0xc], eax
call edi
cmp dword [ebp - 0xc], 0
jne 0x40b39f
mov ecx, dword [ebp - 8]
mov eax, esi
call fcn.0040df7b
mov ebx, eax
lea esi, [ebp - 0x18]
call fcn.004096f9
mov ebx, dword [ebp + 8]
mov esi, dword [ebp - 4]
dec esi
mov dword [ebp - 4], esi
jns 0x40b368
lea eax, [ebx + 0xa4]
lea edi, [ebp - 0x24]
call fcn.0040dd8a
lea esi, [ebx + 0xb0]
call fcn.00408ee6
mov edi, dword [ebp - 0x14]
dec edi
js 0x40b3db
mov eax, edi
lea ecx, [ebp - 0x18]
call fcn.0040df7b
mov ebx, eax
call fcn.004096f9
dec edi
jns 0x40b3c4
mov ebx, dword [ebp + 8]
xor eax, eax
cmp dword [ebx + 0xa8], eax
jne 0x40b3ee
cmp dword [ebx + 0xb4], eax
jne 0x40b3ee
inc eax
lea esi, [ebp - 0x18]
mov byte [ebx + 0xd8], al
call fcn.00408ee6
lea esi, [ebp - 0x24]
call fcn.00408ee6
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x40ba4f
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
mov edi, eax
mov eax, dword [edi + 0x5c]
sub eax, 0x10
call fcn.00409cf0
add eax, 0x10
xor edx, edx
mov dword [ebp - 4], eax
mov eax, dword [edi + 0x44]
inc edx
test dl, al
jne 0x40baa1
shr eax, 3
movzx ecx, al
and al, dl
and ecx, edx
movzx eax, al
add ecx, ecx
or ecx, edx
neg eax
sbb eax, eax
and eax, 7
push ecx
push eax
mov eax, edi
call fcn.0040c21f
lea ecx, [edi + 0x6c]
call fcn.0040dede
add eax, 0x18
jmp 0x40bae7
shr eax, 6
test dl, al
je 0x40bb08
lea esi, [ebp - 8]
mov ecx, edi
call fcn.0040d6b8
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
lea eax, [ebp - 4]
call fcn.00402357
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.0040469f
lea esi, [ebp - 4]
call fcn.00409d6a
push 6
mov eax, edi
call fcn.0040c263
lea ecx, [edi + 0x98]
call fcn.00415be4
lea edi, [ebp - 8]
call fcn.00409f7f
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
lea eax, [ebp - 4]
call fcn.00402357
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.0040469f
lea eax, [ebp - 4]
push eax
call fcn.0040a121
mov esi, dword [ebp - 4]
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
lea eax, [esi - 0x10]
call fcn.0040469f
pop edi
xor eax, eax
pop esi
leave
ret
Function at 0x40c7e8
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0x44]
push esi
push edi
test al, 1
je 0x40c806
shr eax, 6
test al, 1
je 0x40c931
mov eax, dword [ebx + 0x70]
and dword [ebp - 8], 0
mov dword [ebp - 0x18], eax
test eax, eax
jle 0x40c931
lea eax, [ebx + 0x6c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
call fcn.0040dede
mov esi, eax
cmp byte [esi + 0x1c], 0
je 0x40c922
mov eax, dword [esi]
cmp eax, 1
je 0x40c869
cmp eax, 3
je 0x40c869
cmp eax, 7
je 0x40c869
cmp eax, 8
je 0x40c869
cmp eax, 0x64
jb 0x40c890
mov eax, dword [ebx + 0x84]
cmp eax, 2
je 0x40c922
cmp eax, 5
jne 0x40c890
jmp 0x40c922
mov eax, dword [ebx + 0x84]
cmp eax, 4
je 0x40c890
cmp eax, 2
je 0x40c922
cmp eax, 1
je 0x40c922
test byte [esi + 8], 1
jne 0x40c922
mov eax, dword [esi + 4]
mov ecx, ebx
call fcn.0040d73d
mov dword [ebp - 0x10], eax
mov eax, dword [eax]
sub eax, 0x10
call fcn.00409cf0
mov esi, dword [esi + 0x18]
push dword [esi - 0xc]
add eax, 0x10
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 4]
call fcn.00402357
lea esi, [ebp - 4]
call fcn.004020c4
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x40c8f6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
jne 0x40c8f6
lea edi, [ebp - 0x24]
call fcn.004046d4
mov eax, edi
push eax
mov ebx, esi
call fcn.004046fb
mov esi, edi
call fcn.00401c7d
mov ebx, dword [ebp + 8]
push dword [ebp - 0x10]
lea eax, [ebp - 4]
lea edi, [ebp - 0x14]
call fcn.00409f7f
push eax
call fcn.0040a324
mov eax, dword [ebp - 0x14]
pop ecx
pop ecx
add eax, 0xfffffff0
call fcn.0040469f
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.0040469f
inc dword [ebp - 8]
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0x18]
jl 0x40c81e
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x40c938
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
push edi
mov ebx, 0x400
push ebx
mov esi, eax
call fcn.0043077a
pop ecx
xor ecx, ecx
mov dword [ebp - 4], eax
cmp eax, ecx
jne 0x40c966
push ecx
call fcn.00430785
pop ecx
push 3
jmp 0x40cb06
xor eax, eax
and dword [ebp - 0x10], eax
and dword [ebp - 8], eax
lea edi, [ebp - 0x24]
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0xc], ecx
stosd dword es:[edi], eax
sub dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
inc dword [ebp - 0xc]
add dword [ebp - 0x10], 0xa
cmp dword [ebp - 0xc], 1
cdq
mov edi, eax
mov ecx, edx
jle 0x40c998
mov eax, dword [ebp - 0x10]
cdq
add edi, eax
adc ecx, edx
mov eax, dword [esi + 0x78]
push 2
mov dword [ebp - 0x18], ecx
lea ecx, [ebp - 0x18]
push ecx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 0x1c], eax
cmp eax, 0xffffffff
jne 0x40c9be
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x40ca3b
mov edi, dword [ebp - 4]
mov eax, dword [esi + 0x78]
push 0
lea ecx, [ebp - 0x14]
push ecx
push ebx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40cae7
cmp dword [ebp - 0x14], ebx
jne 0x40cae7
add edi, 0x3f6
jmp 0x40ca01
push 0xa
push str.ADVINSTSFX
push edi
call fcn.004319ac
add esp, 0xc
test eax, eax
je 0x40ca53
dec edi
cmp edi, dword [ebp - 4]
jae 0x40c9ec
or eax, 0xffffffff
xor edi, edi
cmp eax, edi
jl 0x40c978
mov ecx, dword [ebp - 0x1c]
push edi
lea eax, [eax + ecx - 0x40]
mov ecx, dword [esi + 0x78]
lea edx, [ebp - 0x24]
push edx
push eax
push ecx
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x40ca5a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esi + 0x54]
push eax
push 0x103
push esi
call fcn.0040d700
push dword [ebp - 4]
jmp 0x40cafe
sub edi, dword [ebp - 4]
mov eax, edi
jmp 0x40ca09
mov eax, dword [esi + 0x78]
push edi
lea ecx, [ebp - 0x14]
push ecx
push 0x4a
lea ecx, [esi + 8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40cac1
cmp dword [ebp - 0x14], edi
je 0x40cac1
push 0xa
lea eax, [esi + 0x48]
push str.ADVINSTSFX
push eax
call fcn.004319ac
add esp, 0xc
test eax, eax
je 0x40ca93
push 5
jmp 0x40cad9
cmp dword [esi + 0x14], 0x64
jne 0x40ca8f
mov eax, dword [esi + 0x18]
mov edx, dword [ebp - 0x28]
push dword [ebp - 4]
xor ecx, ecx
sub edx, eax
mov eax, dword [ebp - 0x24]
sbb eax, ecx
mov dword [esi + 0x90], edx
mov dword [esi + 0x94], eax
call fcn.00430785
pop ecx
xor eax, eax
jmp 0x40cb07
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esi + 0x54]
push eax
push 0x103
push esi
call fcn.0040d700
push 2
pop esi
push dword [ebp - 4]
call fcn.00430785
pop ecx
mov eax, esi
jmp 0x40cb07
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esi + 0x54]
push eax
push 0x103
push esi
call fcn.0040d700
push edi
call fcn.00430785
pop ecx
push 2
pop eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40cb0c
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push ebx
xor ebx, ebx
push esi
cmp dword [edi + 0x10], ebx
jne 0x40cb22
xor eax, eax
jmp 0x40cc79
mov eax, dword [edi + 0x1c]
xor ecx, ecx
add eax, dword [edi + 0x90]
push ebx
adc ecx, dword [edi + 0x94]
lea edx, [ebp - 0x14]
push edx
mov dword [ebp - 0x14], ecx
mov ecx, dword [edi + 0x78]
push eax
push ecx
mov dword [ebp - 0x18], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x40cb6c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [edi + 0x54]
push eax
push 0x103
push edi
call fcn.0040d700
push 2
pop eax
jmp 0x40cc79
mov ecx, 0x457fa0
lea esi, [ebp - 0x20]
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
call fcn.00402110
mov byte [ebp - 0x1c], bl
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
cmp dword [edi + 0x10], ebx
jbe 0x40cc63
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [edi + 0x78]
push ebx
lea ecx, [ebp - 0xc]
push ecx
push 0x18
lea ecx, [ebp - 0x38]
push ecx
push eax
call esi
test eax, eax
je 0x40cc4a
cmp dword [ebp - 0xc], ebx
je 0x40cc4a
cmp dword [ebp - 4], ebx
je 0x40cbd6
push dword [ebp - 4]
call fcn.00430785
pop ecx
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x24]
lea ecx, [ebp - 4]
inc eax
push ecx
call fcn.0040dd67
test al, al
je 0x40cc45
mov eax, dword [edi + 0x78]
push ebx
lea ecx, [ebp - 0xc]
push ecx
mov ecx, dword [ebp - 0x24]
add ecx, ecx
push ecx
push dword [ebp - 4]
push eax
call esi
test eax, eax
je 0x40cc4a
cmp dword [ebp - 0xc], ebx
je 0x40cc4a
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 4]
xor eax, eax
mov word [edx + ecx*2], ax
lea eax, [ebp - 0x38]
lea ebx, [edi + 0x6c]
push eax
call fcn.0040de40
mov eax, dword [ebp - 8]
mov ecx, ebx
call fcn.0040dede
push dword [ebp - 4]
add eax, 0x18
push eax
call fcn.004045a3
inc dword [ebp - 8]
mov eax, dword [ebp - 8]
xor ebx, ebx
cmp eax, dword [edi + 0x10]
jb 0x40cba3
jmp 0x40cc63
push 3
pop ebx
jmp 0x40cc63
push 2
pop ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [edi + 0x54]
push eax
push 0x103
push edi
call fcn.0040d700
push dword [ebp - 4]
call fcn.00430785
mov eax, dword [ebp - 0x20]
pop ecx
add eax, 0xfffffff0
call fcn.0040469f
mov eax, ebx
pop esi
pop ebx
leave
ret
Function at 0x40cc7d
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
xor esi, esi
cmp dword [edi + 0x9c], esi
jle 0x40cc96
xor eax, eax
jmp 0x40ce0d
mov eax, dword [edi + 0xc]
xor ecx, ecx
add eax, dword [edi + 0x90]
push esi
adc ecx, dword [edi + 0x94]
lea edx, [ebp - 0x24]
push edx
mov dword [ebp - 0x24], ecx
mov ecx, dword [edi + 0x78]
push eax
push ecx
mov dword [ebp - 0x28], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x40cce0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [edi + 0x54]
push eax
push 0x103
push edi
call fcn.0040d700
push 2
pop eax
jmp 0x40ce0d
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0xc], esi
cmp dword [edi + 8], esi
jbe 0x40ce02
mov eax, dword [edi + 0x78]
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
lea ecx, [ebp - 8]
push ecx
push 8
lea ecx, [ebp - 0x14]
push ecx
push eax
call ebx
test eax, eax
je 0x40cde9
cmp dword [ebp - 8], esi
je 0x40cde9
mov eax, dword [0x457fa0]
mov ecx, 0x457fa0
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 4], esi
je 0x40cd47
push dword [ebp - 4]
call fcn.00430785
pop ecx
mov dword [ebp - 4], esi
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 4]
inc eax
push ecx
call fcn.0040dd67
test al, al
je 0x40cdb7
mov eax, dword [edi + 0x78]
push esi
lea ecx, [ebp - 8]
push ecx
mov ecx, dword [ebp - 0x10]
add ecx, ecx
push ecx
push dword [ebp - 4]
push eax
call ebx
test eax, eax
je 0x40cdc6
cmp dword [ebp - 8], esi
je 0x40cdc6
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x10]
xor ecx, ecx
push eax
mov word [eax + edx*2], cx
lea eax, [ebp - 0x1c]
push eax
call fcn.004045a3
lea esi, [edi + 0x98]
lea ebx, [ebp - 0x1c]
call fcn.0040deff
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.0040469f
inc dword [ebp - 0xc]
mov eax, dword [ebp - 0xc]
xor esi, esi
cmp eax, dword [edi + 8]
jb 0x40ccf5
jmp 0x40ce02
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.0040469f
push 3
jmp 0x40ce01
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [edi + 0x54]
push eax
push 0x103
push edi
call fcn.0040d700
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.0040469f
jmp 0x40cdff
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [edi + 0x54]
push eax
push 0x103
push edi
call fcn.0040d700
push 2
pop esi
push dword [ebp - 4]
call fcn.00430785
pop ecx
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x40e694
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov ecx, 0x457fa0
call fcn.00402110
movzx ebx, word [ebp + 0xc]
mov edi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
push 0
push 0x449e60
push 2
push ebx
call edi
mov esi, eax
lea eax, [esi - 1]
push eax
push 0x78
pop ecx
lea edx, [ebp - 4]
call fcn.0040aaa7
push esi
lea esi, [ebp - 4]
call fcn.004020c4
push eax
push 2
push ebx
call edi
mov esi, dword [ebp - 4]
push esi
push dword [ebp + 0xc]
push 0x44abdc
push dword [ebp + 8]
call fcn.004097ba
add esp, 0x10
lea eax, [esi - 0x10]
call fcn.0040469f
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40e705
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
xor eax, eax
push esi
mov word [ebx], ax
mov word [edi], ax
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
mov ecx, dword [ebp + 8]
mov word [ecx], ax
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
mov ecx, dword [ebp + 0xc]
lea esi, [ebp + 0xc]
mov word [ecx], ax
call fcn.00410067
push str.Windows_2000
push eax
call fcn.004090ca
test eax, eax
mov eax, dword [ebp + 0xc]
setge byte [ebp + 0xb]
add eax, 0xfffffff0
call fcn.0040469f
cmp byte [ebp + 0xb], 0
je 0x40e78b
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.GetSystemDefaultUILanguage
push eax
mov dword [ebp + 8], eax
call esi
test eax, eax
je 0x40e778
call eax
mov word [edi], ax
push str.GetUserDefaultUILanguage
push dword [ebp + 8]
call esi
test eax, eax
je 0x40e78b
call eax
mov word [ebx], ax
pop esi
pop ebp
ret

Function at 0x40ed3c
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, eax
push edi
push dword [ebp + 8]
lea edi, [esi + 4]
mov eax, edi
call fcn.0040ecc6
xor eax, eax
cmp byte [esi + 0xc], al
je 0x40ed61
push dword [edi]
call dword [sym.imp.KERNEL32.dll_SetEvent]
jmp 0x40ed85
cmp dword [edi], eax
je 0x40ed85
lea ecx, [ebp + 8]
push ecx
push eax
push esi
push 0x40eda9
push eax
push eax
mov dword [ebp + 8], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
add esi, 0x10
mov edi, eax
call fcn.00408ecf
pop edi
pop esi
pop ebp
ret 4
Function at 0x40eeda
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push edi
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
xor edi, edi
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0x40ef61
push esi
call fcn.0043077a
mov edi, eax
pop ecx
test edi, edi
jne 0x40ef19
push 8
pop esi
push edi
call fcn.00430785
pop ecx
pop edi
mov eax, esi
pop esi
leave
ret
push edi
push esi
push dword [ebp - 0xc]
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x40ef61
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
push 0x44a8c0
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x40ef6a
cmp dword [ebp - 0x10], 0
je 0x40ef6a
mov eax, dword [ebp - 8]
test ebx, ebx
je 0x40ef53
mov ecx, dword [eax + 8]
mov dword [ebx], ecx
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x40ef6a
mov eax, dword [eax + 0xc]
mov dword [ecx], eax
jmp 0x40ef6a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
mov esi, dword [ebp - 4]
jmp 0x40ef0c

Function at 0x40ef6f
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebx]
push esi
push edi
sub eax, 0x10
call fcn.00409cf0
add eax, 0x10
mov dword [ebp - 4], eax
lea eax, [ebp - 0xc]
push eax
lea esi, [ebp - 4]
call fcn.004020c4
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0x40f095
push esi
call fcn.0043077a
mov edi, eax
pop ecx
test edi, edi
jne 0x40efc1
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.0040469f
push edi
jmp 0x40f0a2
push edi
push esi
push dword [ebp - 0xc]
lea esi, [ebp - 4]
call fcn.004020c4
push eax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x40efb0
mov eax, dword [0x457fa0]
mov ecx, 0x457fa0
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
push str.VarFileInfoTranslation
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x40f01b
cmp dword [ebp - 0x10], 0
je 0x40f01b
mov eax, dword [ebp - 0x14]
movzx ecx, word [eax + 2]
movzx eax, word [eax]
push 0x44ac84
push ecx
push eax
jmp 0x40f02a
push 0x44ac84
push 0x4e2
push 0x409
lea eax, [ebp - 8]
push str.StringFileInfo_04x_04x_s
push eax
call fcn.004097ba
add esp, 0x14
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
lea esi, [ebp - 8]
call fcn.004020c4
push eax
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x40f085
cmp dword [ebp - 0x18], 0
je 0x40f085
push dword [ebp - 0x1c]
push ebx
call fcn.004045a3
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.0040469f
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.0040469f
push edi
call fcn.00430785
mov al, 1
jmp 0x40f0a9
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.0040469f
jmp 0x40efb0
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.0040469f
push 0
call fcn.00430785
xor al, al
pop ecx
pop edi
pop esi
leave
ret
Function at 0x40f265
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov edi, eax
mov dword [ebp - 4], 0xc8
xor ebx, ebx
mov eax, dword [ebp - 4]
xor ecx, ecx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0043077a
pop ecx
mov esi, eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
lea ecx, [ebp - 4]
push ecx
push esi
lea ecx, [ebp - 8]
push ecx
push ebx
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, 0xea
jne 0x40f2b7
inc dword [ebp - 4]
jmp 0x40f278
cmp eax, ebx
jne 0x40f2d9
cmp dword [ebp - 8], 1
je 0x40f2e7
cmp dword [ebp - 8], 4
jne 0x40f278
push dword [esi]
push 0x44ad08
push edi
call fcn.004097ba
add esp, 0xc
mov bl, 1
push esi
call fcn.00430785
mov al, bl
pop ecx
pop edi
pop esi
pop ebx
leave
ret
mov ecx, dword [ebp - 4]
xor eax, eax
mov word [esi + ecx*2], ax
push esi
lea eax, [ebp + 0xc]
call fcn.004045c6
call fcn.0040896f
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
call fcn.0040469f
push esi
call fcn.00430785
mov al, 1
jmp 0x40f2e1

Function at 0x40f512
Capabilities:
Get file size

Disassembly:
mov eax, dword [eax]
push ebx
push esi
push 0
push 0x80
push 3
push 0
push 0
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40f541
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x40f559
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
test esi, esi
je 0x40f557
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x40f6c8
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
push ebx
push esi
push edi
push 0x40
xor ebx, ebx
lea eax, [ebp - 0x60]
push ebx
push eax
mov dword [ebp - 0x64], 0x44
call fcn.00430790
xor eax, eax
mov dword [ebp - 0x1c], ebx
lea edi, [ebp - 0x18]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
add esp, 0xc
stosd dword es:[edi], eax
mov dword [ebp - 0xc], ebx
mov byte [ebp - 8], bl
cmp byte [ebp + 0x18], bl
je 0x40f707
lea esi, [ebp - 0xc]
call fcn.00423a56
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
mov eax, dword [ecx - 0xc]
neg eax
sbb eax, eax
and eax, ecx
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov ecx, dword [edx - 0xc]
neg ecx
sbb ecx, ecx
and ecx, edx
lea edx, [ebp - 0x1c]
push edx
lea edx, [ebp - 0x64]
push edx
push ebx
push ebx
push dword [ebp + 0x14]
push ebx
push ebx
push ebx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x40f74e
lea esi, [ebp - 0xc]
call fcn.00423a3a
pop edi
pop esi
mov al, bl
pop ebx
leave
ret
cmp dword [ebp + 0x10], ebx
je 0x40f76a
push 0xffffffffffffffff
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov bl, 1
jmp 0x40f73f