joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4060c8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x20630
call fcn.00453ed0
push ebx
xor ebx, ebx
push esi
push edi
push 0x400
mov byte [0x48d8b0], bl
mov byte [0x48d8b1], bl
mov byte [0x48d8b2], bl
mov dword [0x48d8b4], ebx
mov dword [0x48d8b8], ebx
mov dword [0x48d8bc], ebx
mov dword [0x48d8c0], ebx
mov dword [0x48d8c4], 0x46c75c
mov dword [0x48d8c8], ebx
mov dword [0x48d8cc], ebx
mov dword [0x48d8d0], ebx
mov dword [0x48d8d4], 0x46c75c
mov dword [0x48d8d8], ebx
mov dword [0x48d8dc], ebx
mov dword [0x48d8e0], ebx
mov dword [0x48d8e8], ebx
mov dword [0x48d8f0], ebx
call fcn.0044e9ed
pop ecx
mov dword [0x48d8e4], eax
mov esi, 0x104
push esi
lea eax, [ebp - 0x21c]
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameW]
push ebx
push ebx
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0x62c]
push eax
lea eax, [ebp - 0x21c]
push eax
call fcn.004514e8
push esi
lea eax, [ebp - 0x424]
push str.Include
push eax
call fcn.00451532
push ebx
push ebx
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0x62c]
push eax
lea eax, [ebp - 0x21c]
push eax
call fcn.0045156f
mov edi, 0x20a
push edi
call fcn.0044e9ed
mov ecx, dword [0x48d8e4]
mov edx, dword [0x48d8e8]
mov dword [ecx + edx*4], eax
mov ecx, dword [0x48d8e8]
mov eax, dword [0x48d8e4]
mov eax, dword [eax + ecx*4]
inc dword [0x48d8e8]
lea ecx, [ebp - 0x21c]
push ecx
push eax
call fcn.0044e973
add esp, 0x40
lea eax, [ebp - 0xc]
push eax
push 0x20019
push ebx
push str.SoftwareAutoIt_v3AutoIt
push reloc.WSOCK32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40632f
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x20630]
push eax
push ebx
push ebx
push str.Include
push dword [ebp - 0xc]
mov dword [ebp - 4], 0x1fffe
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x406326
shr dword [ebp - 4], 1
mov eax, dword [ebp - 4]
add eax, eax
mov word [ebp + eax - 0x20630], bx
mov word [ebp + eax - 0x2062e], bx
lea eax, [ebp - 0x20630]
mov word [ebp - 0x21c], bx
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
movzx eax, word [eax]
cmp ax, bx
mov word [ebp - 0x10], ax
mov word [ebp - 0xe], bx
je 0x406298
cmp ax, 0x3b
je 0x406298
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x21c]
push eax
call fcn.0044e949
pop ecx
pop ecx
jmp 0x40631d
lea eax, [ebp - 0x21c]
push eax
call fcn.0044f00e
test eax, eax
pop ecx
je 0x4062d4
lea eax, [ebp - 0x21c]
push eax
call fcn.0044f00e
cmp word [ebp + eax*2 - 0x21e], 0x5c
pop ecx
je 0x4062d4
lea eax, [ebp - 0x21c]
push 0x46c388
push eax
call fcn.0044e949
pop ecx
pop ecx
push edi
call fcn.0044e9ed
mov ecx, dword [0x48d8e4]
mov edx, dword [0x48d8e8]
mov dword [ecx + edx*4], eax
mov ecx, dword [0x48d8e8]
mov eax, dword [0x48d8e4]
mov eax, dword [eax + ecx*4]
inc dword [0x48d8e8]
push esi
lea ecx, [ebp - 0x21c]
push ecx
push eax
call fcn.0045158d
mov eax, dword [ebp - 8]
add esp, 0x10
cmp word [eax], bx
mov word [ebp - 0x21c], bx
je 0x406326
add dword [ebp - 8], 2
jmp 0x406268
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov eax, 0x48d8b0
pop ebx
leave
ret
Function at 0x40c672
Capabilities:
Check if file exists
Delete file
Enumerate files on windows
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xca8
push ebx
push esi
push dword [ebp + 8]
lea eax, [esp + 0x14]
mov byte [esp + 0x13], 0
call fcn.0040c4db
pop ecx
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40c6b7
test al, 0x10
je 0x40c6b7
lea eax, [esp + 0x10]
push str..
push eax
call fcn.0044e949
pop ecx
pop ecx
lea eax, [esp + 0xaa0]
push eax
lea eax, [esp + 0x894]
push eax
lea eax, [esp + 0x478]
push eax
lea eax, [esp + 0x68c]
push eax
lea eax, [esp + 0x20]
push eax
call fcn.004514e8
add esp, 0x14
lea eax, [esp + 0x220]
push eax
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.DLL_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
mov bl, 1
je 0x40c788
cmp bl, 1
jne 0x40c788
test byte [esp + 0x220], 0x10
jne 0x40c760
lea eax, [esp + 0x680]
push eax
lea eax, [esp + 0x14]
push eax
mov byte [esp + 0x17], bl
call fcn.0044e973
lea eax, [esp + 0x478]
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.0044e949
lea eax, [esp + 0x25c]
push eax
lea eax, [esp + 0x24]
push eax
call fcn.0044e949
add esp, 0x18
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
cmp eax, 1
jne 0x40c777
lea eax, [esp + 0x220]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_FindNextFileW]
test eax, eax
jne 0x40c704
xor bl, bl
jmp 0x40c704
xor bl, bl
push esi
call dword [sym.imp.KERNEL32.DLL_FindClose]
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
mov bl, byte [esp + 0xf]
jmp 0x40c779
Function at 0x40c78e
Capabilities:
Check if file exists
Copy file
Delete file
Enumerate files on windows
Get file attributes
Move file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x12dc
call fcn.00453ed0
push ebx
push esi
push edi
push dword [ebp + 8]
lea eax, [esp + 0x43c]
xor bl, bl
call fcn.0040c4db
pop ecx
push dword [ebp + 0xc]
lea eax, [esp + 0x64c]
call fcn.0040c4db
pop ecx
lea eax, [esp + 0x648]
push eax
lea eax, [esp + 0x43c]
push eax
call fcn.0040c5cd
mov esi, dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
pop ecx
mov byte [esp + 0x17], al
pop ecx
lea eax, [esp + 0x438]
push eax
call esi
cmp eax, 0xffffffff
mov edi, str..
je 0x40c80c
test al, 0x10
je 0x40c80c
lea eax, [esp + 0x438]
push edi
push eax
call fcn.0044e949
pop ecx
pop ecx
lea eax, [esp + 0x648]
push eax
call esi
cmp eax, 0xffffffff
je 0x40c82f
test al, 0x10
je 0x40c82f
lea eax, [esp + 0x648]
push edi
push eax
call fcn.0044e949
pop ecx
pop ecx
lea eax, [esp + 0x10d8]
push eax
lea eax, [esp + 0xaac]
push eax
lea eax, [esp + 0xcc0]
push eax
lea eax, [esp + 0xed4]
push eax
lea eax, [esp + 0x448]
push eax
call fcn.004514e8
add esp, 0x14
lea eax, [esp + 0x858]
push eax
lea eax, [esp + 0x43c]
push eax
call dword [sym.imp.KERNEL32.DLL_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [esp + 0x14], eax
mov byte [esp + 0x12], 1
je 0x40c9c7
mov edi, dword [sym.imp.KERNEL32.DLL_CopyFileW]
cmp byte [esp + 0x12], 1
jne 0x40c9c7
test byte [esp + 0x858], 0x10
jne 0x40c9a2
lea eax, [esp + 0x648]
push eax
lea eax, [esp + 0x10dc]
push eax
lea eax, [esp + 0xab0]
push eax
lea eax, [esp + 0x890]
push eax
lea esi, [esp + 0x238]
call fcn.0040c9da
lea eax, [esp + 0xed8]
push eax
lea eax, [esp + 0x2c]
push eax
call fcn.0044e973
lea eax, [esp + 0xcd0]
push eax
lea eax, [esp + 0x34]
push eax
call fcn.0044e949
lea eax, [esp + 0x8a4]
push eax
lea eax, [esp + 0x3c]
push eax
call fcn.0044e949
mov eax, esi
push eax
call fcn.0040c488
add esp, 0x2c
test al, al
je 0x40c938
cmp byte [ebp + 0x10], 0
je 0x40c983
mov eax, esi
push eax
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcmpiW]
test eax, eax
mov eax, esi
push eax
je 0x40c991
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
cmp byte [ebp + 0x14], 1
lea eax, [esp + 0x228]
jne 0x40c975
cmp byte [esp + 0x13], 0
jne 0x40c95a
push eax
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.DLL_MoveFileW]
jmp 0x40c97f
push 0
push eax
lea eax, [esp + 0x20]
push eax
call edi
test eax, eax
je 0x40c983
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
jmp 0x40c97f
push 0
push eax
lea eax, [esp + 0x20]
push eax
call edi
test eax, eax
jne 0x40c9a0
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.DLL_FindClose]
xor al, al
jmp 0x40c9d3
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.DLL_MoveFileW]
test eax, eax
je 0x40c9c5
mov bl, 1
lea eax, [esp + 0x858]
push eax
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.DLL_FindNextFileW]
test eax, eax
jne 0x40c88d
mov byte [esp + 0x12], al
jmp 0x40c88d
xor bl, bl
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.DLL_FindClose]
mov al, bl
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40cbf6
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
push esi
mov esi, dword [esp + 0xc]
push edi
push esi
call fcn.0044f00e
dec eax
lea eax, [esi + eax*2]
cmp word [eax], 0x5c
pop ecx
jne 0x40cc12
and word [eax], 0
push esi
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40cc89
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 2
mov ebp, dword [sym.imp.KERNEL32.DLL_CreateDirectoryW]
jne 0x40cc3c
push 0
push esi
call ebp
test eax, eax
je 0x40cc41
mov al, 1
jmp 0x40cc8f
cmp eax, 3
jne 0x40cc8d
push esi
call fcn.0040d6da
mov edi, eax
push 0x5c
push edi
call fcn.00452dc0
add esp, 0xc
test eax, eax
jne 0x40cc61
push edi
call fcn.0044e722
pop ecx
jmp 0x40cc8d
and word [eax], 0
push ebx
push edi
call fcn.0040cbf6
push edi
mov bl, al
call fcn.0044e722
test bl, bl
pop ecx
pop ecx
je 0x40cc84
push 0
push esi
call ebp
test eax, eax
setne bl
mov al, bl
pop ebx
jmp 0x40cc8f
test al, 0x10
jne 0x40cc38
xor al, al
pop edi
pop esi
pop ebp
ret

Function at 0x40cc93
Capabilities:
Check if file exists
Copy file
Get file attributes
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x438
push dword [ebp + 8]
lea eax, [ebp - 0x438]
call fcn.0040c4db
push dword [ebp + 0xc]
lea eax, [ebp - 0x22c]
call fcn.0040c4db
pop ecx
pop ecx
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x438]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcmpiW]
test eax, eax
jne 0x40cd0c
cmp byte [ebp + 0x10], al
je 0x40cd08
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x438]
push eax
call fcn.0044ef27
test eax, eax
pop ecx
pop ecx
je 0x40cd04
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x438]
push eax
call dword [sym.imp.KERNEL32.DLL_MoveFileW]
mov al, 1
leave
ret
xor al, al
leave
ret
push esi
mov esi, dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
lea eax, [ebp - 0x438]
push eax
call esi
cmp eax, 0xffffffff
je 0x40cd25
test al, 0x10
jne 0x40cd2c
xor al, al
jmp 0x40cde5
push ebx
lea eax, [ebp - 0x22c]
push eax
call esi
xor ebx, ebx
cmp eax, 0xffffffff
je 0x40cd46
test al, 0x10
je 0x40cd46
cmp byte [ebp + 0x10], bl
jmp 0x40cd67
lea eax, [ebp - 0x22c]
push eax
call fcn.0040cbf6
test al, al
pop ecx
je 0x40cd69
lea eax, [ebp - 0x22c]
push eax
call esi
cmp eax, 0xffffffff
je 0x40cd69
test al, 0x10
jne 0x40cd6d
xor al, al
jmp 0x40cde4
lea eax, [ebp - 0x438]
push str..
push eax
call fcn.0044e949
lea eax, [ebp - 0x438]
push eax
call fcn.0044f00e
mov word [ebp + eax*2 - 0x436], bx
lea eax, [ebp - 0x22c]
push eax
call fcn.0044f00e
mov word [ebp + eax*2 - 0x22a], bx
lea eax, [ebp - 0x438]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x22c]
mov dword [ebp - 0x14], eax
add esp, 0x10
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0xa], ebx
mov dword [ebp - 6], ebx
mov dword [ebp - 0xe], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], 2
mov word [ebp - 0x10], 0x614
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
neg eax
sbb al, al
inc al
pop ebx
pop esi
leave
ret
Function at 0x411e27
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, eax
mov eax, dword [esi + 0x10]
cmp dword [esi + 0x43c], eax
push edi
mov dword [esp + 0x10], eax
jae 0x411f87
mov ebp, 0xff
push 1
mov eax, esi
call fcn.00411fb7
cmp eax, 1
mov eax, esi
jne 0x411e83
push 8
call fcn.00411fb7
mov ecx, dword [esi + 0x43c]
mov edx, dword [esi + 0x438]
and ecx, 0x1ffff
mov byte [ecx + edx], al
inc dword [esi + 0x43c]
inc dword [esi + 0x440]
jmp 0x411f22
push 0xf
call fcn.00411fb7
mov ebx, eax
push 2
mov eax, esi
xor edi, edi
call fcn.00411fb7
cmp eax, 3
jne 0x411ee2
push eax
pop edi
push eax
mov eax, esi
call fcn.00411fb7
cmp eax, 7
jne 0x411ee2
push 0xa
pop edi
push 5
mov eax, esi
call fcn.00411fb7
cmp eax, 0x1f
jne 0x411ee2
push 0x29
pop edi
push 8
mov eax, esi
call fcn.00411fb7
cmp eax, ebp
jne 0x411ee2
mov edi, 0x128
jmp 0x411ed5
add edi, ebp
push 8
mov eax, esi
call fcn.00411fb7
cmp eax, ebp
je 0x411ed3
lea edi, [eax + edi + 3]
mov eax, dword [esi + 0x43c]
sub eax, ebx
jmp 0x411f1e
mov ebx, dword [esi + 0x43c]
mov ecx, dword [esi + 0x438]
mov edx, eax
and edx, 0x1ffff
mov dl, byte [edx + ecx]
and ebx, 0x1ffff
dec edi
mov byte [ebx + ecx], dl
inc eax
inc dword [esi + 0x43c]
inc dword [esi + 0x440]
test edi, edi
jne 0x411ef0
call fcn.00411d66
cmp dword [0x48dd00], 0x1000
jbe 0x411f68
mov edi, dword [esi + 0x454]
and dword [0x48dd00], 0
test edi, edi
je 0x411f6e
mov ecx, dword [esi + 8]
mov eax, ecx
imul eax, eax, 0x64
xor edx, edx
div dword [esi + 0x10]
push eax
push ecx
push dword [esi + 0xc]
call edi
add esp, 0xc
test eax, eax
jne 0x411f6e
mov byte [esi + 0x448], 1
jmp 0x411f6e
inc dword [0x48dd00]
cmp byte [esi + 0x448], 0
jne 0x411fb2
mov eax, dword [esp + 0x10]
cmp dword [esi + 0x43c], eax
jb 0x411e46
lea edi, [esi + 0x460]
mov eax, dword [edi]
test eax, eax
je 0x411faa
push dword [esi + 0x20]
push eax
push 1
push dword [esi + 0x458]
call fcn.00451fc2
add esp, 0x10
and dword [edi], 0
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 4
pop eax
jmp 0x411fac

Function at 0x412047
Capabilities:
Hash data with md5

Disassembly:
push 8
lea eax, [esi + 0x44]
push 0
push eax
call fcn.00451260
add esp, 0xc
mov dword [esi + 0x34], 0x67452301
mov dword [esi + 0x38], 0xefcdab89
mov dword [esi + 0x3c], 0x98badcfe
mov dword [esi + 0x40], 0x10325476
ret
Function at 0x412a2c
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1a8
push ebx
push esi
push 0x46bf68
or eax, 0xffffffff
call fcn.0040df43
pop ecx
mov esi, eax
lea eax, [esp + 0xa8]
push esi
push eax
call fcn.00450c40
push esi
call fcn.0044e722
add esp, 0xc
lea esi, [esp + 0x18]
call fcn.00412047
lea eax, [esp + 0xa8]
push eax
call fcn.00450bb0
pop ecx
mov ebx, eax
call fcn.00412047
lea eax, [esp + 0xa8]
push eax
mov eax, ebx
call fcn.00412074
mov eax, esi
call fcn.0041210b
and dword [edi + 8], 0
push 0x10
xor ecx, ecx
xor eax, eax
pop ebx
movzx edx, byte [esp + ecx + 0x18]
add eax, edx
inc ecx
cmp ecx, ebx
jl 0x412aa0
push 0x46cc28
push dword [ebp + 8]
mov dword [edi + 8], eax
call fcn.00451cd9
test eax, eax
pop ecx
pop ecx
mov dword [edi], eax
jne 0x412ac7
inc eax
jmp 0x412b23
mov esi, edi
call fcn.00412b2b
push dword [edi]
mov esi, eax
test esi, esi
je 0x412adf
call fcn.004520b6
mov eax, esi
jmp 0x412b22
push ebx
lea eax, [esp + 0x10]
push 1
push eax
call fcn.004523ce
add esp, 0x10
push 0x99f2
push ebx
lea eax, [esp + 0x10]
push eax
call fcn.00412c26
xor ecx, ecx
mov dword [edi + 8], ecx
xor eax, eax
movzx edx, byte [esp + eax + 8]
imul ecx, edx
inc eax
cmp eax, ebx
jl 0x412b06
push dword [edi]
mov dword [edi + 8], ecx
call fcn.00453121
mov dword [edi + 4], eax
xor eax, eax
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x412b2b
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10020
call fcn.00453ed0
xor eax, eax
mov cl, byte [eax + 0x478030]
mov byte [ebp + eax - 0x20], cl
mov cl, byte [eax + 0x478028]
mov byte [ebp + eax - 0x18], cl
inc eax
cmp eax, 8
jl 0x412b3a
push ebx
push edi
lea eax, [ebp - 8]
push str.AU3_
push eax
call fcn.00450c40
push 4
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00450dd0
add esp, 0x14
xor edi, edi
push dword [esi]
lea eax, [ebp - 0x10020]
push 0x10000
push 1
push eax
call fcn.004523ce
add esp, 0x10
cmp eax, 0x18
mov dword [ebp - 0xc], eax
jl 0x412c21
lea edx, [eax - 0x14]
xor ecx, ecx
test edx, edx
jle 0x412bcd
xor edx, edx
lea eax, [ebp + ecx - 0x10020]
mov bl, byte [ebp + edx - 0x20]
cmp bl, byte [eax + edx]
jne 0x412bbd
inc edx
cmp edx, 0x14
jl 0x412bae
cmp edx, 0x14
je 0x412be1
mov eax, dword [ebp - 0xc]
inc ecx
lea edx, [eax - 0x14]
cmp ecx, edx
jl 0x412ba5
push 1
push 0xffffffffffffffec
push dword [esi]
lea edi, [edi + eax - 0x14]
call fcn.00451d73
add esp, 0xc
jmp 0x412b78
push 0
lea eax, [edi + ecx + 0x14]
push eax
push dword [esi]
call fcn.00451d73
add esp, 0xc
push dword [esi]
lea eax, [ebp - 8]
push 4
push 1
push eax
call fcn.004523ce
lea eax, [ebp - 8]
push str.EA06
push eax
mov byte [ebp - 4], 0
call fcn.00451670
add esp, 0x18
neg eax
sbb eax, eax
and eax, 4
pop edi
pop ebx
leave
ret
push 3
pop eax
jmp 0x412c1d
Function at 0x412c26
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xdc
push esi
push edi
lea eax, [ebp - 0xdc]
call fcn.0041288d
push dword [ebp + 0x10]
lea esi, [ebp - 0xdc]
call fcn.004129cd
xor edi, edi
cmp dword [ebp + 0xc], edi
jbe 0x412c6b
mov eax, dword [ebp + 8]
lea esi, [edi + eax]
lea eax, [ebp - 0xdc]
push eax
call fcn.0041299f
xor byte [esi], al
inc edi
cmp edi, dword [ebp + 0xc]
jb 0x412c51
pop edi
pop esi
leave
ret 0xc
Function at 0x42dd83
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2018
call fcn.00453ed0
push ebx
push esi
push edi
lea ecx, [ebp - 0xc]
call fcn.0040e2de
lea ecx, [ebp - 0x18]
call fcn.0040e2de
mov esi, dword [ebp + 8]
xor edi, edi
call fcn.0040fc41
mov esi, eax
movzx eax, word [esi]
xor bl, bl
test ax, ax
je 0x42deb1
inc edi
cmp ax, 0x25
jne 0x42de70
cmp word [esi + edi*2], ax
jne 0x42dde0
push 0x25
lea eax, [ebp - 0xc]
mov bl, 1
call fcn.0040e54c
inc edi
jmp 0x42de79
push 0x46bf68
lea eax, [ebp - 0x18]
call fcn.0040e46d
jmp 0x42de01
test ax, ax
je 0x42de0b
movzx eax, ax
push eax
lea eax, [ebp - 0x18]
call fcn.0040e54c
inc edi
movzx eax, word [esi + edi*2]
cmp ax, 0x25
jne 0x42ddef
cmp word [esi + edi*2], 0
je 0x42de88
and word [ebp - 0x2018], 0
push 0xfff
lea eax, [ebp - 0x2018]
push eax
push dword [ebp - 0x18]
inc edi
call dword [sym.imp.KERNEL32.DLL_GetEnvironmentVariableW]
test eax, eax
je 0x42de47
lea eax, [ebp - 0x2018]
push eax
lea eax, [ebp - 0xc]
call fcn.0040e505
mov bl, 1
jmp 0x42de79
push 0x471400
lea eax, [ebp - 0xc]
mov bl, 1
call fcn.0040e505
lea eax, [ebp - 0x18]
lea ecx, [ebp - 0xc]
call fcn.0040e4c9
push 0x471400
lea eax, [ebp - 0xc]
call fcn.0040e505
jmp 0x42de79
push eax
lea eax, [ebp - 0xc]
call fcn.0040e54c
movzx eax, word [esi + edi*2]
test ax, ax
jne 0x42ddbd
jmp 0x42dea2
push 0x471400
lea eax, [ebp - 0xc]
mov bl, 1
call fcn.0040e505
lea eax, [ebp - 0x18]
lea ecx, [ebp - 0xc]
call fcn.0040e4c9
test bl, bl
je 0x42deb1
mov ebx, dword [ebp + 8]
lea edi, [ebp - 0xc]
call fcn.004102f4
push dword [ebp - 0x18]
call fcn.0044e722
push dword [ebp - 0xc]
call fcn.0044e722
pop ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x434a55
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x214
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
push edi
xor ebx, ebx
lea eax, [esp + 0x18]
push eax
push ebx
push ebx
push ebx
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x34]
push eax
push ebx
push dword [ebp + 8]
mov dword [esp + 0x30], 0xff
call esi
mov edi, 0x103
jmp 0x434b10
xor eax, eax
cmp byte [0x48b7c8], bl
je 0x434aa2
mov eax, pe_nt_image_headers32
lea ecx, [esp + 0x14]
push ecx
or eax, 0x20019
push eax
push ebx
lea eax, [esp + 0x2c]
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x434b1c
push dword [esp + 0x14]
call fcn.00434a55
pop ecx
push dword [esp + 0x14]
mov byte [esp + 0x13], al
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [esp + 0xf], bl
je 0x434b1c
lea eax, [esp + 0x20]
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x434b1c
lea eax, [esp + 0x18]
push eax
push ebx
push ebx
push ebx
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x34]
push eax
push ebx
push dword [ebp + 8]
mov dword [esp + 0x30], 0xff
call esi
cmp eax, edi
jne 0x434a93
mov al, 1
jmp 0x434b1e
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x435523
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
cmp edi, 0xffffffff
je 0x4355ab
push edi
call dword [sym.imp.KERNEL32.DLL_GetFileType]
cmp eax, 1
jne 0x4355ab
mov esi, dword [sym.imp.KERNEL32.DLL_SetFilePointer]
push eax
xor ebx, ebx
push ebx
push ebx
push edi
call esi
cmp dword [ebp + 0xc], ebx
mov dword [ebp - 4], eax
je 0x43557f
cmp dword [ebp + 0x10], ebx
jbe 0x43557f
push ebx
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
jne 0x435577
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
jmp 0x4355ad
push ebx
push ebx
push dword [ebp - 4]
push edi
call esi
cmp dword [ebp + 0x18], ebx
je 0x43559f
push 2
push ebx
push ebx
push edi
call esi
push ebx
push ebx
push dword [ebp - 4]
mov edi, eax
push dword [ebp + 8]
call esi
sub edi, dword [ebp - 4]
mov eax, dword [ebp + 0x18]
mov dword [eax], edi
push ebx
call dword [sym.imp.KERNEL32.DLL_SetLastError]
xor eax, eax
inc eax
jmp 0x4355b5
push 6
call dword [sym.imp.KERNEL32.DLL_SetLastError]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x43b00d
Capabilities:
Create process on windows

Disassembly:
push ebx
push esi
push edi
push 0x44
xor ebx, ebx
push ebx
mov edi, 0x48dd20
push edi
call fcn.00451260
push 0x10
push ebx
mov esi, 0x48dd10
push esi
call fcn.00451260
add esp, 0x18
push esi
push edi
push ebx
push ebx
push 0x20
push ebx
push ebx
push ebx
push dword [esp + 0x30]
xor eax, eax
inc eax
push ebx
mov dword [0x48dd20], 0x44
mov dword [0x48dd4c], eax
mov word [0x48dd50], ax
call dword [sym.imp.KERNEL32.DLL_CreateProcessW]
test eax, eax
pop edi
pop esi
pop ebx
je 0x43b070
push dword [0x48dd10]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
ret 4
Function at 0x4551e3
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x476b50]
je 0x4551fe
inc edi
cmp edi, 0x17
jb 0x4551ef
cmp edi, 0x17
jae 0x45537e
push ebp
push 3
call fcn.00460825
cmp eax, 1
pop ecx
je 0x45534a
push 3
call fcn.00460825
test eax, eax
pop ecx
jne 0x455232
cmp dword [0x476388], 1
je 0x45534a
cmp ebx, 0xfc
je 0x45537d
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x478a90
push ebp
call fcn.00460549
add esp, 0xc
test eax, eax
je 0x455268
push esi
push esi
push esi
push esi
push esi
call fcn.00454f21
add esp, 0x14
push 0x104
mov esi, 0x478aa9
push esi
push 0
mov byte [0x478bad], 0
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
test eax, eax
jne 0x4552ac
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.00460549
add esp, 0xc
test eax, eax
je 0x4552ac
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00454f21
add esp, 0x14
push esi
call fcn.00450bb0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x4552f1
push esi
call fcn.00450bb0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x478da4
push 0x4696d4
sub ecx, eax
push ecx
push eax
call fcn.00460496
add esp, 0x14
test eax, eax
je 0x4552f1
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.00454f21
add esp, 0x14
jmp 0x4552f3
xor esi, esi
push 0x4696d0
push ebx
push ebp
call fcn.004603d5
add esp, 0xc
test eax, eax
je 0x455313
push esi
push esi
push esi
push esi
push esi
call fcn.00454f21
add esp, 0x14
push dword [edi*8 + 0x476b54]
push ebx
push ebp
call fcn.004603d5
add esp, 0xc
test eax, eax
je 0x455335
push esi
push esi
push esi
push esi
push esi
call fcn.00454f21
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.00460668
add esp, 0xc
jmp 0x45537d
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.DLL_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x45537d
cmp ebp, 0xffffffff
je 0x45537d
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x476b54]
push dword [esi]
call fcn.00450bb0
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.DLL_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret