joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000d6b0
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x800
lea eax, [ebp - 0x800]
push esi
push 0x800
push 0
push eax
call fcn.100034d0
add esp, 0xc
lea eax, [ebp - 0x800]
push 0x400
push eax
call fcn.100028d0
push 0x800
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
push 0x400
test esi, esi
jne 0x1000d71b
lea eax, [ebp - 0x800]
push eax
call fcn.100028d0
call fcn.10002930
mov eax, dword [ebp + 0x18]
pop esi
mov eax, dword [eax]
mov dword [eax + 8], 1
mov esp, ebp
pop ebp
ret
push esi
call fcn.100028d0
call fcn.10002930
push eax
xor eax, eax
cmp word [esi], ax
cmovne eax, esi
push eax
lea eax, [ebp - 0x800]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x1000de10
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x800
lea eax, [ebp - 0x800]
push esi
push 0x800
push 0
push eax
call fcn.100034d0
add esp, 0xc
call fcn.10002930
mov esi, eax
call fcn.10002930
push eax
lea eax, [ebp - 0x800]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea eax, [ebp - 0x800]
push eax
call fcn.100027c0
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x1000e010
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xf88
lea eax, [ebp - 0xf88]
push ebx
push esi
push edi
push 0x800
push 0
push eax
call fcn.100034d0
push 0x780
lea eax, [ebp - 0x788]
push 0
push eax
call fcn.100034d0
add esp, 0x18
call fcn.10002930
mov esi, eax
lea eax, [ebp - 0xf88]
push 0x400
push eax
call fcn.100028d0
push 0x3c0
lea eax, [ebp - 0x788]
push eax
call fcn.100028d0
call fcn.10002930
mov edi, eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xf88]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
mov ebx, eax
test ebx, ebx
jne 0x1000e106
mov eax, edi
shl eax, 0xb
add eax, 2
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 8], eax
test eax, eax
je 0x1000e0f8
mov esi, eax
test edi, edi
je 0x1000e0cd
nop dword [eax + eax]
push 0x400
push esi
call fcn.100028d0
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
add ebx, eax
lea esi, [esi + eax*2]
sub edi, 1
jne 0x1000e0b0
mov esi, dword [ebp - 8]
lea eax, [ebx*2 + 2]
push eax
push esi
push 7
push 0
lea eax, [ebp - 0x788]
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x1000e0fd
mov ebx, 0xe
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
je 0x1000e11c
nop word [eax + eax]
push 0
call fcn.10002880
sub edi, 1
jne 0x1000e110
push ebx
call fcn.10002810
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1000e580
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x800
lea eax, [ebp - 0x800]
push esi
push 0x800
push 0
push eax
call fcn.100034d0
add esp, 0xc
call fcn.10002930
mov esi, eax
call fcn.10002930
push 0x400
lea ecx, [ebp - 0x800]
push ecx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov esi, eax
lea eax, [ebp - 0x800]
push eax
call fcn.100027c0
push esi
call fcn.10002810
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x1000e650
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x800
lea eax, [ebp - 0x800]
push 0x800
push 0
push eax
call fcn.100034d0
add esp, 0xc
push 0x10
call dword [sym.imp.KERNEL32.dll_GetUserGeoID]
push 0
push 0x400
lea ecx, [ebp - 0x800]
push ecx
push 4
push eax
call dword [sym.imp.KERNEL32.dll_GetGeoInfoW]
lea eax, [ebp - 0x800]
push eax
call fcn.100027c0
mov esp, ebp
pop ebp
ret
Function at 0x10010020
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
xor esi, esi
cmp byte [ebp + 0x10], 0
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 4], esi
je 0x10010049
lea eax, [ebp - 4]
push eax
push dword [edi + 0x14]
push dword [edi + 0x10]
call fcn.10003500
add esp, 0xc
mov esi, eax
push 0
push 0
push 2
push 0
push 0
push 0x40000000
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x10010088
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 0x24], eax
test esi, esi
je 0x1001007c
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
pop esi
mov eax, 5
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp + 0x10], 0
lea eax, [ebp + 0x10]
push 0
push eax
test esi, esi
je 0x100100d8
push dword [ebp - 4]
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
mov eax, dword [ebp + 0x10]
setne cl
cmp eax, dword [ebp - 4]
je 0x100100f2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
mov dword [edi + 0x24], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x100100cc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
pop esi
mov eax, 7
pop ebx
mov esp, ebp
pop ebp
ret
push dword [edi + 0x14]
push dword [edi + 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
mov eax, dword [ebp + 0x10]
setne cl
cmp eax, dword [edi + 0x14]
jne 0x100100b1
test cl, cl
je 0x100100b1
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x10010108
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10010120
Capabilities:
Delete file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
cmp dword [esi], 0
je 0x1001030d
cmp dword [esi + 0xc], 0
je 0x1001030d
mov ecx, dword [esi + 0x3c]
add ecx, dword [esi + 0x30]
mov eax, dword [0x1001c218]
push ebx
push edi
mov edi, dword [esi + 0x40]
add edi, 7
and edi, 0xfffffff8
mov dword [ecx + eax + 4], edi
mov eax, dword [esi + 0x30]
mov ecx, dword [esi + 8]
mov dword [ecx + eax], edi
lea eax, [esi + 0x50]
mov ebx, dword [esi + 0x28]
add ebx, dword [esi + 0x40]
sub edi, dword [esi + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1001018a
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
mov dword [esi + 0x24], eax
mov eax, 0xf
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
push 0x1001c21c
lea eax, [esi + 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 0x25
lea eax, [esi + eax*2]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0
push 0
push 2
push 0
push 0
push 0x40000000
lea eax, [esi + 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 0x258], eax
cmp eax, 0xffffffff
jne 0x100101df
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
mov dword [esi + 0x24], eax
mov eax, 5
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
push 0
lea ecx, [ebp + 8]
mov dword [ebp + 8], 0
push ecx
push ebx
push dword [esi + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x100102e2
cmp dword [ebp + 8], ebx
jne 0x100102e2
test edi, edi
je 0x10010263
push edi
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ecx, dword [esi + 0x258]
mov dword [ebp - 4], eax
test eax, eax
jne 0x1001023f
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop ebx
mov dword [esi + 0x258], 0xffffffff
mov eax, 2
pop esi
mov esp, ebp
pop ebp
ret
push 0
lea eax, [ebp + 8]
push eax
push edi
lea eax, [ebp - 4]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x100102c5
cmp dword [ebp + 8], edi
jne 0x100102c5
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [esi + 0x258]
test eax, eax
je 0x10010283
cmp eax, 0xffffffff
je 0x10010283
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x258], 0xffffffff
cmp byte [esi + 0x25c], 0
je 0x100102d9
push 0
push 0
push 3
push 0
push 1
push 0x80000000
lea eax, [esi + 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 0x258], eax
cmp eax, 0xffffffff
jne 0x100102d9
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
mov dword [esi + 0x24], eax
mov eax, 4
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 4]
mov dword [esi + 0x24], eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x100102eb
pop edi
pop ebx
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x24], eax
push dword [esi + 0x258]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop ebx
mov dword [esi + 0x258], 0xffffffff
mov eax, 7
pop esi
mov esp, ebp
pop ebp
ret
mov eax, 9
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10011820
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1001183c
test al, 0x10
jne 0x1001183c
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x407f80
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x6000]
push edi
or ebp, 0xffffffff
jmp 0x407fa2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x407fa9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x407f98
mov eax, 1
add ebx, ebx
jne 0x407fbb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x407fb0
jne 0x407fcc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407fb0
xor ecx, ecx
sub eax, 3
jb 0x407fe0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x408052
mov ebp, eax
add ebx, ebx
jne 0x407feb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x407ff8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40801c
inc ecx
add ebx, ebx
jne 0x408008
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x407ffd
jne 0x408019
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407ffd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40803c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40802d
jmp 0x407f9e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40803c
add edi, ecx
jmp 0x407f9e
pop esi
mov edi, esi
mov ecx, 0x8f
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40805a
cmp byte [edi], 0
jne 0x40805a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x40805f
lea edi, [esi + 0x5000]
mov eax, dword [edi]
or eax, eax
je 0x4080d7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x8d64]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x8ddc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40808c
mov ecx, edi
jns 0x4080bb
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x8de4]
or eax, eax
je 0x4080d1
mov dword [ebx], eax
add ebx, 4
jmp 0x4080a9
call dword [esi + 0x8de0]
mov ebp, dword [esi + 0x8de8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x40810b
sub esp, 0xffffff80
jmp 0x402130
Function at 0x401010
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 8]
mov dl, byte [esi]
test dl, dl
mov eax, 0x7fed7fed
mov ecx, 0xeeeeeeee
je 0x401054
push ebx
push ebp
push edi
mov edi, dword [esp + 0x18]
shl edi, 8
nop
add eax, ecx
imul ecx, ecx, 0x21
movsx edx, dl
lea ebx, [edi + edx]
mov ebp, dword [ebx*4 + 0x436b00]
inc esi
add ecx, edx
mov dl, byte [esi]
xor eax, ebp
test dl, dl
lea ecx, [ecx + eax + 3]
jne 0x401030
pop edi
pop ebp
pop ebx
pop esi
ret 8

Function at 0x4011f0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x1c
mov eax, dword [0x435b00]
push esi
mov esi, dword [esp + 0x24]
test esi, esi
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x10]
mov ecx, eax
je 0x401225
jmp 0x401210
mov edx, esi
and edx, 0xf
mov dl, byte [edx + str.0123456789ABCDEF]
mov byte [eax], dl
shr esi, 4
inc eax
test esi, esi
jne 0x401210
mov byte [eax], 0
dec eax
lea edx, [esp + 0x10]
cmp edx, eax
jae 0x40124d
push ebx
mov dl, byte [eax]
mov bl, byte [ecx]
xor bl, dl
mov byte [ecx], bl
mov dl, bl
mov bl, byte [eax]
xor bl, dl
mov byte [eax], bl
mov dl, bl
xor byte [ecx], dl
inc ecx
dec eax
cmp ecx, eax
jb 0x401232
pop ebx
xor eax, eax
mov dword [esp + 4], eax
mov dword [esp + 8], eax
mov byte [esp + 0xc], al
jmp 0x401260
mov cl, byte [esp + eax + 0x10]
mov byte [esp + eax + 4], cl
inc eax
test cl, cl
jne 0x401260
lea eax, [esp + 4]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401274
sub eax, edx
mov esi, eax
cmp esi, 8
jae 0x4012be
push edi
push esi
lea ecx, [esp + 0xc]
lea edx, [esp + 0x14]
push ecx
sub edx, esi
push edx
call fcn.00411070
mov ecx, 8
sub ecx, esi
mov edx, ecx
shr ecx, 2
mov eax, 0x30303030
lea edi, [esp + 0x14]
rep stosd dword es:[edi], eax
add esp, 0xc
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov byte [esp + 0x10], 0
pop edi
mov ecx, dword [esp + 0x28]
push 9
lea eax, [esp + 8]
push eax
push ecx
call fcn.004113b0
mov ecx, dword [esp + 0x28]
add esp, 0xc
pop esi
call fcn.00411505
add esp, 0x1c
ret 8
Function at 0x404c30
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x429850
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x64
mov eax, dword [0x435b00]
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov dword [esp + 0x70], eax
mov eax, dword [edi]
xor ebx, ebx
cmp eax, ebx
je 0x404dfd
mov eax, dword [esp + 0x84]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov eax, 0xf
mov dword [esp + 0x10], ebx
mov dword [esp + 0x6c], eax
mov dword [esp + 0x68], ebx
mov byte [esp + 0x58], bl
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x50], eax
mov dword [esp + 0x4c], ebx
mov byte [esp + 0x3c], bl
mov ebp, dword [edi + 0x44]
mov eax, dword [edi + 0x48]
cmp ebp, eax
mov byte [esp + 0x7c], 1
je 0x404dd9
lea ebx, [ebx]
push 0xffffffffffffffff
push ebx
push ebp
lea ecx, [esp + 0x60]
call fcn.00401fe0
push 1
push ebx
push 0x42b570
lea ecx, [esp + 0x60]
call fcn.004015f0
mov esi, eax
cmp esi, 0xffffffff
je 0x404dae
push esi
push ebx
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x60]
call fcn.00402940
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x44]
mov byte [esp + 0x88], 2
call fcn.00401fe0
cmp dword [esp + 0x34], 0x10
mov byte [esp + 0x7c], 1
jb 0x404d17
mov edx, dword [esp + 0x20]
push edx
call fcn.0041fcc6
add esp, 4
mov eax, dword [edi + 0x88]
cmp eax, ebx
mov dword [esp + 0x34], 0xf
mov dword [esp + 0x30], ebx
mov byte [esp + 0x20], bl
je 0x404d4b
cmp dword [esp + 0x50], 0x10
mov ecx, dword [esp + 0x3c]
jae 0x404d40
lea ecx, [esp + 0x3c]
push ecx
mov ecx, dword [esp + 0x14]
push ecx
call eax
add esp, 8
sub esp, 0x1c
mov edx, esp
mov dword [esp + 0x34], esp
push esi
push ebx
push edx
lea ecx, [esp + 0x7c]
call fcn.00402940
mov eax, dword [esp + 0xa0]
sub esp, 0x1c
mov ecx, esp
mov dword [ecx + 0x18], 0xf
mov dword [ecx + 0x14], ebx
mov byte [esp + 0xb4], 3
mov dword [esp + 0x4c], esp
mov byte [ecx + 4], bl
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x404d88
sub eax, esi
push eax
mov eax, dword [esp + 0xc0]
push eax
call fcn.00402420
mov ecx, edi
mov byte [esp + 0xb4], 1
call fcn.004036b0
mov ecx, dword [esp + 0x10]
mov eax, dword [edi + 0x48]
add ebp, 0x40
inc ecx
cmp ebp, eax
mov dword [esp + 0x10], ecx
jne 0x404cb0
cmp dword [esp + 0x50], 0x10
jb 0x404dd9
mov ecx, dword [esp + 0x3c]
push ecx
call fcn.0041fcc6
add esp, 4
cmp dword [esp + 0x6c], 0x10
mov dword [esp + 0x50], 0xf
mov dword [esp + 0x4c], ebx
mov byte [esp + 0x3c], bl
jb 0x404dfd
mov edx, dword [esp + 0x58]
push edx
call fcn.0041fcc6
add esp, 4
mov ecx, dword [esp + 0x74]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x70]
call fcn.00411505
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x70
ret 4
Function at 0x406a30
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x406a49
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x406a5d
pop esi
pop edi
xor eax, eax
pop ebx
ret
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x406a7e
cmp esi, eax
jae 0x406a57
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x406a70
cmp esi, eax
jae 0x406a57
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x407820
Capabilities:
Get file system object information

Disassembly:
sub esp, 0x164
mov eax, dword [0x435b00]
push esi
push edi
mov edi, dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
push 0x4001
push 0x160
mov dword [esp + 0x170], eax
lea eax, [esp + 0x10]
push eax
push 0
push 0x42bb64
mov esi, ecx
call edi
test eax, eax
je 0x40787a
push 0x4000
push 0x160
lea ecx, [esp + 0x10]
push ecx
push 0
push 0x42bb64
mov dword [esi + 0x9c], eax
call edi
test eax, eax
jne 0x407891
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x160]
call fcn.00411505
add esp, 0x164
ret
lea edi, [esi + 0x98]
test edi, edi
mov dword [esi + 0xa4], eax
jne 0x4078a5
xor eax, eax
jmp 0x4078a8
mov eax, dword [edi + 4]
mov edx, dword [esi + 0xf0]
push eax
push 0
push 0x1109
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
push eax
call fcn.0041ed29
push 1
push edi
lea ecx, [esi + 0x124]
call fcn.0040da40
mov ecx, dword [esp + 0x168]
pop edi
mov eax, 1
pop esi
call fcn.00411505
add esp, 0x164
ret
Function at 0x408fe0
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x429d2b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x170
mov eax, dword [0x435b00]
push ebx
push esi
mov dword [esp + 0x170], eax
push edi
xor eax, eax
mov ecx, 0x58
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x40905f
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp + 0xc]
neg eax
sbb eax, eax
and eax, 2
or eax, 0x4411
push eax
push 0x160
lea ecx, [esp + 0x18]
push ecx
push 0x10
push edx
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
mov eax, dword [ebp + 8]
mov ecx, 0x58
lea esi, [esp + 0x10]
mov edi, eax
rep movsd dword es:[edi], dword [esi]
jmp 0x409134
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [esp + 0x10]
call fcn.00408b90
mov ecx, dword [esp + 0xc]
push 0x2e
push ecx
mov dword [esp + 0x18c], 0
call fcn.0041226c
add esp, 8
test eax, eax
jne 0x40908f
or eax, 0xffffffff
jmp 0x409093
sub eax, dword [esp + 0xc]
push eax
push 0
lea ecx, [esp + 0x14]
call fcn.004078f0
mov eax, dword [esp + 0xc]
mov ecx, dword [eax - 4]
add eax, 0xfffffff0
cmp ecx, 1
jle 0x4090c2
mov edx, dword [eax + 4]
push edx
lea ecx, [esp + 0x10]
call fcn.00406cf0
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
dec dword [eax + 0xc]
jne 0x4090ce
mov dword [eax + 0xc], 0xffffffff
mov ecx, dword [ebp + 0x14]
mov eax, dword [esp + 0xc]
neg ecx
sbb ecx, ecx
and ecx, 2
or ecx, 0x4411
push ecx
push 0x160
lea edx, [esp + 0x18]
push edx
push 0x80
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
mov ebx, dword [ebp + 8]
mov eax, dword [esp + 0xc]
mov ecx, 0x58
lea esi, [esp + 0x10]
mov edi, ebx
add eax, 0xfffffff0
rep movsd dword es:[edi], dword [esi]
mov dword [esp + 0x184], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409132
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, ebx
mov ecx, dword [esp + 0x17c]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x174]
call fcn.00411505
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x40b660
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xa8
mov eax, dword [0x435b00]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
push edi
mov dword [esp + 0xac], eax
xor eax, eax
mov ecx, 0x27
lea edi, [esp + 8]
rep stosd dword es:[edi], eax
lea eax, [esp + 8]
push eax
mov dword [esp + 0xc], 0x9c
call esi
test eax, eax
jne 0x40b6b3
lea ecx, [esp + 8]
push ecx
mov dword [esp + 0xc], 0x94
call esi
test eax, eax
je 0x40b6da
mov eax, dword [esp + 0x18]
sub eax, 2
jne 0x40b6da
cmp dword [esp + 0xc], 5
jb 0x40b6da
mov eax, 1
mov ecx, dword [esp + 0xac]
call fcn.00411505
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0xac]
xor eax, eax
call fcn.00411505
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40bbd0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x429ff8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, dword [esp + 0x1c]
mov eax, dword [esi]
mov ecx, dword [eax - 0x10]
mov edx, dword [ecx]
push edi
xor edi, edi
mov dword [esp + 8], edi
call dword [edx + 0x10]
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x24]
mov eax, dword [eax]
mov edx, dword [eax - 0xc]
mov ecx, dword [esi]
mov esi, dword [ecx - 0xc]
push edx
push eax
push esi
push ecx
lea ecx, [esp + 0x30]
push ecx
mov dword [esp + 0x28], edi
call fcn.004081f0
mov esi, dword [esp + 0x34]
add esi, 0xfffffff0
push esi
call fcn.004077c0
mov edi, dword [esp + 0x34]
add eax, 0x10
mov dword [edi], eax
add esp, 0x18
mov dword [esp + 0x14], 0xffffffff
lea edx, [esi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x40bc62
mov ecx, dword [esi]
mov edx, dword [ecx]
push esi
call dword [edx + 4]
mov ecx, dword [esp + 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x40bc80
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x429ff8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, dword [esp + 0x1c]
mov eax, dword [esi]
mov ecx, dword [eax - 0x10]
mov edx, dword [ecx]
push edi
xor edi, edi
mov dword [esp + 8], edi
call dword [edx + 0x10]
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x20], eax
mov al, byte [esp + 0x24]
mov byte [esp + 0x24], al
mov eax, dword [esi]
mov ecx, dword [eax - 0xc]
push 1
lea edx, [esp + 0x28]
push edx
push ecx
push eax
lea eax, [esp + 0x30]
push eax
mov dword [esp + 0x28], edi
call fcn.004081f0
mov esi, dword [esp + 0x34]
add esi, 0xfffffff0
push esi
call fcn.004077c0
mov edi, dword [esp + 0x34]
add eax, 0x10
add esp, 0x18
mov dword [edi], eax
mov dword [esp + 0x14], 0xffffffff
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40bd16
mov ecx, dword [esi]
mov eax, dword [ecx]
push esi
call dword [eax + 4]
mov ecx, dword [esp + 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x40bde0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x110
mov eax, dword [0x435b00]
mov ecx, dword [esp + 0x118]
mov edx, dword [esp + 0x114]
push esi
mov dword [esp + 0x110], eax
lea eax, [esp + 4]
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x40be54
mov edx, dword [esp + 4]
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x10]
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x120]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x110]
mov eax, esi
pop esi
call fcn.00411505
add esp, 0x110
ret 0xc