joyce8/EMBER2024-capa huggingface dataset:
Function at 0x418769
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x41c190
cmp edx, dword [eax]
je 0x41878b
add eax, 8
inc ecx
cmp eax, 0x41c220
jl 0x41877c
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x41c190]
jne 0x4188b9
mov eax, dword [0x41cbb0]
cmp eax, 1
je 0x418893
test eax, eax
jne 0x4187bc
cmp dword [0x41c0e4], 1
je 0x418893
cmp edx, 0xfc
je 0x4188b9
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4187f3
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00419670
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00419490
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x418836
lea eax, [ebp - 0x1a4]
push eax
call fcn.00419490
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x41b45c
push edi
call fcn.00419f00
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00419670
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00419680
lea eax, [ebp - 0xa0]
push 0x41b43c
push eax
call fcn.00419680
push dword [esi + 0x41c194]
lea eax, [ebp - 0xa0]
push eax
call fcn.00419680
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00419e75
add esp, 0x2c
pop edi
jmp 0x4188b9
lea eax, [ebp + 8]
lea esi, [esi + 0x41c194]
push 0
push eax
push dword [esi]
call fcn.00419490
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 0x42e000
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
push 4
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x42e072
nop
nop
nop
mov ebx, 0x407ef8
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
push eax
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0xe7a71e3
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x42e060
mov eax, section..data
nop
nop
cmp eax, 0
nop
nop
je 0x42e0d2
nop
nop
nop
nop
nop
mov ebx, 0x42cd70
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x54b91d4e
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x42e0c0
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x42e001
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
call 0x42e00c
nop
nop
nop
nop
pop eax
nop
nop
add eax, 0x403ac5
nop
sub eax, 0x403a6b
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
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x42e030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x42e01e
nop
nop
nop
popal
nop
nop
nop
nop
jmp loc.00401219
Function at 0x401112
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
sub esp, 0x230
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x22c], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x240]
mov ebx, edx
xor ebp, ebp
mov dword [esp + 0x34], ecx
push edi
mov dword [esp + 0x2c], ebx
mov ecx, ebp
mov eax, ecx
mov byte [esp + ecx + 0x3c], cl
cdq
idiv dword [esp + 0x248]
mov al, byte [edx + esi]
mov byte [esp + ecx + 0x13c], al
inc ecx
cmp ecx, 0x100
jl 0x40113f
mov edi, ebp
mov esi, ebp
mov dl, byte [esp + esi + 0x3c]
movzx eax, byte [esp + esi + 0x13c]
add edi, eax
movzx ecx, dl
add edi, ecx
and edi, 0x800000ff
jns 0x401187
dec edi
or edi, 0xffffff00
inc edi
mov al, byte [esp + edi + 0x3c]
mov byte [esp + esi + 0x3c], al
inc esi
mov byte [esp + edi + 0x3c], dl
cmp esi, 0x100
jl 0x401164
mov esi, ebp
mov dword [esp + 0x10], ebp
mov eax, ebp
mov dword [esp + 0x28], esi
mov dword [esp + 0x14], eax
mov edi, 0x3e8
mov dword [esp + 0x18], esi
cmp eax, esi
je 0x4011c4
mov dword [eax], ebx
add eax, 4
mov dword [esp + 0x14], eax
jmp 0x4011db
lea ecx, [esp + 0x2c]
push ecx
push eax
lea ecx, [esp + 0x18]
call fcn.004017aa
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
sub edi, 1
jne 0x4011b5
mov ebx, dword [esp + 0x10]
mov dword [esp + 0x28], esi
cmp dword [ebx + 4], ebp
jle 0x4012f0
mov edi, ebp
mov esi, edi
inc edi
and edi, 0x800000ff
jns 0x401206
dec edi
or edi, 0xffffff00
inc edi
mov cl, byte [esp + edi + 0x3c]
movzx edx, cl
add esi, edx
mov dword [esp + 0x1c], edi
and esi, 0x800000ff
jns 0x401223
dec esi
or esi, 0xffffff00
inc esi
mov al, byte [esp + esi + 0x3c]
mov byte [esp + edi + 0x3c], al
mov byte [esp + esi + 0x3c], cl
movzx eax, byte [esp + edi + 0x3c]
add eax, edx
movzx ecx, al
mov dword [esp + 0x20], ecx
test al, al
je 0x4012d7
and dword [esp + 0x10], 0
xor eax, eax
xor edi, edi
mov dword [esp + 0x14], eax
push 0xa
xor ecx, 3
mov dword [esp + 0x1c], edi
pop edx
mov dword [esp + 0x34], ecx
mov dword [esp + 0x30], ecx
mov dword [esp + 0x24], edx
cmp eax, edi
je 0x401277
mov dword [eax], ecx
add eax, 4
mov dword [esp + 0x14], eax
jmp 0x401296
lea ecx, [esp + 0x30]
push ecx
push eax
lea ecx, [esp + 0x18]
call fcn.004017aa
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x24]
sub edx, 1
mov dword [esp + 0x24], edx
jne 0x401268
push 0x40
push str.Current_val:__d_n
call fcn.00401006
pop ecx
pop ecx
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x4012cf
sub edi, ecx
and edi, 0xfffffffc
mov edx, edi
call fcn.0040177e
xor eax, eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov edi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov al, byte [esp + ecx + 0x3c]
mov ecx, dword [esp + 0x38]
xor byte [ecx + ebp], al
inc ebp
cmp ebp, dword [ebx + 4]
jl 0x4011f5
mov esi, dword [esp + 0x28]
sub esi, ebx
mov ecx, ebx
and esi, 0xfffffffc
mov edx, esi
call fcn.0040177e
mov ecx, dword [esp + 0x23c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00401a14
add esp, 0x230
ret
Function at 0x40154b
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x28], eax
push ebx
push esi
mov esi, dword [0x46f190]
xor ebx, ebx
push edi
mov dword [esp + 0x10], edx
mov eax, dword [esi + 0x3c]
mov eax, dword [eax + esi + 0x78]
add eax, esi
mov dword [esp + 0x18], eax
mov edi, dword [eax + 0x20]
mov eax, dword [eax + 0x18]
add edi, esi
mov dword [esp + 0x14], eax
test eax, eax
je 0x4015bb
mov eax, dword [edi]
lea ecx, [esp + 0x1c]
add eax, esi
push eax
call fcn.004016dc
lea ecx, [esp + 0x1c]
call fcn.00401317
cmp eax, dword [esp + 0x10]
je 0x4015d2
lea ecx, [esp + 0x1c]
add edi, 4
call fcn.004016b9
inc ebx
cmp ebx, dword [esp + 0x14]
jb 0x40158b
xor edi, edi
mov ecx, dword [esp + 0x34]
lea eax, [esi + edi]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00401a14
mov esp, ebp
pop ebp
ret
mov edx, dword [esp + 0x18]
mov eax, dword [edx + 0x24]
lea eax, [eax + ebx*2]
movzx ecx, word [eax + esi]
mov eax, dword [edx + 0x1c]
lea eax, [eax + ecx*4]
mov edi, dword [eax + esi]
lea ecx, [esp + 0x1c]
call fcn.004016b9
jmp 0x4015bd

Function at 0x401659
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ecx
push esi
push edi
mov edi, dword fs:[0x30]
mov edi, dword [edi + 0xc]
mov esi, dword [edi + 0xc]
mov eax, dword [esi]
mov eax, dword [eax]
mov eax, dword [eax + 0x18]
mov dword [0x46f190], eax
push 0x27
mov esi, 0x46e130
mov edx, 0x547
push 0x41b900
mov ecx, esi
call fcn.00401112
pop ecx
pop ecx
mov edx, 0x8aafdc01
call fcn.0040154b
lea ecx, [esp + 8]
push ecx
push 0x40
push 0x4e4
push esi
call eax
pop edi
pop esi
test eax, eax
je 0x4016b3
call fcn.004015f4
xor eax, eax
pop ecx
ret 0x10

Function at 0x4022c3
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x402302
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x402302
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x402302
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x402302
cmp dword [ecx + 0x74], 0xe
jbe 0x402302
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x4082d4
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4155a8
push 0x4155a0
push str.FlsAlloc
push 0x1e
call fcn.004081f2
mov esi, eax
add esp, 0x10
test esi, esi
je 0x408308
push dword [ebp + 8]
mov ecx, esi
call dword [0x414108]
call esi
jmp 0x40830e
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x408352
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4155b8
push 0x4155b0
push str.FlsGetValue
push 0x20
call fcn.004081f2
mov esi, eax
add esp, 0x10
test esi, esi
je 0x408389
push dword [ebp + 8]
mov ecx, esi
call dword [0x414108]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x40b945
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x40b9e2
push ebx
push esi
call fcn.0040b90e
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0040b857
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x40b98f
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40b9e1
push edi
push eax
call fcn.00408a87
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x40b9af
call fcn.0040809f
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40b9e0
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0040b857
add esp, 0x20
test eax, eax
jne 0x40b9ce
push edi
call fcn.0040809f
jmp 0x40b9d6
push ebx
call fcn.0040809f
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret
Function at 0x412f00
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x412f2d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x412f2d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x401330
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 1
call sub.ucrtbase.dll__configure_narrow_argv
call sub.ucrtbase.dll__initialize_narrow_environment
call sub.ucrtbase.dll___p___argc
mov ebx, dword [eax]
call sub.ucrtbase.dll___p___argv
mov esi, dword [eax]
call sub.ucrtbase.dll__get_initial_narrow_environment
mov edi, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov edx, dword [eax + 8]
mov eax, dword [edx + 0x3c]
cmp word [edx + eax + 0x5c], 2
sete dl
movzx edx, dl
add edx, 1
mov dword [esp], edx
call sub.ucrtbase.dll__set_app_type
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call fcn.00401d30
mov dword [esp], eax
call 0x4013a0
nop
nop
nop
jmp dword [sym.imp.ucrtbase.dll_exit]

Function at 0x10001ee2
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x10007060
cmp edx, dword [eax]
je 0x10001f04
add eax, 8
inc ecx
cmp eax, 0x100070f0
jl 0x10001ef5
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x10007060]
jne 0x10002032
mov eax, dword [0x10009a44]
cmp eax, 1
je 0x1000200c
test eax, eax
jne 0x10001f35
cmp dword [0x10009a48], 1
je 0x1000200c
cmp edx, 0xfc
je 0x10002032
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x10001f6c
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.100024a0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.10002590
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x10001faf
lea eax, [ebp - 0x1a4]
push eax
call fcn.10002590
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x100063f4
push edi
call fcn.10004020
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.100024a0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.100024b0
lea eax, [ebp - 0xa0]
push 0x100063d4
push eax
call fcn.100024b0
push dword [esi + 0x10007064]
lea eax, [ebp - 0xa0]
push eax
call fcn.100024b0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.10003f94
add esp, 0x2c
pop edi
jmp 0x10002032
lea eax, [ebp + 8]
lea esi, [esi + 0x10007064]
push 0
push eax
push dword [esi]
call fcn.10002590
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 0x401ed0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
mov bh, byte [ebp + 0xc]
xor ah, ah
push esi
push edi
xor esi, esi
nop dword [eax]
test bh, 1
je 0x401f0d
mov al, byte [ebp + 8]
test esi, esi
je 0x401f0b
mov edi, esi
nop
mov bl, al
add bl, bl
mov cl, bl
xor cl, 0x1b
test al, al
movzx edx, cl
movzx ecx, bl
cmovns edx, ecx
mov al, dl
sub edi, 1
jne 0x401ef0
xor ah, al
inc esi
shr bh, 1
cmp esi, 8
jl 0x401ee0
pop edi
pop esi
mov al, ah
pop ebx
pop ebp
ret 8
Function at 0x402200
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0x14]
sub esp, 0xc
xor ecx, ecx
test edx, edx
je 0x402306
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x10]
cmp edx, 0x40
jb 0x4022e8
lea eax, [edx - 1]
add eax, ebx
cmp edi, eax
ja 0x40223e
lea eax, [edx - 1]
add eax, edi
cmp eax, ebx
jae 0x4022e8
lea eax, [edx - 1]
add eax, esi
cmp edi, eax
ja 0x402254
lea eax, [edx - 1]
add eax, edi
cmp eax, esi
jae 0x4022e8
mov eax, edx
mov edx, esi
sub edx, ebx
and eax, 0xffffffc0
mov dword [ebp + 8], edx
mov edx, edi
sub edx, ebx
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], edx
lea eax, [ebx + 0x10]
mov ebx, dword [ebp + 8]
mov edx, esi
sub edx, edi
mov dword [ebp - 8], edx
lea edx, [edi + 0x20]
nop word [eax + eax]
movups xmm0, xmmword [eax - 0x10]
mov edi, dword [ebp - 4]
lea eax, [eax + 0x40]
movups xmm1, xmmword [ecx + esi]
lea edx, [edx + 0x40]
pxor xmm1, xmm0
movups xmm0, xmmword [eax - 0x40]
movups xmmword [edx - 0x60], xmm1
movups xmm1, xmmword [ebx + eax - 0x40]
pxor xmm1, xmm0
movups xmm0, xmmword [eax - 0x30]
movups xmmword [edi + eax - 0x40], xmm1
mov edi, dword [ebp - 8]
movups xmm1, xmmword [edi + edx - 0x40]
mov edi, dword [ebp + 0x10]
pxor xmm1, xmm0
movups xmm0, xmmword [eax - 0x20]
movups xmmword [edx - 0x40], xmm1
movups xmm1, xmmword [ecx + esi + 0x30]
add ecx, 0x40
pxor xmm1, xmm0
movups xmmword [edx - 0x30], xmm1
cmp ecx, dword [ebp - 0xc]
jb 0x402280
mov edx, dword [ebp + 0x14]
mov ebx, dword [ebp + 0xc]
mov dword [ebp + 0x10], ecx
cmp ecx, edx
jae 0x402303
sub esi, ebx
lea eax, [ecx + ebx]
sub edi, ebx
sub edx, ecx
mov cl, byte [eax + esi]
lea eax, [eax + 1]
xor cl, byte [eax - 1]
mov byte [eax + edi - 1], cl
sub edx, 1
jne 0x4022f1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x402310
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0xdc71de
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0xe3c018]
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 edi, dword [ebp + 8]
lea eax, [ebp - 0x54]
push 0x41
push 0
mov dword [ebp - 0x6c], edi
push eax
mov dword [ebp - 0x68], 0
call fcn.00d9ac00
add esp, 0xc
xor ecx, ecx
nop word [eax + eax]
mov al, cl
add al, 0x41
mov byte [ebp + ecx - 0x54], al
inc ecx
cmp ecx, 0x1a
jl 0x402360
xor ecx, ecx
mov al, cl
add al, 0x61
mov byte [ebp + ecx - 0x3a], al
inc ecx
cmp ecx, 0x1a
jl 0x402370
xor ecx, ecx
mov al, cl
add al, 0x30
mov byte [ebp + ecx - 0x20], al
inc ecx
cmp ecx, 0xa
jl 0x402380
mov dword [edi], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0xf
mov word [ebp - 0x16], 0x2f2b
mov byte [edi], 0
mov ebx, dword [ebp + 0x10]
xor esi, esi
mov dword [ebp - 4], 0
mov dword [ebp - 0x68], 1
test ebx, ebx
je 0x402504
mov ecx, dword [ebp + 0xc]
nop dword [eax]
mov al, byte [ecx]
dec ebx
mov byte [ebp + esi - 0x58], al
inc ecx
mov ah, byte [ebp - 0x56]
inc esi
mov dl, byte [ebp - 0x57]
mov dh, byte [ebp - 0x58]
mov dword [ebp + 0xc], ecx
mov byte [ebp - 0x5f], ah
mov byte [ebp - 0x5d], dl
mov byte [ebp - 0x5e], dh
cmp esi, 3
jne 0x402453
mov al, dh
mov cl, dh
shr al, 2
and cl, 3
mov byte [ebp - 0x5c], al
mov al, dl
shl cl, 4
shr al, 4
add cl, al
mov al, ah
mov byte [ebp - 0x5b], cl
and ah, 0x3f
mov cl, dl
shr al, 6
and cl, 0xf
mov byte [ebp - 0x59], ah
shl cl, 2
add cl, al
xor esi, esi
mov byte [ebp - 0x5a], cl
nop word [eax + eax]
movzx eax, byte [ebp + esi - 0x5c]
mov ecx, edi
movzx eax, byte [ebp + eax - 0x54]
push eax
call fcn.00404b10
inc esi
cmp esi, 4
jl 0x402430
mov ecx, dword [ebp + 0xc]
xor esi, esi
mov dl, byte [ebp - 0x5d]
mov dh, byte [ebp - 0x5e]
test ebx, ebx
jne 0x4023d0
mov dword [ebp - 0x64], esi
test esi, esi
je 0x402504
mov eax, esi
cmp esi, 3
jge 0x40248c
cmp eax, 3
jae 0x402524
mov byte [ebp + eax - 0x58], 0
inc eax
cmp eax, 3
jl 0x402470
mov cl, byte [ebp - 0x56]
mov dl, byte [ebp - 0x57]
mov dh, byte [ebp - 0x58]
jmp 0x40248f
mov cl, byte [ebp - 0x5f]
mov al, dh
xor ebx, ebx
shr al, 2
and dh, 3
mov byte [ebp - 0x5c], al
mov al, dl
shr al, 4
and dl, 0xf
shl dh, 4
add dh, al
shl dl, 2
mov al, cl
mov byte [ebp - 0x5b], dh
shr al, 6
and cl, 0x3f
add dl, al
mov byte [ebp - 0x59], cl
lea eax, [esi + 1]
mov byte [ebp - 0x5a], dl
mov dword [ebp - 0x58], eax
test eax, eax
jle 0x4024ea
mov esi, eax
nop dword [eax + eax]
movzx eax, byte [ebp + ebx - 0x5c]
mov ecx, edi
movzx eax, byte [ebp + eax - 0x54]
push eax
call fcn.00404b10
inc ebx
cmp ebx, esi
jl 0x4024d0
mov esi, dword [ebp - 0x64]
cmp esi, 3
jge 0x402504
mov ebx, 3
sub ebx, esi
push 0x3d
mov ecx, edi
call fcn.00404b10
sub ebx, 1
jne 0x4024f6
mov eax, edi
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.00d491ba
mov esp, ebp
pop ebp
ret 0xc
call fcn.00d492ef
int3
Function at 0x47cf50
Capabilities:
Hash data with md5

Disassembly:
mov dword [ecx + 0x14], 0
mov eax, ecx
mov dword [ecx + 0x10], 0
mov dword [ecx], 0x67452301
mov dword [ecx + 4], 0xefcdab89
mov dword [ecx + 8], 0x98badcfe
mov dword [ecx + 0xc], 0x10325476
ret
Function at 0x4af3e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, ecx
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 8], edx
mov esi, edx
lea eax, [ecx - 1]
mov dword [ebp - 0x14], ecx
mov edi, eax
mov dword [ebp - 0xc], edx
sar edi, 1
mov dword [ebp - 4], eax
mov dword [ebp - 0x18], edi
cmp edx, edi
jge 0x4af44d
add esi, esi
lea eax, [esi + 2]
lea eax, [eax + eax*2]
lea ecx, [ebx + eax*8]
lea eax, [ecx - 0x18]
push eax
push ecx
call fcn.004af340
movzx eax, al
xor eax, 1
inc eax
add esi, eax
lea eax, [esi + esi*2]
lea eax, [ebx + eax*8]
push eax
mov eax, dword [ebp - 8]
lea eax, [eax + eax*2]
lea ecx, [ebx + eax*8]
call fcn.00472f00
mov dword [ebp - 8], esi
cmp esi, edi
jl 0x4af410
mov ecx, dword [ebp - 0x14]
mov edi, esi
cmp esi, dword [ebp - 0x18]
jne 0x4af46f
test cl, 1
jne 0x4af46f
dec ecx
lea eax, [ecx + ecx*2]
lea eax, [ebx + eax*8]
push eax
lea eax, [esi + esi*2]
lea ecx, [ebx + eax*8]
call fcn.00472f00
mov edi, dword [ebp - 4]
cmp dword [ebp - 0xc], edi
jge 0x4af4a4
push dword [ebp - 0x10]
lea esi, [edi - 1]
sar esi, 1
lea eax, [esi + esi*2]
lea eax, [ebx + eax*8]
push eax
mov dword [ebp - 4], eax
call fcn.004af340
test al, al
je 0x4af4a4
push dword [ebp - 4]
lea eax, [edi + edi*2]
lea ecx, [ebx + eax*8]
call fcn.00472f00
mov edi, esi
cmp dword [ebp - 0xc], esi
jl 0x4af474
push dword [ebp - 0x10]
lea eax, [edi + edi*2]
lea ecx, [ebx + eax*8]
call fcn.00472f00
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4b2440
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0xe3c018]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
mov ecx, dword [ebp + 8]
mov eax, dword [esi + 8]
test eax, eax
je 0x4b24b4
push 0
lea edx, [ebp - 8]
mov dword [ebp - 8], 0
push edx
push dword [ebp + 0xc]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4b24af
lea ecx, [ebp - 0xc]
call fcn.004c1790
mov ecx, dword [esi + 0x18]
mov edx, dword [eax]
mov dword [esi + 0x18], edx
mov dword [eax], ecx
mov ecx, dword [ebp - 0xc]
add ecx, 0xfffffff8
cmp ecx, 0xe3ce50
je 0x4b24af
or eax, 0xffffffff
lock xadd dword [ecx], eax
dec eax
cmp eax, 0xffffffff
jne 0x4b24af
push ecx
call fcn.00d491c8
add esp, 4
mov eax, dword [ebp - 8]
jmp 0x4b24b6
xor eax, eax
add dword [esi + 0x10], eax
mov ecx, dword [ebp - 4]
adc dword [esi + 0x14], 0
xor ecx, ebp
pop esi
call fcn.00d491ba
mov esp, ebp
pop ebp
ret 8
Function at 0x4b72b0
Capabilities:
Create thread
Resume thread
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0xe3c018]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
xor dl, dl
push edi
lea eax, [esi + 0x139]
xchg byte [eax], dl
lea eax, [ebp - 8]
push eax
push 4
push esi
push 0x4c1b40
push dword [esi + 0x130]
push 0
call fcn.00da19b3
add esp, 0x18
lea edi, [esi + 0xc]
xchg dword [edi], eax
mov eax, dword [edi]
test eax, eax
je 0x4b7384
mov eax, dword [ebp - 8]
lea ebx, [esi + 0x10]
xchg dword [ebx], eax
mov edx, dword [edi]
push dword [ebp + 8]
mov cl, byte [esi + 0x50]
call fcn.004c1b90
add esp, 4
test al, al
mov eax, dword [esi + 0xc]
je 0x4b7364
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
lea edi, [esi + 0x74]
push edi
call fcn.00d46e4e
add esp, 4
test eax, eax
jne 0x4b7399
mov cl, 1
lea eax, [esi + 0xcc]
xchg byte [eax], cl
lea eax, [esi + 0xa4]
push eax
call fcn.00d46f9a
push edi
call fcn.00d46e73
add esp, 8
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00d491ba
mov esp, ebp
pop ebp
ret 4
test eax, eax
je 0x4b7373
mov eax, dword [edi]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
xchg dword [ebx], eax
xor eax, eax
xchg dword [edi], eax
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00d491ba
mov esp, ebp
pop ebp
ret 4
push eax
call fcn.00d473c0
int3