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

Disassembly:
push ecx
push esi
push edi
mov edi, ecx
mov eax, dword [edi]
cmp eax, 0xffffffff
je 0x404678
push 0
lea ecx, [esp + 0xc]
push ecx
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x404678
push dword [edi]
mov esi, dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop edi
pop esi
pop ecx
ret
push dword [edi]
xor esi, esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
pop ecx
ret

Function at 0x404690
Capabilities:
Write file on windows

Disassembly:
sub esp, 0xc
mov eax, dword [esp + 0x14]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x1c]
push edi
mov dword [esp + 0x14], ecx
lea ebx, [esi + eax*8]
cmp esi, ebx
je 0x4046dc
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ecx]
mov edi, dword [esi + 4]
cmp eax, 0xffffffff
je 0x4046f8
push 0
lea ecx, [esp + 0x1c]
push ecx
push edi
push dword [esi]
push eax
call ebp
mov ecx, dword [esp + 0x14]
test eax, eax
je 0x4046f8
cmp edi, dword [esp + 0x18]
jne 0x4046f8
add esi, 8
cmp esi, ebx
jne 0x4046b0
mov bl, 1
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x4046fc
test bl, bl
je 0x4046fc
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
xor bl, bl
jmp 0x4046de
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0xc
ret

Function at 0x404710
Capabilities:
Get file size

Disassembly:
sub esp, 0x18
push ebx
push ebp
push esi
push edi
push 0
push 0x8000000
push 3
push 0
push 1
push DirectSoundCreate
push edx
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [esp + 0x18], edi
cmp edi, 0xffffffff
je 0x4047dc
lea eax, [esp + 0x20]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x4047d5
cmp dword [esp + 0x24], 0
jg 0x4047d5
mov ebp, dword [esp + 0x20]
jl 0x404768
cmp ebp, dword [esp + 0x2c]
ja 0x4047d5
push 0x441318
push ebp
call fcn.0042e9a8
mov ecx, eax
add esp, 8
mov ebx, ecx
mov dword [esp + 0x14], ecx
neg ebx
sbb ebx, ebx
and ebx, ebp
test ecx, ecx
je 0x4047d5
sub esp, 8
mov eax, esp
mov dword [eax], ecx
lea ecx, [esp + 0x20]
mov dword [eax + 4], ebp
call fcn.00404640
add esp, 8
cmp eax, ebp
mov eax, dword [esp + 0x14]
je 0x4047c6
mov dword [esi], 0
push eax
mov dword [esi + 4], 0
call fcn.0042e697
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
mov dword [esi], eax
mov eax, esi
mov dword [esi + 4], ebx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov dword [esi], 0
mov eax, esi
mov dword [esi + 4], 0
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
Function at 0x404960
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x88c
mov eax, dword [0x44b00c]
xor eax, esp
mov dword [esp + 0x888], eax
push ebx
mov ebx, edx
mov eax, ecx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], eax
push esi
push edi
test ebx, ebx
je 0x404bbb
test eax, eax
je 0x404bbb
mov dword [esp + 0x14], 0
lea ecx, [esp + 0x14]
mov eax, dword [ebx]
push ecx
push ebx
call dword [eax + 0x50]
test eax, eax
jne 0x404a44
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x404a44
mov eax, dword [ecx]
lea edx, [esp + 0x90]
push edx
push 0x100
push 0
push 0
push ecx
call dword [eax + 0x10]
test eax, eax
jne 0x404a44
jmp 0x4049e0
movzx ecx, byte [esp + eax + 0x92]
mov byte [esp + 0x10], cl
movzx ecx, byte [esp + eax + 0x91]
mov byte [esp + 0x11], cl
movzx ecx, byte [esp + eax + 0x90]
mov byte [esp + 0x12], cl
movzx ecx, byte [esp + eax + 0x93]
mov byte [esp + 0x13], cl
mov ecx, dword [esp + 0x10]
mov dword [esp + eax + 0x490], ecx
add eax, 4
cmp eax, 0x400
jb 0x4049e0
mov eax, dword [esp + 0x14]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
lea esi, [esp + 0x490]
mov dword [esp + 0x14], 0x100
mov dword [esp + 0x10], esi
jmp 0x404a54
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
mov eax, dword [ebx]
lea ecx, [esp + 0x20]
push 0
push 1
push ecx
push 0
push ebx
mov dword [esp + 0x34], 0x6c
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], 0
mov dword [esp + 0x5c], 0
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], 0
mov dword [esp + 0x68], 0
mov dword [esp + 0x6c], 0
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0
mov dword [esp + 0x88], 0
mov dword [esp + 0x8c], 0
mov dword [esp + 0x90], 0
mov dword [esp + 0x94], 0
mov dword [esp + 0x98], 0
mov dword [esp + 0x9c], 0
call dword [eax + 0x64]
test eax, eax
jne 0x404bbb
mov edi, dword [esp + 0x74]
mov esi, dword [esp + 0x30]
mov eax, esi
movzx ecx, di
shr ecx, 3
cdq
idiv ecx
imul esi, dword [esp + 0x28]
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x18]
neg edx
push esi
push dword [esp + 0x48]
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push edx
push eax
push edi
call fcn.00403570
mov bl, al
add esp, 0x1c
mov eax, dword [esp + 0x1c]
push 0
mov ecx, dword [eax]
push eax
call dword [ecx + 0x80]
mov al, bl
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x888]
xor ecx, esp
call fcn.0042e689
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x894]
xor al, al
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0042e689
mov esp, ebp
pop ebp
ret
Function at 0x40ef50
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x10
push ebx
mov bl, cl
test bl, bl
je 0x40f03f
mov eax, dword [0x44b9f4]
xor edx, edx
test eax, eax
jle 0x40efb0
mov bh, bl
mov al, bl
add bh, bh
shl al, 2
mov byte [esp + 7], bh
xor ecx, ecx
mov byte [esp + 6], al
lea esp, [esp]
mov eax, dword [0x44b9f0]
lea ecx, [ecx + 0x18]
inc edx
add byte [eax + ecx - 4], bh
mov eax, dword [0x44b9f0]
mov bh, byte [esp + 6]
add byte [eax + ecx - 3], bl
mov eax, dword [0x44b9f0]
add byte [eax + ecx - 2], bh
mov eax, dword [0x44b9f4]
mov bh, byte [esp + 7]
cmp edx, eax
jl 0x40ef80
push ebp
xor ebp, ebp
test eax, eax
jle 0x40f03e
mov ecx, dword [0x44b9f0]
push esi
push edi
xor edi, edi
xor ebx, ebx
lea esi, [edi + ecx]
cmp dword [esi + 0xc], ebx
jle 0x40f034
nop
mov eax, dword [esi + 8]
mov dl, byte [esi + 0x14]
mov dword [esp + 0x1c], 0
lea ecx, [eax + ebx*8]
mov eax, dword [ecx]
mov dword [esp + 0x14], eax
mov eax, dword [ecx + 4]
lea ecx, [esp + 0x14]
mov dword [esp + 0x18], eax
movzx eax, byte [esi + 0x16]
push eax
movzx eax, byte [esi + 0x15]
push eax
call fcn.0040f200
mov ecx, dword [esi + 0x10]
add esp, 8
mov eax, dword [esp + 0x14]
mov dword [ecx + ebx*8], eax
mov eax, dword [0x44b9f0]
mov ecx, dword [edi + eax + 0x10]
mov eax, dword [esp + 0x18]
mov dword [ecx + ebx*8 + 4], eax
inc ebx
mov ecx, dword [0x44b9f0]
cmp ebx, dword [edi + ecx + 0xc]
lea esi, [edi + ecx]
jl 0x40efd0
mov eax, dword [0x44b9f4]
inc ebp
add edi, 0x18
cmp ebp, eax
jl 0x40efc5
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x4149f0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov cl, byte [0x49a1bd]
sub esp, 0x1c
test cl, cl
je 0x414bb8
push ebx
mov bl, byte [0x49a1c8]
xor edx, edx
movsx ax, bl
movzx ecx, cl
mov dword [esp + 0xc], ecx
add word [0x49a1cc], ax
mov eax, dword [0x49a1c0]
mov dword [esp + 0x10], eax
mov eax, dword [0x49a1ac]
mov dword [esp + 0x14], eax
mov eax, dword [0x49a1b0]
mov dword [esp + 0x18], eax
mov eax, 0x100
div ecx
mov bh, al
movsx eax, bl
cdq
sub eax, edx
mov byte [esp + 7], bh
sar eax, 1
cdq
xor eax, edx
sub eax, edx
mov dword [esp + 8], eax
test ecx, ecx
je 0x414bb7
push esi
push edi
mov edi, 0x49a169
mov esi, dword [edi - 9]
mov dword [esp + 0x24], esi
test esi, esi
je 0x414ba7
movzx edx, byte [edi - 1]
mov cl, byte [edi]
movzx eax, bh
imul edx, eax
mov eax, dword [0x49a1cc]
shr eax, 1
add dl, al
movzx eax, cl
movzx edx, dl
sub edx, eax
cmp edx, 0xffffff80
jge 0x414a9d
add edx, 0x100
jmp 0x414aab
cmp edx, 0x80
jle 0x414aab
sub edx, 0x100
test edx, edx
jle 0x414acf
cmp edx, 2
jle 0x414ab9
mov edx, 2
mov eax, dword [esp + 0x10]
movzx eax, al
test bl, bl
jg 0x414ac5
inc eax
cmp edx, eax
ja 0x414acb
mov edx, eax
add cl, dl
jmp 0x414af1
jns 0x414af3
cmp edx, 0xfffffffe
jge 0x414adb
mov edx, 0xfffffffe
mov eax, dword [esp + 0x10]
neg edx
movzx eax, al
test bl, bl
js 0x414ae9
inc eax
cmp edx, eax
jg 0x414aef
mov edx, eax
sub cl, dl
mov byte [edi], cl
mov al, byte [edi + 1]
test al, al
jle 0x414b10
dec al
mov byte [edi + 1], al
cmp byte [0x49a1c8], 0
jg 0x414b0c
add cl, byte [esp + 0x10]
inc cl
jmp 0x414b26
jns 0x414b28
inc al
mov byte [edi + 1], al
cmp byte [0x49a1c8], 0
jl 0x414b24
sub cl, byte [esp + 0x10]
dec cl
mov byte [edi], cl
mov ebx, dword [esp + 0x18]
movzx edx, cl
mov byte [esi + 0x7e], cl
mov eax, dword [edx*4 + 0x446bb0]
imul eax, ebx
sar eax, 8
add eax, dword [esp + 0x1c]
mov dword [esi], eax
mov eax, dword [edx*4 + 0x446ab0]
imul eax, ebx
sar eax, 8
add eax, dword [esp + 0x20]
mov dword [esi + 4], eax
cmp byte [0x49a1ca], 5
jne 0x414b9d
mov al, byte [0x49a1bd]
test al, al
je 0x414b9d
movzx esi, al
xor edx, edx
mov eax, 0x100
div esi
mov esi, dword [esp + 0x24]
mov ebx, eax
add bl, 0x40
push 0
lea edx, [ebx + ecx]
mov ecx, esi
call fcn.0041c600
mov dl, byte [esi + 0x7e]
mov ecx, esi
push 1
sub dl, bl
call fcn.0041c600
add esp, 8
mov bh, byte [esp + 0xf]
mov bl, byte [0x49a1c8]
add edi, 0xc
sub dword [esp + 0x14], 1
jne 0x414a64
pop edi
pop esi
pop ebx
add esp, 0x1c
ret
Function at 0x41a760
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x64
mov eax, dword [0x44b00c]
xor eax, esp
mov dword [esp + 0x5c], eax
push ebx
mov bl, byte [esp + 0x70]
push ebp
push esi
push edi
mov edi, ecx
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0x78]
lea eax, [ebx - 0x40]
movzx eax, al
mov ebp, dword [eax*4 + 0x446bb0]
mov esi, dword [eax*4 + 0x446ab0]
lea eax, [ebx - 0x30]
movzx ecx, al
imul ebp, edx
imul esi, edx
mov eax, dword [ecx*4 + 0x446bb0]
imul eax, edx
sar ebp, 8
sar esi, 8
add ebp, edi
add esi, dword [esp + 0x14]
sar ebp, 6
sar eax, 8
add eax, edi
sar esi, 6
sar eax, 6
mov dword [esp + 0x20], eax
mov eax, dword [ecx*4 + 0x446ab0]
imul eax, edx
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], esi
sar eax, 8
add eax, dword [esp + 0x14]
sar eax, 6
mov dword [esp + 0x24], eax
lea eax, [ebx - 0x20]
movzx ecx, al
mov eax, dword [ecx*4 + 0x446bb0]
imul eax, edx
sar eax, 8
add eax, edi
sar eax, 6
mov dword [esp + 0x28], eax
mov eax, dword [ecx*4 + 0x446ab0]
imul eax, edx
sar eax, 8
add eax, dword [esp + 0x14]
sar eax, 6
mov dword [esp + 0x2c], eax
lea eax, [ebx - 0x10]
movzx ecx, al
mov eax, dword [ecx*4 + 0x446bb0]
imul eax, edx
sar eax, 8
add eax, edi
sar eax, 6
mov dword [esp + 0x30], eax
mov eax, dword [ecx*4 + 0x446ab0]
imul eax, edx
movzx ecx, bl
sar eax, 8
add eax, dword [esp + 0x14]
sar eax, 6
mov dword [esp + 0x34], eax
mov eax, dword [ecx*4 + 0x446bb0]
imul eax, edx
sar eax, 8
add eax, edi
sar eax, 6
mov dword [esp + 0x38], eax
mov eax, dword [ecx*4 + 0x446ab0]
imul eax, edx
sar eax, 8
add eax, dword [esp + 0x14]
sar eax, 6
mov dword [esp + 0x3c], eax
lea eax, [ebx + 0x10]
movzx ecx, al
mov eax, dword [ecx*4 + 0x446bb0]
imul eax, edx
sar eax, 8
add eax, edi
mov dword [esp + 0x60], ebp
sar eax, 6
mov dword [esp + 0x40], eax
mov eax, dword [ecx*4 + 0x446ab0]
imul eax, edx
push 0xa
mov dword [esp + 0x68], esi
sar eax, 8
add eax, dword [esp + 0x18]
sar eax, 6
mov dword [esp + 0x48], eax
lea eax, [ebx + 0x20]
movzx ecx, al
mov eax, dword [ecx*4 + 0x446bb0]
imul eax, edx
sar eax, 8
add eax, edi
sar eax, 6
mov dword [esp + 0x4c], eax
mov eax, dword [ecx*4 + 0x446ab0]
imul eax, edx
sar eax, 8
add eax, dword [esp + 0x18]
sar eax, 6
mov dword [esp + 0x50], eax
lea eax, [ebx + 0x30]
movzx ecx, al
add bl, 0x40
mov eax, dword [ecx*4 + 0x446bb0]
imul eax, edx
sar eax, 8
add eax, edi
sar eax, 6
mov dword [esp + 0x54], eax
mov eax, dword [ecx*4 + 0x446ab0]
imul eax, edx
movzx ecx, bl
sar eax, 8
add eax, dword [esp + 0x18]
sar eax, 6
mov dword [esp + 0x58], eax
mov eax, dword [ecx*4 + 0x446bb0]
imul eax, edx
sar eax, 8
add eax, edi
sar eax, 6
mov dword [esp + 0x5c], eax
mov eax, dword [ecx*4 + 0x446ab0]
imul eax, edx
sar eax, 8
add eax, dword [esp + 0x18]
sar eax, 6
mov dword [esp + 0x60], eax
lea eax, [esp + 0x1c]
push eax
call dword [0x44b894]
mov ecx, dword [esp + 0x74]
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0042e689
add esp, 0x64
ret
Function at 0x41b600
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ecx
mov dx, word [0x4b1880]
xor eax, eax
push ebx
push ebp
push esi
xor ebp, ebp
push edi
cmp ax, dx
jae 0x41b73a
lea esp, [esp]
movzx eax, bp
movzx eax, word [eax*2 + 0x4b10b0]
imul ebx, eax, 0x64
add ebx, 0x4b1890
mov ecx, ebx
call fcn.0041b880
mov ecx, dword [ebx]
inc word [ebx + 0x5c]
lea eax, [ecx - 0x2000]
cmp eax, 0x5fc0
ja 0x41b65c
mov eax, dword [ebx + 4]
test eax, eax
js 0x41b65c
cmp eax, 0x77c0
jle 0x41b660
mov byte [ebx + 0x60], 0x80
cmp word [0x4ccfc8], 0
jne 0x41b729
test byte [ebx + 0x60], 0x81
jne 0x41b729
movzx eax, byte [ebx + 0x5f]
sub eax, 0
je 0x41b68a
sub eax, 1
jne 0x41b729
movzx eax, byte [ebx + 0x45]
mov edi, dword [0x4ccf88]
mov esi, dword [0x4ccf8c]
sub edi, ecx
sub esi, dword [ebx + 4]
mov edx, dword [eax*4 + 0x446ab0]
mov eax, dword [eax*4 + 0x446bb0]
mov ecx, eax
imul ecx, edi
imul eax, esi
sar ecx, 8
mov dword [esp + 0x10], ecx
mov ecx, edx
imul edx, edi
imul ecx, esi
sar eax, 8
sar edx, 8
sar ecx, 8
sub eax, edx
add dword [esp + 0x10], ecx
cdq
mov ecx, eax
mov eax, dword [esp + 0x10]
xor ecx, edx
sub ecx, edx
test eax, eax
jle 0x41b729
mov edx, dword [ebx + 0x50]
cmp eax, edx
jg 0x41b729
cmp ecx, dword [ebx + 0x48]
jg 0x41b6f5
call fcn.00423430
jmp 0x41b729
cmp eax, edx
jg 0x41b729
mov eax, dword [ebx + 0x48]
add eax, 0x300
cmp ecx, eax
jg 0x41b729
cmp byte [ebx + 0x62], 0
mov edx, dword [0x4ccf8c]
mov ecx, dword [0x4ccf88]
je 0x41b71b
push 0
jmp 0x41b721
mov byte [ebx + 0x62], 0xff
push 3
call fcn.00423610
add esp, 4
mov dx, word [0x4b1880]
inc ebp
cmp bp, dx
jb 0x41b620
xor eax, eax
xor esi, esi
cmp ax, dx
jae 0x41b7b6
lea edi, [esi + 1]
movzx ebp, dx
mov ebx, 0x4b10b0
mov edi, edi
movzx eax, word [ebx]
mov ecx, eax
imul eax, eax, 0x64
mov dword [esp + 0x10], ecx
cmp byte [eax + 0x4b18f0], 0
jge 0x41b7ac
movzx eax, di
cmp di, dx
jae 0x41b790
lea ecx, [ecx]
movzx ecx, ax
movzx ecx, word [ecx*2 + 0x4b10b0]
imul ecx, ecx, 0x64
cmp byte [ecx + 0x4b18f0], 0
jge 0x41b78f
inc eax
cmp ax, dx
jb 0x41b770
jmp 0x41b790
inc esi
movzx ecx, ax
mov ax, word [ecx*2 + 0x4b10b0]
mov word [ebx], ax
mov eax, dword [esp + 0x10]
mov word [ecx*2 + 0x4b10b0], ax
jmp 0x41b7ad
inc esi
add ebx, 2
inc edi
sub ebp, 1
jne 0x41b750
pop edi
mov word [0x4b1880], si
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x41bb70
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
mov edi, ecx
xor ebx, ebx
mov dword [esp + 0x28], edi
mov al, byte [edi + 0x45]
mov esi, dword [edi + 0x50]
movzx ecx, al
mov byte [esp + 0x17], al
movzx eax, byte [edi + 0x61]
mov dword [esp + 0x24], eax
mov edx, dword [ecx*4 + 0x446bb0]
imul edx, esi
imul esi, dword [ecx*4 + 0x446ab0]
sar edx, 8
add edx, dword [edi]
sar esi, 8
add esi, dword [edi + 4]
xor ecx, ecx
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], esi
jmp 0x41bbc0
cmp ebx, eax
je 0x41bc3d
cmp byte [ecx + 0x4c9fae], 1
jne 0x41bc3d
mov al, byte [ecx + 0x4c9fac]
mov ebp, edx
sub esi, dword [ecx + 0x4c9f58]
sub ebp, dword [ecx + 0x4c9f54]
mov byte [esp + 0x16], al
movzx eax, al
mov dword [esp + 0x20], esi
mov esi, dword [eax*4 + 0x446bb0]
mov edx, esi
mov edi, dword [eax*4 + 0x446ab0]
mov eax, edi
imul eax, dword [esp + 0x20]
imul edx, ebp
sar eax, 8
sar edx, 8
add edx, eax
test edx, edx
jle 0x41bc31
imul esi, dword [esp + 0x20]
imul edi, ebp
sar esi, 8
sar edi, 8
sub esi, edi
mov eax, esi
cdq
xor eax, edx
sub eax, edx
cmp eax, dword [ecx + 0x4c9f7c]
jle 0x41bc57
mov esi, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x24]
add ecx, 0x64
inc ebx
cmp ecx, 0x7d0
jl 0x41bbc0
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x18]
mov dword [0x4b108c], eax
mov eax, dword [esp + 0x1c]
mov dword [0x4b1090], eax
mov eax, dword [ecx + 0x20]
mov dword [0x4b1094], eax
mov al, byte [esp + 0x16]
add al, al
mov dword [0x4b10a0], 0
sub al, byte [esp + 0x17]
mov byte [0x4b10a4], al
mov eax, dword [ecx + 0x48]
mov dword [0x4b1098], eax
mov eax, dword [ecx + 0x54]
mov dword [0x4b109c], eax
movzx eax, byte [ecx + 0x5e]
mov byte [0x4b10a6], 1
mov byte [0x4b10a7], al
mov word [0x4b10a9], 0x100
mov byte [0x4b10ab], bl
call fcn.0041b390
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x1c
ret

Function at 0x41cfb0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp word [0x4ccfc8], 0
push ebp
mov ebp, ecx
jne 0x41d047
movzx eax, byte [ebp + 0x5c]
push ebx
mov ebx, dword [0x4ccf88]
sub ebx, dword [ebp + 4]
mov edx, dword [eax*4 + 0x446ab0]
mov ecx, edx
mov eax, dword [eax*4 + 0x446bb0]
push esi
mov esi, dword [0x4ccf8c]
sub esi, dword [ebp + 8]
push edi
mov edi, eax
imul edx, ebx
imul eax, esi
imul edi, ebx
imul ecx, esi
sar edx, 8
sar eax, 8
sub eax, edx
sar edi, 8
cdq
sar ecx, 8
mov ebx, eax
xor ebx, edx
add edi, ecx
sub ebx, edx
test edi, edi
jle 0x41d044
mov esi, dword [ebp + 0x2c]
add esi, 0x3c0
cmp ebx, esi
jg 0x41d036
mov edx, dword [0x4ccf8c]
mov ecx, dword [0x4ccf88]
push 1
call fcn.00423610
add esp, 4
cmp ebx, dword [ebp + 0x2c]
jg 0x41d044
pop edi
pop esi
pop ebx
pop ebp
jmp fcn.00423430
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x4288c0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 0x14
push ebx
push ebp
movzx ebp, byte [0x4d470c]
and ebp, 0x3f
shl ebp, 4
test byte [0x4d470d], 0xf0
push esi
push edi
mov dword [0x4f1c80], ebp
jne 0x4288ff
movzx eax, word [0x4f1c78]
mov ebx, 0x4f1c78
movzx edx, word [0x4f1c7c]
lea edi, [eax*2 + 0x4f1c90]
jmp 0x428919
movzx eax, word [0x4d4714]
mov ebx, 0x4d4714
movzx edx, word [0x4d4718]
lea edi, [eax*2 + 0x4f09b0]
test byte [0x4d4711], 4
movzx ecx, byte [0x4d470b]
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], ebx
jne 0x428936
mov ecx, 1
movzx eax, byte [0x4d470a]
xor esi, esi
movzx ecx, cx
imul eax, ecx
xor ecx, ecx
mov dword [esp + 0x10], esi
movzx eax, ax
mov dword [esp + 0x1c], eax
cmp cx, ax
jae 0x428b14
movzx edx, dx
mov dword [esp + 0x20], edx
movzx ecx, word [ebx]
lea eax, [ecx + 1]
cmp eax, edx
jae 0x428b14
lea eax, [ecx + 1]
mov ecx, esi
mov word [ebx], ax
movzx eax, si
movzx eax, word [edi + eax*2]
lea edi, [eax + eax*2]
mov eax, dword [0x4d4700]
shl edi, 4
add edi, 0x4d4720
mov dword [edi + 8], eax
mov dword [edi], eax
mov eax, dword [0x4d4704]
mov dword [edi + 0xc], eax
mov dword [edi + 4], eax
mov al, byte [0x4d470e]
mov byte [edi + 0x20], al
call fcn.00429b70
movzx edx, byte [0x4d470c]
movzx ecx, al
and edx, 0xc0
shl cx, 8
mov word [edi + 0x22], cx
xor ecx, ecx
mov byte [edi + 0x21], al
sub edx, 0x40
je 0x428a25
sub edx, 0x40
je 0x4289ff
sub edx, 0x40
jne 0x428a49
imul ecx, dword [0x4f3e2c], 0x15a4e35
inc ecx
mov dword [0x4f3e2c], ecx
shr ecx, 0x10
and ecx, 0x8000003f
jns 0x4289fa
dec ecx
or ecx, 0xffffffc0
inc ecx
sub ecx, 0x20
jmp 0x428a49
imul ecx, dword [0x4f3e2c], 0x15a4e35
inc ecx
mov dword [0x4f3e2c], ecx
shr ecx, 0x10
and ecx, 0x8000001f
jns 0x428a20
dec ecx
or ecx, 0xffffffe0
inc ecx
sub ecx, 0x10
jmp 0x428a49
imul ecx, dword [0x4f3e2c], 0x15a4e35
inc ecx
mov dword [0x4f3e2c], ecx
shr ecx, 0x10
and ecx, 0x8000000f
jns 0x428a46
dec ecx
or ecx, 0xfffffff0
inc ecx
sub ecx, 8
movzx ebx, al
movzx eax, byte [0x4d4708]
sub eax, ebx
cmp eax, 0x80
jle 0x428a61
sub eax, 0x100
cmp eax, 0xffffff80
jge 0x428a6b
add eax, 0x100
cdq
mov esi, eax
mov eax, 0xb21642c9
xor esi, edx
sub esi, edx
imul esi, ebp
imul esi
mov eax, ebp
add edx, esi
sar edx, 4
mov esi, edx
shr esi, 0x1f
add esi, edx
sub eax, esi
add ecx, eax
mov eax, dword [ebx*4 + 0x446bb0]
imul eax, ecx
mov dword [edi + 0x1c], ecx
mov dword [edi + 0x18], ecx
sar eax, 8
mov dword [edi + 0x10], eax
mov eax, dword [ebx*4 + 0x446ab0]
imul eax, ecx
sar eax, 8
mov dword [edi + 0x14], eax
mov al, byte [0x4d470f]
mov byte [edi + 0x24], al
mov al, byte [0x4d470d]
mov byte [edi + 0x25], al
mov al, byte [0x4d4710]
mov byte [edi + 0x26], al
mov al, byte [0x4d4712]
mov byte [edi + 0x27], al
mov al, byte [0x4d4713]
mov byte [edi + 0x28], al
mov al, byte [0x4d4711]
and al, 0xf0
mov byte [edi + 0x29], al
xor eax, eax
mov word [edi + 0x2a], ax
call fcn.00429c90
mov esi, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
inc esi
mov edx, dword [esp + 0x20]
mov byte [edi + 0x2c], al
mov edi, dword [esp + 0x18]
mov dword [esp + 0x10], esi
cmp si, word [esp + 0x1c]
jb 0x428962
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0x42f219
Capabilities:
Parse pe header

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

Function at 0x435f23
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4427c0
push 0x4427b8
push str.FlsAlloc
push 0x1f
call fcn.00435e3f
mov esi, eax
add esp, 0x10
test esi, esi
je 0x435f57
push dword [ebp + 8]
mov ecx, esi
call dword [0x44123c]
call esi
jmp 0x435f5d
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x435fa1
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4427d0
push 0x4427c8
push str.FlsGetValue
push 0x21
call fcn.00435e3f
mov esi, eax
add esp, 0x10
test esi, esi
je 0x435fd8
push dword [ebp + 8]
mov ecx, esi
call dword [0x44123c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x435fe0
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4427d8
push 0x4427d0
push str.FlsSetValue
push 0x22
call fcn.00435e3f
mov esi, eax
add esp, 0x10
test esi, esi
je 0x43601a
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x44123c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x438875
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 0x438912
push ebx
push esi
call fcn.0043883e
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.00435691
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x4388bf
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x438911
push edi
push eax
call fcn.004353fa
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x4388df
call fcn.004353c0
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x438910
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00435691
add esp, 0x20
test eax, eax
jne 0x4388fe
push edi
call fcn.004353c0
jmp 0x438906
push ebx
call fcn.004353c0
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 0x43feb0
Capabilities:
Parse pe header

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