joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405b80
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
push esi
mov esi, dword [esp + 0x14]
lea eax, [esp + 0x14]
push eax
push 9
push 0
push str.SoftwareDownloadManagerDwnlSelPanel
push SysReAllocStringLen
mov dword [esi], 1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x405be4
lea ecx, [esp + 4]
push ecx
lea edx, [esp + 0xc]
push edx
push eax
push eax
mov eax, dword [esp + 0x24]
push str.PanelView
push eax
mov dword [esp + 0x1c], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x405bd9
mov ecx, dword [esp + 8]
mov dword [esi], ecx
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop esi
add esp, 8
ret 8
Function at 0x406a40
Capabilities:
Log keystrokes via polling
Query or enumerate registry value

Disassembly:
sub esp, 0x4c
mov eax, dword [0x40e4b8]
xor eax, esp
mov dword [esp + 0x48], eax
push ebx
mov ebx, dword [esp + 0x5c]
push esi
mov esi, dword [esp + 0x5c]
test esi, esi
je 0x406bfd
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x406a65
sub eax, edx
sar eax, 1
je 0x406bfd
mov ecx, str.InsState
mov eax, esi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x406aa7
test dx, dx
je 0x406aa3
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x406aa7
add eax, 4
add ecx, 4
test dx, dx
jne 0x406a81
xor eax, eax
jmp 0x406aac
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x406ae7
mov eax, 0x11
push 0x2d
mov word [ebx], ax
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
mov ecx, 0x8000
and ax, cx
neg ax
sbb al, al
add al, 2
mov byte [ebx + 8], al
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.0040840e
add esp, 0x4c
ret 0xc
push 8
push str.minsize.
push esi
call dword [sym.imp.MSVCR90.dll_wcsncmp]
add esp, 0xc
test eax, eax
jne 0x406be8
mov edx, 3
mov word [ebx], dx
mov dword [ebx + 8], eax
cmp dword [0x40e56c], eax
jne 0x406b5b
push 0x40e56c
push 1
push eax
push str.SoftwareDownloadManagerDwnlPanelminsize
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x406b4e
pop esi
mov dword [0x40e56c], 0
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.0040840e
add esp, 0x4c
ret 0xc
cmp dword [0x40e56c], 0
je 0x406ad2
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x406b60
sub eax, edx
sar eax, 1
cmp eax, 0x27
ja 0x406bfd
mov eax, esi
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x406b80
sub eax, edx
sar eax, 1
cmp eax, 9
jb 0x406bfd
add esi, 0x10
push esi
lea eax, [esp + 0x14]
push 0x40
push eax
call dword [sym.imp.MSVCR90.dll_wcscpy_s]
lea ecx, [esp + 0x1c]
push 0x40
push ecx
call dword [sym.imp.MSVCR90.dll__wcsupr_s]
add esp, 0x14
lea edx, [esp + 0xc]
push edx
mov edx, dword [0x40e56c]
lea eax, [esp + 0xc]
push eax
push 0
push 0
lea ecx, [esp + 0x20]
push ecx
push edx
mov dword [esp + 0x24], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x406be8
mov eax, dword [esp + 8]
mov dword [ebx + 8], eax
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.0040840e
add esp, 0x4c
ret 0xc
mov ecx, dword [esp + 0x50]
pop esi
pop ebx
xor ecx, esp
mov eax, 1
call fcn.0040840e
add esp, 0x4c
ret 0xc
Function at 0x406d00
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x218
mov eax, dword [0x40e4b8]
xor eax, esp
mov dword [esp + 0x214], eax
mov eax, dword [0x40e560]
push esi
mov esi, dword [esp + 0x224]
test eax, eax
jne 0x406d68
push 0x40e560
push 1
push eax
push 0x40ab34
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov eax, dword [0x40e560]
test eax, eax
setne cl
test cl, cl
jne 0x406d68
mov eax, 1
pop esi
mov ecx, dword [esp + 0x214]
xor ecx, esp
call fcn.0040840e
add esp, 0x218
ret 8
lea ecx, [esp + 4]
push ecx
lea edx, [esp + 0x10]
push edx
push 0
push 0
push str.ExePath
push eax
mov dword [esp + 0x1c], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x406d4b
lea eax, [esp + 0xc]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x406d95
sub eax, edx
sar eax, 1
je 0x406d4b
lea eax, [esp + 0xc]
push 0x5c
push eax
call dword [sym.imp.MSVCR90.dll_wcsrchr]
add esp, 8
test eax, eax
je 0x406d4b
lea edx, [esp + 0xc]
xor ecx, ecx
push edx
mov word [eax], cx
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov ecx, dword [esp + 0x218]
mov dword [esi], eax
pop esi
xor ecx, esp
xor eax, eax
call fcn.0040840e
add esp, 0x218
ret 8

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
nop
nop
nop
nop
pop eax
nop
add eax, 0x40a063
nop
sub eax, 0x40a009
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x433030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43301e
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x40f5e0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1a8
push ebx
push esi
mov ebx, 0x4848e8
call fcn.0040f580
mov esi, eax
lea eax, [esp + 0xa8]
push esi
push eax
call fcn.00413990
push esi
call fcn.004112ef
add esp, 0xc
lea esi, [esp + 0x18]
call fcn.0040f6a0
lea eax, [esp + 0xa8]
mov ecx, esi
call fcn.0040f6d0
xor ebx, ebx
mov dword [edi + 8], ebx
xor ecx, ecx
mov eax, ebx
movzx edx, byte [esp + ecx + 0x18]
add eax, edx
movzx edx, byte [esp + ecx + 0x19]
add eax, edx
movzx edx, byte [esp + ecx + 0x1a]
add eax, edx
movzx edx, byte [esp + ecx + 0x1b]
add ecx, 4
add eax, edx
cmp ecx, 0x10
jl 0x40f631
mov dword [edi + 8], eax
mov eax, dword [ebp + 8]
push 0x4876c8
push eax
call fcn.00414e06
add esp, 8
mov dword [edi], eax
cmp eax, ebx
je 0x42b2ee
push edi
call fcn.0040f450
cmp eax, ebx
je 0x42b2f8
mov ecx, dword [edi]
push ecx
mov esi, eax
call fcn.00414e94
add esp, 4
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, 1
jmp 0x40f690
mov edx, dword [edi]
push edx
push 0x10
lea eax, [esp + 0x10]
push 1
push eax
call fcn.004151b0
add esp, 0x10
push 0x99f2
push 0x10
lea ecx, [esp + 0x10]
push ecx
call int.0044afdc
xor eax, eax
mov dword [edi + 8], ebx
xor ecx, ecx
movzx edx, byte [esp + eax + 8]
inc eax
imul ecx, edx
cmp eax, 0x10
jl 0x42b324
mov eax, dword [edi]
push eax
mov dword [edi + 8], ecx
call fcn.00415484
add esp, 4
mov dword [edi + 4], eax
xor eax, eax
jmp 0x40f690

Function at 0x40f6a0
Capabilities:
Hash data with md5

Disassembly:
push 8
lea eax, [esi + 0x44]
push 0
push eax
call fcn.004131f0
add esp, 0xc
mov dword [esi + 0x34], 0x67452301
mov dword [esi + 0x38], 0xefcdab89
mov dword [esi + 0x3c], 0x98badcfe
mov dword [esi + 0x40], 0x10325476
ret

Function at 0x443494
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
rol dword [ecx + 0x3d9e2], 1
jg 0x4434cf
push ss
and eax, 0x9908b0df
shr edx, 1
xor edx, dword [esi - 0x33a9aa8c]
pop edi
xor edx, eax
mov dword [esi], edx
inc esi
or byte [esi - 0x3e], bl
or byte [0xb6e80040], cl
call 0x50456172
stc
inc ecx
jb 0x4434ce
cmp cx, 0
mov dword [ecx], 0xa75c33b
mov byte [edi + 0x1d], 1
invalid
invalid
mov byte [edi + 0x56], 0xe8
invalid
inc edi
push esi

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

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..pdata
mov ebx, 0x408f6c
nop
nop
mov ecx, 0x7c5e4ae0
nop
nop
nop
test eax, eax
nop
nop
je 0x43004e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x430024
nop
nop
nop
mov eax, section..pdata_1
nop
mov ebx, 0x42e3d0
mov ecx, 0x78a07d92
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x430084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x43006c
nop
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x402a02
Capabilities:
Parse pe header

Disassembly:
push 0x14
push 0x103cd8b0
call 0x4f62d8
xor ebx, ebx
mov dword [ebp - 0x20], ebx
or dword [ebp - 0x1c], 0xffffffff
xor edi, edi
mov dword [ebp - 0x24], ebx
mov esi, dword [ebp + 8]
cmp esi, ebx
je 0x402b2f
push esi
call dword [0x1010977c]
test eax, eax
je 0x402b2f
cmp dword [0x103ef590], ebx
je 0x402a64
push esi
call dword [0x101092cc]
test ax, 0x4000
jne 0x402a64
push ebx
push 0x80
push 3
push ebx
push 7
push 0x80000000
push esi
call dword [0x103ef590]
jmp 0x402a7b
push ebx
push 0x80
push 3
push ebx
push 7
push 0x80000000
push esi
call dword [0x101092d0]
mov dword [ebp - 0x1c], eax
cmp eax, 0xffffffff
je 0x402b2f
push ebx
push eax
call fcn.004020d2
mov esi, eax
cmp esi, ebx
jbe 0x402b2f
mov eax, 0x400
cmp esi, eax
jbe 0x402aa3
mov esi, eax
push esi
call 0x4f016a
pop ecx
mov edi, eax
mov dword [ebp + 8], edi
cmp edi, ebx
je 0x402b3a
push esi
push ebx
push edi
call 0x4f60aa
add esp, 0xc
push ebx
lea eax, [ebp - 0x24]
push eax
push esi
push edi
push dword [ebp - 0x1c]
call dword [0x101092c4]
test eax, eax
je 0x402b2f
mov dword [ebp - 4], ebx
cmp word [edi], 0x5a4d
je 0x402ae9
mov dword [ebp - 4], 0xfffffffe
jmp 0x402b2f
mov eax, dword [edi + 0x3c]
cmp eax, 0x10000000
ja 0x402ae0
add eax, edi
mov ecx, 0x7ffeffff
cmp eax, ecx
jae 0x402ae0
lea edx, [eax + 0xf8]
cmp edx, ecx
jae 0x402ae0
cmp dword [eax], 0x4550
jne 0x402ae0
mov dword [ebp - 0x20], 1
jmp 0x402ae0
cmp edi, ebx
je 0x402b3a
push edi
call 0x4f6094
pop ecx
cmp dword [ebp - 0x1c], 0xffffffff
je 0x402b52
mov eax, dword [ebp + 0xc]
mov dword [eax], 1
push dword [ebp - 0x1c]
call dword [0x1010927c]
mov eax, dword [ebp - 0x20]
call 0x4f631d
ret
Function at 0x402b5b
Capabilities:
Parse pe header

Disassembly:
push 0x14
push 0x103cd8d0
call 0x4f62d8
xor ebx, ebx
mov dword [ebp - 0x20], ebx
or dword [ebp - 0x1c], 0xffffffff
xor edi, edi
mov dword [ebp - 0x24], ebx
mov eax, dword [ebp + 0xc]
mov dword [eax], ebx
mov esi, dword [ebp + 8]
cmp esi, ebx
je 0x402ca6
push esi
call dword [0x1010977c]
test eax, eax
je 0x402ca6
cmp dword [0x103ef590], ebx
je 0x402bc2
push esi
call dword [0x101092cc]
test ax, 0x4000
jne 0x402bc2
push ebx
push 0x80
push 3
push ebx
push 7
push 0x80000000
push esi
call dword [0x103ef590]
jmp 0x402bd9
push ebx
push 0x80
push 3
push ebx
push 7
push 0x80000000
push esi
call dword [0x101092d0]
mov dword [ebp - 0x1c], eax
cmp eax, 0xffffffff
je 0x402ca6
push ebx
push eax
call fcn.004020d2
mov esi, eax
cmp esi, ebx
jbe 0x402ca6
mov eax, 0x400
cmp esi, eax
jbe 0x402c01
mov esi, eax
push esi
call 0x4f016a
pop ecx
mov edi, eax
mov dword [ebp + 8], edi
cmp edi, ebx
je 0x402cb1
push esi
push ebx
push edi
call 0x4f60aa
add esp, 0xc
push ebx
lea eax, [ebp - 0x24]
push eax
push esi
push edi
push dword [ebp - 0x1c]
call dword [0x101092c4]
test eax, eax
je 0x402ca6
mov dword [ebp - 4], ebx
cmp word [edi], 0x5a4d
je 0x402c47
mov dword [ebp - 4], 0xfffffffe
jmp 0x402ca6
mov eax, dword [edi + 0x3c]
cmp eax, 0x10000000
ja 0x402c3e
add eax, edi
mov ecx, 0x7ffeffff
cmp eax, ecx
jae 0x402c3e
lea edx, [eax + 0xf8]
cmp edx, ecx
jae 0x402c3e
cmp dword [eax], 0x4550
jne 0x402c3e
movzx eax, word [eax + 4]
cmp ax, 0x8664
je 0x402c7e
cmp ax, 0x200
jne 0x402c87
mov eax, dword [ebp + 0xc]
mov dword [eax], 1
mov dword [ebp - 0x20], 1
jmp 0x402c3e
cmp edi, ebx
je 0x402cb1
push edi
call 0x4f6094
pop ecx
cmp dword [ebp - 0x1c], 0xffffffff
je 0x402cc0
push dword [ebp - 0x1c]
call dword [0x1010927c]
mov eax, dword [ebp - 0x20]
call 0x4f631d
ret
Function at 0x411a1c
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push 4
mov eax, 0x100f81db
call 0x4f60b6
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi], 0x10130aac
mov dword [esi + 4], 0x10130aa4
lea ecx, [esi + 0x1a7c]
mov dword [ebp - 4], 0x2b
call fcn.0041137d
lea ecx, [esi + 0x1a50]
mov byte [ebp - 4], 0x2a
call fcn.0042e491
lea ecx, [esi + 0x18c4]
mov byte [ebp - 4], 0x29
call 0x4bb498
lea ecx, [esi + 0x1898]
mov byte [ebp - 4], 0x28
call 0x4ef85b
lea ecx, [esi + 0x186c]
mov byte [ebp - 4], 0x27
call 0x4ef4b4
lea ecx, [esi + 0x184c]
mov byte [ebp - 4], 0x26
call 0x4badba
lea ecx, [esi + 0x176c]
mov byte [ebp - 4], 0x25
call 0x4b8696
lea ecx, [esi + 0x1768]
mov byte [ebp - 4], 0x24
call fcn.0040579e
lea ecx, [esi + 0x1720]
mov byte [ebp - 4], 0x23
call fcn.0041aaef
lea ecx, [esi + 0x1718]
mov byte [ebp - 4], 0x22
call 0x4b9594
lea ecx, [esi + 0x16fc]
mov byte [ebp - 4], 0x21
call 0x4680ef
mov byte [ebp - 4], 0x20
lea ecx, [esi + 0x16e8]
call 0x4ded30
lea ecx, [esi + 0x16d0]
mov byte [ebp - 4], 0x1f
call 0x4cf04a
mov eax, dword [esi + 0x16b8]
test eax, eax
je 0x411b11
push eax
call dword [0x101092dc]
lea ecx, [esi + 0x16a4]
mov byte [ebp - 4], 0x1d
call 0x485ef2
lea ecx, [esi + 0x1678]
mov byte [ebp - 4], 0x1c
call 0x47a82a
lea ecx, [esi + 0x15b4]
mov byte [ebp - 4], 0x1b
call 0x4856d7
lea ecx, [esi + 0x15a4]
mov byte [ebp - 4], 0x1a
call 0x485cf2
lea ecx, [esi + 0x154c]
mov byte [ebp - 4], 0x19
call 0x4ddcea
lea ecx, [esi + 0x1520]
mov byte [ebp - 4], 0x18
call fcn.0045cf78
lea ecx, [esi + 0x150c]
mov byte [ebp - 4], 0x17
call 0x4e255b
lea ecx, [esi + 0x1500]
mov byte [ebp - 4], 0x16
call 0x4dbbac
lea ecx, [esi + 0x14f4]
mov byte [ebp - 4], 0x15
call 0x4dc237
lea ecx, [esi + 0x1280]
mov byte [ebp - 4], 0x14
call fcn.00457341
lea ecx, [esi + 0x1274]
mov byte [ebp - 4], 0x13
call 0x4dc743
lea ecx, [esi + 0x120c]
mov byte [ebp - 4], 0x12
call 0x4dd213
lea ecx, [esi + 0x11b8]
mov byte [ebp - 4], 0x11
call fcn.00416381
lea ecx, [esi + 0x1188]
mov byte [ebp - 4], 0x10
call fcn.0041a2e1
lea ecx, [esi + 0x1120]
mov byte [ebp - 4], 0xf
call 0x4812eb
lea ecx, [esi + 0x888]
mov byte [ebp - 4], 0xe
call 0x492bfa
lea ecx, [esi + 0x858]
mov byte [ebp - 4], 0xd
call 0x4b5d1f
lea ecx, [esi + 0x7c4]
mov byte [ebp - 4], 0xc
call 0x479417
lea ecx, [esi + 0x798]
mov byte [ebp - 4], 0xb
call 0x4811ae
lea ecx, [esi + 0x690]
mov byte [ebp - 4], 0xa
call 0x46fc9b
lea ecx, [esi + 0x4f8]
mov byte [ebp - 4], 9
call fcn.00463bf5
lea ecx, [esi + 0x480]
mov byte [ebp - 4], 8
call 0x467f1e
lea ecx, [esi + 0x42c]
mov byte [ebp - 4], 7
call fcn.0041ba0f
lea ecx, [esi + 0x420]
mov byte [ebp - 4], 6
call fcn.00414b39
lea ecx, [esi + 0x384]
mov byte [ebp - 4], 5
call fcn.0041716d
lea ecx, [esi + 0x2ac]
mov byte [ebp - 4], 4
call fcn.00419a97
lea ecx, [esi + 0x274]
mov byte [ebp - 4], 3
call fcn.0041948a
lea ecx, [esi + 0x188]
mov byte [ebp - 4], 2
call 0x4b983e
lea ecx, [esi + 0x2c]
mov byte [ebp - 4], 1
call 0x489d9f
lea ecx, [esi + 0x1c]
mov byte [ebp - 4], 0
call fcn.0041137d
or dword [ebp - 4], 0xffffffff
lea ecx, [esi + 0xc]
call fcn.0041137d
call 0x4f618e
ret
Function at 0x42a01e
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 4]
movzx eax, word [ecx + 0x14]
lea eax, [eax + ecx + 0x18]
movzx ecx, word [ecx + 6]
push esi
xor esi, esi
test ecx, ecx
push edi
jbe 0x42a052
mov edx, dword [eax + 0xc]
cmp dword [esp + 0x14], edx
jb 0x42a04a
mov edi, dword [eax + 0x10]
add edi, edx
cmp dword [esp + 0x14], edi
jb 0x42a054
add eax, 0x28
inc esi
cmp esi, ecx
jb 0x42a036
xor eax, eax
pop edi
pop esi
ret

Function at 0x42a146
Capabilities:
Parse pe header

Disassembly:
push 0xc
push 0x103d0938
call 0x4f62d8
mov eax, dword [ebp + 8]
test eax, eax
je 0x42a174
mov ecx, 0x7ffeffff
cmp eax, ecx
jae 0x42a174
and dword [ebp - 4], 0
cmp word [eax], 0x5a4d
je 0x42a17c
mov dword [ebp - 4], 0xfffffffe
xor eax, eax
call 0x4f631d
ret
mov edx, dword [eax + 0x3c]
cmp edx, 0x10000000
ja 0x42a16d
add eax, edx
mov dword [ebp - 0x1c], eax
cmp eax, ecx
jae 0x42a16d
lea edx, [eax + 0xf8]
cmp edx, ecx
jae 0x42a16d
cmp dword [eax], 0x4550
je 0x42a1b0
jmp 0x42a16d
mov dword [ebp - 4], 0xfffffffe
jmp 0x42a176
Function at 0x449671
Capabilities:
Encode data using xor

Disassembly:
push 0x10c
mov eax, 0x100fba48
call 0x4f60b6
mov esi, ecx
xor ebx, ebx
push 0x103f310c
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x14], ebx
call fcn.00405779
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 0x10]
push eax
push edi
push dword [ebp + 8]
mov ecx, esi
mov dword [ebp - 4], ebx
call fcn.004491fe
test eax, eax
je 0x449771
mov eax, dword [ebp - 0x10]
cmp dword [eax - 0xc], ebx
je 0x449771
mov esi, dword [ebp + 0x10]
cmp esi, ebx
ja 0x4496cd
cmp edi, 0xc
jbe 0x449771
test esi, esi
jb 0x4496fe
ja 0x4496d7
test edi, edi
jbe 0x4496fe
push ebx
lea ecx, [ebp - 0x10]
call fcn.00448c02
xor al, 0x54
mov byte [ebp + 0x10], al
push dword [ebp + 0x10]
lea ecx, [ebp - 0x10]
push ebx
call fcn.00448cfe
xor eax, eax
inc ebx
cmp eax, esi
jb 0x4496d7
ja 0x4496fe
cmp ebx, edi
jb 0x4496d7
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
add edi, 0xfffffff4
adc esi, 0xffffffff
xor ecx, ecx
cmp ecx, esi
ja 0x449771
jb 0x449716
cmp eax, edi
ja 0x449771
push eax
push 0xc
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x10]
call fcn.00408468
push dword [eax]
lea ecx, [ebp - 0x118]
mov byte [ebp - 4], 1
call fcn.00448c43
push dword [eax]
mov ecx, dword [ebp + 0x14]
mov byte [ebp - 4], 2
call fcn.004090f5
lea eax, [ebp - 0x114]
cmp dword [ebp - 0x118], eax
je 0x44975f
push dword [ebp - 0x118]
call dword [0x10109638]
pop ecx
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.0040219e
mov dword [ebp - 0x14], 1
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.0040219e
mov eax, dword [ebp - 0x14]
call 0x4f618e
ret 0x10
Function at 0x44d514
Capabilities:
Encrypt data using rc4 ksa
Encrypt data using rc4 prga

Disassembly:
push ebp
lea ebp, [esp - 0x198]
sub esp, 0x218
mov eax, dword [0x103ef3a0]
xor eax, ebp
mov dword [ebp + 0x194], eax
push ebx
push esi
push edi
mov esi, 0xff
xor ebx, ebx
push esi
lea eax, [ebp - 0x6b]
mov edi, ecx
push ebx
push eax
mov dword [ebp - 0x80], edi
mov byte [ebp - 0x6c], bl
call 0x4f60aa
push esi
lea eax, [ebp + 0x95]
push ebx
push eax
mov byte [ebp + 0x94], bl
call 0x4f60aa
add esp, 0x18
cmp dword [ebp + 0x1a0], ebx
je 0x44d6b7
mov eax, dword [ebp + 0x1a4]
cmp eax, ebx
je 0x44d6b7
lea esi, [eax + 1]
push esi
call 0x4f016a
cmp eax, ebx
pop ecx
mov dword [edi + 0x7c], eax
je 0x44d6b7
push esi
push ebx
push eax
call 0x4f60aa
mov edi, dword [edi + 0x7c]
add esp, 0xc
xor ecx, ecx
xor edx, edx
mov al, byte [edx + 0x102235b0]
mov byte [ebp + ecx - 0x6c], al
lea eax, [edx + 1]
push 0xf
cdq
pop esi
idiv esi
mov byte [ebp + ecx + 0x94], cl
inc ecx
cmp ecx, 0x100
jl 0x44d5a4
mov dword [ebp - 0x70], ebx
xor esi, esi
movzx ecx, byte [ebp + esi - 0x6c]
add ecx, dword [ebp - 0x70]
lea eax, [ebp + esi + 0x94]
mov dl, byte [eax]
movzx ebx, dl
add ecx, ebx
and ecx, 0x800000ff
jns 0x44d5f2
dec ecx
or ecx, 0xffffff00
inc ecx
mov dword [ebp - 0x70], ecx
lea ecx, [ebp + ecx + 0x94]
mov bl, byte [ecx]
inc esi
cmp esi, 0x100
mov byte [ecx], dl
mov byte [eax], bl
jl 0x44d5cc
mov eax, dword [ebp + 0x1a0]
mov ecx, dword [ebp + 0x1a4]
xor edx, edx
sub eax, edi
xor esi, esi
cmp ecx, edx
mov dword [ebp - 0x70], edx
jbe 0x44d6a9
lea edx, [edi - 1]
mov dword [ebp - 0x74], edx
add edi, eax
mov dword [ebp - 0x78], ecx
mov dword [ebp - 0x7c], ecx
inc esi
and esi, 0x800000ff
jns 0x44d647
dec esi
or esi, 0xffffff00
inc esi
lea ecx, [ebp + esi + 0x94]
mov dl, byte [ecx]
movzx eax, dl
add eax, dword [ebp - 0x70]
and eax, 0x800000ff
jns 0x44d664
dec eax
or eax, 0xffffff00
inc eax
mov dword [ebp - 0x70], eax
lea eax, [ebp + eax + 0x94]
mov bl, byte [eax]
mov byte [eax], dl
mov byte [ecx], bl
movzx eax, byte [eax]
movsx ecx, bl
add ecx, eax
and ecx, 0x800000ff
jns 0x44d68c
dec ecx
or ecx, 0xffffff00
inc ecx
movzx eax, cl
mov al, byte [ebp + eax + 0x94]
xor al, byte [edi]
inc edi
inc dword [ebp - 0x74]
dec dword [ebp - 0x78]
mov ecx, dword [ebp - 0x74]
mov byte [ecx], al
jne 0x44d636
mov edx, dword [ebp - 0x7c]
mov eax, dword [ebp - 0x80]
mov dword [eax + 0x80], edx
xor eax, eax
inc eax
jmp 0x44d6b9
xor eax, eax
mov ecx, dword [ebp + 0x194]
pop edi
pop esi
xor ecx, ebp
pop ebx
call 0x4f609a
add ebp, 0x198
leave
ret 8
Function at 0x415490
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 8], edi
mov dword [ebp - 0xc], esi
mov esi, 1
mov dword [ebp - 0x10], 0
push 1
push 0x4f9ed0
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
test eax, eax
je 0x41551c
mov eax, 0x51eb851f
mov ecx, esi
imul esi
sar edx, 5
mov eax, esi
sar ecx, 0x1f
sub edx, ecx
imul edi, edx, 0x64
sub eax, edi
jne 0x41551c
cmp esi, 0x15f90
jl 0x415513
cmp esi, 0x1d4c0
jge 0x4154f0
mov eax, 0x32
jmp 0x415515
cmp esi, 0x2bf20
jge 0x4154ff
mov eax, 0x64
jmp 0x415515
mov eax, 0x1482
cmp esi, 0x57d78
jl 0x415515
mov eax, 0xfa
jmp 0x415515
xor eax, eax
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 4]
test eax, eax
je 0x415530
inc esi
cmp esi, 0x57e40
jl 0x4154a8
mov eax, dword [ebp - 4]
test eax, eax
je 0x41554a
mov dword [ebp - 0x14], 0x98
lea eax, [ebp - 0x14]
push eax
call fcn.00430110
add esp, 4
mov eax, dword [0x4f9ed4]
test eax, eax
jne 0x415578
cmp dword [0x4f7980], 1
je 0x4155b8
xor edi, edi
xor esi, esi
call fcn.00415650
mov dword [0x4f9ed4], 1
cmp dword [0x4f7980], 1
je 0x4155a3
mov dword [0x4f9ed0], 0
push dword [0x4f9ecc]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4155d3
mov edx, dword [ebp + 8]
mov esi, dword [ebp - 0xc]
mov edi, dword [ebp - 8]
mov dword [edx], eax
xor eax, eax
mov esp, ebp
pop ebp
ret
push esi
push 2
call fcn.0046f370
push edi
push 0x16
call fcn.0046f370
add esp, 0x10
jmp 0x415578
push 1
push 2
call fcn.0046f370
mov esi, eax
push 1
push 0x16
call fcn.0046f370
add esp, 0x10
mov edi, eax
jmp 0x415560
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
push 0
push 0x70
call fcn.00423e10
add esp, 0xc
test eax, eax
je 0x4155fd
mov edx, dword [ebp + 8]
mov esi, dword [ebp - 0xc]
mov edi, dword [ebp - 8]
mov dword [edx], 0
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x10]
mov edx, 0x70
mov ecx, dword [edx + 0x4f78dc]
mov dword [eax + edx - 4], ecx
mov esi, dword [edx + 0x4f78d8]
mov dword [eax + edx - 8], esi
mov edi, dword [edx + 0x4f78d4]
mov dword [eax + edx - 0xc], edi
mov ecx, dword [edx + 0x4f78d0]
mov dword [eax + edx - 0x10], ecx
sub edx, 0x10
jne 0x415605
push dword [ebp - 0x10]
push dword [0x4f9ecc]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [ebp - 0x10]
jmp 0x415592

Function at 0x415650
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x4f9ec0], 0
je 0x415660
mov esp, ebp
pop ebp
ret
mov dword [0x4f9ec0], 1
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x4f9ecc], eax
cmp eax, 0xffffffff
jne 0x415686
push 8
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov esp, ebp
pop ebp
ret
push 0x415470
call fcn.0046f940
push 0x415430
call fcn.0046f940
add esp, 8
jmp 0x41565c