joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401d90
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push edi
push dword [ebp + 8]
mov edi, ecx
mov byte [ebp - 1], 1
call esi
push dword [edi + 0x3c]
mov ebx, eax
call esi
lea ebx, [ebx + eax + 2]
push ebx
call fcn.00407eaa
mov esi, dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
and dword [ebp - 8], 0
pop ecx
lea ecx, [ebp - 8]
push ecx
push eax
push ebx
push dword [edi + 0x3c]
mov dword [ebp - 0xc], eax
call esi
test eax, eax
jne 0x401de6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 0x10], eax
jmp 0x401e6a
mov eax, dword [ebp - 8]
test eax, eax
je 0x401df0
mov byte [eax], 0
push dword [ebp + 8]
push ebx
push dword [ebp - 0xc]
call fcn.00401b8c
add ebx, ebx
push ebx
mov dword [ebp - 0x10], ebx
call fcn.00407eaa
mov ebx, dword [ebp + 0xc]
pop ecx
lea ecx, [ebp - 8]
push ecx
push eax
push dword [ebp - 0x10]
mov dword [ebx], eax
push dword [ebp - 0xc]
call esi
cmp eax, dword [ebp - 0x10]
mov dword [ebp + 0xc], eax
jle 0x401e42
push dword [ebx]
call fcn.00407eb5
push dword [ebp + 0xc]
call fcn.00407eaa
pop ecx
pop ecx
lea ecx, [ebp - 8]
push ecx
push eax
push dword [ebp + 0xc]
mov dword [ebx], eax
push dword [ebp - 0xc]
call esi
test eax, eax
je 0x401dd8
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x401e6e
push dword [ebp + 8]
push 0x400
push dword [edi + 0x38]
call fcn.00401b13
mov dword [edi + 0x10], 2
mov byte [ebp - 1], 0
push dword [ebp - 0xc]
call fcn.00407eb5
mov al, byte [ebp - 1]
pop ecx
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x401f37
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
lea eax, [ebp - 8]
push eax
push 0x20019
xor edi, edi
push edi
push 0x42f354
push 0x80000002
mov dword [ebp - 8], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x402015
mov esi, 0x105
push esi
call fcn.00407eaa
pop ecx
mov ebx, eax
lea eax, [ebp - 4]
push eax
push ebx
lea eax, [ebp - 0xc]
push eax
push edi
mov dword [ebp - 0xc], edi
mov edi, 0x42f388
push edi
push dword [ebp - 8]
mov dword [ebp - 4], esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
call esi
cmp eax, 0xea
jne 0x401fc0
push ebx
call fcn.00407eb5
push dword [ebp - 4]
call fcn.00407eaa
pop ecx
pop ecx
mov ebx, eax
lea eax, [ebp - 4]
push eax
push ebx
lea eax, [ebp - 0xc]
push eax
push 0
push edi
push dword [ebp - 8]
call esi
test eax, eax
jne 0x402015
cmp dword [ebp - 0xc], 1
jne 0x402015
cmp dword [ebp - 4], eax
jbe 0x402015
mov esi, 0x42f39c
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 4]
lea edi, [eax + ecx + 1]
push edi
call fcn.00407eaa
pop ecx
push ebx
push edi
push eax
mov dword [ebp - 0x10], eax
call fcn.00401b13
test eax, eax
jl 0x40201a
push esi
push edi
push dword [ebp - 0x10]
call fcn.00401b8c
test eax, eax
jl 0x40201a
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
jne 0x402021
jmp 0x40201a
mov esi, 0x42f39c
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402026
Capabilities:
Get common file path
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
xor ebx, ebx
mov edi, 0x105
push edi
mov dword [ebp - 0x14], ecx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
call fcn.00407eaa
pop ecx
mov esi, eax
lea eax, [ebp - 0xc]
push eax
push 0x20019
push ebx
push 0x42f354
mov dword [ebp - 4], edi
push 0x80000002
mov byte [esi], bl
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4020c5
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp - 0x10]
push eax
push ebx
mov dword [ebp - 0x10], ebx
mov ebx, 0x42f388
push ebx
push dword [ebp - 0xc]
call edi
cmp eax, 0xea
jne 0x4020b3
push esi
call fcn.00407eb5
push dword [ebp - 4]
call fcn.00407eaa
pop ecx
pop ecx
mov esi, eax
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp - 0x10]
push eax
push 0
push ebx
push dword [ebp - 0xc]
call edi
test eax, eax
jne 0x4020c2
cmp dword [ebp - 0x10], 1
jne 0x4020c2
cmp dword [ebp - 4], eax
jne 0x4020c5
mov byte [esi], 0
cmp byte [esi], 0
jne 0x402120
mov ecx, dword [ebp - 0x14]
push 0
push 0x42f870
call fcn.0040176a
push dword [ebp - 4]
mov ebx, dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push esi
call ebx
mov edi, eax
cmp edi, dword [ebp - 4]
jbe 0x402105
push esi
call fcn.00407eb5
push edi
call fcn.00407eaa
pop ecx
pop ecx
mov esi, eax
push edi
push esi
mov dword [ebp - 4], edi
call ebx
mov edi, eax
test edi, edi
jne 0x402118
mov byte [esi], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 0x10], eax
mov dword [ebp - 4], edi
cmp byte [esi], 0
je 0x402172
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push esi
call edi
mov ebx, 0x42f3a8
push ebx
mov dword [ebp - 8], eax
call edi
mov ecx, dword [ebp - 8]
lea edi, [ecx + eax + 1]
push edi
call fcn.00407eaa
pop ecx
push esi
push edi
push eax
mov dword [ebp - 8], eax
call fcn.00401b13
test eax, eax
jl 0x40215f
push ebx
push edi
push dword [ebp - 8]
call fcn.00401b8c
test eax, eax
jge 0x40216c
push dword [ebp - 8]
call fcn.00407eb5
and dword [ebp - 8], 0
pop ecx
cmp dword [ebp - 8], 0
jne 0x402181
mov ecx, dword [ebp - 0x14]
push 0
push 0x42f8a4
call fcn.0040176a
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402189
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb8
mov eax, dword [0x437118]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
mov dword [ebp - 0x64], edi
call fcn.00402026
mov ebx, eax
mov ecx, esi
test ebx, ebx
jne 0x4021cb
push eax
push 0x42f8cc
call fcn.0040176a
mov dword [esi + 0x10], 2
jmp 0x402354
push ebx
push 0x42f8e8
call fcn.0040176a
push edi
push 0x42f904
mov ecx, esi
call fcn.0040176a
push ebx
call fcn.00401516
push edi
call fcn.00401516
xor eax, eax
lea edi, [ebp - 0x74]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0x44
stosd dword es:[edi], eax
pop edi
push edi
lea eax, [ebp - 0xb8]
push 0
push eax
call fcn.00407920
add esp, 0x14
push 5
pop eax
push dword [ebp - 0x64]
mov dword [ebp - 0xb8], edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
mov dword [ebp - 0x8c], 1
mov word [ebp - 0x88], ax
call edi
push ebx
mov dword [ebp - 0x5c], eax
call edi
mov ecx, dword [ebp - 0x5c]
lea edi, [ecx + eax + 2]
push edi
call fcn.00407eaa
pop ecx
push ebx
push edi
push eax
mov dword [ebp - 0x5c], eax
call fcn.00401b13
mov ebx, dword [ebp - 0x5c]
test eax, eax
jl 0x402346
push 0x42f950
push edi
push ebx
call fcn.00401b8c
test eax, eax
jl 0x402346
push dword [ebp - 0x64]
push edi
push ebx
call fcn.00401b8c
test eax, eax
jl 0x402346
lea eax, [ebp - 0x74]
push eax
xor edi, edi
lea eax, [ebp - 0xb8]
push eax
push edi
push edi
push 0x4000000
push edi
push edi
push edi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov ecx, esi
test eax, eax
jne 0x4022c6
push ebx
push 0x42f954
call fcn.0040176a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
mov dword [esi + 0x10], eax
call fcn.00407eb5
jmp 0x402353
push dword [ebp - 0x74]
call fcn.004016f0
mov dword [ebp - 0x60], eax
mov byte [ebp - 0x55], 1
cmp eax, edi
je 0x4022f2
push ebx
push 0x42f97c
mov ecx, esi
call fcn.0040176a
mov eax, dword [ebp - 0x60]
mov dword [esi + 0x10], eax
mov byte [ebp - 0x55], 0
jmp 0x402331
lea eax, [ebp - 0x60]
push eax
push dword [ebp - 0x74]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov eax, dword [ebp - 0x60]
mov dword [esi + 0x10], eax
cmp eax, edi
je 0x402324
push eax
push 0x42f99c
lea eax, [ebp - 0x54]
push 0x50
push eax
call fcn.00401bc6
add esp, 0x10
push edi
lea eax, [ebp - 0x54]
push eax
jmp 0x40232a
push edi
push 0x42f9bc
mov ecx, esi
call fcn.0040176a
push dword [ebp - 0x74]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call fcn.00407eb5
mov al, byte [ebp - 0x55]
pop ecx
jmp 0x402356
push ebx
call fcn.00407eb5
mov dword [esi + 0x10], 0x643
pop ecx
xor al, al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004076ca
leave
ret 4
Function at 0x402b21
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
mov esi, ecx
xor edi, edi
cmp dword [esi + 0x40], edi
jne 0x402c25
mov ecx, dword [esi + 0x44]
push ebx
cmp ecx, edi
je 0x402c17
mov eax, ecx
lea ebx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x402b46
sub eax, ebx
je 0x402c17
lea eax, [ebp - 4]
push eax
mov ebx, 0x20019
push ebx
push edi
push ecx
mov dword [ebp - 4], edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push 0x80000002
call edi
test eax, eax
jne 0x402b7d
push eax
push 0x42fcf0
jmp 0x402b99
lea eax, [ebp - 4]
push eax
push ebx
xor ebx, ebx
push ebx
push dword [esi + 0x44]
push 0x80000001
call edi
push ebx
test eax, eax
jne 0x402c10
push 0x42fd38
mov ecx, esi
call fcn.0040176a
mov eax, dword [esi + 0x48]
or byte [esi + 0x50], 0x10
test eax, eax
je 0x402c24
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402bae
sub eax, edx
je 0x402c24
mov edi, 0x105
push edi
call fcn.00407eaa
pop ecx
mov ebx, eax
lea eax, [ebp - 8]
push eax
push ebx
mov dword [ebp - 8], edi
xor edi, edi
push edi
push edi
push 0x42fdd0
mov byte [ebx], 0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x402c07
push dword [esi + 0x48]
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x402c07
push edi
push 0x42fde0
mov ecx, esi
call fcn.0040176a
and byte [esi + 0x50], 0xef
push ebx
call fcn.00407eb5
pop ecx
jmp 0x402c24
push 0x42fd80
jmp 0x402c1d
push edi
push 0x42fca8
mov ecx, esi
call fcn.0040176a
pop ebx
pop edi
mov al, 1
pop esi
leave
ret

Function at 0x402c2b
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
mov eax, dword [0x437118]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
test byte [ebx + 0x50], 2
je 0x402c57
push 0
push 0x42fc7c
call fcn.0040176a
xor al, al
jmp 0x402cdb
test byte [ebx + 0xc], 1
push esi
push edi
push 0xe
pop ecx
mov esi, 0x42fe70
lea edi, [ebp - 0x70]
rep movsd dword es:[edi], dword [esi]
push 0xc
pop ecx
mov esi, 0x42fea8
lea edi, [ebp - 0x38]
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
je 0x402c7f
lea eax, [ebp - 0x38]
jmp 0x402c96
cmp dword [ebx + 4], 5
jae 0x402c93
mov ecx, ebx
call fcn.004015be
test al, al
lea eax, [ebp - 0x38]
je 0x402c96
lea eax, [ebp - 0x70]
push eax
xor esi, esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
cmp eax, esi
je 0x402cc3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov ecx, ebx
cmp eax, 0xb7
je 0x402ccd
push 0x42ff3c
call fcn.0040176a
xor al, al
jmp 0x402cd9
push esi
push 0x42fedc
mov ecx, ebx
jmp 0x402cd2
push 0x42ff10
call fcn.0040176a
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004076ca
leave
ret
Function at 0x4033bc
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb4
mov eax, dword [0x437118]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
push eax
mov ebx, ecx
mov dword [ebp - 0x60], esi
call sub.msi.dll_MsiRecordGetInteger
push eax
call fcn.00401516
add esp, 4
cmp eax, 5
jne 0x4033f7
mov al, 1
jmp 0x40355c
push edi
push esi
push 0x43016c
mov ecx, ebx
call fcn.0040176a
push esi
call fcn.00401516
xor eax, eax
lea edi, [ebp - 0x70]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0x44
stosd dword es:[edi], eax
pop edi
push edi
lea eax, [ebp - 0xb4]
push 0
push eax
call fcn.00407920
add esp, 0x10
push 5
pop eax
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
mov dword [ebp - 0xb4], edi
mov dword [ebp - 0x88], 1
mov word [ebp - 0x84], ax
call esi
push 0x4301ac
mov edi, eax
call esi
lea esi, [edi + eax + 2]
push esi
call fcn.00407eaa
pop ecx
push dword [ebp - 0x60]
mov edi, eax
push esi
push edi
call fcn.00401b13
test eax, eax
jl 0x40354b
push 0x4301b0
push esi
push edi
call fcn.00401b8c
test eax, eax
jl 0x40354b
lea eax, [ebp - 0x70]
push eax
xor esi, esi
lea eax, [ebp - 0xb4]
push eax
push esi
push esi
push 0x4000000
push esi
push esi
push esi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov ecx, ebx
test eax, eax
jne 0x4034cc
push edi
push 0x4301b4
call fcn.0040176a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
mov dword [ebx + 0x10], eax
call fcn.00407eb5
jmp 0x403558
push dword [ebp - 0x70]
call fcn.004016f0
mov dword [ebp - 0x5c], eax
mov byte [ebp - 0x55], 1
cmp eax, esi
je 0x4034f8
push edi
push 0x4301dc
mov ecx, ebx
call fcn.0040176a
mov eax, dword [ebp - 0x5c]
mov dword [ebx + 0x10], eax
mov byte [ebp - 0x55], 0
jmp 0x403537
lea eax, [ebp - 0x5c]
push eax
push dword [ebp - 0x70]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov eax, dword [ebp - 0x5c]
mov dword [ebx + 0x10], eax
cmp eax, esi
je 0x40352a
push eax
push 0x4301fc
lea eax, [ebp - 0x54]
push 0x50
push eax
call fcn.00401bc6
add esp, 0x10
push esi
lea eax, [ebp - 0x54]
push eax
jmp 0x403530
push esi
push 0x430224
mov ecx, ebx
call fcn.0040176a
push dword [ebp - 0x70]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call fcn.00407eb5
mov al, byte [ebp - 0x55]
jmp 0x40355a
push edi
call fcn.00407eb5
mov dword [ebx + 0x10], 0x643
xor al, al
pop ecx
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.004076ca
leave
ret 8
Function at 0x40356c
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
push edi
xor ebx, ebx
push 0x430258
mov edi, ecx
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
cmp esi, ebx
je 0x4035b8
push 0x430268
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x4035a5
lea ecx, [ebp - 0x28]
push ecx
call eax
jmp 0x4035af
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x4035c2
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
movzx eax, word [ebp - 0x28]
push eax
call fcn.00401516
add esp, 4
cmp word [ebp - 0x28], 9
jne 0x403617
lea eax, [ebp - 4]
push eax
push 0x430298
mov ecx, edi
call fcn.00401d90
mov ecx, edi
test al, al
je 0x4035fb
push dword [ebp - 4]
push 0x4302b0
call fcn.004033bc
jmp 0x403606
push ebx
push 0x4302d8
call fcn.0040176a
cmp dword [ebp - 4], ebx
je 0x403617
push dword [ebp - 4]
call fcn.00407eb5
pop ecx
mov dword [ebp - 4], ebx
lea eax, [ebp - 4]
push eax
push 0x430310
mov ecx, edi
call fcn.00401d90
mov ecx, edi
test al, al
je 0x40363c
push dword [ebp - 4]
push 0x430328
call fcn.004033bc
jmp 0x403647
push ebx
push 0x430350
call fcn.0040176a
cmp dword [ebp - 4], ebx
pop edi
pop esi
pop ebx
je 0x403658
push dword [ebp - 4]
call fcn.00407eb5
pop ecx
mov al, 1
leave
ret
Function at 0x403815
Capabilities:
Accept command line arguments
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, ecx
push edi
lea ebx, [esi + 0x20]
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [ebx], eax
mov eax, dword [ebp + 8]
mov edi, 0x100
push edi
mov dword [esi + 0x14], eax
call fcn.00407eaa
pop ecx
push edi
mov dword [esi + 0x1c], eax
mov byte [eax], 0
push dword [esi + 0x1c]
push 0xa
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_LoadStringA]
add edi, 4
push edi
call fcn.00407eaa
pop ecx
mov dword [esi + 0x3c], eax
push edi
mov byte [eax], 0
push dword [esi + 0x3c]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x403882
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x10], eax
xor al, al
jmp 0x40392e
push ebx
mov ecx, esi
call fcn.00402da1
test al, al
je 0x40387b
push 0x42f3b8
push 4
xor edi, edi
push edi
push 4
push edi
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov dword [esi + 0x18], eax
cmp eax, edi
je 0x4038c5
push 4
push edi
push edi
push 0xf001f
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [esi + 0x4c], eax
cmp eax, edi
je 0x4038c5
mov dword [eax], edi
jmp 0x4038d4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00401516
add esp, 4
push dword [esi + 0x3c]
mov ecx, esi
push 0x42f430
call fcn.0040176a
push dword [ebx]
mov ecx, esi
push 0x42f440
call fcn.0040176a
test byte [esi + 0x50], 1
je 0x403904
push edi
push 0x42f454
mov ecx, esi
call fcn.0040176a
lea eax, [ebp - 8]
push eax
call fcn.00407d89
lea eax, [ebp - 8]
push eax
call fcn.00407d62
push eax
call fcn.0040aef1
add esp, 0xc
push eax
push 0x42f470
mov ecx, esi
call fcn.0040176a
mov al, 1
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x403c76
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x154
mov eax, dword [0x437118]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
push dword [edi + 0x3c]
mov byte [ebp - 0x145], 1
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
add esi, 7
push esi
call fcn.00407eaa
push esi
mov dword [ebp - 0x14c], eax
call fcn.00407eaa
and dword [ebp - 0x154], 0
pop ecx
pop ecx
mov ebx, eax
lea eax, [ebp - 0x154]
push eax
push dword [ebp - 0x14c]
push esi
push dword [edi + 0x3c]
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
test eax, eax
jne 0x403cf0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 0x10], eax
mov byte [ebp - 0x145], 0
jmp 0x403dbf
mov eax, dword [ebp - 0x154]
test eax, eax
je 0x403cfd
mov byte [eax], 0
push dword [ebp - 0x14c]
push esi
push ebx
call fcn.00401b13
push str..msp
push esi
push dword [ebp - 0x14c]
call fcn.00401b8c
lea eax, [ebp - 0x144]
push eax
push dword [ebp - 0x14c]
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x150], eax
cmp eax, 0xffffffff
je 0x403dbf
lea eax, [ebp - 0x118]
push eax
push ebx
mov ecx, edi
call fcn.00403270
test al, al
jne 0x403d5f
lea eax, [ebp - 0x118]
push eax
push ebx
mov ecx, edi
call fcn.00401d3a
mov esi, dword [sym.imp.KERNEL32.dll_FindNextFileA]
jmp 0x403d89
lea eax, [ebp - 0x118]
push eax
push ebx
mov ecx, edi
call fcn.00403270
test al, al
jne 0x403d89
lea eax, [ebp - 0x118]
push eax
push ebx
mov ecx, edi
call fcn.00401d3a
lea eax, [ebp - 0x144]
push eax
push dword [ebp - 0x150]
call esi
test eax, eax
jne 0x403d67
mov edi, dword [edi + 0x40]
test edi, edi
je 0x403db3
push 0x42f700
push 0x7d00
push edi
call fcn.00401b8c
push dword [ebp - 0x150]
call dword [sym.imp.KERNEL32.dll_FindClose]
push dword [ebp - 0x14c]
call fcn.00407eb5
push ebx
call fcn.00407eb5
mov al, byte [ebp - 0x145]
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004076ca
leave
ret
Function at 0x403de7
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
and dword [eax], 0
sub esp, 0x30
push edi
mov edi, ecx
test byte [edi + 0x50], 1
jne 0x403f78
cmp dword [edi + 0x5c], 1
jle 0x403f78
push ebx
push esi
push 0x50
call fcn.00407eaa
pop ecx
mov dword [ebp - 0x20], eax
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
movzx esi, ax
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
movzx eax, ax
movzx eax, ax
movzx ebx, si
mov esi, 0x3ff
mov dword [ebp - 0x2c], eax
and eax, esi
xor ecx, ecx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x30], eax
or eax, 0xffffffff
and ebx, esi
cmp dword [edi + 0x5c], ecx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], ecx
jle 0x403ecf
push dword [ebp - 4]
mov ecx, edi
call fcn.0040159f
push dword [ebp - 0x20]
mov dword [ebp - 0xc], eax
push dword [ebp - 0xc]
and eax, esi
mov ecx, edi
mov dword [ebp - 0x28], eax
call fcn.00402807
push dword [ebp - 0x20]
mov ecx, edi
push str.____Info:_found_Language:__s_r_n
call fcn.0040176a
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
cmp edx, dword [ebp - 0x24]
jne 0x403e99
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x28]
cmp ecx, ebx
jne 0x403ea3
mov dword [ebp - 0x14], eax
cmp edx, dword [ebp - 0x2c]
jne 0x403eab
mov dword [ebp - 0x18], eax
cmp ecx, dword [ebp - 0x30]
jne 0x403eb3
mov dword [ebp - 0x1c], eax
mov ecx, dword [edi + 0x58]
test ecx, ecx
je 0x403ec1
cmp edx, ecx
jne 0x403ec1
mov dword [ebp - 8], eax
inc eax
cmp eax, dword [edi + 0x5c]
mov dword [ebp - 4], eax
jl 0x403e5d
xor ecx, ecx
or eax, 0xffffffff
pop esi
pop ebx
cmp dword [edi + 0x58], ecx
je 0x403eed
cmp dword [ebp - 8], eax
jne 0x403ef2
push ecx
push 0x42f724
mov ecx, edi
call fcn.0040176a
xor ecx, ecx
or eax, 0xffffffff
cmp dword [ebp - 8], eax
je 0x403f04
push ecx
push 0x42f760
mov ecx, edi
call fcn.0040176a
push dword [ebp - 8]
jmp 0x403f63
push ecx
mov ecx, edi
cmp dword [ebp - 0x10], eax
je 0x403f1b
push 0x42f794
call fcn.0040176a
push dword [ebp - 0x10]
jmp 0x403f63
cmp dword [ebp - 0x14], eax
je 0x403f2f
push 0x42f7bc
call fcn.0040176a
push dword [ebp - 0x14]
jmp 0x403f63
cmp dword [ebp - 0x18], eax
je 0x403f43
push 0x42f7ec
call fcn.0040176a
push dword [ebp - 0x18]
jmp 0x403f63
cmp dword [ebp - 0x1c], eax
je 0x403f57
push 0x42f814
call fcn.0040176a
push dword [ebp - 0x1c]
jmp 0x403f63
push 0x42f844
call fcn.0040176a
push 0
mov ecx, edi
call fcn.0040159f
mov ecx, dword [ebp + 8]
push dword [ebp - 0x20]
mov dword [ecx], eax
call fcn.00407eb5
pop ecx
mov al, 1
pop edi
leave
ret 4
Function at 0x40416f
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb8
mov eax, dword [0x437118]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 8
pop ecx
push 0x18
mov esi, str.Terminal_Server
lea edi, [ebp - 0x40]
rep movsd dword es:[edi], dword [esi]
pop ecx
push 6
mov esi, str.SystemCurrentControlSetControlProductOptions
lea edi, [ebp - 0xa0]
rep movsd dword es:[edi], dword [esi]
pop ecx
mov esi, str.ProductSuite
lea edi, [ebp - 0x20]
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0xa8]
push eax
push 0x20019
movsw word es:[edi], word [esi]
xor edi, edi
push edi
lea eax, [ebp - 0xa0]
push eax
push 0x80000002
mov byte [ebp - 0xa1], 0
mov dword [ebp - 0xac], edi
mov dword [ebp - 0xa8], edi
mov dword [ebp - 0xb0], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4042de
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0xac]
push eax
push edi
lea eax, [ebp - 0xb0]
push eax
push edi
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0xa8]
call esi
test eax, eax
jne 0x4042de
mov eax, dword [ebp - 0xac]
cmp eax, edi
jbe 0x4042de
cmp dword [ebp - 0xb0], 7
jne 0x4042de
push ebx
shr eax, 1
xor ecx, ecx
push 2
inc eax
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00407eaa
push dword [ebp - 0xac]
mov ebx, eax
push edi
push ebx
call fcn.00407920
add esp, 0x10
lea eax, [ebp - 0xac]
push eax
push ebx
lea eax, [ebp - 0xb0]
push eax
push edi
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0xa8]
call esi
test eax, eax
jne 0x4042d6
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [ebp - 0x40]
push eax
call edi
cmp word [ebx], 0
mov dword [ebp - 0xb4], eax
mov esi, ebx
je 0x4042d4
push esi
call edi
mov dword [ebp - 0xb8], eax
cmp eax, dword [ebp - 0xb4]
jne 0x4042c1
push esi
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x4042cd
mov eax, dword [ebp - 0xb8]
lea esi, [esi + eax*2 + 2]
cmp word [esi], 0
jne 0x40429b
jmp 0x4042d4
mov byte [ebp - 0xa1], 1
xor edi, edi
push ebx
call fcn.00407eb5
pop ecx
pop ebx
cmp dword [ebp - 0xa8], edi
pop edi
pop esi
je 0x4042f4
push dword [ebp - 0xa8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov al, byte [ebp - 0xa1]
xor ecx, ebp
call fcn.004076ca
leave
ret