joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403f97
Capabilities:
Get common file path
Get disk information

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x1804
call fcn.0040ec50
push ebx
mov ebx, dword [sym.imp.GDI32.dll_GetCharWidthI]
push esi
push edi
xor esi, esi
xor edi, edi
cmp edi, 0x986
jge 0x403fd8
push esi
call dword [sym.imp.USER32.dll_GetCaretPos]
push esi
call dword [sym.imp.USER32.dll_SetClipboardViewer]
push esi
push esi
push esi
push esi
push esi
call ebx
push esi
call dword [sym.imp.USER32.dll_GetSysColorBrush]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
cmp edi, 0x4f4c8ec
jg 0x403ffa
inc edi
cmp edi, 0x3455969
jl 0x403fb4
cmp dword [0x285682c], 0x400
jne 0x404107
push esi
call dword [sym.imp.USER32.dll_GetDC]
push esi
lea eax, [esp + 0x814]
push eax
push esi
push 0x403950
push esi
call dword [sym.imp.KERNEL32.dll_FoldStringW]
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_EnumResourceNamesW]
push esi
push esi
lea eax, [esp + 0x18]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasW]
push esi
lea eax, [esp + 0x1014]
push eax
push 0x403964
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_EnumTimeFormatsW]
push 0x40399c
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push esi
call fcn.0040481a
pop ecx
push esi
call fcn.004046a4
pop ecx
push esi
push esi
call fcn.004047da
push esi
push esi
call fcn.00404ad6
push esi
call fcn.00404f09
add esp, 0x14
push esi
call fcn.0040512a
fldz
sub esp, 0xc
fst qword [esp + 8]
fstp qword [esp]
call fcn.00404180
add esp, 8
fstp st(0)
mov eax, esp
mov dword [eax], esi
mov dword [eax + 4], esi
call fcn.00404260
fstp st(0)
mov eax, esp
mov dword [eax], esi
mov dword [eax + 4], esi
call fcn.004049b0
fstp st(0)
mov eax, esp
mov dword [eax], esi
mov dword [eax + 4], esi
call fcn.00404390
fstp st(0)
mov eax, esp
mov dword [eax], esi
mov dword [eax + 4], esi
call fcn.00404c00
fstp st(0)
push esi
push esi
call fcn.00404d54
push esi
call fcn.0040519e
add esp, 0x14
push esi
push esi
call fcn.004046de
push esi
push esi
call fcn.00404634
push esi
call fcn.00404f6e
add esp, 0x14
xor edi, edi
cmp edi, 0x16d2a
jge 0x404118
push esi
push esi
push esi
push esi
push esi
call ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp edi, 0x12e82fe
jg 0x404136
inc edi
cmp edi, 0x3011b
jl 0x404109
mov eax, dword [0x45ec84]
mov dword [0x285682c], eax
call fcn.00403cde
mov edi, 0x2ec37
cmp dword [0x285682c], 0x51f
jne 0x404165
push esi
lea eax, [esp + 0x814]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
dec edi
jne 0x40414a
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x4075c8
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x45b1f8]
jne 0x4075d2
repz ret
jmp fcn.0040c8a0
Function at 0x40cede
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x45b1f8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00409743
and dword [ebp - 0x14], 0
cmp dword [0x47380c], 0
mov dword [ebp - 0x18], eax
jne 0x40cf91
push 0x402e34
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x40d039
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x402e28
push ebx
call edi
test eax, eax
je 0x40d039
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x402e18
push ebx
mov dword [0x47380c], eax
call edi
push eax
call esi
push 0x402e04
push ebx
mov dword [0x473810], eax
call edi
push eax
call esi
push 0x402de8
push ebx
mov dword [0x473814], eax
call edi
push eax
call esi
mov dword [0x47381c], eax
test eax, eax
je 0x40cf91
push 0x402dd0
push ebx
call edi
push eax
call esi
mov dword [0x473818], eax
mov eax, dword [0x473818]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x40cfea
cmp dword [0x47381c], ecx
je 0x40cfea
push eax
call esi
push dword [0x47381c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x40cfea
test ebx, ebx
je 0x40cfea
call edi
test eax, eax
je 0x40cfe1
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40cfe1
test byte [ebp - 8], 1
jne 0x40cfea
or dword [ebp + 0x10], 0x200000
jmp 0x40d01d
mov eax, dword [0x473810]
cmp eax, dword [ebp - 0x18]
je 0x40d01d
push eax
call esi
test eax, eax
je 0x40d01d
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40d01d
mov eax, dword [0x473814]
cmp eax, dword [ebp - 0x18]
je 0x40d01d
push eax
call esi
test eax, eax
je 0x40d01d
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x47380c]
call esi
test eax, eax
je 0x40d039
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x40d03b
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004075c8
leave
ret
Function at 0x433004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
call 0x43300c
nop
pop eax
nop
nop
nop
nop
nop
add eax, 0x40a063
sub eax, 0x40a009
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x433030
nop
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43301e
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x14f81270
Capabilities:
Accept command line arguments

Disassembly:
mov eax, dword [esp + 8]
cmp eax, 1
jne 0x14f81334
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov dword [0x14fa126c], eax
call fcn.14f82440
test eax, eax
jne 0x14f81294
ret 0xc
mov ecx, dword [0x14fa126c]
xor edx, edx
mov eax, ecx
mov dl, ch
and eax, 0xff
mov dword [0x14fa1278], edx
mov dword [0x14fa1274], eax
shl eax, 8
add eax, edx
shr ecx, 0x10
mov dword [0x14fa1270], eax
mov dword [0x14fa126c], ecx
call fcn.14f815e0
test eax, eax
jne 0x14f812d6
call fcn.14f82480
xor eax, eax
ret 0xc
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x14ff8950], eax
call fcn.14f822e0
mov ecx, dword [0x14ff8950]
mov dword [0x14fa1258], eax
test ecx, ecx
je 0x14f81325
test eax, eax
je 0x14f81325
call 0x15000e0f
call fcn.14f822d0
call 0x15000e0f
call fcn.14f81a30
call fcn.14f81480
mov eax, dword [0x14fa1254]
inc eax
mov dword [0x14fa1254], eax
mov eax, 1
ret 0xc
call fcn.14f81640
call fcn.14f82480
xor eax, eax
ret 0xc
test eax, eax
jne 0x14f81374
mov eax, dword [0x14fa1254]
test eax, eax
jle 0x14f8136f
mov ecx, eax
mov eax, dword [0x14fa12a4]
dec ecx
test eax, eax
mov dword [0x14fa1254], ecx
jne 0x14f81358
call fcn.14f814d0
call fcn.14f819d0
call fcn.14f81640
call fcn.14f82480
mov eax, 1
ret 0xc
xor eax, eax
ret 0xc
cmp eax, 3
jne 0x14f81383
push 0
call fcn.14f81710
add esp, 4
mov eax, 1
ret 0xc

Function at 0x14f814e0
Capabilities:
Terminate process

Disassembly:
push ebx
push ebp
push esi
call fcn.14f815a0
mov eax, dword [0x14fa12a8]
mov ebp, dword [esp + 0x10]
cmp eax, 1
jne 0x14f81504
push ebp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
test eax, eax
mov dword [0x14fa12a4], 1
mov byte [0x14fa12a0], bl
jne 0x14f8155e
mov ecx, dword [0x14ff8948]
test ecx, ecx
je 0x14f8154c
mov esi, dword [0x14ff8944]
sub esi, 4
cmp esi, ecx
jb 0x14f8154c
mov eax, dword [esi]
test eax, eax
je 0x14f81545
call eax
mov ecx, dword [0x14ff8948]
sub esi, 4
cmp esi, ecx
jae 0x14f81537
push 0x14f8901c
push 0x14f89014
call fcn.14f815c0
add esp, 8
push 0x14f89024
push 0x14f89020
call fcn.14f815c0
add esp, 8
test ebx, ebx
je 0x14f8157d
call fcn.14f815b0
pop esi
pop ebp
pop ebx
ret
push ebp
mov dword [0x14fa12a8], 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x14f815e0
Capabilities:
Allocate thread local storage
Set thread local storage value

Disassembly:
push esi
call fcn.14f826e0
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [0x14f8a884], eax
je 0x14f81638
push 0x74
push 1
call fcn.14f82910
mov esi, eax
add esp, 8
test esi, esi
je 0x14f81638
mov eax, dword [0x14f8a884]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x14f81638
push esi
call fcn.14f81670
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esi], eax
mov dword [esi + 4], 0xffffffff
mov eax, 1
pop esi
ret
xor eax, eax
pop esi
ret
Function at 0x403d90
Capabilities:
Get common file path

Disassembly:
sub esp, 0x104
lea eax, [esp]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea ecx, [esp]
push str.Program_FilesInternet_Exploreriexplore.exe
push ecx
mov byte [esp + 0xa], 0
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov eax, dword [esp + 0x108]
lea edx, [esp]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, 1
add esp, 0x104
ret

Function at 0x412962
Capabilities:
Encode data using xor

Disassembly:
push 0x90969f4a
call fcn.00412b90
mov dword [ebp - 0x201], esi
push 0xd1eb08e
call fcn.00412b90
lea eax, [esp + 0x28]
mov dword [esp + 0x4c], esi
xor dh, cl
mov ecx, ecx
xchg esi, eax
push 0x20
and eax, 0x2773ba15
mov edi, dword [esp + 0x4c]
push 8
adc dh, 0x89
push esp
stc
not eax
call edi
call dword [esp + 0x50]
xor cl, 0xce
dec byte [esp]
xchg dl, ah
jne 0x412994
or ecx, esp
dec edx
dec edx
pop eax
xor dl, dh
push 1
call fcn.0041294e
mov ecx, edi
pop dword [esi + 0x1c]
mov dword [esi + 0x14], 0xc
dec edx
lea eax, [ebp - 0x3c]
not edi
push eax
mov dword [esi + 0x18], esi
sub byte [esi + 2], 0xfc
jmp 0x412a42
push 4
push 3
lea esi, [esi + 0x14]
push esi
add dword [ebp - 0x89], ebp
add ecx, 0x882ba732
call dword [0xfffffdff]
sub edx, 0xd5bd358
dec edi
sub dword [ebp - 0x89], ebp
add cl, 8
ret
Function at 0x406c70
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41ec70
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push esi
push edi
mov eax, dword [0x42f034]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
mov dword [ebp - 0x28], ecx
lea ecx, [ebp + 8]
mov dword [ebp - 4], 0
call fcn.00404600
push 2
xor eax, eax
mov dword [ebp - 0x2c], 7
push 0x428834
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
call fcn.004019d0
mov byte [ebp - 4], 1
lea edx, [ebp + 8]
cmp dword [ebp + 0x1c], 8
mov dword [ebp - 0x10], 7
cmovae edx, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0x14], 0
mov word [ebp - 0x24], ax
cmp word [edx], ax
jne 0x406cfb
xor ecx, ecx
jmp 0x406d0f
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x406d00
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x24]
call fcn.004019d0
cmp dword [ebp - 0x2c], 8
lea ecx, [ebp - 0x40]
lea eax, [ebp - 0x24]
cmovae ecx, dword [ebp - 0x40]
cmp dword [ebp - 0x10], 8
push ecx
cmovae eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.MSVCR120.dll__wfopen]
mov esi, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 8
cmp dword [ebp - 0x10], 8
mov edi, eax
jb 0x406d50
push dword [ebp - 0x24]
call esi
add esp, 4
xor eax, eax
mov dword [ebp - 0x10], 7
cmp dword [ebp - 0x2c], 8
mov dword [ebp - 0x14], 0
mov word [ebp - 0x24], ax
jb 0x406d72
push dword [ebp - 0x40]
call esi
add esp, 4
xor eax, eax
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
test edi, edi
je 0x406da5
push edi
push 1
push ebx
push dword [ebp - 0x28]
call dword [sym.imp.MSVCR120.dll_fwrite]
push edi
call dword [sym.imp.MSVCR120.dll_fclose]
add esp, 0x14
mov bl, 1
jmp 0x406da7
xor bl, bl
cmp dword [ebp + 0x1c], 8
jb 0x406db5
push dword [ebp + 8]
call esi
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x406dd0
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1024
call fcn.0041e470
mov eax, dword [0x42f034]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor eax, eax
mov esi, edx
push 0x7fe
push eax
mov word [ebp - 0x804], ax
xor bl, bl
lea eax, [ebp - 0x802]
push eax
call sub.MSVCR120.dll_memset
xor eax, eax
push 0x7fe
push eax
mov word [ebp - 0x1004], ax
lea eax, [ebp - 0x1002]
push eax
call sub.MSVCR120.dll_memset
lea ecx, [ebp - 0x804]
add esp, 0x18
sub ecx, esi
mov edi, edi
movzx eax, word [esi]
lea esi, [esi + 2]
mov word [ecx + esi - 2], ax
test ax, ax
jne 0x406e30
xor eax, eax
movzx ecx, word [eax + 0x42883c]
lea eax, [eax + 2]
mov word [ebp + eax - 0x1006], cx
test cx, cx
jne 0x406e42
xorps xmm0, xmm0
mov dword [ebp - 0x1024], 0
movdqu xmmword [ebp - 0x1020], xmm0
mov eax, 0x14
mov word [ebp - 0x1008], cx
movq qword [ebp - 0x1010], xmm0
mov word [ebp - 0x1014], ax
lea eax, [ebp - 0x804]
mov dword [ebp - 0x101c], eax
lea eax, [ebp - 0x1004]
mov dword [ebp - 0x1018], eax
lea eax, [ebp - 0x1024]
push eax
mov dword [ebp - 0x1020], 3
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
test eax, eax
movzx ecx, bl
mov edx, 1
cmove ecx, edx
mov al, cl
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0041d982
mov esp, ebp
pop ebp
ret
Function at 0x41b310
Capabilities:
Get number of processors
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41fe69
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x42f034]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
push 0xffffffffffffffff
push 0
push dword [ebp + 8]
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
mov byte [esi], 0
call fcn.00402d40
push 0xffffffffffffffff
lea ecx, [esi + 0x18]
mov dword [ebp - 4], 0
mov dword [ecx + 0x14], 0xf
push 0
push dword [ebp + 0xc]
mov dword [ecx + 0x10], 0
mov byte [ecx], 0
call fcn.00402d40
push 0xffffffffffffffff
lea ecx, [esi + 0x30]
mov byte [ebp - 4], 1
mov dword [ecx + 0x14], 0xf
push 0
push dword [ebp + 0x10]
mov dword [ecx + 0x10], 0
mov byte [ecx], 0
call fcn.00402d40
mov eax, dword [ebp + 0x14]
mov dword [esi + 0x48], eax
lea eax, [esi + 0x4c]
push eax
mov byte [ebp - 4], 2
call fcn.0041d830
add esp, 4
lea ecx, [esi + 0x64]
mov byte [ebp - 4], 3
call fcn.0041d5a0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 0x10

Function at 0x41d080
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push dword [0x42fa14]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
jne 0x41d0d4
push esi
push 0x10
call sub.MSVCR120.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
test eax, eax
je 0x41d0aa
mov ecx, eax
call fcn.0041c840
mov esi, eax
jmp 0x41d0ac
xor esi, esi
push dword [0x42fa14]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x41d0c4
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
push esi
push dword [0x42fa14]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, esi
pop esi
ret
Function at 0x407820
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46826a
mov eax, dword fs:[0]
push eax
sub esp, 0xdc
mov eax, dword [0x48a140]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xe0], ecx
mov dword [ebp - 0xe4], 0
mov esi, dword [0x48fbd4]
push 0
call fcn.0044da0a
add esp, 4
mov edi, eax
lea eax, [ebp - 0xd8]
mov ebx, edx
push 0xb0
push 0
push eax
call fcn.0043fe00
add esp, 0xc
mov dword [ebp - 0xd8], 0x47e500
lea ecx, [ebp - 0x70]
mov dword [ebp - 0xc8], 0x47e52c
call fcn.004119d0
push ecx
lea eax, [ebp - 0xc0]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0xd8]
mov dword [ebp - 0xe4], 1
call fcn.00411880
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0xd8]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xd8], vtable.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov eax, dword [ebp - 0xd8]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0xdc], eax
lea ecx, [ebp - 0xc0]
call fcn.004126a0
mov dword [ebp - 0xc0], vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov dword [ebp - 0x88], 0
mov dword [ebp - 0x84], 0
lea eax, [ebp - 0xc8]
mov dword [ebp - 4], 2
push str.Password_
push eax
call fcn.00413960
mov ecx, eax
add esp, 8
mov eax, esi
cdq
add eax, edi
adc edx, ebx
push edx
push eax
call fcn.0040dea0
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0xc0]
call fcn.00411720
push 0
lea eax, [ebp - 0xdc]
push eax
push 0
push 0x20006
push 0
push 0
push 0
push str.SOFTWAREMyApp
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x4079bf
mov ecx, dword [ebp - 0xe0]
mov edx, dword [ecx + 0x10]
inc edx
cmp dword [ecx + 0x14], 0xf
jbe 0x407995
mov ecx, dword [ecx]
cmp dword [ebp - 0x14], 0xf
lea eax, [ebp - 0x28]
push edx
cmova eax, dword [ebp - 0x28]
push ecx
push 1
push 0
push eax
push dword [ebp - 0xdc]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 0xdc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x14]
cmp ecx, 0xf
jbe 0x4079ef
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4079e5
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407a28
push ecx
push edx
call fcn.0043e202
add esp, 8
lea ecx, [ebp - 0xd8]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
call fcn.00407a30
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0043de82
mov esp, ebp
pop ebp
ret
call fcn.0044d090
int3
Function at 0x40c750
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [esp + 0xc], edi
test eax, eax
jg 0x40c782
jl 0x40c775
test ecx, ecx
jne 0x40c782
xor eax, eax
xor edx, edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x40c842
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], eax
mov ecx, ebx
call fcn.00411820
mov esi, eax
mov eax, edx
mov dword [esp + 0x14], eax
test eax, eax
jl 0x40c7ee
jg 0x40c7ad
test esi, esi
je 0x40c7ee
mov ecx, dword [esp + 0xc]
cmp ecx, eax
jg 0x40c7c5
mov eax, dword [esp + 0x10]
jl 0x40c7bf
cmp eax, esi
jae 0x40c7c5
mov esi, eax
mov dword [esp + 0x14], ecx
mov eax, dword [ebx + 0x1c]
push esi
push dword [eax]
push edi
call fcn.0043f880
mov eax, dword [ebx + 0x2c]
add esp, 0xc
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
sub ecx, esi
sbb edx, dword [esp + 0x14]
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
jmp 0x40c80f
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x1c]
mov edx, dword [esp + 0xc]
cmp eax, 0xffffffff
je 0x40c82b
mov ecx, dword [esp + 0x10]
mov esi, 1
add ecx, 0xffffffff
mov byte [edi], al
adc edx, 0xffffffff
add edi, esi
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], ecx
test edx, edx
jg 0x40c794
jl 0x40c82b
test ecx, ecx
jne 0x40c794
mov eax, dword [ebp + 0xc]
sub eax, dword [esp + 0x10]
mov ecx, dword [ebp + 0x10]
sbb ecx, edx
mov edx, ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x1c]
lea esi, [ebx + 0x2c]
mov edi, ecx
mov edx, dword [eax]
test edx, edx
je 0x40c886
mov eax, dword [esi]
mov eax, dword [eax]
test eax, eax
je 0x40c886
mov edi, dword [esp + 0xc]
cmp eax, ecx
mov esi, ecx
cmovb esi, eax
push esi
push edx
push edi
call fcn.0043f880
mov eax, dword [ebx + 0x2c]
add edi, esi
mov dword [esp + 0x18], edi
add esp, 0xc
mov edi, dword [ebp + 0xc]
sub edi, esi
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
lea esi, [ebx + 0x2c]
cmp dword [ebx + 0x4c], 0
je 0x40c8f7
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x40c8ac
mov eax, dword [ebx + 0xc]
mov edx, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x50]
sub edx, ecx
mov dword [eax], ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi]
mov dword [eax], edx
mov esi, dword [esp + 0xc]
cmp edi, 0xfff
jbe 0x40c8e2
nop dword [eax + eax]
push dword [ebx + 0x4c]
push 0xfff
push 1
push esi
call fcn.0044e150
add esp, 0x10
add esi, eax
sub edi, eax
cmp eax, 0xfff
jne 0x40c8f7
cmp edi, eax
ja 0x40c8c0
test edi, edi
je 0x40c8f7
push dword [ebx + 0x4c]
push edi
push 1
push esi
call fcn.0044e150
add esp, 0x10
sub edi, eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
sub eax, edi
pop edi
pop esi
sbb edx, 0
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4126a0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x468e20
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x48a140]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 8
mov dword [edi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
call fcn.0043df81
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.0043cf6f
add esp, 8
mov dword [esi + 4], eax
mov ecx, edi
mov dword [edi + 0x34], esi
call fcn.00412640
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4171a0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
push edi
mov dword [ebp - 4], esi
mov eax, dword [esi]
cmp eax, 0x270
jne 0x4171fd
lea edx, [esi + 8]
mov edi, eax
nop dword [eax]
mov ecx, dword [edx]
lea edx, [edx + 4]
xor ecx, dword [edx - 8]
and ecx, 0x7fffffff
xor ecx, dword [edx - 8]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edx + 0x62c]
xor eax, ecx
mov dword [edx + 0x9b8], eax
sub edi, 1
jne 0x4171c0
mov eax, dword [esi]
jmp 0x4172db
cmp eax, 0x4e0
jb 0x4172db
lea edi, [esi + 0x9c4]
mov esi, 0xe3
push ebx
mov ebx, dword [edi]
lea edx, [edi]
mov eax, ebx
mov ebx, dword [edx + 4]
lea edi, [edx + 4]
mov ecx, ebx
xor ecx, eax
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edx + 0x634]
xor eax, ecx
mov dword [edx - 0x9c0], eax
sub esi, 1
jne 0x417216
mov edi, dword [ebp - 4]
mov esi, 0x18c
add edi, 0xd50
mov ebx, dword [edi]
mov eax, ebx
lea edx, [edi]
mov ebx, dword [edx + 4]
lea edi, [edx + 4]
mov ecx, eax
xor ecx, ebx
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edx - 0xd4c]
xor eax, ecx
mov dword [edx - 0x9c0], eax
sub esi, 1
jne 0x417261
mov esi, dword [ebp - 4]
pop ebx
mov eax, dword [esi + 0x1380]
mov ecx, dword [esi + 4]
xor ecx, eax
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [esi + 0x634]
xor eax, ecx
mov dword [esi + 0x9c0], eax
xor eax, eax
mov dword [esi], 0
mov edx, dword [esi + eax*4 + 4]
inc eax
mov dword [esi], eax
mov ecx, edx
mov eax, dword [esi + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
pop edi
xor eax, edx
pop esi
mov esp, ebp
pop ebp
ret