joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100a1c60
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov eax, dword [esp + 0x34]
test eax, eax
jne 0x100a1c90
mov ecx, dword [esp + 0x38]
test ecx, ecx
je 0x100a1d60
add esp, 0x1c
mov eax, 1
pop ebx
pop esi
pop edi
pop ebp
ret 0xc
cmp eax, 1
je 0x100a1d90
cmp eax, 3
jne 0x100a1c7b
mov eax, dword [0x100ad0f0]
cmp eax, 0xffffffff
je 0x100a1c7b
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov ebx, eax
test eax, eax
je 0x100a1c7b
lea esi, [eax + 0x1c]
lea edi, [eax + 0x38]
test byte [eax + 0x20], 0x30
je 0x100a1dc0
mov eax, dword [eax + 0xb4]
test eax, eax
je 0x100a1cd9
call fcn.100a19a0
mov eax, dword [ebx + 0x14]
test eax, eax
je 0x100a1d0b
mov dword [esp], eax
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
call ebp
mov eax, dword [ebx + 0x18]
sub esp, 4
test eax, eax
je 0x100a1cfd
mov dword [esp], eax
call ebp
sub esp, 4
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x14], 0
mov dword [esp], esi
call fcn.100a4530
mov dword [esp], edi
call fcn.100a53b0
cmp eax, 1
je 0x100a1e86
mov eax, dword [ebx + 0xb0]
mov dword [ebx + 0x38], 0xffffffff
test eax, eax
je 0x100a1e7a
mov eax, dword [0x100ad0f0]
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
jmp 0x100a1c7b
mov eax, dword [0x101d9224]
test eax, eax
je 0x100a1c7b
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_RemoveVectoredExceptionHandler]
mov dword [0x101d9224], 0
sub esp, 4
jmp 0x100a1c7b
mov dword [esp + 4], 0x100a1060
mov dword [esp], 1
call dword [sym.imp.KERNEL32.dll_AddVectoredExceptionHandler]
sub esp, 8
mov dword [0x101d9224], eax
mov eax, 1
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret 0xc
mov edx, dword [ebx + 0x68]
mov eax, dword [eax + 0x18]
test edx, edx
jne 0x100a1e30
test eax, eax
je 0x100a1dda
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
mov eax, dword [ebx + 0xb4]
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x68], 1
test eax, eax
je 0x100a1df7
call fcn.100a19a0
test byte [ebx + 0x24], 4
je 0x100a1e70
mov eax, dword [ebx + 0x14]
mov dword [ebx], 0xdeadbeef
test eax, eax
je 0x100a1d0b
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebx + 0x14], 0
sub esp, 4
mov dword [esp], esi
call fcn.100a4530
jmp 0x100a1d13
test eax, eax
je 0x100a1e70
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebx + 0x18], 0
sub esp, 4
mov dword [esp], esi
call fcn.100a4530
mov dword [esp], edi
call fcn.100a53b0
cmp eax, 1
je 0x100a1e86
mov dword [ebx + 0x38], 0xffffffff
jmp 0x100a1c7b
mov dword [esp], esi
call fcn.100a4530
jmp 0x100a1e4f
mov eax, ebx
call fcn.100a15b0
jmp 0x100a1d39
call fcn.100a1310
lea esi, [esi]
nop

Function at 0x100a2720
Capabilities:
Get thread local storage value

Disassembly:
sub esp, 0x1c
call fcn.100a1770
mov eax, dword [0x100ad0f0]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
test eax, eax
je 0x100a2748
mov eax, dword [eax + 0x18]
add esp, 0x1c
ret
call fcn.100a1830
test eax, eax
jne 0x100a273d
add esp, 0x1c
ret
Function at 0x100a27b0
Capabilities:
Get thread local storage value

Disassembly:
sub esp, 0x1c
call fcn.100a1770
mov eax, dword [0x100ad0f0]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
test eax, eax
je 0x100a27d8
add eax, 0xc
add esp, 0x1c
ret
call fcn.100a1830
test eax, eax
jne 0x100a27cd
jmp 0x100a27d0

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

Disassembly:
push esi
push ebx
sub esp, 0x14
mov esi, dword [esp + 0x20]
call fcn.100a1970
mov dword [eax + 4], esi
mov ebx, eax
mov eax, dword [eax + 0xb4]
test eax, eax
je 0x100a2832
call fcn.100a19a0
test byte [ebx + 0x20], 0x30
jne 0x100a284c
add ebx, 0x70
mov dword [esp + 4], 1
mov dword [esp], ebx
call dword [sym.imp.msvcrt.dll_longjmp]
mov eax, dword [0x100ad0f0]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
push edx
test eax, eax
je 0x100a288d
cmp dword [ebx + 0x14], 0
mov eax, dword [eax + 0x18]
je 0x100a28cd
mov dword [ebx + 0x68], 1
mov esi, dword [ebx + 4]
test eax, eax
je 0x100a2882
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
xor eax, eax
mov dword [ebx + 0x18], eax
test byte [ebx + 0x24], 4
jne 0x100a2896
mov dword [esp], esi
call dword [sym.imp.msvcrt.dll__endthreadex]
mov eax, dword [ebx + 0x14]
mov dword [ebx], 0xdeadbeef
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
push ecx
mov dword [ebx + 0x14], eax
mov eax, ebx
call fcn.100a1750
xor eax, eax
mov dword [esp + 4], eax
mov eax, dword [0x100ad0f0]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push edx
push edx
jmp 0x100a288d
mov dword [ebx], 0xdeadbeef
test eax, eax
je 0x100a28e1
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
xor eax, eax
mov esi, dword [ebx + 4]
mov dword [ebx + 0x18], eax
jmp 0x100a28ae

Function at 0x100a28f0
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x101d9250]
test eax, eax
jne 0x100a2900
xor eax, eax
ret
sub esp, 0x1c
call fcn.100a1770
mov eax, dword [0x100ad0f0]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
test eax, eax
je 0x100a2940
mov edx, dword [eax + 0x10]
test edx, edx
jle 0x100a2930
xor eax, eax
add esp, 0x1c
ret
test byte [eax + 0x20], 3
je 0x100a2924
mov eax, dword [eax + 0x24]
and eax, 1
jmp 0x100a2926
call fcn.100a1830
test eax, eax
jne 0x100a291d
jmp 0x100a2924

Function at 0x100a2950
Capabilities:
Get thread local storage value

Disassembly:
sub esp, 0x1c
call fcn.100a1770
mov eax, dword [0x100ad0f0]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
test eax, eax
je 0x100a2990
mov edx, dword [esp + 0x20]
test edx, edx
jle 0x100a2980
lock add dword [eax + 0x10], 1
add esp, 0x1c
ret
lock sub dword [eax + 0x10], 1
add esp, 0x1c
ret
call fcn.100a1830
test eax, eax
jne 0x100a296d
add esp, 0x1c
ret
Function at 0x100a2a90
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
call fcn.100a1770
mov eax, dword [0x100ad0f0]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov ebx, eax
test eax, eax
je 0x100a2b00
test byte [ebx + 0x20], 0xc
jne 0x100a2ac0
mov eax, dword [0x101d9250]
test eax, eax
jne 0x100a2ad0
add esp, 0x14
pop ebx
pop esi
ret
lea esi, [ebx + 0x1c]
mov dword [esp], esi
call fcn.100a4070
movzx eax, byte [ebx + 0x20]
test al, 3
je 0x100a2af2
mov edx, dword [ebx + 0x24]
test dl, 1
je 0x100a2af2
mov ecx, dword [ebx + 0x10]
test ecx, ecx
jle 0x100a2b11
mov dword [esp], esi
call fcn.100a43b0
add esp, 0x14
pop ebx
pop esi
ret
call fcn.100a1830
mov ebx, eax
test eax, eax
jne 0x100a2ab1
add esp, 0x14
pop ebx
pop esi
ret
and eax, 0xfffffff3
and edx, 0xfffffffe
or eax, 4
mov dword [ebx + 0x24], edx
mov byte [ebx + 0x20], al
mov eax, dword [ebx + 0x18]
test eax, eax
je 0x100a2b31
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push eax
mov dword [esp], esi
call fcn.100a43b0
call fcn.100a29a0
nop
push edi
push esi
push ebx
sub esp, 0x10
mov eax, dword [esp + 0x20]
test eax, eax
je 0x100a2bc0
mov dword [esp], eax
call fcn.100a3da0
mov edi, eax
mov eax, 0xfffffffe
cmp eax, edi
mov eax, 0
sbb eax, edx
jb 0x100a2c00
call fcn.100a1770
mov eax, dword [0x100ad0f0]
mov esi, edi
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov ebx, eax
test eax, eax
je 0x100a2c60
test edi, edi
je 0x100a2bda
call fcn.100a2a90
mov eax, dword [ebx + 0x18]
test eax, eax
je 0x100a2c38
mov dword [esp + 4], esi
mov dword [esp], eax
call fcn.100a3ec0
call fcn.100a2a90
add esp, 0x10
xor eax, eax
pop ebx
pop esi
pop edi
ret
call fcn.100a1770
mov eax, dword [0x100ad0f0]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
test eax, eax
je 0x100a2c50
call fcn.100a2a90
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_Sleep]
sub esp, 4
call fcn.100a2a90
add esp, 0x10
xor eax, eax
pop ebx
pop esi
pop edi
ret
call fcn.100a1770
mov eax, dword [0x100ad0f0]
mov esi, 0xffffffff
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov ebx, eax
test eax, eax
jne 0x100a2b92
call fcn.100a1830
mov ebx, eax
jmp 0x100a2b92
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_Sleep]
sub esp, 4
jmp 0x100a2bae
call fcn.100a1830
jmp 0x100a2bda
call fcn.100a1830
mov ebx, eax
jmp 0x100a2b8e
Function at 0x100a2c70
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov esi, dword [esp + 0x20]
call fcn.100a1770
mov eax, dword [0x100ad0f0]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov ebx, eax
test eax, eax
je 0x100a2ce8
test esi, esi
je 0x100a2cc0
call fcn.100a2a90
mov eax, dword [ebx + 0x18]
test eax, eax
je 0x100a2cf8
mov dword [esp + 4], esi
mov dword [esp], eax
call fcn.100a3ec0
call fcn.100a2a90
add esp, 0x14
xor eax, eax
pop ebx
pop esi
ret
call fcn.100a2a90
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_Sleep]
sub esp, 4
call fcn.100a2a90
add esp, 0x14
xor eax, eax
pop ebx
pop esi
ret
call fcn.100a1830
mov ebx, eax
jmp 0x100a2c95
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_Sleep]
sub esp, 4
jmp 0x100a2cb1

Function at 0x100a6ac0
Capabilities:
Encrypt data using blowfish

Disassembly:
push edi
mov ecx, 0x400
push esi
mov esi, 0x100ae4a0
push ebx
sub esp, 0x10
mov eax, dword [esp + 0x20]
lea edx, [eax + 0x48]
mov edi, edx
rep movsd dword es:[edi], dword [esi]
xor edi, edi
mov esi, 4
xor edx, edx
mov ebx, dword [esp + 0x24]
shl edx, 8
movzx ebx, byte [ebx + edi]
inc edi
or edx, ebx
cmp edi, dword [esp + 0x28]
jl 0x100a6afa
xor edi, edi
dec esi
jne 0x100a6ae4
xor edx, dword [ecx*4 + 0x100af4a0]
mov dword [eax + ecx*4], edx
inc ecx
cmp ecx, 0x12
jne 0x100a6add
xor edx, edx
xor ebx, ebx
mov dword [esp + 0xc], edx
mov dword [esp + 8], edx
lea edx, [esp + 8]
lea ecx, [esp + 0xc]
call fcn.10007a50
mov edx, dword [esp + 8]
mov dword [eax + ebx*4], edx
mov edx, dword [esp + 0xc]
mov dword [eax + ebx*4 + 4], edx
add ebx, 2
cmp ebx, 0x12
jne 0x100a6b19
mov ebx, esi
xor edi, edi
lea edx, [esp + 8]
add edi, 2
lea ecx, [esp + 0xc]
call fcn.10007a50
mov edx, dword [esp + 8]
mov dword [eax + ebx + 0x48], edx
mov edx, dword [esp + 0xc]
mov dword [eax + ebx + 0x4c], edx
add ebx, 8
cmp edi, 0x100
jne 0x100a6b41
add esi, 0x400
cmp esi, 0x1000
jne 0x100a6b3d
add esp, 0x10
pop ebx
pop esi
pop edi
ret
Function at 0x100a7f8c
Capabilities:
Hash data using ripemd320
Hash data using sha1

Disassembly:
mov edx, dword [esp + 8]
mov eax, dword [esp + 4]
mov ecx, edx
sar ecx, 5
cmp edx, 0x100
mov byte [eax], cl
je 0x100a801c
jg 0x100a7fb7
cmp edx, 0x80
je 0x100a7fc9
cmp edx, 0xa0
je 0x100a7fef
jmp 0x100a7fc3
cmp edx, 0x140
je 0x100a805b
mov eax, 0xffffffea
ret
mov dword [eax + 0x50], 0x67452301
mov edx, 0x100365c0
mov dword [eax + 0x54], 0xefcdab89
mov dword [eax + 0x58], 0x98badcfe
mov dword [eax + 0x5c], 0x10325476
jmp 0x100a80a6
mov dword [eax + 0x50], 0x67452301
mov edx, 0x10038820
mov dword [eax + 0x54], 0xefcdab89
mov dword [eax + 0x58], 0x98badcfe
mov dword [eax + 0x5c], 0x10325476
mov dword [eax + 0x60], 0xc3d2e1f0
jmp 0x100a80a6
mov dword [eax + 0x50], 0x67452301
mov edx, 0x10037680
mov dword [eax + 0x54], 0xefcdab89
mov dword [eax + 0x58], 0x98badcfe
mov dword [eax + 0x5c], 0x10325476
mov dword [eax + 0x60], 0x76543210
mov dword [eax + 0x64], 0xfedcba98
mov dword [eax + 0x68], 0x89abcdef
mov dword [eax + 0x6c], 0x1234567
jmp 0x100a80a6
mov dword [eax + 0x50], 0x67452301
mov edx, 0x1003a5f0
mov dword [eax + 0x54], 0xefcdab89
mov dword [eax + 0x58], 0x98badcfe
mov dword [eax + 0x5c], 0x10325476
mov dword [eax + 0x60], 0xc3d2e1f0
mov dword [eax + 0x64], 0x76543210
mov dword [eax + 0x68], 0xfedcba98
mov dword [eax + 0x6c], 0x89abcdef
mov dword [eax + 0x70], 0x1234567
mov dword [eax + 0x74], 0x3c2d1e0f
mov dword [eax + 0x78], edx
xor edx, edx
mov dword [eax + 8], edx
mov dword [eax + 0xc], edx
xor eax, eax
ret

Function at 0x100a80b4
Capabilities:
Hash data using sha1
Hash data using sha224
Hash data using sha256

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 8
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
mov ecx, edx
sar ecx, 5
cmp edx, 0xe0
mov byte [eax], cl
je 0x100a8118
cmp edx, 0x100
je 0x100a8147
cmp edx, 0xa0
mov ecx, 0xffffffea
jne 0x100a81a5
mov dword [eax + 0x50], 0x67452301
mov edx, 0x1003d5c0
mov dword [eax + 0x54], 0xefcdab89
mov dword [eax + 0x58], 0x98badcfe
mov dword [eax + 0x5c], 0x10325476
mov dword [eax + 0x60], 0xc3d2e1f0
jmp 0x100a8198
mov ebp, 0xc1059ed8
mov edi, 0x367cd507
mov esi, 0x3070dd17
mov ebx, 0xf70e5939
mov dword [esp + 4], 0x68581511
mov ecx, 0xffc00b31
mov edx, 0xbefa4fa4
mov dword [esp], 0x64f98fa7
jmp 0x100a8174
mov ebp, 0x6a09e667
mov edi, 0xbb67ae85
mov esi, 0x3c6ef372
mov ebx, 0xa54ff53a
mov dword [esp + 4], 0x9b05688c
mov ecx, 0x510e527f
mov edx, 0x5be0cd19
mov dword [esp], 0x1f83d9ab
mov dword [eax + 0x58], esi
mov esi, dword [esp]
mov dword [eax + 0x5c], ebx
mov ebx, dword [esp + 4]
mov dword [eax + 0x6c], edx
mov edx, 0x1003e7f0
mov dword [eax + 0x50], ebp
mov dword [eax + 0x54], edi
mov dword [eax + 0x60], ecx
mov dword [eax + 0x64], ebx
mov dword [eax + 0x68], esi
mov dword [eax + 0x70], edx
xor ebx, ebx
xor ecx, ecx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
add esp, 8
mov eax, ecx
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x100a81b0
Capabilities:
Hash data using sha224
Hash data using sha256

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x2c
mov eax, dword [esp + 0x44]
mov ebp, dword [esp + 0x40]
mov edx, eax
sar edx, 6
cmp eax, 0x180
mov byte [ebp], dl
je 0x100a82e7
jg 0x100a8265
cmp eax, 0xe0
je 0x100a8356
cmp eax, 0x100
mov edx, 0xffffffea
jne 0x100a8454
mov dword [esp + 0x20], 0xc84c64c2
mov eax, 0xfc2bf72c
mov edx, 0x22312194
mov dword [esp + 0x24], 0x9f555fa3
mov esi, 0x53863992
mov edi, 0xbe5e1e25
mov dword [esp + 0x18], 0x6f53b151
mov ecx, 0x2c85b8aa
mov ebx, 0x2b0199fc
mov dword [esp + 0x1c], 0x2393b86b
mov dword [esp + 0x10], 0x5940eabd
mov dword [esp + 0x14], 0x96387719
mov dword [esp + 8], 0xa88effe3
mov dword [esp + 0xc], 0x96283ee2
mov dword [esp], 0x81c52ca2
mov dword [esp + 4], 0xeb72ddc
jmp 0x100a83c3
cmp eax, 0x200
mov edx, 0xffffffea
jne 0x100a8454
mov dword [esp + 0x20], 0x84caa73b
mov eax, 0xf3bcc908
mov edx, 0x6a09e667
mov dword [esp + 0x24], 0xbb67ae85
mov esi, 0x2b3e6c1f
mov edi, 0x9b05688c
mov dword [esp + 0x18], 0xfe94f82b
mov ecx, 0xfb41bd6b
mov ebx, 0x1f83d9ab
mov dword [esp + 0x1c], 0x3c6ef372
mov dword [esp + 0x10], 0x5f1d36f1
mov dword [esp + 0x14], 0xa54ff53a
mov dword [esp + 8], 0xade682d1
mov dword [esp + 0xc], 0x510e527f
mov dword [esp], 0x137e2179
mov dword [esp + 4], 0x5be0cd19
jmp 0x100a83c3
mov dword [esp + 0x20], 0x367cd507
mov eax, 0xc1059ed8
mov edx, 0xcbbb9d5d
mov dword [esp + 0x24], 0x629a292a
mov esi, 0x68581511
mov edi, 0x8eb44a87
mov dword [esp + 0x18], 0x3070dd17
mov ecx, 0x64f98fa7
mov ebx, 0xdb0c2e0d
mov dword [esp + 0x1c], 0x9159015a
mov dword [esp + 0x10], 0xf70e5939
mov dword [esp + 0x14], 0x152fecd8
mov dword [esp + 8], 0xffc00b31
mov dword [esp + 0xc], 0x67332667
mov dword [esp], 0xbefa4fa4
mov dword [esp + 4], 0x47b5481d
jmp 0x100a83c3
mov dword [esp + 0x20], 0x89dcd4d6
mov eax, 0x19544da2
mov edx, 0x8c3d37c8
mov dword [esp + 0x24], 0x73e19966
mov esi, 0x4c48942
mov edi, 0x77e36f73
mov dword [esp + 0x18], 0x32ff9c82
mov ecx, 0x6a1d36c8
mov ebx, 0x3f9d85a8
mov dword [esp + 0x1c], 0x1dfab7ae
mov dword [esp + 0x10], 0x582f9fcf
mov dword [esp + 0x14], 0x679dd514
mov dword [esp + 8], 0x7bd44da8
mov dword [esp + 0xc], 0xf6d2b69
mov dword [esp], 0x91d692a1
mov dword [esp + 4], 0x1112e6ad
mov dword [ebp + 0x90], eax
mov eax, dword [esp + 0x20]
mov dword [ebp + 0x94], edx
mov edx, dword [esp + 0x24]
mov dword [ebp + 0xb8], esi
mov dword [ebp + 0xbc], edi
mov dword [ebp + 0x98], eax
mov eax, dword [esp + 0x18]
mov dword [ebp + 0x9c], edx
mov edx, dword [esp + 0x1c]
mov dword [ebp + 0xc0], ecx
mov dword [ebp + 0xc4], ebx
mov dword [ebp + 0xa0], eax
mov eax, dword [esp + 0x10]
mov dword [ebp + 0xa4], edx
mov edx, dword [esp + 0x14]
mov dword [ebp + 0xa8], eax
mov eax, dword [esp + 8]
mov dword [ebp + 0xac], edx
mov edx, dword [esp + 0xc]
mov dword [ebp + 0xb0], eax
mov eax, dword [esp]
mov dword [ebp + 0xb4], edx
mov edx, dword [esp + 4]
mov dword [ebp + 0xc8], eax
xor eax, eax
mov dword [ebp + 0xcc], edx
xor edx, edx
mov dword [ebp + 8], eax
mov dword [ebp + 0xc], eax
add esp, 0x2c
mov eax, edx
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x100a8460
Capabilities:
Encrypt data using twofish

Disassembly:
push ebp
cmp ecx, 4
push edi
mov ebp, edx
push esi
push ebx
jne 0x100a84af
mov edx, dword [edx + 0xc]
movzx ecx, byte [eax]
movzx edi, byte [eax + 1]
movzx esi, byte [eax + 2]
mov bl, byte [ecx + 0x100bfdc0]
movzx ecx, dh
xor cl, byte [edi + 0x100bfec0]
mov byte [eax + 1], cl
mov ecx, edx
xor bl, dl
mov byte [eax], bl
shr ecx, 0x10
xor cl, byte [esi + 0x100bfec0]
shr edx, 0x18
mov byte [eax + 2], cl
movzx ecx, byte [eax + 3]
xor dl, byte [ecx + 0x100bfdc0]
mov byte [eax + 3], dl
jmp 0x100a84b4
cmp ecx, 2
jle 0x100a84f6
mov edx, dword [ebp + 8]
movzx ecx, byte [eax]
movzx esi, byte [eax + 1]
mov bl, byte [ecx + 0x100bfdc0]
movzx ecx, dh
xor cl, byte [esi + 0x100bfdc0]
movzx esi, byte [eax + 2]
mov byte [eax + 1], cl
mov ecx, edx
xor bl, dl
mov byte [eax], bl
shr ecx, 0x10
xor cl, byte [esi + 0x100bfec0]
shr edx, 0x18
mov byte [eax + 2], cl
movzx ecx, byte [eax + 3]
xor dl, byte [ecx + 0x100bfec0]
mov byte [eax + 3], dl
movzx ecx, byte [eax]
mov edx, dword [ebp + 4]
movzx esi, byte [ebp]
mov bl, byte [ecx + 0x100bfec0]
xor bl, dl
movzx ecx, bl
movzx ecx, byte [ecx + 0x100bfec0]
xor ecx, esi
movzx esi, byte [eax + 1]
mov bl, byte [ecx + 0x100bfdc0]
movzx ecx, dh
xor cl, byte [esi + 0x100bfdc0]
mov byte [eax], bl
mov ebx, dword [ebp]
movzx ecx, cl
movzx ecx, byte [ecx + 0x100bfec0]
movzx esi, bh
xor ecx, esi
movzx esi, byte [eax + 2]
mov bl, byte [ecx + 0x100bfec0]
mov ecx, edx
shr ecx, 0x10
shr edx, 0x18
xor cl, byte [esi + 0x100bfec0]
mov byte [eax + 1], bl
movzx esi, byte [ebp + 2]
movzx ecx, cl
movzx ecx, byte [ecx + 0x100bfdc0]
xor ecx, esi
mov bl, byte [ecx + 0x100bfdc0]
movzx ecx, byte [eax + 3]
mov byte [eax + 2], bl
xor dl, byte [ecx + 0x100bfdc0]
mov ecx, dword [ebp]
movzx edx, dl
movzx edx, byte [edx + 0x100bfdc0]
shr ecx, 0x18
xor edx, ecx
mov bl, byte [edx + 0x100bfec0]
mov byte [eax + 3], bl
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x40380b
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov esi, eax
mov al, byte [esi]
cmp al, 0x22
jne 0x403834
cmp al, 0x22
je 0x40382c
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x403820
cmp byte [esi], 0x22
jne 0x40383e
inc esi
jmp 0x40383e
cmp al, 0x20
jle 0x40383e
inc esi
cmp byte [esi], 0x20
jg 0x403838
mov al, byte [esi]
test al, al
je 0x403848
cmp al, 0x20
jle 0x403831
and dword [ebp - 0x18], 0
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.004038b6
push 0x405004
push section..data
call fcn.0040389c
test byte [ebp - 0x18], 1
pop ecx
pop ecx
je 0x403878
movzx eax, word [ebp - 0x14]
jmp 0x40387b
push 0xa
pop eax
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov esi, eax
call fcn.004038ce
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x401219
Capabilities:
Terminate process

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40701c
push 0x40109a
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push eax
fnstcw word [esp]
or word [esp], 0x300
fldcw word [esp]
add esp, 4
push 0
push 0
push 0x407028
push 0x407024
push 0x407020
call sub.CRTDLL.DLL___GetMainArgs
push dword [0x407028]
push dword [0x407024]
push dword [0x407020]
mov dword [0x407014], esp
call fcn.00401537
add esp, 0x18
xor ecx, ecx
mov dword [ebp - 4], ecx
push eax
call sub.CRTDLL.DLL_exit
leave
ret

Function at 0x4019de
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
mov ebx, esi
add ebx, 0xc8
mov edi, dword [ebp + 0xc]
mov ecx, esi
mov eax, edi
shl eax, cl
cdq
idiv ebx
mov dword [ebp - 8], eax
and dword [ebp - 4], 0
jmp 0x401a7c
and dword [ebp - 0xc], 0
and dword [ebp - 0x10], 0
jmp 0x401a17
add dword [ebp - 0xc], ebx
inc dword [ebp - 0x10]
mov eax, dword [ebp - 4]
cmp dword [ebp - 0x10], eax
jl 0x401a11
mov ecx, dword [ebp - 8]
cmp eax, ecx
jne 0x401a30
mov eax, dword [ebp + 0xc]
add eax, esi
mov ebx, eax
sub ebx, dword [ebp - 0xc]
or ebx, ebx
je 0x401a8d
and dword [ebp - 0x14], 0
push ebx
push dword [ebp - 0xc]
push esi
call fcn.0040198a
mov dword [ebp - 0x18], eax
push ebx
push dword [ebp - 0xc]
push esi
call fcn.0040198a
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x1c]
or edx, esi
add edx, eax
push edx
mov edx, dword [ebp - 0x18]
xor edx, esi
add edx, eax
push edx
call fcn.00401970
add esp, 0x20
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], 0x7e8
jl 0x401a38
inc dword [ebp - 4]
mov eax, dword [ebp - 8]
mov edx, esi
dec edx
and eax, edx
cmp dword [ebp - 4], eax
jle 0x401a07
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401bc0
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
sub esp, 0x30
mov esi, dword [0x4193a0]
test esi, esi
jle 0x401cd0
mov edi, dword [0x4193a4]
xor ebx, ebx
lea edx, [edi + 0xc]
nop
mov ecx, dword [edx]
cmp ecx, eax
ja 0x401bf4
mov edi, dword [edx + 4]
add ecx, dword [edi + 8]
cmp eax, ecx
jb 0x401c75
add ebx, 1
add edx, 0x14
cmp ebx, esi
jne 0x401be0
mov dword [esp], eax
mov ebx, eax
call fcn.004024b0
test eax, eax
mov edi, eax
je 0x401cf7
mov eax, dword [0x4193a4]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call fcn.004025b0
add eax, dword [edi + 0xc]
mov edx, dword [0x4193a4]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp], eax
mov dword [esp + 4], edx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x401cd7
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x401c6e
sub eax, 4
and eax, 0xfffffffb
jne 0x401c80
add dword [0x4193a0], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
add ebx, dword [0x4193a4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x20]
mov dword [ebx + 4], eax
mov dword [ebx + 8], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0x40
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x401c6e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.004159c0
lea esi, [esi]
xor esi, esi
jmp 0x401bfe
mov eax, dword [0x4193a4]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call fcn.004159c0
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call fcn.004159c0
mov esi, esi
lea edi, [edi]

Function at 0x402130
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x4193b8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x4193b0]
sub esp, 4
test ebx, ebx
je 0x402185
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x40217e
test esi, esi
je 0x40217e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x402160
mov dword [esp], 0x4193b8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret