joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41a8fb
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x4233cc]
push ebx
push esi
push edi
lea ecx, [ebp - 0x218]
push ecx
lea ecx, [ebp - 0x210]
push ecx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov esi, 0x104
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
cmp eax, esi
jae 0x41aad9
test eax, eax
je 0x41aacd
mov eax, dword [ebp - 0x218]
test eax, eax
je 0x41aad9
lea ecx, [ebp - 0x210]
cmp eax, ecx
je 0x41aad9
and word [eax], 0
push dword [ebp - 0x210]
call sub.msvcrt.dll_towupper
cmp ax, 0x41
pop ecx
jb 0x41a9a7
push dword [ebp - 0x210]
call sub.msvcrt.dll_towupper
cmp ax, 0x5a
pop ecx
ja 0x41a9a7
cmp word [ebp - 0x20e], 0x3a
jne 0x41a9a7
cmp word [ebp - 0x20c], 0x5c
jne 0x41aad9
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x214], eax
push 0x5c
pop edi
cmp word [ebp - 0x210], di
jne 0x41a9ed
cmp word [ebp - 0x20e], di
jne 0x41a9ed
lea eax, [ebp - 0x20c]
push edi
push eax
call sub.msvcrt.dll_wcschr
test eax, eax
pop ecx
pop ecx
je 0x41aad9
add eax, 2
push edi
push eax
call sub.msvcrt.dll_wcschr
test eax, eax
pop ecx
pop ecx
mov dword [ebp - 0x214], eax
je 0x41aad9
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x41aa14
and al, 0x10
neg al
sbb eax, eax
and eax, 0xfffffef5
add eax, 0x10b
jmp 0x41aadc
push dword [ebp - 0x218]
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.USER32.dll_CharPrevW]
mov esi, eax
cmp esi, dword [ebp - 0x214]
je 0x41aad9
cmp word [esi], di
jne 0x41aad9
cmp esi, dword [ebp - 0x214]
jbe 0x41aad9
and word [esi], 0
lea eax, [ebp - 0x210]
push 0x5c
push eax
call sub.msvcrt.dll_wcsrchr
mov edi, eax
test edi, edi
pop ecx
pop ecx
je 0x41aad9
mov bx, word [edi + 2]
and word [edi + 2], 0
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
mov word [edi + 2], bx
jne 0x41aa9f
cmp edi, dword [ebp - 0x214]
mov esi, edi
ja 0x41aa4a
cmp esi, dword [ebp - 0x214]
jbe 0x41aad9
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
xor ebx, ebx
jmp 0x41aabf
test al, 0x10
jne 0x41aa8d
mov eax, 0x10b
jmp 0x41aadc
cmp word [esi + 2], bx
je 0x41aad5
push esi
mov word [esi], 0x5c
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [esi + eax*2]
lea eax, [ebp - 0x210]
push ebx
push eax
call edi
test eax, eax
jne 0x41aaaa
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x41aadc
xor eax, eax
jmp 0x41aadc
push 0x7b
pop eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.00419805
leave
ret 4
Function at 0x41ab4d
Capabilities:
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x4233cc]
mov ecx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x14]
test edi, edi
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x220], edi
je 0x41ac56
test eax, eax
jne 0x41ab87
mov dword [edi], 0x57
jmp 0x41ac56
lea edx, [ebp - 0x214]
push edx
mov edx, dword [ebp + 0x10]
and edx, 0x1000
or edx, 0x100080
shr edx, 4
push edx
push 8
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
mov dword [ebp - 0x218], eax
je 0x41abbc
mov dword [edi], eax
jmp 0x41ac56
push ebx
xor ebx, ebx
xor edi, edi
lea eax, [ebp - 0x228]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x210]
push eax
push ebx
push dword [ebp - 0x214]
mov dword [ebp - 0x21c], 0x105
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x41ac34
lea eax, [ebp - 0x218]
push eax
push 0
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 0x214]
call fcn.0041ab4d
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
mov dword [ebp - 0x218], eax
je 0x41abc1
inc ebx
mov edi, eax
jmp 0x41abc1
cmp eax, 0x103
pop ebx
je 0x41ac3e
mov edi, eax
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
je 0x41ac5a
mov eax, dword [ebp - 0x220]
mov dword [eax], edi
xor eax, eax
jmp 0x41ac5d
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
call fcn.00419805
leave
ret 0x10

Function at 0x41c300
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
mov eax, esi
shr eax, 2
test eax, eax
push edi
mov edi, dword [ebp + 0x10]
jle 0x41c33d
push ebx
movzx edx, byte [ecx]
xor ebx, ebx
inc ecx
mov bh, byte [ecx]
or edx, ebx
inc ecx
movzx ebx, byte [ecx]
shl ebx, 0x10
or edx, ebx
inc ecx
movzx ebx, byte [ecx]
shl ebx, 0x18
or edx, ebx
inc ecx
xor edi, edx
dec eax
jne 0x41c31a
pop ebx
and esi, 3
xor eax, eax
dec esi
je 0x41c359
dec esi
je 0x41c352
dec esi
jne 0x41c35e
movzx eax, byte [ecx]
shl eax, 0x10
inc ecx
xor edx, edx
mov dh, byte [ecx]
or eax, edx
inc ecx
movzx ecx, byte [ecx]
or eax, ecx
xor eax, edi
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x5cb8d0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x177000]
push edi
jmp 0x5cb8ea
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x5cb8f1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5cb8e0
mov eax, 1
add ebx, ebx
jne 0x5cb903
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x5cb914
jne 0x5cb933
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5cb933
dec eax
add ebx, ebx
jne 0x5cb920
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x5cb8f8
add ebx, ebx
jne 0x5cb92f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x5cb985
xor ecx, ecx
sub eax, 3
jb 0x5cb94b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x5cb9ba
sar eax, 1
mov ebp, eax
jmp 0x5cb956
add ebx, ebx
jne 0x5cb956
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5cb924
inc ecx
add ebx, ebx
jne 0x5cb964
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5cb924
add ebx, ebx
jne 0x5cb971
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x5cb966
jne 0x5cb982
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x5cb966
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x5cb9a4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x5cb996
jmp 0x5cb8e6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x5cb9a4
add edi, ecx
jmp 0x5cb8e6
pop esi
mov edi, esi
mov ecx, 0x3ed9
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x5cb9c2
cmp byte [edi], 0x11
jne 0x5cb9c2
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 0x5cb9c7
lea edi, [esi + 0x1c4000]
mov eax, dword [edi]
or eax, eax
je 0x5cba3f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x2c09dc]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x2c0b58]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x5cb9f4
mov ecx, edi
jns 0x5cba23
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 + 0x2c0b5c]
or eax, eax
je 0x5cba39
mov dword [ebx], eax
add ebx, 4
jmp 0x5cba11
call dword [esi + 0x2c0b6c]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x5cba70
cmp al, 0xef
ja 0x5cba63
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x5cba45
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x5cba52
mov ebp, dword [esi + 0x2c0b60]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x227]
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 0x5cbaa4
sub esp, 0xffffff80
jmp 0x425f74
Function at 0x10001ca0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov dword [ebp - 0x40], 0xab824503
mov dword [ebp - 0x3c], 0
movsx eax, word [0x1000f04c]
mov cl, byte [0x1000f020]
mov dword [ebp - 0x2c], 0x68aa
mov byte [ebp - 3], 0x55
mov dword [ebp - 0x40], 0x547d718e
mov dword [ebp - 0x3c], 0x381ad
mov byte [ebp - 2], 0x5d
mov byte [ebp - 2], cl
mov byte [ebp - 1], 0xcf
cdq
mov dword [ebp - 0x10], eax
mov ax, word [0x1000f090]
mov byte [ebp - 1], 0x8b
push ebx
movzx ebx, ax
movsx eax, byte [0x1000f01d]
mov dword [ebp - 0x1c], eax
movzx eax, word [section..data]
cdq
push esi
push edi
mov edi, eax
mov esi, edx
mov eax, 0x8c8d
mov word [ebp - 0xc], ax
mov eax, 0x56cc
mov cx, word [0x1000f0a4]
mov dword [ebp - 0x38], 0xf2
mov dword [ebp - 0x34], 0
mov word [ebp - 8], ax
movzx eax, word [0x1000f0a4]
cdq
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], edx
xor edx, edx
mov ecx, dword [0x1000f010]
mov eax, dword [0x1000f014]
mov al, byte [0x1000f003]
mov dword [ebp - 0x1c], ecx
movsx ecx, byte [0x1000f01e]
mov byte [ebp - 5], al
mov byte [ebp - 5], 0xa4
mov dword [ebp - 0x20], 0x2fefc2ea
mov dword [ebp - 0x1c], 0x9d0f7
mov dword [ebp - 0x1c], 0x26e0d27d
mov dword [ebp - 0x1c], 0xd23b
mov dword [ebp - 0x20], 0x89e9d266
mov dword [ebp - 0x1c], 0
mov eax, dword [0x1000f06c]
cmp eax, ecx
mov eax, dword [0x1000f06c]
setge dl
xor ecx, ecx
cmp eax, 0x1c
setge cl
cmp edx, ecx
ja 0x10001e1e
mov eax, ebx
mov dword [ebp - 8], 0x38e
cdq
mov dword [ebp - 0x14], eax
nop dword [eax]
movzx eax, byte [ebp - 2]
xor ecx, ecx
cmp word [str._k], cx
cdq
mov edi, eax
sete cl
mov ax, word [0x1000f044]
sub edi, ecx
sub edi, dword [0x1000f078]
xor ecx, ecx
movzx eax, ax
cdq
mov esi, eax
movsx eax, byte [ebp - 1]
sub esi, dword [ebp - 0x14]
cdq
add esi, eax
add edi, dword [ebp - 0x10]
add edi, 1
and esi, edi
or esi, ecx
jne 0x10001e03
mov al, 1
jmp 0x10001e05
xor al, al
inc word [0x1000f048]
mov byte [0x1000f006], al
mov eax, dword [ebp - 8]
dec eax
mov dword [ebp - 8], eax
test eax, eax
jg 0x10001dc0
jmp 0x10001e56
cmp word [0x1000f070], 0
jne 0x10001e31
mov ecx, 1
xor eax, eax
jmp 0x10001e3f
xorps xmm0, xmm0
movlpd qword [ebp - 0x28], xmm0
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x28]
cmp edi, ecx
jne 0x10001e56
cmp esi, eax
jne 0x10001e56
mov cl, byte [ebp - 1]
mov al, byte [ebp - 1]
not cl
add al, cl
mov byte [0x1000f01d], al
movzx eax, word [0x1000f064]
cdq
cmp edx, dword [0x1000f08c]
jb 0x10001e80
ja 0x10001e70
cmp eax, dword [0x1000f088]
jb 0x10001e80
imul eax, dword [0x1000f060], 0x445f
mov word [ebp - 0xc], ax
jmp 0x10001ea4
mov ecx, dword [0x1000f058]
mov dl, byte [0x1000f01c]
mov eax, dword [0x1000f05c]
add dl, dl
mov al, byte [ebp - 3]
add cl, dl
mov eax, dword [ebp - 0x38]
mov byte [0x1000f01c], cl
mov ecx, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x40]
mov eax, dword [ebp - 0x3c]
mov eax, 0x41e3
xor cx, ax
mov eax, dword [ebp - 0x2c]
movzx ecx, cx
sub ecx, eax
movzx eax, cx
movzx ecx, word [section..data]
add cx, ax
movzx eax, cx
movzx ecx, word [ebp - 0xc]
pop edi
add cx, ax
mov eax, dword [ebp - 0x10]
pop esi
mov word [0x1000f0a4], cx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40632d
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
pushal
call 0x40633c
pop dword [ebp - 0x20]
mov eax, 0xd9b29dc2
sub eax, 0xd9723a86
sub dword [ebp - 0x20], eax
mov dword [ebp - 0x30], 0xb241477f
add dword [ebp - 0x30], 0x9c10fdcc
mov dword [ebp - 0x2c], 0x9df6fced
sub dword [ebp - 0x2c], 0x6bc3b0a8
mov dword [ebp - 0x28], 0x225ffa49
sub dword [ebp - 0x28], 0xd613b61b
mov dword [ebp - 0x24], 0x5dcf909c
sub dword [ebp - 0x24], 0x5dcf909c
lea eax, [ebp - 0x30]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x20]
call dword [eax]
mov dword [ebp - 0x30], 0xe470e45e
sub dword [ebp - 0x30], 0x6ffe7b08
mov dword [ebp - 0x2c], 0x71605c37
sub dword [ebp - 0x2c], 0x2ff3fac2
mov dword [ebp - 0x28], 0x2d033387
add dword [ebp - 0x28], 0x366c38e5
mov dword [ebp - 0x24], 0xf5e7f32a
add dword [ebp - 0x24], 0xa180cd6
lea ebx, [ebp - 0x30]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x20]
call dword [eax]
push 0x40
push 0x1000
push 0x389f5
push 0
call eax
mov ecx, 0x6f17ed96
sub ecx, 0x6f179d92
mov esi, eax
mov edx, 0xc847caef
add edx, 0x37f93511
add edx, dword [ebp - 0x20]
mov edi, 0x4b6a6b24
add edi, 0x17eeb12a
xor dword [ebp - 0x14], edx
mov ebx, dword [edx]
sub dword [ebp - 0xc], 0xc1cdf135
add ebx, edi
add dword [ebp - 0xc], 0x97645fa8
mov dword [esi], ebx
sub dword [ebp - 0x18], edx
add esi, 4
add edx, 0xb897ec76
add edx, 0x4768138e
loop 0x406454
add eax, 0x132e3
mov ebx, eax
add eax, 0xf16d28f1
add eax, 0xe92d714
mov ecx, 0x400000
add ecx, dword [ebp - 0x20]
call ebx
leave
ret

Function at 0x4065b0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40c17c]
jne 0x4065ba
repz ret
jmp fcn.00406941
Function at 0x416b90
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x42637c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00408925
mov dword [ebp - 0x14], eax
cmp dword [0x8262c0], esi
jne 0x416c83
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x416c10
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x416d63
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x416d63
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x416d63
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x8262c0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x8262c4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x8262c8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x8262d0], eax
test eax, eax
je 0x416c80
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x8262cc], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x416ca8
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x416c9b
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x416cbd
push 4
pop eax
jmp 0x416d65
cmp dword [ebp - 0x14], esi
je 0x416cbd
push dword [0x8262c0]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x416ca2
mov eax, dword [0x8262cc]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x416d1b
cmp dword [0x8262d0], edi
je 0x416d1b
push eax
call ebx
push dword [0x8262d0]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x416d1b
test eax, eax
je 0x416d1b
call ecx
test eax, eax
je 0x416d10
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x416d10
test byte [ebp - 8], 1
jne 0x416d1b
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x416d4b
mov eax, dword [0x8262c4]
cmp eax, edi
je 0x416d48
push eax
call ebx
test eax, eax
je 0x416d48
call eax
mov esi, eax
test esi, esi
je 0x416d48
mov eax, dword [0x8262c8]
cmp eax, edi
je 0x416d48
push eax
call ebx
test eax, eax
je 0x416d48
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x8262c0]
call ebx
test eax, eax
je 0x416d63
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x416d65
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040669c
mov esp, ebp
pop ebp
ret
Function at 0x401ee2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x411280]
jne 0x401eec
repz ret
jmp fcn.00404369

Function at 0x4025e7
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
push 0x14
push 0x40f530
call fcn.00403770
mov eax, 0x5a4d
cmp word [0x400000], ax
jne 0x4024e7
mov eax, dword [0x40003c]
cmp dword [eax + 0x400000], 0x4550
jne 0x4024e7
mov ecx, 0x10b
cmp word [eax + 0x400018], cx
jne 0x4024e7
cmp dword [eax + 0x400074], 0xe
jbe 0x4024e7
xor ecx, ecx
cmp dword [eax + 0x4000e8], ecx
setne cl
mov dword [ebp - 0x1c], ecx
jmp 0x4024eb
and dword [ebp - 0x1c], 0
push 1
call fcn.00408afe
pop ecx
test eax, eax
jne 0x4024ff
push 0x1c
call fcn.00408afe
pop ecx
call fcn.00405287
test eax, eax
jne 0x402510
push 0x10
call fcn.00408afe
pop ecx
call fcn.00405952
and dword [ebp - 4], 0
call fcn.004032ff
test eax, eax
jge 0x40252a
push 0x1b
call fcn.00408afe
pop ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x412ba0], eax
call fcn.00408afe
mov dword [0x41203c], eax
call fcn.00408afe
test eax, eax
jge 0x402550
push 8
call fcn.00408afe
pop ecx
call fcn.00405fde
test eax, eax
jge 0x402561
push 9
call fcn.00408afe
pop ecx
push 1
call fcn.00408afe
pop ecx
test eax, eax
je 0x402574
push eax
call fcn.00408afe
pop ecx
mov eax, dword [0x412018]
mov dword [0x41201c], eax
push eax
push dword [0x412010]
push dword [0x41200c]
call main
add esp, 0xc
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x1c], 0
jne 0x4025a2
push eax
call fcn.00408afe
call fcn.00402400
jmp 0x4025d7
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x20]
call fcn.004037b5
ret
call fcn.00408afe
jmp 0x402495

Function at 0x408afe
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
pushal
call 0x408b0d
pop dword [ebp - 0x20]
mov eax, 0x408b0d
sub dword [ebp - 0x20], eax
push 0x40
push 0x1000
push 0x39a2c
push 0
mov eax, 0x117247ab
add eax, 0xeece992d
add eax, dword [ebp - 0x20]
call dword [eax]
mov ecx, 0xc5abfd84
add ecx, 0x3a544c39
xor edx, edx
add edx, eax
mov edi, 0xdc94a04a
sub edi, 0xdc536486
add edi, dword [ebp - 0x20]
mov esi, 0x41351cc
sub esi, 0xadf847d1
xor dword [ebp - 8], ecx
mov ebx, dword [edi]
xor dword [ebp - 0x18], 0x97b31f62
xor ebx, esi
xor dword [ebp - 0xc], edi
mov dword [edx], ebx
xor dword [ebp - 0x10], 0xa46e1b52
add edx, 4
add edi, 4
loop 0x408b69
add eax, 0x119c7
xor ebx, ebx
add ebx, eax
add eax, 0x11b3f584
add eax, 0xee4c0a81
mov ecx, 0x400000
add ecx, dword [ebp - 0x20]
call ebx
leave
ret
Function at 0x1000f505
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
pushal
call 0x1000f514
pop dword [ebp - 0x10]
mov eax, 0x69ef1626
sub eax, 0x59ee2112
sub dword [ebp - 0x10], eax
push 0x40
push 0x1000
push 0x3a985
push 0
mov eax, 0x6f0ecc1f
add eax, 0xa0f29521
add eax, dword [ebp - 0x10]
call dword [eax]
mov ecx, 0xc6910c35
sub ecx, 0xc690c27f
mov edi, eax
mov ebx, 0x10024400
add ebx, dword [ebp - 0x10]
mov edx, 0x1be5a0ff
add edx, 0x8aaf3690
sub dword [ebp - 0xc], ecx
mov esi, dword [ebx]
mov dword [ebp - 8], 0x70a2e175
add esi, edx
xor dword [ebp - 8], 0x8cd3ca7f
mov dword [edi], esi
add edi, 0xe1bcb170
add edi, 0x1e434e94
add ebx, 4
loop 0x1000f56d
add eax, 0xf4d737d8
sub eax, 0xf4d61e2d
mov ebx, eax
add eax, 5
mov ecx, 0xf2f8178a
sub ecx, 0xe2f8178a
add ecx, dword [ebp - 0x10]
call ebx
leave
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 0x40eed0
Capabilities:
Hash data via bcrypt

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c1469
mov eax, dword fs:[0]
push eax
sub esp, 0x8c
push ebx
push esi
push edi
mov eax, dword [0x6b5068]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov edi, ecx
mov dword [ebp - 0x3c], edi
push 0
push 0
push 0x4dcf80
lea eax, [ebp - 0x10]
mov dword [ebp - 0x18], 0
push eax
call dword [sym.imp.bcrypt.dll_BCryptOpenAlgorithmProvider]
test eax, eax
je 0x40ef3f
push 0x4dcdaf
mov ecx, edi
call fcn.00412190
mov dword [ebp - 4], 0
mov dword [ebp - 0x18], 1
jmp 0x40f0c5
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.bcrypt.dll_BCryptCreateHash]
test eax, eax
jne 0x40ef82
mov eax, dword [esi + 0x14]
test eax, eax
jne 0x40ef65
xor ecx, ecx
jmp 0x40ef68
mov ecx, dword [esi + 0xc]
push 0
push eax
push ecx
push dword [ebp - 0x14]
call dword [sym.imp.bcrypt.dll_BCryptHashData]
test eax, eax
je 0x40efac
push dword [ebp - 0x14]
call dword [sym.imp.bcrypt.dll_BCryptDestroyHash]
push 0
push dword [ebp - 0x10]
call dword [sym.imp.bcrypt.dll_BCryptCloseAlgorithmProvider]
push 0x4dcdaf
mov ecx, edi
call fcn.00412190
mov dword [ebp - 4], 0
mov dword [ebp - 0x18], 1
jmp 0x40f0c5
push 0
lea eax, [ebp - 0x40]
push eax
push 4
lea eax, [ebp - 0x38]
push eax
push str.HashDigestLength
push dword [ebp - 0x10]
call dword [sym.imp.bcrypt.dll_BCryptGetProperty]
test eax, eax
jne 0x40ef79
lea ecx, [ebp - 0x34]
call fcn.00426c10
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x28]
mov ebx, dword [ebp - 0x38]
test eax, eax
je 0x40eff1
push ebx
lea ecx, [ebp - 0x34]
call fcn.004273e0
mov eax, dword [ebp - 0x28]
jmp 0x40f01f
test ebx, ebx
je 0x40f01f
mov ecx, dword [ebp - 0x1c]
mov eax, 0x40
test ecx, ecx
mov esi, ebx
cmovle ecx, eax
mov eax, ebx
cdq
idiv ecx
mov eax, dword [ebp - 0x34]
sub esi, edx
add esi, ecx
lea ecx, [ebp - 0x34]
push esi
call dword [eax]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], ebx
push dword [ebp - 0x20]
push 0
push eax
call fcn.0049b6c0
mov eax, dword [ebp - 0x20]
add esp, 0xc
mov ecx, dword [ebp - 0x28]
xor edx, edx
test eax, eax
push edx
push eax
cmove ecx, edx
push ecx
push dword [ebp - 0x14]
call dword [sym.imp.bcrypt.dll_BCryptFinishHash]
push dword [ebp - 0x14]
call dword [sym.imp.bcrypt.dll_BCryptDestroyHash]
push 0
push dword [ebp - 0x10]
call dword [sym.imp.bcrypt.dll_BCryptCloseAlgorithmProvider]
lea ecx, [ebp - 0x98]
call fcn.004018c0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x34]
push eax
call fcn.00427750
push eax
lea ecx, [ebp - 0x6c]
call fcn.00401620
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x98]
call fcn.00401b70
lea ecx, [ebp - 0x6c]
call fcn.00428cc0
push eax
lea ecx, [ebp - 0x6c]
call fcn.00412240
lea eax, [ebp - 0x6c]
mov ecx, edi
push eax
call fcn.00401620
mov dword [ebp - 0x18], 1
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x6c]
call fcn.00401b70
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x34]
call fcn.00402930
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8