joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44a8a0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x44aa23
sub esp, 0x10
mov ecx, dword [esp + 0x18]
test ecx, ecx
jbe 0x44aa1b
mov edx, dword [esp + 0x14]
movzx ebx, byte [edx]
test ebx, ebx
jne 0x44a8fc
movzx ebp, byte [esp + 0x28]
xchg ebp, eax
test al, al
xchg ebp, eax
jne 0x44a8fc
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
mov byte [esp + 0x38], 0
add esp, 0x10
ret
test ebx, 0x80
je 0x44a90f
xor eax, eax
xor ebx, ebx
xor ebp, ebp
jmp 0x44a9f0
mov eax, 1
mov ebp, ebx
and ebx, 1
neg ebx
shr ebp, 1
xor ebx, ebp
mov ebp, dword [esp + 0x24]
add dword [ebp], ebx
cmp ecx, eax
jb 0x44a9e2
sub ecx, eax
mov ebx, dword [esp + 0x1c]
sub ebx, eax
mov ebp, ebx
neg ebx
sar ebx, 0x1f
and eax, ebx
lea ebx, [edx + eax]
test ecx, ecx
jbe 0x44a9db
movzx edx, byte [edx + eax]
test edx, 0x80
je 0x44a966
mov dword [esp + 8], ecx
mov dword [esp + 0xc], ebp
xor eax, eax
xor edx, edx
xor esi, esi
jmp 0x44a9af
mov eax, 1
cmp eax, ecx
ja 0x44a99d
mov esi, dword [esp + 0x20]
add dword [esi], edx
sub ebp, eax
mov edx, ebp
xchg ebp, ebx
neg ebx
xchg ebp, ebx
sar ebp, 0x1f
and ebp, eax
add ebx, ebp
mov dword [esp + 0x2c], ebx
sub ecx, eax
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], edx
mov byte [esp + 0x38], 1
add esp, 0x10
ret
call fcn.004592c0
lea esi, [ecx + 7]
mov ecx, dword [esp + 8]
mov eax, ebp
mov ebp, dword [esp + 0xc]
cmp eax, ecx
jae 0x44a9d6
movzx edi, byte [eax + ebx]
lea ebp, [eax + 1]
mov eax, edi
and edi, 0x7f
mov ecx, esi
shl edi, cl
or edx, edi
test al, 0x80
jne 0x44a9a2
mov ecx, dword [esp + 8]
mov eax, ebp
mov ebp, dword [esp + 0xc]
jmp 0x44a96b
call fcn.00459260
xor eax, eax
call fcn.00459250
call fcn.004592c0
lea ebp, [ecx + 7]
mov ecx, dword [esp + 0x18]
mov eax, edi
cmp ecx, eax
jbe 0x44aa16
movzx esi, byte [eax + edx]
lea edi, [eax + 1]
mov eax, esi
and esi, 0x7f
mov ecx, ebp
shl esi, cl
or ebx, esi
test al, 0x80
jne 0x44a9e7
mov ecx, dword [esp + 0x18]
mov eax, edi
jmp 0x44a914
call fcn.00459260
xor eax, eax
call fcn.00459250
nop
call fcn.00457dc0
jmp fcn.0044a8a0
Function at 0x451ce0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x451d7f
sub esp, 0x30
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
mov dword [esp + 8], ecx
mov dword [esp + 4], 0
lea edi, [esp + 0xc]
xor eax, eax
call fcn.00459397
lea ecx, [0x451d90]
mov dword [esp + 0xc], ecx
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x10], ecx
lea ecx, [esp + 0x34]
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 8]
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x28], ecx
lea ecx, [esp + 4]
mov dword [esp + 0x2c], ecx
lea ecx, [esp + 0xc]
mov dword [esp], ecx
call fcn.00457cb0
mov ecx, dword [esp + 4]
mov dword [esp + 0x44], ecx
add esp, 0x30
ret
call fcn.00457dc0
jmp fcn.00451ce0
Function at 0x459080
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
movd xmm0, dword [esp + 8]
pinsrw xmm0, ebx, 4
pshufhw xmm0, xmm0, 0
movdqa xmm1, xmm0
pxor xmm0, xmmword [0x5a4380]
aesenc xmm0, xmm0
cmp ebx, 0x10
jb 0x45784b
je 0x45789e
cmp ebx, 0x20
jbe 0x4578a4
cmp ebx, 0x40
jbe 0x4578ea
jmp 0x45798b
test ebx, ebx
je 0x457894
add eax, 0x10
test ax, 0xff0
je 0x457880
movdqu xmm1, xmmword [eax - 0x10]
add ebx, ebx
pand xmm1, xmmword [ebx*8 + 0x50eb60]
pxor xmm1, xmm0
aesenc xmm1, xmm1
aesenc xmm1, xmm1
aesenc xmm1, xmm1
movd dword [edx], xmm1
ret
movdqu xmm1, xmmword [eax + ebx - 0x20]
add ebx, ebx
pshufb xmm1, xmmword [ebx*8 + 0x50ec60]
jmp 0x457868
aesenc xmm0, xmm0
movd dword [edx], xmm0
ret
movdqu xmm1, xmmword [eax]
jmp 0x457868
pxor xmm1, xmmword [0x5a4390]
aesenc xmm1, xmm1
movdqu xmm2, xmmword [eax]
movdqu xmm3, xmmword [eax + ebx - 0x10]
pxor xmm2, xmm0
pxor xmm3, xmm1
aesenc xmm2, xmm2
aesenc xmm3, xmm3
aesenc xmm2, xmm2
aesenc xmm3, xmm3
aesenc xmm2, xmm2
aesenc xmm3, xmm3
pxor xmm2, xmm3
movd dword [edx], xmm2
ret
movdqa xmm2, xmm1
movdqa xmm3, xmm1
pxor xmm1, xmmword [0x5a4390]
pxor xmm2, xmmword [0x5a43a0]
pxor xmm3, xmmword [0x5a43b0]
aesenc xmm1, xmm1
aesenc xmm2, xmm2
aesenc xmm3, xmm3
movdqu xmm4, xmmword [eax]
movdqu xmm5, xmmword [eax + 0x10]
movdqu xmm6, xmmword [eax + ebx - 0x20]
movdqu xmm7, xmmword [eax + ebx - 0x10]
pxor xmm4, xmm0
pxor xmm5, xmm1
pxor xmm6, xmm2
pxor xmm7, xmm3
aesenc xmm4, xmm4
aesenc xmm5, xmm5
aesenc xmm6, xmm6
aesenc xmm7, xmm7
aesenc xmm4, xmm4
aesenc xmm5, xmm5
aesenc xmm6, xmm6
aesenc xmm7, xmm7
aesenc xmm4, xmm4
aesenc xmm5, xmm5
aesenc xmm6, xmm6
aesenc xmm7, xmm7
pxor xmm4, xmm6
pxor xmm5, xmm7
pxor xmm4, xmm5
movd dword [edx], xmm4
ret
movdqa xmm2, xmm1
movdqa xmm3, xmm1
pxor xmm1, xmmword [0x5a4390]
pxor xmm2, xmmword [0x5a43a0]
pxor xmm3, xmmword [0x5a43b0]
aesenc xmm1, xmm1
aesenc xmm2, xmm2
aesenc xmm3, xmm3
movdqu xmm4, xmmword [eax + ebx - 0x40]
movdqu xmm5, xmmword [eax + ebx - 0x30]
movdqu xmm6, xmmword [eax + ebx - 0x20]
movdqu xmm7, xmmword [eax + ebx - 0x10]
aesenc xmm4, xmm0
aesenc xmm5, xmm1
aesenc xmm6, xmm2
aesenc xmm7, xmm3
dec ebx
shr ebx, 6
movdqu xmm0, xmmword [eax]
movdqu xmm1, xmmword [eax + 0x10]
movdqu xmm2, xmmword [eax + 0x20]
movdqu xmm3, xmmword [eax + 0x30]
aesenc xmm4, xmm0
aesenc xmm5, xmm1
aesenc xmm6, xmm2
aesenc xmm7, xmm3
aesenc xmm4, xmm4
aesenc xmm5, xmm5
aesenc xmm6, xmm6
aesenc xmm7, xmm7
add eax, 0x40
dec ebx
jne 0x4579ea
aesenc xmm4, xmm4
aesenc xmm5, xmm5
aesenc xmm6, xmm6
aesenc xmm7, xmm7
aesenc xmm4, xmm4
aesenc xmm5, xmm5
aesenc xmm6, xmm6
aesenc xmm7, xmm7
aesenc xmm4, xmm4
aesenc xmm5, xmm5
aesenc xmm6, xmm6
aesenc xmm7, xmm7
pxor xmm4, xmm6
pxor xmm5, xmm7
pxor xmm4, xmm5
movd dword [edx], xmm4
ret
cmp byte [0x5a40ce], 0
je 0x45909a
mov eax, dword [esp + 4]
mov ebx, dword [esp + 0xc]
lea edx, [esp + 0x10]
jmp 0x457810
jmp fcn.00407960
Function at 0x4590a0
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x4023fe
sub esp, 0x10
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp], ecx
mov ecx, dword [esp + 0x18]
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
call fcn.00407960
mov eax, dword [esp + 0xc]
mov dword [esp + 0x1c], eax
add esp, 0x10
ret
call fcn.00457dc0
jmp 0x4023c0
cmp byte [0x5a40ce], 0
je 0x4590bb
mov eax, dword [esp + 4]
mov ebx, dword [eax + 4]
mov eax, dword [eax]
lea edx, [esp + 0xc]
jmp 0x457810
jmp 0x4023c0
Function at 0x431005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
mov eax, section..text
nop
nop
nop
push 4
nop
nop
pop edi
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
je 0x431072
nop
nop
nop
mov ebx, 0x40915c
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x1a3f2d88
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x431060
nop
nop
nop
mov eax, section..data
nop
cmp eax, 0
nop
nop
nop
je 0x4310d2
nop
nop
nop
nop
mov ebx, 0x42f3f8
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x699a12f9
nop
nop
nop
nop
xor dword [eax], esi
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x4310c0
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219

Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
nop
nop
nop
pop eax
nop
nop
nop
add eax, 0x403ac5
sub eax, 0x403a6b
nop
nop
nop
nop
mov ebx, dword [eax]
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x42e030
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
jne 0x42e01e
nop
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp loc.00401219
Function at 0x1002a8d
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0x10]
lea eax, [ebp + 0x14]
push eax
push edi
lea eax, [ebp + 0x10]
push eax
push 0
push dword [ebp + 0xc]
mov dword [ebp + 0x14], esi
push dword [ebp + 8]
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x1002ae8
mov eax, dword [ebp + 0x14]
cmp eax, 2
jb 0x1002ae3
shr eax, 1
xor ecx, ecx
cmp cx, word [edi + eax*2 - 2]
jne 0x1002ae3
mov eax, dword [ebp + 0x10]
dec eax
je 0x1002adf
dec eax
jne 0x1002ae3
push esi
push edi
call fcn.01002996
test eax, eax
jne 0x1002ae8
xor eax, eax
jmp 0x1002ae8
mov eax, 0x3f7
pop edi
pop esi
pop ebp
ret 0x10

Function at 0x1002d87
Capabilities:
Terminate process

Disassembly:
push 0x10
push 0x1003220
call fcn.01002f44
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x1c], ebx
mov edi, 0x10043c8
push ebx
push esi
push edi
call dword [sym.imp.API_MS_Win_Core_Interlocked_L1_1_0.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x1002b9c
cmp eax, esi
jne 0x1002b8f
xor esi, esi
inc esi
mov dword [ebp - 0x1c], esi
jmp 0x1002b9f
push 0x3e8
call dword [sym.imp.API_MS_Win_Core_Misc_L1_1_0.dll_Sleep]
jmp 0x1002b76
xor esi, esi
inc esi
mov eax, dword [0x10043c4]
cmp eax, esi
jne 0x1002bb2
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x1002bed
mov eax, dword [0x10043c4]
test eax, eax
jne 0x1002be7
mov dword [0x10043c4], esi
push 0x1001188
push 0x100117c
call fcn.01145000
pop ecx
pop ecx
test eax, eax
je 0x1002bed
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x1002cb7
mov dword [0x1004078], esi
mov eax, dword [0x10043c4]
cmp eax, esi
jne 0x1002c11
push 0x1001178
push 0x1001170
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x10043c4], 2
cmp dword [ebp - 0x1c], ebx
jne 0x1002c1e
push ebx
push edi
call dword [sym.imp.API_MS_Win_Core_Interlocked_L1_1_0.dll_InterlockedExchange]
cmp dword [0x10043cc], ebx
je 0x1002c3f
push 0x10043cc
call fcn.01002eb9
pop ecx
test eax, eax
je 0x1002c3f
push ebx
push 2
push ebx
call dword [0x10043cc]
push dword [0x1004060]
push dword [0x1004064]
push dword [0x100405c]
call fcn.010018dc
add esp, 0xc
mov dword [0x1004074], eax
cmp dword [0x1004068], ebx
jne 0x1002c9d
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 - 0x20], ecx
push eax
push ecx
call sub.msvcrt.dll__XcptFilter
pop ecx
pop ecx
ret
cmp dword [0x1004078], ebx
jne 0x1002cab
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x1004074]
call fcn.01002f89
ret
call fcn.01003091
jmp 0x1002b54
Function at 0x404b14
Capabilities:
Packed with generic packer

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x134
and dword [esp + 4], 0
push ebx
push esi
push edi
pushal
xor eax, eax
dec eax
xor ebx, eax
mov dword [esp + 0x30], ebx
popal
push str.V3.5_n
call dword [sym.imp.MSVCR90.dll_printf]
cmp dword [0x4093a8], 0
pop ecx
jne 0x404b4d
call fcn.0040435c
cmp dword [0x4093a4], 0
jne 0x404b5b
call fcn.0040429c
call fcn.0040459d
mov esi, dword [ebp + 0xc]
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x10]
push eax
push dword [esi]
call fcn.00404144
lea eax, [esp + 0x14]
push eax
call fcn.00403faf
mov dword [0x4093ac], eax
lea eax, [esp + 0x38]
push eax
call fcn.00403f65
push dword [esp + 0xc]
push dword [esi]
call fcn.00404033
push eax
mov dword [0x4093b0], eax
call dword [sym.imp.MSVCR90.dll__msize]
pop ecx
mov esi, eax
push esi
call fcn.00403fe4
mov eax, esi
imul eax, eax, 3
push eax
mov dword [esp + 0x10], eax
call dword [sym.imp.MSVCR90.dll_malloc]
pop ecx
mov edi, eax
push esi
lea eax, [esp + 0x10]
push eax
push edi
call fcn.0040327f
test edi, edi
je 0x404bf3
lea eax, [esp + 0x38]
push eax
push dword [esp + 0x10]
push edi
call fcn.004043b2
lea eax, [esp + 0x38]
push eax
call dword [0x409398]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.00404267
int3

Function at 0x4012b6
Capabilities:
Hide graphical window

Disassembly:
push ebp
push 0x10000
push 0x1000
push 1
call dword [sym.imp.KERNEL32.dll_HeapCreate]
mov dword [0x403eb4], eax
push 0x64
push 8
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, 0x30
push eax
mov dword [eax], ecx
add eax, 0x4c
mov ebp, eax
mov eax, 0x400000
mov dword [0x403eb0], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x44], 0x401191
mov dword [ebp - 0x24], str.resiliency
call dword [sym.imp.USER32.dll_RegisterClassExA]
xor eax, eax
push eax
push dword [0x403eb0]
push eax
push eax
push 0x190
push 0x2b2
push 0x640
push 0x9c4
push 0
push str.abasement
push str.resiliency
push eax
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [0x403eb8], eax
push eax
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
call dword [sym.imp.USER32.dll_UpdateWindow]
xor eax, eax
push eax
push eax
push eax
lea edx, [ebp - 0x1c]
push edx
call dword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
je 0x401380
mov edi, dword [sym.imp.USER32.dll_DispatchMessageA]
lea ecx, [ebp - 0x1c]
push ecx
call edi
xor eax, eax
push eax
push eax
push eax
lea edx, [ebp - 0x1c]
push edx
call dword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
jne 0x401367
mov eax, dword [0x403eb4]
push eax
call dword [sym.imp.KERNEL32.dll_HeapDestroy]
pop ebp
ret 0x10
Function at 0x401290
Capabilities:
Get common file path

Disassembly:
push ecx
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0xc]
push esi
xor esi, esi
push eax
push ecx
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x4012f6
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4012f6
mov edx, dword [esp + 0xc]
push edx
push eax
call dword [0x411868]
test eax, eax
je 0x4012c6
mov esi, 1
lea eax, [esp + 4]
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
jne 0x4012f6
mov eax, dword [esp + 4]
test eax, eax
je 0x4012f6
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x4012f0
mov edx, dword [eax]
push ecx
push eax
call dword [edx + 0x14]
mov eax, dword [esp + 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, esi
pop esi
pop ecx
ret

Function at 0x401b00
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
push esi
mov esi, dword [esp + 0x10]
lea eax, [esp + 0x10]
push 0
push eax
push esi
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x401b2e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, 2
pop esi
ret
mov eax, dword [esp + 0x10]
sub eax, esi
pop esi
neg eax
sbb eax, eax
and eax, 3
ret

Function at 0x405ae0
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
sub esp, 0x808
push ebx
push esi
mov esi, dword [esp + 0x818]
test esi, esi
je 0x405bf3
push esi
call fcn.00407a78
add esp, 4
test eax, eax
je 0x405bf3
mov ebx, dword [esp + 0x81c]
mov edx, dword [esp + 0x814]
mov ecx, ebx
lea eax, [esp + 8]
or ecx, 0x10008
push eax
push ecx
push 0
push esi
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x405bf8
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
push edi
mov edi, dword [esp + 0x828]
mov edx, dword [esp + 0x10]
push 0
push 0
push 0
lea eax, [esp + 0x20]
push 0
lea ecx, [esp + 0x28]
push eax
push ecx
push 0
push edx
mov dword [esp + 0x34], 0x400
call ebp
mov esi, eax
cmp esi, 0x103
je 0x405ba8
test esi, esi
jne 0x405bdb
mov ecx, dword [esp + 0x10]
push edi
lea eax, [esp + 0x1c]
push ebx
push eax
push ecx
call fcn.00405ae0
mov esi, eax
add esp, 0x10
test esi, esi
je 0x405b45
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop ebp
pop esi
pop ebx
add esp, 0x808
ret
test edi, edi
je 0x405bc3
mov edx, dword [esp + 0x820]
mov eax, dword [esp + 0x81c]
push 0
push ebx
push edx
push eax
call edi
jmp 0x405bd9
mov ecx, dword [esp + 0x820]
mov edx, dword [esp + 0x81c]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov esi, eax
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop ebp
pop esi
pop ebx
add esp, 0x808
ret
mov eax, 0x3f2
pop esi
pop ebx
add esp, 0x808
ret
Function at 0x406130
Capabilities:
Move file

Disassembly:
sub esp, 0x728
push esi
mov esi, dword [esp + 0x730]
test esi, esi
je 0x40614d
push 6
push esi
call fcn.00401220
add esp, 8
mov al, byte [0x4144c5]
test al, al
je 0x406198
test esi, esi
jne 0x406179
mov eax, dword [esp + 0x734]
push 4
push esi
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
neg eax
sbb eax, eax
pop esi
neg eax
add esp, 0x728
ret
mov ecx, dword [esp + 0x734]
push 5
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
neg eax
sbb eax, eax
pop esi
neg eax
add esp, 0x728
ret
mov eax, dword [esp + 0x734]
lea edx, [esp + 0x31c]
push 0x104
push edx
push eax
call dword [0x4143c0]
test esi, esi
je 0x4061cb
lea ecx, [esp + 0x524]
push 0x104
push ecx
push esi
call dword [0x4143c0]
lea edx, [esp + 0x10]
push 0x104
push edx
call dword [0x4143cc]
lea eax, [esp + 0x10]
push str.WININIT.INI
push eax
call fcn.004079c0
add esp, 8
test esi, esi
je 0x40622f
lea ecx, [esp + 0x10]
lea edx, [esp + 0x31c]
push ecx
lea eax, [esp + 0x528]
push edx
push eax
push 0x411a48
call dword [0x414388]
lea ecx, [esp + 0x10]
push ecx
push 0
push 0
push 0
call dword [0x414388]
mov eax, 1
pop esi
add esp, 0x728
ret
lea edx, [esp + 0x10]
lea eax, [esp + 0x31c]
push edx
push eax
push 0x411a40
push 0x411a48
call dword [0x414388]
lea ecx, [esp + 0x10]
push ecx
push 0
push 0
push 0
call dword [0x414388]
lea edx, [esp + 0x10]
push 0xc0000000
push edx
call fcn.00401a70
mov esi, eax
add esp, 8
cmp esi, 0xffffffff
mov dword [esp + 8], esi
je 0x40638e
lea eax, [esp + 0x31c]
push ebx
push eax
call fcn.00407a78
add esp, 4
lea ecx, [esp + 0x21c]
lea edx, [esp + 0x320]
push 0
push 0
push eax
push ecx
push eax
push edx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push esi
call fcn.00401ba0
mov ebx, eax
lea eax, [esp + 0xc]
push eax
lea ecx, [ebx + 0x200]
push ecx
call fcn.00402020
add esp, 0xc
test eax, eax
je 0x406384
mov edx, dword [esp + 8]
push ebp
push edi
push ebx
push edx
push esi
call fcn.00401ac0
add esp, 0xc
test eax, eax
jne 0x406375
mov edx, dword [esp + 0x10]
lea ebp, [ebx - 4]
test ebp, ebp
jbe 0x406375
mov eax, 0xfffffffe
sub eax, edx
mov dword [esp + 0x18], eax
cmp byte [edx], 0x78
jne 0x406342
cmp byte [edx + 1], 0x79
jne 0x406342
cmp byte [edx + 2], 0x7a
jne 0x406342
cmp byte [edx + 3], 0x3d
jne 0x406342
lea edi, [esp + 0x224]
or ecx, 0xffffffff
xor eax, eax
lea esi, [edx + 4]
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edi, [esp + 0x224]
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
mov esi, dword [esp + 0x14]
je 0x40634d
mov eax, dword [esp + 0x18]
inc edx
lea ecx, [eax + edx + 2]
cmp ecx, ebp
jb 0x406302
jmp 0x406375
push 0
push 0
push esi
mov byte [edx], 0x4e
mov byte [edx + 1], 0x55
mov byte [edx + 2], 0x4c
call fcn.00401b70
mov edx, dword [esp + 0x1c]
push ebx
push edx
push esi
call fcn.00401b00
mov esi, dword [esp + 0x2c]
add esp, 0x18
lea eax, [esp + 0x10]
push eax
call fcn.004020e0
add esp, 4
pop edi
pop ebp
push esi
call fcn.00401c50
add esp, 4
pop ebx
mov eax, 1
pop esi
add esp, 0x728
ret
Function at 0x40c1b5
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x413dc0
cmp edx, dword [eax]
je 0x40c1d7
add eax, 8
inc ecx
cmp eax, 0x413e50
jl 0x40c1c8
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x413dc0]
jne 0x40c305
mov eax, dword [0x414510]
cmp eax, 1
je 0x40c2df
test eax, eax
jne 0x40c208
cmp dword [0x411ac4], 1
je 0x40c2df
cmp edx, 0xfc
je 0x40c305
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40c23f
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0040d6e0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0040ccf0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40c282
lea eax, [ebp - 0x1a4]
push eax
call fcn.0040ccf0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x40f734
push edi
call fcn.0040d860
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0040d6e0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0040d6f0
lea eax, [ebp - 0xa0]
push 0x40f714
push eax
call fcn.0040d6f0
push dword [esi + 0x413dc4]
lea eax, [ebp - 0xa0]
push eax
call fcn.0040d6f0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0040d7d0
add esp, 0x2c
pop edi
jmp 0x40c305
lea eax, [ebp + 8]
lea esi, [esi + 0x413dc4]
push 0
push eax
push dword [esi]
call fcn.0040ccf0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x1000115e
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0xc
mov esi, ecx
mov ebx, dword [esp + 0x20]
mov ebp, dword [ebx + 4]
sub ebp, dword [ebx]
lea eax, [ebp + 4]
xor ecx, ecx
mov edi, esp
mov dword [edi], ecx
mov dword [edi + 4], ecx
mov dword [edi + 8], ecx
mov ecx, edi
push eax
call fcn.10001fc2
mov eax, dword [edi]
mov dword [eax], ebp
mov eax, dword [edi]
add eax, 4
mov ecx, dword [ebx]
mov edx, dword [ebx + 4]
sub edx, ecx
push edx
push ecx
push eax
call fcn.1000c220
add esp, 0xc
xor ecx, ecx
inc ecx
mov edx, dword [esi + 0x10]
xor eax, eax
lock cmpxchg dword [edx], ecx
jne 0x100011a5
xor edi, edi
mov ebx, dword [sym.imp.WS2_32.dll_send]
mov eax, dword [esp]
mov ecx, dword [esp + 4]
sub ecx, eax
sub ecx, edi
jbe 0x100011d7
add eax, edi
push 0
push ecx
push eax
push dword [esi + 0xc]
call ebx
add edi, eax
cmp eax, 0xffffffff
jne 0x100011b8
mov eax, dword [esi + 0x10]
xor ecx, ecx
xchg dword [eax], ecx
mov eax, dword [esp]
test eax, eax
je 0x100011f5
mov ecx, dword [esp + 8]
sub ecx, eax
push ecx
push eax
call fcn.10001f58
add esp, 8
mov al, 1
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret 4