joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403630
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x42c2e4]
xor eax, ebp
mov dword [ebp - 8], eax
mov dword [ebp - 0x214], 0
xor eax, eax
mov word [ebp - 0x210], ax
push 0x206
push 0
lea ecx, [ebp - 0x20e]
push ecx
call fcn.00414530
add esp, 0xc
mov dword [ebp - 4], 0
cmp dword [ebp + 8], 0
je 0x40367f
cmp dword [ebp + 0xc], 0
jne 0x403689
jmp 0x40375a
cmp dword [ebp + 0x10], 0
je 0x4036de
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x218], edx
mov eax, dword [ebp - 0x218]
add eax, 2
mov dword [ebp - 0x21c], eax
mov ecx, dword [ebp - 0x218]
mov dx, word [ecx]
mov word [ebp - 0x21e], dx
add dword [ebp - 0x218], 2
cmp word [ebp - 0x21e], 0
jne 0x4036a7
mov eax, dword [ebp - 0x218]
sub eax, dword [ebp - 0x21c]
sar eax, 1
mov dword [ebp - 0x224], eax
jne 0x4036e2
jmp 0x40375a
lea ecx, [ebp - 0x210]
push ecx
push 0x104
call dword [0x424124]
mov edx, dword [ebp + 0x10]
push edx
push 0x104
lea eax, [ebp - 0x210]
push eax
call fcn.00410c67
add esp, 0xc
push 0x428230
lea ecx, [ebp - 0x210]
push ecx
lea edx, [ebp - 4]
push edx
call fcn.00410daa
add esp, 0xc
cmp dword [ebp - 4], 0
jne 0x40372e
jmp 0x40375a
mov eax, dword [ebp - 4]
push eax
push 1
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0041109d
add esp, 0x10
mov eax, dword [ebp - 4]
push eax
call fcn.00411131
add esp, 4
mov dword [ebp - 0x214], 1
mov eax, dword [ebp - 0x214]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00410a29
mov esp, ebp
pop ebp
ret
Function at 0x403770
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x42c2e4]
xor eax, ebp
mov dword [ebp - 8], eax
mov dword [ebp - 0x214], 0
xor eax, eax
mov word [ebp - 0x210], ax
push 0x206
push 0
lea ecx, [ebp - 0x20e]
push ecx
call fcn.00414530
add esp, 0xc
mov dword [ebp - 4], 0
cmp dword [ebp + 8], 0
je 0x4037bf
cmp dword [ebp + 0xc], 0
jne 0x4037c9
jmp 0x4038d6
cmp dword [ebp + 0x10], 0
je 0x40381e
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x218], edx
mov eax, dword [ebp - 0x218]
add eax, 2
mov dword [ebp - 0x21c], eax
mov ecx, dword [ebp - 0x218]
mov dx, word [ecx]
mov word [ebp - 0x21e], dx
add dword [ebp - 0x218], 2
cmp word [ebp - 0x21e], 0
jne 0x4037e7
mov eax, dword [ebp - 0x218]
sub eax, dword [ebp - 0x21c]
sar eax, 1
mov dword [ebp - 0x224], eax
jne 0x403828
jmp 0x4038d6
cmp dword [0x44e6e4], 3
jne 0x40385e
push 0x104
lea ecx, [ebp - 0x210]
push ecx
call dword [0x424120]
push 0x428238
push 0x104
lea edx, [ebp - 0x210]
push edx
call fcn.00410c67
add esp, 0xc
jmp 0x403870
lea eax, [ebp - 0x210]
push eax
push 0x104
call dword [0x424124]
mov ecx, dword [ebp + 0x10]
push ecx
push 0x104
lea edx, [ebp - 0x210]
push edx
call fcn.00410c67
add esp, 0xc
push 0x42823c
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 4]
push ecx
call fcn.00410daa
add esp, 0xc
cmp dword [ebp - 4], 0
jne 0x4038aa
jmp 0x4038d6
mov edx, dword [ebp - 4]
push edx
push 1
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0041109d
add esp, 0x10
mov edx, dword [ebp - 4]
push edx
call fcn.00411131
add esp, 4
mov dword [ebp - 0x214], 1
mov eax, dword [ebp - 0x214]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00410a29
mov esp, ebp
pop ebp
ret

Function at 0x406880
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
xor ebx, ebx
push esi
push edi
mov esi, eax
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
cmp dword [ebp + 8], ebx
je 0x406947
cmp esi, 0xa
jb 0x406947
shl eax, 2
mov dword [ebp - 0xc], eax
inc eax
push eax
call fcn.0041169b
mov ecx, dword [ebp + 0x10]
mov ebx, eax
push ebx
push esi
push dword [ebp + 8]
lea edi, [ebp - 0xc]
call fcn.00406803
add esp, 0x10
test eax, eax
je 0x40693e
push 0x42915c
push dword [ebp + 0xc]
lea eax, [ebp - 4]
push eax
call fcn.00410daa
add esp, 0xc
cmp dword [ebp - 4], 0
jne 0x4068ee
mov dword [ebp - 8], 0xfffffffe
jmp 0x40695a
push dword [ebp - 4]
push dword [ebp - 0xc]
push 1
push ebx
call fcn.0041133b
add esp, 0x10
cmp eax, dword [ebp - 0xc]
je 0x40690d
mov dword [ebp - 8], 0xfffffffe
jmp 0x40694b
mov esi, dword [0x424128]
call esi
xor edx, edx
mov ecx, 0x1f4
div ecx
mov edi, edx
call esi
xor edx, edx
mov ecx, 0x3e8
div ecx
push dword [ebp - 4]
push edi
push 1
add edx, ebx
push edx
call fcn.0041133b
add esp, 0x10
jmp 0x40694b
mov dword [ebp - 8], 0xfffffffd
jmp 0x40694b
or dword [ebp - 8], 0xffffffff
cmp dword [ebp - 4], 0
je 0x40695a
push dword [ebp - 4]
call fcn.00411131
pop ecx
test ebx, ebx
je 0x406965
push ebx
call fcn.004115be
pop ecx
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40870c
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push edi
mov edi, edx
test ecx, ecx
jne 0x408717
xor eax, eax
pop edi
ret
push esi
not eax
mov edx, 0xff
cmp edi, 8
jb 0x4087c9
mov esi, edi
shr esi, 3
push ebx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x427b08]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x427b08]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x427b08]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x427b08]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x427b08]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x427b08]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x427b08]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x427b08]
inc ecx
sub edi, 8
dec esi
jne 0x40872e
pop ebx
test edi, edi
je 0x4087e2
movzx esi, byte [ecx]
xor esi, eax
and esi, edx
shr eax, 8
xor eax, dword [esi*4 + 0x427b08]
inc ecx
dec edi
jne 0x4087cd
pop esi
not eax
pop edi
ret

Function at 0x4087e7
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
mov eax, dword [ecx]
movsx edx, dl
xor edx, eax
push esi
mov esi, 0xff
and edx, esi
mov edx, dword [edx*4 + 0x427b08]
shr eax, 8
xor edx, eax
mov eax, dword [ecx + 8]
mov dword [ecx], edx
movzx edx, dl
add edx, dword [ecx + 4]
imul edx, edx, 0x8088405
inc edx
mov dword [ecx + 4], edx
shr edx, 0x18
xor edx, eax
and edx, esi
shr eax, 8
xor eax, dword [edx*4 + 0x427b08]
pop esi
mov dword [ecx + 8], eax
ret
Function at 0x9c9525
Capabilities:
Encrypt data using aes

Disassembly:
lea esp, [esp + 4]
and eax, 0xff000000
lea ebp, [esi*4]
jmp 0x9c9192

Function at 0x9c9561
Capabilities:
Encrypt data using aes

Disassembly:
xor edx, ecx
push ecx
mov ecx, eax
jmp 0x9c95cf
jmp 0x9c953a
add ecx, 0x1c
mov dword [ecx], edx
pop ecx
lea esp, [esp + 4]
cmp ebx, 0x997bdc
call fcn.009c9544

Function at 0x9c97c5
Capabilities:
Encrypt data using aes

Disassembly:
push edi
jmp 0x9c97cc
mov edi, ebp
jmp 0x9c9c43
lea edi, [edi - 8]
mov eax, dword [edi]
pop edi
lea esp, [esp + 4]
jmp 0x98b81c
Function at 0x9c98eb
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
lea esp, [esp + 0x1c]
xor edi, dword [ebx*4 + reloc.KERNEL32.dll_HeapSize]
jmp 0x9c9922
movzx ebx, byte [esi + 5]
sub esp, 0x1c
sub esp, 0xa
pop word [esp + 0xd]
jmp 0x9c990c

Function at 0x9c9b34
Capabilities:
Encrypt data using aes

Disassembly:
lea esp, [esp + 1]
mov edi, dword [edi*4 + reloc.KERNEL32.dll_HeapSize]
and edi, ecx
push ax
call fcn.009c9b55
aaa
ret
shr edi, 0x18
sub esp, 3
add esp, 2
jmp 0x9c9b0b

Function at 0x9c9d4a
Capabilities:
Encrypt data using aes

Disassembly:
sub esp, 1
lea esp, [esp + 1]
jmp 0x9c9d76
mov edx, dword [edx*4 + reloc.KERNEL32.dll_HeapSize]
call fcn.009c9dde
fstp dword [edx + esi*8 - 0x6b]
shl byte fs:[ecx], 1
test eax, 0x1aab5839
inc ecx
retf 0x3f58

Function at 0x9c9dfb
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
lea esp, [esp + 8]
jne 0x98b852
je 0x98b87e
sub edi, dword [edi + reloc.KERNEL32.dll_HeapSize]
adc cl, byte [ebp + 0x21766f1c]
retf 0x3c33

Function at 0x9ccce9
Capabilities:
Hash data with md5

Disassembly:
lea esp, [esp + 4]
mov dword [eax + 8], 0x67452301
jmp 0x9ccd01
push word [esp + 2]
lea esp, [esp + 2]
jmp 0x9cccb9
jmp 0x9ccccf
mov dword [eax + 0x14], reloc.KERNEL32.dll_HeapSize
ret
mov dword [eax + 0xc], reloc.KERNEL32.dll_HeapSize
pushfd
lea esp, [esp + 4]
mov dword [eax + 0x10], 0x98badcfe
jmp 0x9ccceb

Function at 0x9fa366
Capabilities:
Encode data using xor

Disassembly:
push bx
mov word [esp], ax
lea esp, [esp + 2]
jmp 0x9fa304
ror al, cl
and esp, 0xfffffff8
mov eax, 0xc71f57f8
mov eax, 0x2268
jmp 0x9fa2da
call fcn.00994adc
call fcn.009fa366
push edi
sub esp, 1
lea esp, [esp + 1]
test ebx, ebx
call fcn.009fa34f
in al, dx
add dword [ebp - reloc.KERNEL32.dll_HeapSize], ecx
fucomi st(0)
xor al, byte [eax]
add byte [eax], al
dec edx
leave
pop ecx
cmp bl, cl
jge 0x9fa310
push 0xfffffffffffffff8
lahf
push 0xffffffffffffffd9
or esp, dword [edx - reloc.KERNEL32.dll_HeapSize]
and al, 4
push ebp
mov ebp, esp
cmp al, 0x52
jmp 0x9fa2f0
pushfd
lea esp, [esp + 8]
push esi
jmp 0x9fa30e

Function at 0xac5649
Capabilities:
Parse pe header

Disassembly:
call fcn.00ac5053
mov eax, dword fs:[0x30]
jmp 0xac5658
pop word [esp]
mov word [esp], di
lea esp, [esp + 2]
push edi
jmp 0xac5633
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x1c]
mov eax, dword [eax]
jmp 0xac57b1
mov eax, dword [eax + 8]
push eax
jmp 0xac504e
Function at 0x401370
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x412ba8
mov eax, dword fs:[0]
push eax
sub esp, 0x250
mov eax, dword [0x41a004]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [ebp + 8]
call fcn.00401c20
movzx eax, al
test eax, eax
je 0x4013b1
xor al, al
jmp 0x4014f2
push 0
push 0xf
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov dword [ebp - 0x25c], eax
cmp dword [ebp - 0x25c], 0xffffffff
jne 0x4013d1
xor al, al
jmp 0x4014f2
mov dword [ebp - 0x254], 0x22c
lea ecx, [ebp - 0x254]
push ecx
mov edx, dword [ebp - 0x25c]
push edx
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x4014f0
lea eax, [ebp - 0x230]
push eax
lea ecx, [ebp - 0x28]
call fcn.00401da0
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 8]
call fcn.00401c70
push eax
lea ecx, [ebp - 0x28]
call fcn.00401c70
push eax
call fcn.0040621d
add esp, 8
test eax, eax
jne 0x401464
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x24c]
mov dword [ecx], edx
mov eax, dword [ebp - 0x25c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 0x255], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00401cd0
mov al, byte [ebp - 0x255]
jmp 0x4014f2
lea ecx, [ebp - 0x254]
push ecx
mov edx, dword [ebp - 0x25c]
push edx
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
je 0x4014e1
lea eax, [ebp - 0x230]
push eax
lea ecx, [ebp - 0x28]
call fcn.00401cb0
mov ecx, dword [ebp + 8]
call fcn.00401c70
push eax
lea ecx, [ebp - 0x28]
call fcn.00401c70
push eax
call fcn.0040621d
add esp, 8
test eax, eax
jne 0x4014df
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x24c]
mov dword [ecx], edx
mov eax, dword [ebp - 0x25c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 0x256], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00401cd0
mov al, byte [ebp - 0x256]
jmp 0x4014f2
jmp 0x401464
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00401cd0
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040301b
mov esp, ebp
pop ebp
ret
Function at 0x405c5f
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
push esi
push str.FlsAlloc
push 0x41332c
push str.FlsAlloc
push 0
call fcn.00405bdf
mov esi, eax
add esp, 0x10
test esi, esi
je 0x405c91
push dword [ebp + 8]
mov ecx, esi
call fcn.00403a16
call esi
pop esi
pop ebp
ret
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsAlloc]

Function at 0x405cd3
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
push str.FlsGetValue
push 0x413350
push str.FlsGetValue
push 2
call fcn.00405bdf
add esp, 0x10
mov esi, eax
push dword [ebp + 8]
test esi, esi
je 0x405d04
mov ecx, esi
call fcn.00403a16
call esi
jmp 0x405d0a
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
pop esi
pop ebp
ret

Function at 0x405d0d
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
push str.FlsSetValue
push 0x413364
push str.FlsSetValue
push 3
call fcn.00405bdf
add esp, 0x10
mov esi, eax
push dword [ebp + 0xc]
push dword [ebp + 8]
test esi, esi
je 0x405d41
mov ecx, esi
call fcn.00403a16
call esi
jmp 0x405d47
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop esi
pop ebp
ret
Function at 0x409c25
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
and eax, 0x3f
mov edx, dword [ebp + 0xc]
push ebx
sar ecx, 6
push esi
push edi
imul edi, eax, 0x30
mov eax, dword [ecx*4 + 0x41af38]
mov dword [ebp - 0xc], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x409c66
cmp byte [edx], 0xa
jne 0x409c66
or byte [eax + edi + 0x28], 4
jmp 0x409c6b
and byte [eax + edi + 0x28], 0xfb
lea eax, [edx + ecx]
mov ebx, edx
mov dword [ebp - 8], eax
mov esi, edx
cmp edx, eax
jae 0x409d5c
mov al, byte [ebx]
cmp al, 0x1a
je 0x409d3d
cmp al, 0xd
je 0x409c94
mov byte [esi], al
inc esi
inc ebx
jmp 0x409d32
lea eax, [ebx + 1]
cmp eax, dword [ebp - 8]
jae 0x409cb4
cmp byte [eax], 0xa
jne 0x409ca9
push 2
mov byte [esi], 0xa
pop eax
jmp 0x409caf
xor eax, eax
mov byte [esi], 0xd
inc eax
add ebx, eax
inc esi
jmp 0x409d32
push 0
mov ebx, eax
lea eax, [ebp - 0x14]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x409d2b
cmp dword [ebp - 0x14], 0
je 0x409d2b
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x41af38]
test byte [eax + edi + 0x28], 0x48
je 0x409d02
mov dl, byte [ebp - 1]
cmp dl, 0xa
jne 0x409cf2
mov byte [esi], dl
jmp 0x409d2e
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x41af38]
mov byte [eax + edi + 0x2a], dl
jmp 0x409d2e
cmp byte [ebp - 1], 0xa
jne 0x409d14
mov edx, dword [ebp + 0xc]
cmp esi, edx
jne 0x409d14
mov byte [esi], 0xa
jmp 0x409cb1
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0040974f
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x409d2f
mov byte [esi], 0xd
inc esi
mov edx, dword [ebp + 0xc]
cmp ebx, dword [ebp - 8]
jb 0x409c7d
jmp 0x409d5c
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x41af38]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x409d57
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x409d5c
mov cl, byte [ebx]
mov byte [esi], cl
inc esi
sub esi, edx
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x409d67
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
and eax, 0x3f
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
sar ecx, 6
imul edi, eax, 0x30
mov dword [ebp - 8], ecx
push 0xa
mov eax, dword [ecx*4 + 0x41af38]
pop ebx
mov edx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], edx
mov edx, dword [ebp + 0xc]
test esi, esi
je 0x409dab
cmp word [edx], bx
jne 0x409dab
or byte [edi + eax + 0x28], 4
jmp 0x409db0
and byte [edi + eax + 0x28], 0xfb
lea eax, [edx + esi*2]
mov ebx, edx
mov dword [ebp - 0xc], eax
mov esi, edx
cmp edx, eax
jae 0x409f04
mov dword [ebp - 0x10], 0xd
movzx eax, word [ebx]
cmp eax, 0x1a
je 0x409ee4
cmp ax, word [ebp - 0x10]
je 0x409de9
mov word [esi], ax
add esi, 2
add ebx, 2
jmp 0x409ed9
lea eax, [ebx + 2]
cmp eax, dword [ebp - 0xc]
jae 0x409e0f
push 0xa
pop ecx
cmp word [eax], cx
jne 0x409dff
push ecx
pop eax
push 4
jmp 0x409e04
push 0xd
pop eax
push 2
mov word [esi], ax
pop eax
add ebx, eax
jmp 0x409ed3
push 0
mov ebx, eax
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x409eca
cmp dword [ebp - 0x18], 0
je 0x409eca
mov ecx, dword [ebp - 8]
push 0xa
mov eax, dword [ecx*4 + 0x41af38]
test byte [edi + eax + 0x28], 0x48
pop eax
je 0x409e96
mov dx, word [ebp - 4]
cmp dx, ax
jne 0x409e5a
mov word [esi], ax
jmp 0x409e8e
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ecx*4 + 0x41af38]
mov word [ebp - 0x20], dx
push 0xa
mov byte [edi + eax + 0x2a], dl
mov ecx, dword [ecx*4 + 0x41af38]
mov al, byte [ebp - 0x1f]
pop edx
mov byte [edi + ecx + 0x2b], al
mov ecx, dword [ebp - 8]
mov eax, dword [ecx*4 + 0x41af38]
mov byte [edi + eax + 0x2c], dl
mov edx, dword [ebp + 0xc]
add esi, 2
jmp 0x409ed9
cmp word [ebp - 4], ax
jne 0x409eab
mov edx, dword [ebp + 0xc]
cmp esi, edx
jne 0x409eab
mov word [esi], ax
add esi, 2
jmp 0x409ed9
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0040974f
mov edx, dword [ebp + 0xc]
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x409ed6
jmp 0x409ecd
mov edx, dword [ebp + 0xc]
push 0xd
pop eax
mov word [esi], ax
add esi, 2
mov ecx, dword [ebp - 8]
cmp ebx, dword [ebp - 0xc]
jb 0x409dc9
jmp 0x409f04
mov ecx, dword [ecx*4 + 0x41af38]
mov al, byte [edi + ecx + 0x28]
test al, 0x40
jne 0x409efb
or al, 2
mov byte [edi + ecx + 0x28], al
jmp 0x409f04
mov cx, word [ebx]
mov word [esi], cx
add esi, 2
sub esi, edx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40a8f9
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0040a776

Function at 0x40bae1
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0040b783

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 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 0x405317
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
push edi
mov edi, dword [ebp + 0xc]
test eax, eax
jg 0x405338
jl 0x40532f
test edi, edi
jne 0x405338
xor eax, eax
xor edx, edx
jmp 0x4053f9
cmp dword [ebx + 0x38], 0
je 0x40534d
push eax
push edi
push dword [ebp + 8]
call fcn.004053ff
jmp 0x4053f9
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x405394
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x405394
cmp eax, edi
jb 0x40536e
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.00407130
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, dword [ebp + 8]
sub esi, ecx
add eax, ecx
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x2c]
sub dword [eax], ecx
mov eax, dword [ebx + 0x1c]
add dword [eax], ecx
jmp 0x40539a
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x4053ee
mov ecx, ebx
call fcn.00404b67
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x4053d9
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.0040effc
mov ecx, dword [ebp - 4]
sub esi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp - 4], ecx
mov edx, esi
cmp eax, 0xfff
jne 0x4053ee
jmp 0x4053ac
test edx, edx
je 0x4053ee
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.0040effc
add esp, 0x10
sub esi, eax
mov edx, dword [ebp + 0x10]
sub edi, esi
mov eax, edi
sbb edx, 0
pop esi
pop edi
pop ebx
leave
ret 0xc

Function at 0x406d14
Capabilities:
Parse pe header

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

Function at 0x414377
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x428b4c
push 0x428b44
push str.FlsAlloc
push 0x1e
call fcn.004141a4
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4143ab
push dword [ebp + 8]
mov ecx, esi
call dword [0x425164]
call esi
jmp 0x4143b1
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4143f5
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x428b5c
push 0x428b54
push str.FlsGetValue
push 0x20
call fcn.004141a4
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41442c
push dword [ebp + 8]
mov ecx, esi
call dword [0x425164]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x417e94
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00417d05

Function at 0x41828e
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00407080
mov eax, dword [0x430040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.00415fa2
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x4182d0
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x41842c
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00422960
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x4758b0]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00419288
mov ecx, dword [esi*4 + 0x4758b0]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x418425
cmp eax, dword [edi + ecx + 0x24]
jne 0x418425
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x418425
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00419288
add esp, 0x14
test edx, edx
jl 0x418425
jg 0x41839b
test eax, eax
jb 0x418425
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x418425
jl 0x4183b5
cmp dword [ebp - 0x1008], eax
ja 0x418425
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x4183d3
test ebx, ebx
je 0x41840c
cmp ecx, edi
jae 0x41840c
mov al, byte [ecx]
cmp al, 0xd
jne 0x4183ed
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4183f9
cmp byte [ecx + 1], 0xa
jne 0x4183f9
inc ecx
jmp 0x4183f9
movzx eax, al
movsx eax, byte [eax + 0x430310]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x4183d3
cmp edx, ebx
jne 0x4183d3
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x41842a
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00406520
leave
ret