joyce8/EMBER2024-capa huggingface dataset:
Function at 0x473b10
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x61000]
push edi
jmp 0x473b2a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x473b31
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x473b20
mov eax, 1
add ebx, ebx
jne 0x473b43
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x473b54
jne 0x473b73
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x473b73
dec eax
add ebx, ebx
jne 0x473b60
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x473b38
add ebx, ebx
jne 0x473b6f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x473bc5
xor ecx, ecx
sub eax, 3
jb 0x473b8b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x473bfa
sar eax, 1
mov ebp, eax
jmp 0x473b96
add ebx, ebx
jne 0x473b96
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x473b64
inc ecx
add ebx, ebx
jne 0x473ba4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x473b64
add ebx, ebx
jne 0x473bb1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x473ba6
jne 0x473bc2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x473ba6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x473be4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x473bd6
jmp 0x473b26
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x473be4
add edi, ecx
jmp 0x473b26
pop esi
mov edi, esi
mov ecx, 0xa93
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x473c02
cmp byte [edi], 0x12
jne 0x473c02
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x473c07
lea edi, [esi + 0x70000]
mov eax, dword [edi]
or eax, eax
je 0x473c7f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xba65c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xba73c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x473c34
mov ecx, edi
jns 0x473c63
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xba744]
or eax, eax
je 0x473c79
mov dword [ebx], eax
add ebx, 4
jmp 0x473c51
call dword [esi + 0xba740]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x473cb0
cmp al, 0xef
ja 0x473ca3
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x473c85
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x473c92
mov ebp, dword [esi + 0xba748]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x17f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x473ce4
sub esp, 0xffffff80
jmp 0x41c31f
Function at 0x496100
Capabilities:
Hide graphical window

Disassembly:
push ebx
mov ebx, eax
push 0
mov eax, ebx
call fcn.00446418
push eax
call sub.user32.dll_ShowWindow
mov byte [ebx + 0x264], 0
pop ebx
ret
Function at 0x49d0cc
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffc10
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x3f0], ecx
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x49d186
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.00404d08
mov eax, dword [0x4af394]
cmp byte [eax], 0
je 0x49d13b
push esi
call sub.user32.dll_GetWindowTextLengthW
mov edx, eax
inc edx
mov eax, ebx
call fcn.00405018
mov eax, dword [ebx]
call fcn.00404e94
push eax
mov eax, dword [ebx]
call fcn.00404e84
push eax
push esi
call sub.user32.dll_GetWindowTextW
mov eax, dword [ebx]
call fcn.00404e94
mov edx, eax
dec edx
mov eax, ebx
call fcn.00405018
jmp 0x49d16d
lea eax, [ebp - 0x3e9]
push eax
push 0x3e8
push 0xd
push esi
call sub.user32.dll_SendMessageA
lea edx, [ebp - 0x3f0]
lea eax, [ebp - 0x3e9]
call fcn.00409530
mov edx, dword [ebp - 0x3f0]
mov eax, ebx
call fcn.00404e74
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49d18d
lea eax, [ebp - 0x3f0]
call fcn.004045e4
ret

Function at 0x49d194
Capabilities:
Get graphical window text

Disassembly:
push ebx
add esp, 0xfffffc14
mov ebx, edx
mov edx, esp
push edx
push 0x3e8
push 0xd
push eax
call sub.user32.dll_SendMessageA
mov edx, ebx
mov eax, esp
call fcn.00409530
add esp, 0x3ec
pop ebx
ret
Function at 0x49e624
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff8
mov esi, edx
lea edi, [esp]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov ebx, eax
mov eax, dword [ebx + 0xf8]
mov eax, dword [eax + 0x34]
call fcn.004518bc
mov edi, eax
dec edi
test edi, edi
jl 0x49e6d7
inc edi
xor esi, esi
mov eax, dword [ebx + 0xf8]
mov eax, dword [eax + 0x34]
mov edx, esi
call fcn.004518cc
mov eax, dword [eax + 0xc]
sub eax, 1
jb 0x49e66e
je 0x49e68f
dec eax
je 0x49e6b0
jmp 0x49e6cf
mov eax, dword [ebx + 0xf8]
mov eax, dword [eax + 0x34]
mov edx, esi
call fcn.004518cc
cmp byte [ebx + 0x168], 0
setne dl
call fcn.004517e8
jmp 0x49e6cf
mov eax, dword [ebx + 0xf8]
mov eax, dword [eax + 0x34]
mov edx, esi
call fcn.004518cc
cmp byte [ebx + 0x168], 1
setne dl
call fcn.004517e8
jmp 0x49e6cf
mov eax, dword [ebx + 0xf8]
mov eax, dword [eax + 0x34]
mov edx, esi
call fcn.004518cc
cmp byte [ebx + 0x168], 2
setne dl
call fcn.004517e8
inc esi
dec edi
jne 0x49e64f
call sub.KERNEL32.DLL_GetTickCount
sub eax, dword [ebx + 0x88]
xor edx, edx
push edx
push eax
mov eax, dword [ebx + 0x8c]
cdq
cmp edx, dword [esp + 4]
jne 0x49e6fc
cmp eax, dword [esp]
pop edx
pop eax
jae 0x49e76b
jmp 0x49e700
pop edx
pop eax
jge 0x49e76b
mov eax, dword [0x4af6d0]
mov eax, dword [eax]
mov dword [eax + 0x40], 2
mov esi, 2
call sub.KERNEL32.DLL_GetTickCount
mov dword [ebx + 0x88], eax
mov eax, dword [ebx + 0x13c]
test byte [eax + 0x4c], 4
je 0x49e747
cmp byte [ebx + 0x165], 2
je 0x49e747
mov ecx, dword [esp + 4]
mov edx, dword [esp]
mov eax, dword [ebx + 0xf8]
mov ebx, dword [eax]
call dword [ebx + 0x40]
jmp 0x49e790
push 0
mov eax, dword [ebx + 0x130]
push eax
push 0
mov eax, dword [esp + 0x10]
push eax
mov eax, dword [esp + 0x10]
push eax
push esi
mov eax, dword [ebx + 0x108]
push eax
call sub.user32.dll_TrackPopupMenu
jmp 0x49e790
cmp dword [ebx + 0x120], 0
je 0x49e790
xor edx, edx
mov eax, dword [ebx + 0x58]
call fcn.00436e00
push 0
push 0
push 0x10
mov eax, dword [ebx + 0x130]
push eax
call sub.user32.dll_PostMessageA
pop ecx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x4a84dc
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef0
push ebx
xor edx, edx
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4a864d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov byte [eax + 0x8c], 1
mov eax, dword [ebp - 4]
test byte [eax + 0x1c], 0x10
jne 0x4a8632
lea eax, [ebp - 0x10d]
push eax
push pe_nt_image_headers32
call sub.KERNEL32.DLL_GetTempPathA
lea edx, [ebp - 8]
lea eax, [ebp - 0x10d]
call fcn.00409530
mov dl, 1
mov eax, dword [0x465b14]
call fcn.00465b6c
mov edx, dword [ebp - 4]
mov dword [edx + 0x84], eax
mov dl, 1
mov eax, dword [0x412d34]
call fcn.00403848
mov edx, dword [ebp - 4]
mov dword [edx + 0x3c], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x88]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x84]
call fcn.00465be8
mov byte [ebp - 0xd], al
cmp byte [ebp - 0xd], 0
je 0x4a862f
mov dl, 1
mov eax, dword [0x4665cc]
call fcn.00466634
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x3c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x84]
mov edx, 0x4a8664
call fcn.00465f34
lea eax, [ebp - 0xc]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
call fcn.004048e8
xor eax, eax
push ebp
push 0x4a8628
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
xor ecx, ecx
xor edx, edx
mov ebx, dword [eax]
call dword [ebx + 0x10]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x3c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
call fcn.00466934
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.004a866c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a862f
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x84]
call fcn.00403878
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
call fcn.00403878
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
call fcn.00403878
ret
mov bl, byte [ebp - 0xd]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a8654
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.00404608
ret
Function at 0x4a9a94
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
xor ecx, ecx
mov edx, 8
call fcn.0040308c
mov eax, dword [ebp - 4]
call fcn.00409010
test al, al
je 0x4a9bba
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 4]
call fcn.00404a94
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4a9bba
mov eax, dword [ebp - 0xc]
call fcn.0040274c
mov dword [ebp - 0x14], eax
xor eax, eax
push ebp
push 0x4a9bb3
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x4a9b4c
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 4]
call fcn.00404a94
push eax
call sub.version.dll_GetFileVersionInfoA
call fcn.0040bc30
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
push 0x4a9bc4
mov eax, dword [ebp - 0x14]
push eax
call sub.version.dll_VerQueryValueA
call fcn.0040bc30
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4a9b62
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 8]
shr eax, 0x10
mov edx, dword [ebp - 8]
mov word [edx + 2], ax
mov eax, dword [ebp - 0x18]
mov ax, word [eax + 8]
mov edx, dword [ebp - 8]
mov word [edx], ax
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0xc]
shr eax, 0x10
mov edx, dword [ebp - 8]
mov word [edx + 6], ax
mov eax, dword [ebp - 0x18]
mov ax, word [eax + 0xc]
mov edx, dword [ebp - 8]
mov word [edx + 4], ax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a9bba
mov eax, dword [ebp - 0x14]
call fcn.0040276c
ret
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4aa4d8
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], eax
mov eax, dword [0x4af5cc]
mov eax, dword [eax]
cmp dword [eax + 0x44], 0
je 0x4aa51a
mov eax, dword [0x4af5cc]
mov eax, dword [eax]
mov eax, dword [eax + 0x44]
cmp byte [eax + 0x22b], 1
je 0x4aa51a
mov eax, dword [0x4af5cc]
mov eax, dword [eax]
call fcn.00460354
mov eax, dword [0x4af5cc]
mov eax, dword [eax]
mov eax, dword [eax + 0x44]
call fcn.0045d50c
push 0
mov eax, dword [0x4af5cc]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
push eax
call sub.user32.dll_ShowWindow
pop ecx
pop ebp
ret

Function at 0x4aa840
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], eax
push 5
mov eax, dword [0x4af5cc]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
push eax
call sub.user32.dll_ShowWindow
mov eax, dword [0x4af5cc]
mov eax, dword [eax]
call fcn.00460404
mov eax, dword [0x4af5cc]
mov eax, dword [eax]
cmp dword [eax + 0x44], 0
je 0x4aa883
mov eax, dword [0x4af5cc]
mov eax, dword [eax]
mov eax, dword [eax + 0x44]
mov dl, 1
call fcn.0045a110
pop ecx
pop ebp
ret
Function at 0x4aa930
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ecx
mov al, byte [0x4aa974]
mov byte [ebp - 1], al
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jle 0x4aa94c
or byte [ebp - 1], 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jle 0x4aa95c
or byte [ebp - 1], 4
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jle 0x4aa96c
or byte [ebp - 1], 2
mov al, byte [ebp - 1]
pop ecx
pop ebp
ret
Function at 0x4ac734
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
xor edx, edx
mov dword [ebp - 0x104], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4ac7a4
push dword fs:[eax]
mov dword fs:[eax], esp
push 0xff
lea eax, [ebp - 0x100]
push eax
call sub.KERNEL32.DLL_GetSystemDirectoryA
push ebx
lea edx, [ebp - 0x104]
lea eax, [ebp - 0x100]
call fcn.00409530
mov edx, dword [ebp - 0x104]
mov cl, 1
mov eax, dword [0x4b0db0]
call fcn.004ac6d0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ac7ab
lea eax, [ebp - 0x104]
call fcn.004045e4
ret

Function at 0x4acbc4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404a84
xor eax, eax
push ebp
push 0x4acd10
push dword fs:[eax]
mov dword fs:[eax], esp
mov bl, 1
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 4]
call fcn.0040467c
mov eax, dword [ebp - 0xc]
call fcn.0040489c
test eax, eax
je 0x4accf2
mov eax, dword [ebp - 4]
mov al, byte [eax]
cmp al, 1
jne 0x4acc8d
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 4]
call fcn.0040489c
mov ecx, eax
dec ecx
mov edx, 2
mov eax, dword [ebp - 4]
call fcn.00404af4
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 4]
call fcn.0040467c
mov eax, dword [ebp - 0xc]
call fcn.0040489c
mov esi, eax
test esi, esi
jle 0x4acce7
mov edi, 1
xor bl, 1
test bl, bl
je 0x4acc71
lea eax, [ebp - 0xc]
call fcn.00404aec
mov edx, dword [ebp - 0xc]
mov dl, byte [edx + edi - 1]
xor dl, 4
mov byte [eax + edi - 1], dl
jmp 0x4acc87
lea eax, [ebp - 0xc]
call fcn.00404aec
mov edx, dword [ebp - 0xc]
mov dl, byte [edx + edi - 1]
xor dl, 5
mov byte [eax + edi - 1], dl
inc edi
dec esi
jne 0x4acc52
jmp 0x4acce7
cmp al, 2
jne 0x4accba
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 4]
call fcn.0040489c
mov ecx, eax
dec ecx
mov edx, 2
mov eax, dword [ebp - 4]
call fcn.00404af4
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.004aca90
jmp 0x4acce7
mov eax, dword [ebp - 0xc]
call fcn.0040489c
mov esi, eax
test esi, esi
jle 0x4acce7
mov edi, 1
lea eax, [ebp - 0xc]
call fcn.00404aec
mov edx, dword [ebp - 0xc]
mov dl, byte [edx + edi - 1]
xor dl, 4
mov byte [eax + edi - 1], dl
inc edi
dec esi
jne 0x4acccd
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0xc]
call fcn.00404638
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4acd17
lea eax, [ebp - 0xc]
call fcn.004045e4
lea eax, [ebp - 4]
call fcn.004045e4
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
nop
nop
pop eax
nop
nop
nop
add eax, 0x403ac5
nop
sub eax, 0x403a6b
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x42e030
nop
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
jne 0x42e01e
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp loc.00401219
Function at 0x4015f0
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov ebx, dword [fcn.00402850]
mov dword [esp], 2
call ebx
mov dword [esp + 8], 7
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Usage:_n
call sub.msvcrt.dll_fwrite
mov dword [esp], 2
call ebx
mov edx, dword [esp + 0x20]
mov dword [esp + 4], str._____s_FILENAME_n____where_FILENAME_is_a_binary_input_file_containing_SNIP_marks_n
mov dword [esp], eax
mov dword [esp + 8], edx
call sub.msvcrt.dll_fprintf
mov dword [esp], 2
call ebx
mov dword [esp], 0xa
mov dword [esp + 4], eax
call sub.msvcrt.dll_fputc
mov dword [esp], 2
call ebx
mov dword [esp + 8], 0x22
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Sample_SNIP_marks_in_dasm_format:_n
call sub.msvcrt.dll_fwrite
mov dword [esp], 2
call ebx
mov dword [esp + 8], 0x29
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.____.byte__SNIPStart__0__snipfilename__0_n
call sub.msvcrt.dll_fwrite
mov dword [esp], 2
call ebx
mov dword [esp + 8], 0x17
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str._____binary_here_data__n
call sub.msvcrt.dll_fwrite
mov dword [esp], 2
call ebx
mov dword [esp + 8], 0x13
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.____.byte__SNIPEnd_n
call sub.msvcrt.dll_fwrite
mov dword [esp], 0
call sub.msvcrt.dll_exit
nop
nop
nop
mov eax, dword [0x403004]
mov eax, dword [eax]
test eax, eax
je 0x401740
sub esp, 0xc
nop
call eax
mov eax, dword [0x403004]
lea edx, [eax + 4]
mov eax, dword [eax + 4]
mov dword [0x403004], edx
test eax, eax
jne 0x401720
add esp, 0xc
ret
ret

Function at 0x401ad0
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call fcn.00402850
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sub.msvcrt.dll_fwrite
mov dword [esp], 2
call fcn.00402850
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
lea esi, [esi]
Function at 0x401b30
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x40539c]
test esi, esi
jle 0x401c30
mov eax, dword [0x4053a0]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp edx, ebx
ja 0x401b60
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x401bdf
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x401b50
mov dword [esp], ebx
call fcn.004024a0
mov edi, eax
test eax, eax
je 0x401c57
mov eax, dword [0x4053a0]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call fcn.004025b0
mov edx, dword [0x4053a0]
add eax, dword [edi + 0xc]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x401c37
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x401bd8
sub eax, 4
and eax, 0xfffffffb
jne 0x401be6
add dword [0x40539c], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x20]
add ebx, dword [0x4053a0]
mov dword [ebx + 4], eax
mov dword [ebx + 8], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0x40
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x401bd8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.00401ad0
xor esi, esi
jmp 0x401b6a
mov eax, dword [0x4053a0]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call fcn.00401ad0
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call fcn.00401ad0
lea esi, [esi]
nop

Function at 0x402110
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x4053b8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x4053b0]
sub esp, 4
test ebx, ebx
je 0x402165
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x40215e
test esi, esi
je 0x40215e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x402140
mov dword [esp], 0x4053b8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x4096e0
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffbc
mov edi, eax
lea esi, [esp + 0x28]
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetSystemInfo
mov ebx, edi
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x409794
jmp 0x409789
cmp dword [esi + 0x10], 0x1000
jne 0x409775
test byte [esi + 0x15], 1
jne 0x409775
xor ebx, ebx
mov eax, dword [esi + 0x14]
cmp eax, 1
je 0x409734
cmp eax, 2
je 0x409734
cmp eax, 0x10
je 0x409734
cmp eax, 0x20
jne 0x409749
push esp
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x409749
mov bl, 1
xor ebp, ebp
jmp 0x40975a
mov eax, dword [esi]
add eax, ebp
call fcn.004096d8
add ebp, dword [esp + 8]
cmp ebp, dword [esi + 0xc]
jb 0x40974d
test bl, bl
je 0x409775
push esp
mov eax, dword [esp + 4]
push eax
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [esi]
add eax, dword [esi + 0xc]
mov ebx, eax
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x409794
mov eax, dword [esi + 4]
cmp eax, edi
je 0x40970c
add esp, 0x44
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x408d10
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x408d2d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
jmp 0x408d34
mov dword [ebp - 4], 0
cmp dword [ebp - 4], 0
je 0x408d4b
mov ecx, dword [ebp - 4]
push ecx
call fcn.0040cd70
add esp, 4
or eax, 0xffffffff
jmp 0x408d4d
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x408ee0
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
jne 0x408f01
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
jmp 0x408f08
mov dword [ebp - 4], 0
cmp dword [ebp - 4], 0
je 0x408f1f
mov edx, dword [ebp - 4]
push edx
call fcn.0040cd70
add esp, 4
or eax, 0xffffffff
jmp 0x408f21
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x10001020
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using aes via winapi
Encrypt or decrypt via wincrypt
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push 0xf0000000
xor esi, esi
lea eax, [ebp - 8]
push 0x18
push esi
push esi
push eax
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x100010f3
lea eax, [ebp - 4]
push eax
push esi
push esi
push 0x800c
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x100010e8
mov edx, dword [ebp + 8]
mov ecx, edx
push edi
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10001072
push 0
sub ecx, edi
push ecx
push edx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
pop edi
test eax, eax
je 0x100010df
lea eax, [ebp - 0xc]
push eax
push 1
push dword [ebp - 4]
push 0x6610
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptDeriveKey]
test eax, eax
je 0x100010df
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0xc]
push 0
push 1
push 0
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
je 0x100010d1
mov ecx, dword [ebp + 0x14]
mov esi, 1
mov eax, dword [ebp + 0x10]
mov dword [ecx], eax
jmp 0x100010d6
mov eax, dword [ebp + 0x14]
mov dword [eax], esi
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push 0
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret