joyce8/EMBER2024-capa huggingface dataset:
Function at 0x464600
Capabilities:
Hash data using fnv

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push esi
mov esi, ecx
imul eax, ebp, 0x100011b
push edi
mov edi, dword [esp + 0x18]
imul ecx, edi, 0x1000193
mov edx, dword [esi + 0x7c]
xor ecx, eax
and ecx, dword [esi + 0x88]
mov esi, dword [esi + 0x74]
mov eax, dword [edx + ecx*8]
add ecx, ecx
mov ebx, dword [edx + ecx*4]
lea edx, [edx + ecx*4]
cmp ebx, esi
jne 0x46463b
mov ecx, esi
jmp 0x464640
mov ecx, dword [edx + 4]
mov ecx, dword [ecx]
cmp eax, ecx
je 0x464663
cmp dword [eax + 8], ebp
jne 0x46464e
cmp dword [eax + 0xc], edi
je 0x464652
mov eax, dword [eax]
jmp 0x464633
cmovne eax, esi
cmp eax, esi
je 0x464663
mov eax, dword [eax + 0x10]
pop edi
pop esi
pop ebp
pop ebx
ret 8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 8

Function at 0x4648b0
Capabilities:
Hash data using fnv

Disassembly:
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, ecx
cmp dword [esi + 0x14], 0x10
jb 0x4648c0
mov esi, dword [esi]
mov al, byte [esi]
xor edx, edx
mov ecx, esi
test al, al
je 0x4648e1
nop word [eax + eax]
movsx eax, al
lea edx, [edx + edx*4]
add edx, eax
lea ecx, [ecx + 1]
mov al, byte [ecx]
test al, al
jne 0x4648d0
push ebx
mov ebx, dword [esp + 0x14]
imul ecx, ebx, 0x1000193
push ebp
xor ecx, edx
mov edx, dword [edi + 0xc]
and ecx, dword [edi + 0x18]
mov edi, dword [edi + 4]
mov eax, dword [edx + ecx*8]
add ecx, ecx
mov ebp, dword [edx + ecx*4]
inc ecx
lea ecx, [edx + ecx*4]
mov dword [esp + 0x1c], ecx
cmp ebp, edi
jne 0x464910
mov ecx, edi
jmp 0x464914
mov ecx, dword [ecx]
mov ecx, dword [ecx]
cmp eax, ecx
je 0x464991
cmp dword [eax + 8], ebx
jne 0x46494f
mov edx, dword [eax + 0xc]
mov ecx, esi
mov bl, byte [edx]
cmp bl, byte [ecx]
jne 0x464942
test bl, bl
je 0x46493e
mov bl, byte [edx + 1]
cmp bl, byte [ecx + 1]
jne 0x464942
add edx, 2
add ecx, 2
test bl, bl
jne 0x464922
xor ecx, ecx
jmp 0x464947
sbb ecx, ecx
or ecx, 1
test ecx, ecx
je 0x464957
mov ebx, dword [esp + 0x18]
mov eax, dword [eax]
mov ecx, dword [esp + 0x1c]
jmp 0x464908
mov ecx, dword [eax + 0xc]
nop word [eax + eax]
mov dl, byte [esi]
cmp dl, byte [ecx]
jne 0x464985
test dl, dl
je 0x46497c
mov dl, byte [esi + 1]
cmp dl, byte [ecx + 1]
jne 0x464985
add esi, 2
add ecx, 2
test dl, dl
jne 0x464960
xor ecx, ecx
test ecx, ecx
cmovne eax, edi
jmp 0x464993
sbb ecx, ecx
or ecx, 1
test ecx, ecx
cmovne eax, edi
jmp 0x464993
mov eax, edi
mov esi, dword [0x575ef8]
lea ecx, [eax + 0x10]
xor edx, edx
cmp eax, edi
mov edi, dword [0x575ef4]
cmovne edx, ecx
pop ebp
pop ebx
test edx, edx
jne 0x4649b5
mov ecx, edi
mov edx, esi
jmp 0x4649ba
mov ecx, dword [edx]
mov edx, dword [edx + 4]
mov eax, dword [esp + 0xc]
cmp ecx, dword [esp + 0x18]
je 0x4649ce
mov dword [eax], edi
pop edi
mov dword [eax + 4], esi
pop esi
ret 0x10
pop edi
mov dword [eax], ecx
mov dword [eax + 4], edx
pop esi
ret 0x10
Function at 0x46ff90
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
sub esp, 0xc
push ebx
push ebp
mov ebp, dword [esp + 0x18]
mov ebx, ecx
push esi
push edi
mov edx, ebp
cmp dword [ebp + 0x14], 0x10
mov edi, dword [ebp + 0x10]
jb 0x46ffab
mov edx, dword [ebp]
xor esi, esi
lea ecx, [edx + edi]
cmp edx, ecx
mov eax, 0x811c9dc5
cmova edi, esi
test edi, edi
je 0x46ffd3
nop
movzx ecx, byte [edx]
lea edx, [edx + 1]
xor ecx, eax
inc esi
imul eax, ecx, 0x1000193
cmp esi, edi
jne 0x46ffc0
mov ecx, dword [ebx + 0x18]
mov edi, dword [ebp + 0x10]
and ecx, eax
mov eax, dword [ebx + 0xc]
mov ebx, dword [ebx + 4]
mov esi, dword [eax + ecx*8]
add ecx, ecx
mov edx, dword [eax + ecx*4]
lea eax, [eax + ecx*4]
add eax, 4
mov dword [esp + 0x20], edx
mov dword [esp + 0x10], eax
cmp edx, ebx
jne 0x46ffff
mov eax, ebx
jmp 0x470003
mov eax, dword [eax]
mov eax, dword [eax]
cmp esi, eax
je 0x47009d
cmp dword [ebp + 0x14], 0x10
mov edx, ebp
jb 0x470016
mov edx, dword [ebp]
cmp dword [esi + 0x1c], 0x10
lea ecx, [esi + 8]
jb 0x470022
mov ecx, dword [esi + 8]
push edi
push edx
push dword [esi + 0x18]
push ecx
call fcn.004092c8
add esp, 0x10
test al, al
jne 0x470040
mov esi, dword [esi]
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x10]
jmp 0x46fff7
mov edi, esi
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], edi
mov edi, dword [esp + 0x20]
nop
cmp edi, ebx
jne 0x470058
mov eax, ebx
jmp 0x470060
mov eax, dword [esp + 0x10]
mov eax, dword [eax]
mov eax, dword [eax]
cmp esi, eax
je 0x470093
cmp dword [esi + 0x1c], 0x10
lea edx, [esi + 8]
jb 0x470070
mov edx, dword [esi + 8]
cmp dword [ebp + 0x14], 0x10
mov ecx, ebp
jb 0x47007b
mov ecx, dword [ebp]
push dword [esi + 0x18]
push edx
push dword [ebp + 0x10]
push ecx
call fcn.004092c8
add esp, 0x10
test al, al
je 0x470093
mov esi, dword [esi]
jmp 0x470050
mov edi, dword [esp + 0x18]
cmp dword [esp + 0x14], esi
jne 0x4700a1
mov edi, ebx
mov esi, ebx
xor eax, eax
cmp edi, esi
je 0x4700ae
mov edi, dword [edi]
inc eax
cmp edi, esi
jne 0x4700a7
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 4
Function at 0x4708f0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x1c]
mov ebp, ecx
cmp dword [edi + 0x1c], 0x10
lea edx, [edi + 8]
mov ebx, dword [edx + 0x10]
jb 0x470909
mov edx, dword [edx]
xor esi, esi
lea ecx, [edx + ebx]
cmp edx, ecx
mov eax, 0x811c9dc5
cmova ebx, esi
test ebx, ebx
je 0x470933
nop dword [eax]
movzx ecx, byte [edx]
lea edx, [edx + 1]
xor ecx, eax
inc esi
imul eax, ecx, 0x1000193
cmp esi, ebx
jne 0x470920
mov ecx, dword [ebp + 0x18]
and ecx, eax
lea edx, [ecx*8]
mov ecx, dword [ebp + 0xc]
add ecx, edx
mov eax, dword [ecx]
cmp dword [ecx + 4], edi
jne 0x470968
cmp eax, edi
jne 0x470960
mov eax, dword [ebp + 4]
mov dword [ecx], eax
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 4]
mov dword [edx + ecx + 4], eax
jmp 0x470970
mov eax, dword [edi + 4]
mov dword [ecx + 4], eax
jmp 0x470970
cmp eax, edi
jne 0x470974
mov eax, dword [edi]
mov dword [ecx], eax
mov edi, dword [esp + 0x1c]
mov eax, dword [edi + 4]
lea ecx, [ebp + 4]
mov esi, dword [edi]
push edi
mov dword [eax], esi
mov edx, dword [edi]
mov eax, dword [edi + 4]
mov dword [edx + 4], eax
dec dword [ecx + 4]
call fcn.0046fbc0
mov eax, dword [esp + 0x18]
pop edi
mov dword [eax], esi
pop esi
pop ebp
pop ebx
pop ecx
ret 8

Function at 0x470b10
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x24]
mov ebp, ecx
mov edx, edi
cmp dword [edi + 0x14], 0x10
mov ebx, dword [edi + 0x10]
mov dword [esp + 0x24], ebx
jb 0x470b2e
mov edx, dword [edi]
xor esi, esi
lea ecx, [edx + ebx]
cmp edx, ecx
mov eax, 0x811c9dc5
cmova ebx, esi
test ebx, ebx
je 0x470b54
movzx ecx, byte [edx]
lea edx, [edx + 1]
xor ecx, eax
inc esi
imul eax, ecx, 0x1000193
cmp esi, ebx
jne 0x470b41
mov ecx, dword [ebp + 0x18]
mov ebx, dword [ebp + 4]
and ecx, eax
mov eax, dword [ebp + 0xc]
mov esi, dword [eax + ecx*8]
add ecx, ecx
mov edx, dword [eax + ecx*4]
lea eax, [eax + ecx*4]
add eax, 4
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], eax
cmp edx, ebx
jne 0x470b7d
mov eax, ebx
jmp 0x470b81
mov eax, dword [eax]
mov eax, dword [eax]
cmp esi, eax
je 0x470bec
cmp dword [edi + 0x14], 0x10
mov edx, edi
jb 0x470b8f
mov edx, dword [edi]
mov ebp, dword [esi + 0x1c]
lea ecx, [esi + 8]
cmp ebp, 0x10
jb 0x470b9d
mov ecx, dword [esi + 8]
push dword [esp + 0x24]
mov eax, dword [esi + 0x18]
push edx
push eax
push ecx
mov dword [esp + 0x28], eax
call fcn.004092c8
add esp, 0x10
test al, al
jne 0x470bc3
mov esi, dword [esi]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
jmp 0x470b75
lea eax, [esi + 8]
cmp ebp, 0x10
jb 0x470bcd
mov eax, dword [eax]
cmp dword [edi + 0x14], 0x10
jb 0x470bd5
mov edi, dword [edi]
push dword [esp + 0x18]
push eax
push dword [esp + 0x2c]
push edi
call fcn.004092c8
add esp, 0x10
test al, al
cmovne ebx, esi
mov eax, dword [esp + 0x20]
pop edi
pop esi
pop ebp
mov dword [eax], ebx
pop ebx
add esp, 0xc
ret 8
Function at 0x474970
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5254d0
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x56d4a4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov ecx, esi
call fcn.00442200
dec eax
cmp eax, 9
ja case.default.0x4749a9
jmp dword [eax*4 + 0x474b48]
push 0x316
push 0x533af0
push 3
lea ecx, [ebp - 0x34]
call fcn.00425fd0
push str.Unsupported
mov ecx, eax
mov dword [ebp - 4], 0
call fcn.004262d0
push eax
lea ecx, [ebp - 0x61]
call fcn.00426120
lea ecx, [ebp - 0x34]
mov dword [ebp - 4], 0xffffffff
call fcn.00426070
push 0x325
push 0x533af0
push 3
lea ecx, [ebp - 0x58]
call fcn.00425fd0
push str.Cant_get_here.
mov ecx, eax
mov dword [ebp - 4], 1
call fcn.004262d0
push eax
lea ecx, [ebp - 0x62]
call fcn.00426120
lea ecx, [ebp - 0x58]
call fcn.00426070
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004dcf35
mov esp, ebp
pop ebp
ret 4
mov ecx, esi
call fcn.0043ed50
mov edx, eax
cmp dword [edx + 0x14], 0x10
jb 0x474a56
mov edx, dword [edx]
mov al, byte [edx]
xor ecx, ecx
test al, al
je 0x474a71
nop
movsx eax, al
lea ecx, [ecx + ecx*4]
add ecx, eax
lea edx, [edx + 1]
mov al, byte [edx]
test al, al
jne 0x474a60
mov eax, ecx
jmp 0x474a29
mov ecx, esi
call fcn.0043eb50
mov dword [ebp - 0x60], eax
mov esi, 8
mov dword [ebp - 0x5c], edx
mov eax, 0x811c9dc5
lea edx, [ebp - 0x60]
nop
movzx ecx, byte [edx]
lea edx, [edx + 1]
xor ecx, eax
imul eax, ecx, 0x1000193
sub esi, 1
jne 0x474a90
jmp 0x474a29
mov ecx, esi
call fcn.0043e960
mov dword [ebp - 0x5c], eax
lea edx, [ebp - 0x5c]
mov eax, 0x811c9dc5
mov esi, 4
nop dword [eax]
movzx ecx, byte [edx]
lea edx, [edx + 1]
xor ecx, eax
imul eax, ecx, 0x1000193
sub esi, 1
jne 0x474ac0
jmp 0x474a29
mov ecx, esi
call fcn.0043f120
mov dword [ebp - 0x60], eax
mov esi, 8
mov dword [ebp - 0x5c], edx
mov eax, 0x811c9dc5
lea edx, [ebp - 0x60]
movzx ecx, byte [edx]
lea edx, [edx + 1]
xor ecx, eax
imul eax, ecx, 0x1000193
sub esi, 1
jne 0x474af2
jmp 0x474a29
mov ecx, esi
call fcn.0043ef30
mov dword [ebp - 0x5c], eax
lea edx, [ebp - 0x5c]
mov eax, 0x811c9dc5
mov esi, 4
movzx ecx, byte [edx]
lea edx, [edx + 1]
xor ecx, eax
imul eax, ecx, 0x1000193
sub esi, 1
jne 0x474b21
jmp 0x474a29
mov ecx, esi
call fcn.0043e470
movzx eax, al
jmp 0x474a29
Function at 0x48a4e0
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x520e60
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x56d4a4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0x575de8
lea ecx, [esi + 0x2c]
mov dword [esi], vtable.google::protobuf::FileOptions.0
call fcn.0041c08b
push 0x575de8
lea ecx, [esi + 0x30]
call fcn.0041c08b
push 0x575de8
lea ecx, [esi + 0x34]
call fcn.0041c08b
push 0x575de8
lea ecx, [esi + 0x38]
call fcn.0041c08b
push 0x575de8
lea ecx, [esi + 0x3c]
call fcn.0041c08b
push 0x575de8
lea ecx, [esi + 0x40]
call fcn.0041c08b
push 0x575de8
lea ecx, [esi + 0x44]
call fcn.0041c08b
push 0x575de8
lea ecx, [esi + 0x48]
call fcn.0041c08b
push 0x575de8
lea ecx, [esi + 0x4c]
call fcn.0041c08b
push 0x575de8
lea ecx, [esi + 0x50]
call fcn.0041c08b
lea ecx, [esi + 0x1c]
call fcn.00453100
test byte [esi + 0x10], 1
je 0x48a5be
mov edi, dword [esi + 0x10]
and edi, 0xfffffffe
cmp dword [edi + 0xc], 0
jne 0x48a5be
test edi, edi
je 0x48a5be
mov ecx, edi
call fcn.0041bb17
push 0x10
push edi
call fcn.004dcf22
add esp, 8
lea ecx, [esi + 4]
mov dword [esi + 0x10], 0
call fcn.00445ba0
test byte [ebp + 8], 1
mov dword [esi], vtable.google::protobuf::MessageLite.0
je 0x48a5e4
push 0x64
push esi
call fcn.004dcf22
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x4a6680
Capabilities:
Hash data using murmur3
Resolve function by parsing pe exports

Disassembly:
cmp byte [0x57770c], 0
jne 0x4a668e
call fcn.004c3740
cmp byte [0x577715], 0
je 0x4a66ac
push 0
push 0x40
push dword [esp + 0x10]
push dword [esp + 0x10]
call fcn.004c3d70
add esp, 0x10
ret
jmp fcn.004a49f0

Function at 0x4e03ce
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_CreateThread]
pop ebp
ret

Function at 0x5137e9
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0051365f

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 0x348bc6b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
pushal
call 0x348bc6bf
pop dword [ebp - 0x30]
mov eax, 0x6ea150a4
add eax, 0xc5ea761b
sub dword [ebp - 0x30], eax
mov dword [ebp - 0x40], 0x46d46750
add dword [ebp - 0x40], 0x77dddfb
mov dword [ebp - 0x3c], 0x388372f4
sub dword [ebp - 0x3c], 0x65026af
mov dword [ebp - 0x38], 0x7a7783d4
sub dword [ebp - 0x38], 0x2e2b3fa6
mov dword [ebp - 0x34], 0x6bf4322
sub dword [ebp - 0x34], 0x6bf4322
lea eax, [ebp - 0x40]
push eax
mov eax, 0x340697ef
sub eax, 0xff7d8647
add eax, dword [ebp - 0x30]
call dword [eax]
mov dword [ebp - 0x40], 0x230b518a
add dword [ebp - 0x40], 0x516717cc
mov dword [ebp - 0x3c], 0x1236db41
sub dword [ebp - 0x3c], 0xd0ca79cc
mov dword [ebp - 0x38], 0x266a2442
add dword [ebp - 0x38], 0x3d05482a
mov dword [ebp - 0x34], 0x5a75bdfe
add dword [ebp - 0x34], 0xa58a4202
lea ebx, [ebp - 0x40]
push ebx
push eax
mov eax, 0x8c47e00f
add eax, 0xa841321d
add eax, dword [ebp - 0x30]
call dword [eax]
push 0x40
push 0x1000
push 0x5fb03
push 0
call eax
mov ecx, 0x5162
xor edi, edi
add edi, eax
mov ebx, 0x6ea297a0
sub ebx, 0x3a0fc7a0
add ebx, dword [ebp - 0x30]
mov esi, 0xfea6d0a8
mov dword [ebp - 0x18], 0xc4b7339f
mov edx, dword [ebx]
xor dword [ebp - 0x14], 0x8e0188c6
xor edx, esi
add dword [ebp - 0x1c], 0x3456b92a
mov dword [edi], edx
mov dword [ebp - 0xc], 0xa96f0dc2
add edi, 0x2cb2c401
sub edi, 0x2cb2c3fd
add ebx, 0x875be901
sub ebx, 0x875be8fd
loop 0x348bc7d7
add eax, 0x96c8b408
sub eax, 0x96c77bad
mov ebx, eax
add eax, 0x494da681
sub eax, 0x494da67c
mov ecx, 0x7a060ae0
sub ecx, 0x457d0ae0
add ecx, dword [ebp - 0x30]
call ebx
leave
ret
Function at 0x401a40
Capabilities:
Write file on windows

Disassembly:
mov edx, dword [esp + 8]
mov ecx, dword [ecx]
lea eax, [esp + 8]
push 0
push eax
mov eax, dword [esp + 0xc]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
ret 8

Function at 0xab2058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.00ab21a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, pe_nt_image_headers32
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0xab207e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xab206a
add dl, dl
jne 0xab2089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xab20dc
xor eax, eax
add dl, dl
jne 0xab2096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xab217d
add dl, dl
jne 0xab20a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xab20b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xab20bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xab20c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0xab20d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0xab2075
mov eax, 1
add dl, dl
jne 0xab20ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xab20f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xab20e1
sub eax, ebx
mov ebx, 1
jne 0xab2128
mov ecx, 1
add dl, dl
jne 0xab210e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xab2119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xab2105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xab2075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0xab213f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xab214a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xab2136
cmp eax, 0x7d00
jae 0xab216d
cmp eax, 0x500
jb 0xab2168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xab2075
cmp eax, 0x7f
ja 0xab2170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xab2075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0xab219e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0xab2075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x403df0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
push ebx
push edi
push esi
mov eax, edx
mov edx, dword [esp + 0x14]
mov ebp, dword [esp + 0x20]
xor esi, esi
lea edx, [eax + edx*2]
movzx ebx, byte [eax + 1]
cmp byte [eax], ch
lea eax, [eax + 2]
lea edi, [esi + ebx]
jne 0x403e40
cmp esi, edi
ja 0x403ea8
cmp edi, dword [esp + 0x1c]
ja 0x403eb6
add esi, dword [esp + 0x18]
nop word [eax + eax]
test ebx, ebx
je 0x403e42
dec ebx
cmp byte [esi], cl
lea esi, [esi + 1]
jne 0x403e30
jmp 0x403e9f
ja 0x403e48
cmp eax, edx
mov esi, edi
jne 0x403e03
mov edi, dword [esp + 0x24]
movzx ecx, cx
mov al, 1
add edi, ebp
nop word cs:[eax + eax]
nop dword [eax]
movzx edx, byte [ebp]
lea esi, [ebp + 1]
test dl, dl
js 0x403e80
mov ebp, esi
sub ecx, edx
jns 0x403e97
jmp 0x403ea1
cmp esi, edi
je 0x403ec6
movzx esi, byte [ebp + 1]
and edx, 0x7f
add ebp, 2
shl edx, 8
or edx, esi
sub ecx, edx
js 0x403ea1
xor al, 1
cmp ebp, edi
jne 0x403e60
jmp 0x403ea1
xor eax, eax
and al, 1
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, esi
mov edx, edi
push 0x417c14
call fcn.00415bb0
mov edx, dword [esp + 0x1c]
mov ecx, edi
push 0x417c14
call fcn.004159c0
mov ecx, str.called__Option::unwrap____on_a__None__value
mov edx, 0x2b
push 0x417c04
call fcn.00415a20
int3
Function at 0x40b6c0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x14
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x414800
lea eax, [ebp - 0x18]
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
movzx eax, byte [0x41d10c]
test al, al
je 0x40b891
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x40b70c
cmp eax, 3
jne 0x40b88a
mov ebx, dword [0x41d110]
test ebx, ebx
je 0x40b88a
mov dword [ebp - 0x20], 0
jmp 0x40b737
mov ebx, dword [ebx + 8]
test ebx, ebx
je 0x40b768
mov esi, dword [ebx]
mov edi, dword [ebx + 4]
test edi, edi
je 0x40b8db
dec esi
push esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x40b730
push 0
push esi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push esi
call edi
add esp, 4
mov al, 1
mov dword [ebp - 0x20], eax
jmp 0x40b730
test byte [ebp - 0x20], 1
je 0x40b88a
mov ebx, dword [0x41d110]
test ebx, ebx
je 0x40b88a
mov dword [ebp - 0x20], 0
jmp 0x40b797
mov ebx, dword [ebx + 8]
test ebx, ebx
je 0x40b7c8
mov esi, dword [ebx]
mov edi, dword [ebx + 4]
test edi, edi
je 0x40b8db
dec esi
push esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x40b790
push 0
push esi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push esi
call edi
add esp, 4
mov al, 1
mov dword [ebp - 0x20], eax
jmp 0x40b790
test byte [ebp - 0x20], 1
je 0x40b88a
mov ebx, dword [0x41d110]
test ebx, ebx
je 0x40b88a
mov dword [ebp - 0x20], 0
jmp 0x40b7f7
mov ebx, dword [ebx + 8]
test ebx, ebx
je 0x40b828
mov esi, dword [ebx]
mov edi, dword [ebx + 4]
test edi, edi
je 0x40b8db
dec esi
push esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x40b7f0
push 0
push esi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push esi
call edi
add esp, 4
mov al, 1
mov dword [ebp - 0x20], eax
jmp 0x40b7f0
test byte [ebp - 0x20], 1
je 0x40b88a
mov ebx, dword [0x41d110]
test ebx, ebx
je 0x40b88a
mov dword [ebp - 0x20], 0
jmp 0x40b857
mov ebx, dword [ebx + 8]
test ebx, ebx
je 0x40b884
mov esi, dword [ebx]
mov edi, dword [ebx + 4]
test edi, edi
je 0x40b8db
dec esi
push esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x40b850
push 0
push esi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push esi
call edi
add esp, 4
mov al, 1
mov dword [ebp - 0x20], eax
jmp 0x40b850
test byte [ebp - 0x20], 1
jne 0x40b8a4
movzx eax, byte [0x41ac80]
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret 0xc
mov ebx, dword [0x41d110]
jmp 0x40b8af
mov ebx, dword [ebx + 8]
test ebx, ebx
je 0x40b88a
mov esi, dword [ebx]
mov edi, dword [ebx + 4]
test edi, edi
je 0x40b8db
dec esi
push esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x40b8ac
push 0
push esi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push esi
call edi
add esp, 4
jmp 0x40b8ac
mov dword [ebp - 0x10], 0
mov ecx, str.called__Option::unwrap____on_a__None__value
mov edx, 0x2b
push 0x41a598
call fcn.00415a20
add esp, 4
ud2
Function at 0x40c2c0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push edi
push esi
mov eax, dword [0x41d048]
test eax, eax
je 0x40c373
dec eax
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 2
jb 0x40c2ec
cmp dword [eax + 4], 0
mov edi, eax
je 0x40c2ec
add edi, 8
jmp 0x40c36e
mov eax, dword [0x41d048]
test eax, eax
je 0x40c382
dec eax
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
je 0x40c36c
mov esi, eax
test eax, eax
jne 0x40c342
movzx eax, byte [0x41d0a8]
mov ecx, 0xc
call fcn.00404be0
test eax, eax
je 0x40c39d
mov dword [eax], 0x41d048
mov dword [eax + 4], 0
mov esi, eax
mov eax, dword [0x41d048]
test eax, eax
je 0x40c391
dec eax
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [esi + 8]
cmp dword [esi + 4], 0
lea edi, [esi + 8]
mov dword [esi + 4], 1
mov dword [esi + 8], 0
je 0x40c36e
test ecx, ecx
je 0x40c36e
lock dec dword [ecx]
jne 0x40c36e
call fcn.0040bfc0
jmp 0x40c36e
xor edi, edi
mov eax, edi
pop esi
pop edi
ret
mov ecx, 0x41d048
call fcn.00416390
jmp 0x40c2d0
mov ecx, 0x41d048
call fcn.00416390
jmp 0x40c2fa
mov ecx, 0x41d048
call fcn.00416390
jmp 0x40c33a
mov ecx, 4
mov edx, 0xc
call fcn.00415830
int3

Function at 0x40c880
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push esi
mov eax, dword [0x41d058]
test eax, eax
je 0x40c8ff
dec eax
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 2
jb 0x40c89f
cmp byte [eax + 4], 0
mov esi, eax
jne 0x40c8f4
mov eax, dword [0x41d058]
test eax, eax
je 0x40c90b
dec eax
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
je 0x40c8f9
mov esi, eax
test eax, eax
jne 0x40c8ee
movzx eax, byte [0x41d0a8]
mov ecx, 8
call fcn.00404be0
test eax, eax
je 0x40c923
mov dword [eax], 0x41d058
mov byte [eax + 4], 0
mov esi, eax
mov eax, dword [0x41d058]
test eax, eax
je 0x40c917
dec eax
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov word [esi + 4], 1
add esi, 5
jmp 0x40c8fb
xor esi, esi
mov eax, esi
pop esi
ret
mov ecx, 0x41d058
call fcn.00416390
jmp 0x40c88b
mov ecx, 0x41d058
call fcn.00416390
jmp 0x40c8a9
mov ecx, 0x41d058
call fcn.00416390
jmp 0x40c8e6
mov ecx, 4
mov edx, 8
call fcn.00415830
int3