joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406f40
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0
push 0xffffffffffffffff
push esi
call fcn.00403580
add esp, 0xc
test al, al
je 0x406f68
push 1
push esi
call fcn.00403a60
add esp, 8
mov edi, eax
jmp 0x406f98
push 0xffffffffffffffff
push 0xffffffffffffffff
push esi
call fcn.00403580
add esp, 0xc
test al, al
je 0x406fad
push 0xffffffffffffffff
push 0xffffffffffffffff
push esi
call fcn.00403490
mov esi, eax
push 1
push esi
call fcn.00403a60
push esi
mov edi, eax
call fcn.00419830
add esp, 0x18
push edi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push edi
call dword [sym.imp.MSVCR80.dll_free]
add esp, 4
pop edi
pop esi
pop ebp
ret
push ebx
push 0
push 0xffffffffffffffff
push esi
call fcn.00403440
mov edi, eax
push edi
push 0x4360e4
push 0x436098
push 0
call fcn.00405940
mov ebx, dword [sym.imp.MSVCR80.dll_free]
mov esi, eax
add esp, 0x1c
test esi, esi
je 0x406fe8
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push esi
call ebx
add esp, 4
push edi
call ebx
add esp, 4
pop ebx
pop edi
pop esi
pop ebp
ret

Function at 0x407000
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
xor esi, esi
push edi
mov dword [ebp - 4], esi
mov edi, 0x104
lea ebx, [edi + edi]
push ebx
push esi
call dword [sym.imp.MSVCR80.dll_realloc]
mov esi, eax
add esp, 8
test esi, esi
jne 0x407029
test ebx, ebx
jne 0x40703d
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x407073
cmp eax, edi
jb 0x407051
mov edi, eax
jmp 0x407011
push 0x7d2
push 0x436058
push 0x42eddc
call fcn.00405580
push 1
push 0xffffffffffffffff
push esi
call fcn.00403490
add esp, 0xc
push esi
mov edi, eax
call dword [sym.imp.MSVCR80.dll_free]
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp - 4]
push esi
call dword [sym.imp.MSVCR80.dll_free]
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4078a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 0x10]
cmp esi, 0x80000000
push edi
mov dword [ebp - 4], 0
mov ebx, esi
jb 0x4078cf
push 0x229
push 0x436570
push 0x42e998
call fcn.00405580
test esi, esi
jbe 0x4078f7
mov edi, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
push 0
lea eax, [ebp - 4]
push eax
push esi
push edi
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x407909
mov eax, dword [ebp - 4]
add edi, eax
sub esi, eax
jne 0x4078d6
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x407900
mov dword [eax], ebx
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x407917
sub ebx, esi
add ebx, dword [ebp - 4]
mov dword [eax], ebx
pop edi
pop esi
mov eax, 2
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x407980
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
jne 0x40799c
push 0x1e7
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, 2
pop ebp
ret
push ebx
push esi
push 1
push eax
call fcn.00403a60
add esp, 8
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push esi
mov ebx, eax
call dword [sym.imp.MSVCR80.dll_free]
add esp, 4
cmp ebx, 0xffffffff
jne 0x4079cc
pop esi
mov eax, 2
pop ebx
pop ebp
ret
test bl, 0x10
jne 0x4079e0
test bl, 1
je 0x4079e0
mov eax, 2
test byte [ebp + 0xc], al
jne 0x4079e2
xor eax, eax
pop esi
pop ebx
pop ebp
ret

Function at 0x4080e0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
mov al, byte [0x44b148]
sub esp, 0x9c
test al, al
jne 0x4080fb
mov eax, dword [0x44bee4]
mov esp, ebp
pop ebp
ret
push 0x9c
lea ecx, [ebp - 0x9c]
push 0
push ecx
call sub.MSVCR80.dll_memset
add esp, 0xc
lea edx, [ebp - 0x9c]
push edx
mov dword [ebp - 0x9c], 0x9c
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x40813a
mov dword [0x44bee4], eax
mov byte [0x44b148], al
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x98]
cmp eax, 5
jbe 0x40815a
mov eax, 8
mov dword [0x44bee4], eax
mov byte [0x44b148], 0
mov esp, ebp
pop ebp
ret
jne 0x40816f
mov eax, dword [ebp - 0x94]
test eax, eax
ja 0x408145
jne 0x40816f
cmp word [ebp - 8], 4
jae 0x408145
xor eax, eax
mov dword [0x44bee4], eax
mov byte [0x44b148], al
mov esp, ebp
pop ebp
ret

Function at 0x4088e0
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [0x44bf40]
test eax, eax
jne 0x40890e
push 0x436634
call dword [sym.imp.MSVCR80.dll_getenv]
add esp, 4
test eax, eax
jne 0x408900
mov eax, 0x42edd5
push eax
call fcn.004087f0
mov eax, dword [0x44bf40]
add esp, 4
ret

Function at 0x40a1d0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
sub esp, 0x400
push esi
push eax
push ecx
lea edx, [ebp - 0x400]
push 0x400
push edx
call fcn.004055a0
mov esi, dword [sym.imp.MSVCR80.dll___iob_func]
call esi
add eax, 0x40
push eax
lea eax, [ebp - 0x400]
push eax
call dword [sym.imp.MSVCR80.dll_fputs]
lea ecx, [ebp - 0x400]
push ecx
call fcn.00406f40
add esp, 0x1c
call fcn.00412240
mov ecx, dword [0x44bf48]
mov eax, ecx
add ecx, 1
sub eax, 0
mov dword [0x44bf48], ecx
je 0x40a26f
sub eax, 1
jne 0x40a254
lea edx, [ebp - 0x400]
push edx
call fcn.00406ce0
push 0x4367b4
call fcn.00406ce0
add esp, 8
push 0x4367b4
call esi
add eax, 0x40
push eax
call dword [sym.imp.MSVCR80.dll_fprintf]
add esp, 8
push 1
call fcn.00412290
lea eax, [ebp - 0x400]
push eax
call fcn.00406ce0
push 0
call fcn.004122b0
push 1
call fcn.00412240
add esp, 0xc
call fcn.0040a180
cmp byte [0x44b151], 0
je 0x40a29f
call fcn.00419240
call fcn.0040a0f0
lea ecx, [ebp - 0x400]
push ecx
call fcn.00406ce0
add esp, 4
push 0xffffffffffffffff
call dword [sym.imp.MSVCR80.dll_exit]
int3
Function at 0x4110d0
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 8]
test eax, eax
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
mov dword [ebp - 0xc], 0x20
mov dword [ebp - 8], 5
je 0x411193
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x411193
push 1
push eax
call fcn.00403a60
push 1
push esi
mov dword [ebp + 8], eax
call fcn.00403a60
mov esi, eax
add esp, 0x10
mov dword [ebp - 4], esi
jmp 0x411120
mov eax, dword [ebp + 8]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x411139
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x41113b
xor edi, edi
xor eax, eax
lea ecx, [ecx]
cmp dword [ebp + eax*4 - 0xc], edi
je 0x411182
add eax, 1
cmp eax, 2
jb 0x411140
mov ecx, dword [ebp + 8]
mov esi, dword [sym.imp.MSVCR80.dll_free]
push ecx
call esi
mov edx, dword [ebp - 4]
push edx
call esi
add esp, 8
cmp dword [ebp + 0x10], 0
je 0x411198
test ebx, ebx
jne 0x411198
push edi
push 0x436c6c
push 0x436c40
call fcn.00406ce0
add esp, 0xc
jmp 0x411198
test ebx, ebx
je 0x41114e
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
sub ebx, 1
jmp 0x411120
mov edi, 0x1e7
push edi
push 0x436c6c
call fcn.00410e30
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4111b0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 8]
test eax, eax
push esi
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 8], 0x20
mov dword [ebp - 4], 5
jne 0x4111e9
mov esi, 0x1e7
push esi
push 0x436c7c
call fcn.00410e30
add esp, 8
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push ebx
push 1
push eax
call fcn.00403a60
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
add esp, 8
mov dword [ebp + 8], eax
mov edi, edi
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x411218
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x41121a
xor esi, esi
xor eax, eax
lea esp, [esp]
cmp dword [ebp + eax*4 - 8], esi
je 0x41126d
add eax, 1
cmp eax, 2
jb 0x411220
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.MSVCR80.dll_free]
add esp, 4
cmp dword [ebp + 0x10], 0
pop ebx
je 0x411259
test edi, edi
jne 0x411259
push esi
push 0x436c7c
push 0x436c40
call fcn.00406ce0
add esp, 0xc
push esi
push 0x436c7c
call fcn.00410e30
add esp, 8
pop edi
pop esi
mov esp, ebp
pop ebp
ret
test edi, edi
je 0x41122e
push 0x64
call ebx
sub edi, 1
jmp 0x411200
Function at 0x411280
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 8]
test eax, eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov dword [ebp - 8], 0x20
mov dword [ebp - 4], 5
jne 0x4112b9
mov esi, 0x1e7
push esi
push 0x436c90
call fcn.00410e30
add esp, 8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
push 1
push eax
call fcn.00403a60
push 4
mov edi, eax
push 0x435fd0
push edi
call dword [sym.imp.MSVCR80.dll_wcsncmp]
add esp, 0x14
test eax, eax
je 0x411314
mov eax, edi
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4112e0
sub eax, edx
sar eax, 1
cmp eax, 0x104
jbe 0x411314
call dword [sym.imp.MSVCR80.dll__errno]
push 0xce
mov dword [eax], 0x26
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov esi, 0xce
jmp 0x411365
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x41132b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x41132d
xor esi, esi
xor eax, eax
nop
cmp dword [ebp + eax*4 - 8], esi
je 0x41137a
add eax, 1
cmp eax, 2
jb 0x411330
push edi
call dword [sym.imp.MSVCR80.dll_free]
add esp, 4
cmp dword [ebp + 0xc], 0
je 0x411365
test ebx, ebx
jne 0x411365
push esi
push 0x436c90
push 0x436c40
call fcn.00406ce0
add esp, 0xc
pop edi
push esi
push 0x436c90
call fcn.00410e30
add esp, 8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test ebx, ebx
je 0x41133e
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
sub ebx, 1
jmp 0x411314

Function at 0x411390
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 8]
test eax, eax
push esi
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 8], 0x20
mov dword [ebp - 4], 5
jne 0x4113c9
mov esi, 0x1e7
push esi
push 0x436cac
call fcn.00410e30
add esp, 8
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push ebx
push 1
push eax
call fcn.00403a60
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
add esp, 8
mov dword [ebp + 8], eax
mov edi, edi
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x4113f8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x4113fa
xor esi, esi
xor eax, eax
lea esp, [esp]
cmp dword [ebp + eax*4 - 8], esi
je 0x41144d
add eax, 1
cmp eax, 2
jb 0x411400
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.MSVCR80.dll_free]
add esp, 4
cmp dword [ebp + 0xc], 0
pop ebx
je 0x411439
test edi, edi
jne 0x411439
push esi
push 0x436cac
push 0x436c40
call fcn.00406ce0
add esp, 0xc
push esi
push 0x436cac
call fcn.00410e30
add esp, 8
pop edi
pop esi
mov esp, ebp
pop ebp
ret
test edi, edi
je 0x41140e
push 0x64
call ebx
sub edi, 1
jmp 0x4113e0
Function at 0x4115d0
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0xc]
lea edx, [esi + 2]
mov eax, 0xaaaaaaab
mul edx
shr edx, 1
add edx, edx
add edx, edx
cmp edx, dword [ebp + 0x14]
mov dword [ebp + 0x10], ecx
jb 0x411604
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x4115ff
mov dword [eax], 0
xor al, al
pop esi
pop ebp
ret
cmp esi, 2
push ebx
push edi
jbe 0x41168a
lea edx, [esi - 3]
mov eax, 0xaaaaaaab
mul edx
mov eax, dword [ebp + 8]
mov edi, edx
shr edi, 1
add edi, 1
nop
movzx edx, byte [eax]
shr edx, 2
movzx edx, byte [edx + 0x436cf0]
mov byte [ecx], dl
movzx edx, byte [eax]
movzx ebx, byte [eax + 1]
and edx, 3
shl edx, 4
shr ebx, 4
or edx, ebx
movzx edx, byte [edx + 0x436cf0]
mov byte [ecx + 1], dl
movzx edx, byte [eax + 1]
movzx ebx, byte [eax + 2]
and edx, 0xf
add edx, edx
add edx, edx
shr ebx, 6
or edx, ebx
movzx edx, byte [edx + 0x436cf0]
mov byte [ecx + 2], dl
movzx edx, byte [eax + 2]
and edx, 0x3f
movzx edx, byte [edx + 0x436cf0]
mov byte [ecx + 3], dl
sub esi, 3
add eax, 3
add ecx, 4
sub edi, 1
jne 0x411620
jmp 0x41168d
mov eax, dword [ebp + 8]
mov edx, esi
sub esi, 1
test edx, edx
je 0x4116ec
test esi, esi
je 0x41169f
mov dl, byte [eax + 1]
jmp 0x4116a1
xor dl, dl
movzx edi, byte [eax]
shr edi, 2
mov bl, byte [edi + 0x436cf0]
mov byte [ecx], bl
movzx eax, byte [eax]
movzx edx, dl
and eax, 3
shl eax, 4
mov edi, edx
shr edi, 4
or eax, edi
test esi, esi
movzx eax, byte [eax + 0x436cf0]
mov byte [ecx + 1], al
je 0x4116dd
and edx, 0xf
movsx eax, byte [edx*4 + 0x436cf0]
jmp 0x4116e2
mov eax, 0x3d
mov byte [ecx + 2], al
mov byte [ecx + 3], 0x3d
add ecx, 4
mov eax, dword [ebp + 0x18]
test eax, eax
pop edi
mov byte [ecx], 0
pop ebx
je 0x4116fd
sub ecx, dword [ebp + 0x10]
mov dword [eax], ecx
mov al, 1
pop esi
pop ebp
ret

Function at 0x411a60
Capabilities:
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
cmp byte [0x44b1d0], bl
je 0x411b07
call fcn.00419880
cmp eax, ebx
jne 0x411a95
push 0x436e9c
push 0x436e68
call fcn.00406ce0
add esp, 8
mov dword [0x44c058], ebx
jmp 0x411aca
movzx ecx, byte [eax]
cmp ecx, ebx
push esi
mov esi, eax
mov edx, 0x1505
je 0x411ab9
push edi
mov edi, edx
shl edi, 5
add esi, 1
add edi, ecx
movzx ecx, byte [esi]
add edx, edi
cmp ecx, ebx
jne 0x411aa5
pop edi
push eax
mov dword [0x44c058], edx
call dword [sym.imp.MSVCR80.dll_free]
add esp, 4
pop esi
push 0x44c060
call fcn.00411710
add esp, 4
cmp eax, ebx
je 0x411b01
push eax
call dword [sym.imp.MSVCR80.dll_strerror]
push eax
push 0x436e9c
push 0x436e30
call fcn.00406ce0
add esp, 0x10
mov dword [0x44c060], ebx
mov dword [0x44c064], ebx
mov byte [0x44b1d0], bl
mov eax, dword [ebp + 8]
mov ecx, dword [0x44c058]
mov dword [eax], ecx
mov edx, dword [0x44c060]
mov eax, dword [ebp + 0xc]
mov dword [eax], edx
mov ecx, dword [0x44c064]
mov dword [eax + 4], ecx
pop ebx
pop ebp
ret
Function at 0x411c90
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x44b1d8], 0
je 0x411d0c
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push 0x436f64
push 0x80000002
mov dword [ebp - 0xc], 1
mov dword [ebp - 8], 0x2f
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x411cd5
mov eax, 0x42edd5
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 4]
push esi
lea ecx, [ebp - 8]
push ecx
push 0x44c068
lea edx, [ebp - 0xc]
push edx
push 0
push 0x436f58
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [ebp - 4]
push ecx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
pop esi
jne 0x411ccc
mov byte [0x44b1d8], 0
mov eax, 0x44c068
mov esp, ebp
pop ebp
ret
Function at 0x411e90
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
cmp byte [0x44b1da], 0
push edi
je 0x412083
push 0x43703c
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 0x30
call fcn.00406920
push eax
push 0x434b30
lea eax, [ebp - 0x120]
push 0x100
push eax
call fcn.004055f0
lea ecx, [ebp - 8]
push ecx
push 0x20019
push 0
lea edx, [ebp - 0x120]
push edx
push 0x80000002
call fcn.004071e0
add esp, 0x28
test eax, eax
jne 0x411f42
mov edx, dword [ebp - 8]
lea eax, [ebp - 0xc]
push eax
push 0x44c098
lea ecx, [ebp - 0x10]
push ecx
push 0
push 0x437030
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edi, eax
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
jne 0x411f42
mov ecx, dword [ebp - 0xc]
mov byte [0x44b1da], 0
mov byte [ecx + 0x44c097], 0
mov eax, 0x44c098
pop edi
mov esp, ebp
pop ebp
ret
push ebx
push 0x437014
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
test edi, edi
je 0x411f6e
push 0x436ffc
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x411f6e
mov ebx, eax
call fcn.00411e00
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x411f9b
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
push 0
lea edx, [ebp - 4]
push edx
test eax, eax
push 0
setge bl
call fcn.00419a10
add esp, 0xc
test bl, bl
je 0x411f9b
call dword [sym.imp.ole32.dll_CoUninitialize]
test edi, edi
pop ebx
je 0x411fa7
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 4]
test eax, eax
jne 0x411fc5
push 0x436fd8
call fcn.00406ce0
add esp, 4
call fcn.00411c90
pop edi
mov esp, ebp
pop ebp
ret
push esi
lea edi, [ebp - 0x20]
call fcn.00411b30
test al, al
mov esi, dword [sym.imp.MSVCR80.dll_free]
je 0x411ffe
mov eax, edi
push eax
call fcn.00411bf0
mov edi, eax
add esp, 4
test edi, edi
je 0x411ffe
push 0x30
push edi
push 0x44c098
call fcn.00405650
push edi
call esi
add esp, 0x10
jmp 0x412011
mov ecx, dword [ebp - 4]
push 0x30
push ecx
push 0x44c098
call fcn.00405650
add esp, 0xc
mov edx, dword [ebp - 4]
push edx
call esi
push 0
lea eax, [ebp - 8]
push eax
push 0
push 0x20006
push 1
push 0
push 0
lea ecx, [ebp - 0x120]
push ecx
push 0x80000002
mov byte [0x44b1da], 0
call fcn.00407220
add esp, 0x28
test eax, eax
pop esi
jne 0x412083
mov eax, 0x44c098
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x412052
sub eax, edx
mov edx, dword [ebp - 8]
add eax, 1
push eax
push 0x44c098
push 1
push 0
push 0x437030
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x44c098
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x412680
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
xor esi, esi
sub eax, esi
je 0x4126e9
sub eax, 1
je 0x4126bc
sub eax, 1
je 0x4126b2
push 0x87
push 0x437254
push 0x42f5cc
call fcn.00405580
imul edi, edi, 0xbc8f
mov esi, edi
jmp 0x412701
movzx eax, byte [edi]
mov ebx, dword [sym.imp.MSVCR80.dll_tolower]
push eax
call ebx
add esp, 4
test eax, eax
je 0x412701
nop
xor eax, esi
add edi, 1
rol eax, 5
mov esi, eax
movzx eax, byte [edi]
push eax
call ebx
add esp, 4
test eax, eax
jne 0x4126d0
jmp 0x412701
movzx eax, byte [edi]
test eax, eax
je 0x412701
xor eax, esi
add edi, 1
rol eax, 5
mov esi, eax
movzx eax, byte [edi]
test eax, eax
jne 0x4126f0
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + 4]
mov eax, 1
shl eax, cl
sub eax, 1
cmp esi, eax
jbe 0x412725
mov edx, esi
shr edx, cl
mov edi, eax
and edi, esi
xor edx, edi
mov esi, edx
cmp esi, eax
ja 0x412715
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret

Function at 0x4186d0
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, eax
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x4186f6
pop edi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x1c]
cdq
mov ecx, eax
push ecx
mov dword [edi], eax
mov dword [edi + 4], edx
call fcn.00406dc0
mov edx, dword [ebp + 0x10]
add esp, 4
test eax, eax
mov dword [edx], eax
je 0x4186ee
push esi
mov esi, dword [edi]
push 0x40
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x4187a3
mov esi, dword [esi + 0x3c]
add esi, dword [edi]
push 0xf8
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x4187a3
movzx eax, word [esi + 0x14]
add eax, 0xf8
push eax
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x4187a3
movzx ecx, word [esi + 0x14]
lea eax, [ecx + esi + 0x18]
push 0x28
push eax
mov dword [ebp + 0xc], eax
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x4187a3
sub ebx, dword [edi]
movzx eax, word [esi + 6]
mov ecx, ebx
xor ebx, ebx
test eax, eax
mov dword [ebp - 4], eax
jbe 0x4187a3
mov eax, dword [ebp + 0xc]
add eax, 0x10
mov esi, dword [eax]
mov edi, dword [eax - 8]
cmp esi, edi
mov edx, dword [eax - 4]
ja 0x41878e
mov esi, edi
cmp ecx, edx
jb 0x418798
add esi, edx
cmp ecx, esi
jbe 0x4187ac
add ebx, 1
add eax, 0x28
cmp ebx, dword [ebp - 4]
jb 0x418780
pop esi
pop edi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x14]
add ebx, 1
pop esi
sub ecx, edx
mov edx, dword [ebp + 0x18]
mov dword [eax], ebx
pop edi
mov dword [edx], ecx
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x419c30
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
push 0x6c
mov dword [ebp - 0x64], 0x95f24dab
mov dword [ebp - 0x60], 0xb685215
mov dword [ebp - 0x5c], 0xe76ccae7
mov dword [ebp - 0x58], 0xaf3ec239
mov dword [ebp - 0x54], 0x715fad23
mov dword [ebp - 0x50], 0x24a590ad
mov dword [ebp - 0x4c], 0x69e4b5ef
mov dword [ebp - 0x48], 0xbf456141
mov dword [ebp - 0x44], 0x96bc1b7b
mov dword [ebp - 0x40], 0xa7bdf825
mov dword [ebp - 0x3c], 0xc1de75b7
mov dword [ebp - 0x38], 0x8858a9c9
mov dword [ebp - 0x34], 0x2da87693
mov dword [ebp - 0x30], 0xb657f9dd
mov dword [ebp - 0x2c], 0xffdc8a9f
mov dword [ebp - 0x28], 0x8121da71
mov dword [ebp - 0x24], 0x8b823ecb
mov dword [ebp - 0x20], 0x885d05f5
mov dword [ebp - 0x1c], 0x4e20cd47
mov dword [ebp - 0x18], 0x5a9ad5d9
mov dword [ebp - 0x14], 0x512c0c03
mov dword [ebp - 0x10], 0xea857ccd
mov dword [ebp - 0xc], 0x4cc1d30f
mov dword [ebp - 8], 0x8891a8a1
mov dword [ebp - 4], 0xa6b7aadb
call dword [sym.imp.MSVCR80.dll_malloc]
add esp, 4
test eax, eax
je 0x419d26
push ebx
push esi
lea edx, [ebp - 0x64]
push edi
mov edi, dword [ebp + 8]
mov ecx, eax
sub edx, eax
mov esi, 0x19
mov ebx, dword [edx + ecx]
xor ebx, edi
mov dword [ecx], ebx
add ecx, 4
sub esi, 1
jne 0x419d06
pop edi
pop esi
mov dword [eax + 0x64], 0x18
mov dword [eax + 0x68], 6
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x419db0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 0
push 0
push 0x801a
push 0
call fcn.00406d20
add esp, 0x14
test eax, eax
jge 0x419dd5
xor eax, eax
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
push esi
push edi
push 0
push 0x436d34
push 0x42ed68
push ecx
call fcn.00403f40
mov edx, dword [ebp - 4]
push edx
mov esi, eax
call fcn.00419830
push 1
push esi
call fcn.00403a60
add esp, 0x1c
mov edi, eax
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push edi
call dword [sym.imp.MSVCR80.dll_free]
add esp, 4
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x41a280
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
push 0
push eax
mov eax, dword [ebp + 8]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x41a2b5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x43b080
call fcn.00410e30
add esp, 8
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x41a2c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
push 0
push eax
mov eax, dword [ebp + 8]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x41a2f5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x43b094
call fcn.00410e30
add esp, 8
pop ebp
ret
xor eax, eax
pop ebp
ret