joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10058d71
Capabilities:
Hash data using md4
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, ebx
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x10058d81
sub esi, ecx
cmp esi, 0x7fffffff
jbe 0x10058d9a
push 0x1b
pop eax
jmp 0x10058e60
push edi
test esi, esi
je 0x10058dab
lea eax, [esi + esi]
push eax
call dword [0x100ac090]
jmp 0x10058db6
push 0x100a5728
call dword [0x100ac09c]
mov edi, eax
pop ecx
test edi, edi
jne 0x10058dc5
push 0x1b
pop eax
jmp 0x10058e5f
xor edx, edx
mov ecx, edx
test esi, esi
je 0x10058ddc
mov al, byte [ecx + ebx]
mov byte [edi + ecx*2], al
mov byte [edi + ecx*2 + 1], dl
inc ecx
cmp ecx, esi
jb 0x10058dcd
push 0xf0000000
push 1
push edx
push edx
lea eax, [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
mov ebx, dword [ebp + 0x10]
test eax, eax
je 0x10058e4d
lea eax, [ebp - 4]
push eax
push 0
push 0
push 0x8002
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x10058e42
push 0
lea eax, [esi + esi]
mov dword [ebp - 0xc], 0x10
push eax
push edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
push 0
lea eax, [ebp - 0xc]
push eax
push ebx
push 2
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push 0
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
and dword [ebx + 0x10], 0
push edi
mov byte [ebx + 0x14], 0
call dword [0x100ac094]
pop ecx
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10058e66
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using des via winapi
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x100ac06c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov esi, dword [ebp + 0xc]
xor ebx, ebx
push 0xf0000000
inc ebx
mov dword [ebp - 0x28], eax
push ebx
push 0
push 0
lea eax, [ebp - 0x24]
mov dword [ebp - 0x1c], 8
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x10058eaa
xor al, al
jmp 0x10058f3c
push edi
xor eax, eax
lea edi, [ebp - 0x18]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x28]
mov word [ebp - 0x18], 0x208
mov dword [ebp - 0x14], 0x6601
mov dword [ebp - 0x10], 8
call fcn.10058f4c
lea eax, [ebp - 0xc]
push 8
push eax
call fcn.1005be73
add esp, 0x10
lea eax, [ebp - 0x20]
push eax
push 0
push 0
push 0x14
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
pop edi
test eax, eax
jne 0x10058f03
xor bl, bl
jmp 0x10058f2f
mov ecx, dword [ebp + 8]
push dword [ebp - 0x1c]
mov eax, dword [ecx]
mov dword [esi], eax
mov eax, dword [ecx + 4]
mov dword [esi + 4], eax
lea eax, [ebp - 0x1c]
push eax
push esi
xor eax, eax
push eax
push eax
push eax
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
push 0
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov al, bl
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.100205ba
mov esp, ebp
pop ebp
ret
Function at 0x1005cec8
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [ebp + 8]
push edi
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x14]
lea eax, [eax + ecx*2]
add eax, 0xc
push eax
call dword [0x100ac090]
mov edi, eax
pop ecx
test edi, edi
je 0x1005cfb4
lea ecx, [edi + 0xc]
mov dword [edi], esi
mov dword [edi + 4], ecx
mov eax, dword [esi + 0xc]
add eax, ecx
push ebx
mov ebx, dword [ebp + 0x10]
mov dword [edi + 8], eax
cmp ebx, dword [esi + 0x10]
jbe 0x1005cf31
push ecx
call dword [esi]
push ebx
push dword [ebp + 0xc]
push dword [edi + 4]
call dword [esi + 4]
mov eax, dword [edi + 8]
add eax, dword [esi + 0xc]
push dword [edi + 4]
mov dword [ebp - 4], eax
push eax
call dword [esi + 8]
mov ebx, dword [esi + 0x14]
add esp, 0x18
mov dword [ebp + 0x10], ebx
jmp 0x1005cf37
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
push dword [edi + 4]
call dword [esi]
push dword [edi + 8]
call dword [esi]
mov eax, dword [ebp + 0x10]
xor ebx, ebx
pop ecx
pop ecx
test eax, eax
je 0x1005cfac
mov dword [ebp - 8], eax
mov ebx, eax
mov eax, dword [ebp - 4]
push 1
mov al, byte [eax]
xor al, 0x36
mov byte [ebp + 0xb], al
lea eax, [ebp + 0xb]
push eax
push dword [edi + 4]
call dword [esi + 4]
mov ecx, dword [ebp - 4]
push 1
mov al, byte [ecx]
xor al, 0x5c
inc ecx
mov byte [ebp + 0xb], al
lea eax, [ebp + 0xb]
push eax
push dword [edi + 8]
mov dword [ebp - 4], ecx
call dword [esi + 4]
add esp, 0x18
sub ebx, 1
jne 0x1005cf51
mov ebx, dword [ebp - 8]
jmp 0x1005cfac
push 1
push 0x10099416
push dword [edi + 4]
call dword [esi + 4]
push 1
push 0x10099417
push dword [edi + 8]
call dword [esi + 4]
add esp, 0x18
inc ebx
cmp ebx, dword [esi + 0x10]
jb 0x1005cf8e
mov eax, edi
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x1005e76e
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
movsx eax, byte [ecx + 8]
push esi
push edi
sub eax, 0
je 0x1005e7eb
sub eax, 1
je 0x1005e7dc
sub eax, 1
je 0x1005e7cd
sub eax, 1
je 0x1005e7b5
sub eax, 1
je 0x1005e7a8
sub eax, 1
jne 0x1005e801
cmp byte [ecx], 0
mov eax, str.true
mov edx, str.false
cmove eax, edx
push eax
jmp 0x1005e7f0
cmp dword [ecx], 0
mov eax, 0x100a5728
cmovne eax, dword [ecx]
jmp 0x1005e7a5
movsd xmm0, qword [ecx]
push ecx
push ecx
movsd qword [esp], xmm0
push dword [ebp + 8]
call fcn.100606bf
add esp, 0xc
jmp 0x1005e7f8
push dword [ecx + 4]
push dword [ecx]
push dword [ebp + 8]
call fcn.100607c1
jmp 0x1005e7c8
push dword [ecx + 4]
push dword [ecx]
push dword [ebp + 8]
call fcn.10060756
jmp 0x1005e7c8
push 0x100a5728
mov ecx, dword [ebp + 8]
call fcn.1000b6b0
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebp
ret 4
push 8
pop ecx
mov esi, str.Type_is_not_convertible_to_string
mov edi, 0x29a
rep movsd dword es:[edi], dword [esi]
push 0x7b
movsw word es:[edi], word [esi]
call fcn.1006a79e
int3
Function at 0x1005e83b
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
cmp esi, 0xffffffff
jne 0x1005e857
mov esi, dword [ebp + 8]
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x1005e84e
sub esi, ecx
mov eax, accept
cmp esi, 0x7fffffff
cmovae esi, eax
lea eax, [esi + 1]
push eax
call fcn.1006b046
mov edi, eax
pop ecx
test edi, edi
je 0x1005e88c
push esi
push dword [ebp + 8]
push edi
call fcn.10061dc0
add esp, 0xc
mov byte [edi + esi], 0
mov eax, edi
pop edi
pop esi
pop ebp
ret
push 9
pop ecx
mov esi, str.Failed_to_allocate_string_value_buffer
mov edi, 0x29a
rep movsd dword es:[edi], dword [esi]
push 0x7b
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
call fcn.1006a79e
int3

Function at 0x10078a09
Capabilities:
Read file on windows

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

Function at 0x1007d9bd
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1007d67d
Function at 0x100859cb
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 0
jne 0x100859d8
xor eax, eax
pop ebp
ret
pop ebp
jmp fcn.100859de
Function at 0x909de0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x2e7000]
push edi
or ebp, 0xffffffff
jmp 0x909e02
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x909e09
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x909df8
mov eax, 1
add ebx, ebx
jne 0x909e1b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x909e2c
jne 0x909e4b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x909e4b
dec eax
add ebx, ebx
jne 0x909e38
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x909e10
add ebx, ebx
jne 0x909e47
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x909e9d
xor ecx, ecx
sub eax, 3
jb 0x909e63
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x909ed2
sar eax, 1
mov ebp, eax
jmp 0x909e6e
add ebx, ebx
jne 0x909e6e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x909e3c
inc ecx
add ebx, ebx
jne 0x909e7c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x909e3c
add ebx, ebx
jne 0x909e89
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x909e7e
jne 0x909e9a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x909e7e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x909ebc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x909eae
jmp 0x909dfe
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x909ebc
add edi, ecx
jmp 0x909dfe
pop esi
mov edi, esi
mov ecx, 0xb74e
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x909eda
mov eax, dword [edi]
mov bl, byte [edi + 4]
xchg ah, al
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x909edf
lea edi, [esi + 0x506000]
mov eax, dword [edi]
or eax, eax
je 0x909f50
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x50f650]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x50f7e8]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x909f05
mov ecx, edi
jns 0x909f34
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x50f7f0]
or eax, eax
je 0x909f4a
mov dword [ebx], eax
add ebx, 4
jmp 0x909f22
call dword [esi + 0x50f7ec]
mov ebp, dword [esi + 0x50f7f4]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x26f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x909f84
sub esp, 0xffffff80
jmp 0x510e63
Function at 0x444a69
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
pushal
call 0x444a78
pop dword [ebp - 0x30]
mov eax, 0x372ee6f4
sub eax, 0x36ea9c7c
sub dword [ebp - 0x30], eax
mov dword [ebp - 0x40], 0xc4d9c15
sub dword [ebp - 0x40], 0xbdfb56ca
mov dword [ebp - 0x3c], 0xf4b61080
sub dword [ebp - 0x3c], 0xc282c43b
mov dword [ebp - 0x38], 0xcfcb26d2
sub dword [ebp - 0x38], 0x837ee2a4
mov dword [ebp - 0x34], 0xc62ad45e
add dword [ebp - 0x34], 0x39d52ba2
lea eax, [ebp - 0x40]
push eax
mov eax, 0xd981784e
add eax, 0x26c43816
add eax, dword [ebp - 0x30]
call dword [eax]
mov dword [ebp - 0x40], 0x6aa1564f
add dword [ebp - 0x40], 0x9d11307
mov dword [ebp - 0x3c], 0xfe38dcbf
sub dword [ebp - 0x3c], 0xbccc7b4a
mov dword [ebp - 0x38], 0xb89c88d7
sub dword [ebp - 0x38], 0x552d1c6b
mov dword [ebp - 0x34], 0xa4c36b96
add dword [ebp - 0x34], 0x5b3c946a
lea ebx, [ebp - 0x40]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x30]
call dword [eax]
push 0x40
push 0x1000
push 0x4e523
push 0
call eax
mov ecx, 0x4c1b
mov esi, eax
mov edi, 0x11da14f
sub edi, 0xd6414f
add edi, dword [ebp - 0x30]
mov edx, 0x9e6c45cb
sub edx, 0x7fc44555
sub dword [ebp - 8], ebx
mov ebx, dword [edi]
xor dword [ebp - 8], 0xb18889e4
xor ebx, edx
mov dword [esi], ebx
sub dword [ebp - 0xc], 0x158875d
add esi, 0xe0aaffd8
sub esi, 0xe0aaffd4
add edi, 4
loop 0x444b8f
add eax, 0x9d1de928
sub eax, 0x9d1cc5e9
mov ebx, eax
add eax, 0xedb0a753
sub eax, 0xedb0a74e
mov ecx, 0x400000
add ecx, dword [ebp - 0x30]
call ebx
leave
ret
Function at 0x6aa0c578
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
mov dword [ebp - 0x3c], ecx
mov eax, dword [ebp + 8]
add eax, 0x11
movzx eax, word [eax]
mov word [ebp - 0xe], ax
mov eax, dword [ebp + 8]
movzx eax, byte [eax + 0x13]
mov byte [ebp - 0xa], al
mov eax, dword [ebp + 8]
movzx eax, byte [eax + 0x10]
and eax, 0xffffffe0
mov byte [ebp - 0xb], al
cmp byte [ebp - 0xb], 0x60
jne 0x6aa0c717
mov eax, dword [ebp - 0x3c]
movzx edx, word [eax + 0x38]
movzx eax, word [ebp - 0xe]
cmp dx, ax
jne 0x6aa0c71a
mov eax, dword [ebp - 0x3c]
movzx eax, byte [eax + 0x3a]
cmp byte [ebp - 0xa], al
jne 0x6aa0c71a
mov eax, dword [ebp - 0x3c]
add eax, 0x3c
mov ecx, eax
call fcn.6aa71fc8
test al, al
je 0x6aa0c5f3
mov eax, dword [ebp - 0x3c]
mov ecx, eax
call fcn.6aa0c10c
jmp 0x6aa0c71b
lea eax, [ebp - 0x30]
mov ecx, eax
call fcn.6aa2db80
mov eax, dword [ebp - 0x3c]
mov eax, dword [eax + 0x30]
mov dword [ebp - 0x30], eax
mov byte [ebp - 0x18], 8
mov byte [ebp - 0x20], 0
mov eax, dword [ebp - 0x3c]
add eax, 0x3c
mov ecx, eax
call fcn.6aa71fb0
cmp eax, 7
setbe al
test al, al
je 0x6aa0c654
mov eax, dword [ebp - 0x3c]
add eax, 0x3c
mov ecx, eax
call fcn.6aa71fb0
mov edx, 7
sub edx, eax
lea eax, [edx + edx]
and eax, 0xe
mov edx, eax
movzx eax, byte [ebp - 0x20]
or eax, edx
mov byte [ebp - 0x20], al
movzx eax, byte [ebp - 0x20]
or eax, 1
mov byte [ebp - 0x20], al
mov byte [ebp - 9], 0
jmp 0x6aa0c686
mov eax, dword [ebp - 0x3c]
add eax, 0x3c
mov ecx, eax
call fcn.6aaea688
movzx edx, byte [ebp - 9]
add edx, 1
movzx eax, byte [eax]
mov byte [ebp + edx - 0x20], al
add byte [ebp - 9], 1
mov eax, dword [ebp - 0x3c]
add eax, 0x3c
mov ecx, eax
call fcn.6aaea64c
cmp byte [ebp - 9], 6
ja 0x6aa0c6a7
mov eax, dword [ebp - 0x3c]
add eax, 0x3c
mov ecx, eax
call fcn.6aa71fc8
xor eax, 1
test al, al
je 0x6aa0c6a7
mov eax, 1
jmp 0x6aa0c6ac
mov eax, 0
test al, al
jne 0x6aa0c65a
mov eax, dword [ebp - 0x3c]
add eax, 0x78
mov ecx, eax
call fcn.6aa0d6ec
mov eax, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x30]
mov dword [esp], edx
mov edx, dword [ebp - 0x2c]
mov dword [esp + 4], edx
mov edx, dword [ebp - 0x28]
mov dword [esp + 8], edx
mov edx, dword [ebp - 0x24]
mov dword [esp + 0xc], edx
mov edx, dword [ebp - 0x20]
mov dword [esp + 0x10], edx
mov edx, dword [ebp - 0x1c]
mov dword [esp + 0x14], edx
mov edx, dword [ebp - 0x18]
mov dword [esp + 0x18], edx
mov edx, dword [ebp - 0x14]
mov dword [esp + 0x1c], edx
mov ecx, eax
call fcn.6aa560a4
sub esp, 0x20
mov eax, dword [ebp - 0x3c]
mov dword [eax + 0x98], 4
mov eax, dword [ebp - 0x3c]
mov byte [eax + 0x74], 0
jmp 0x6aa0c71b
nop
jmp 0x6aa0c71b
nop
leave
ret 4
Function at 0x6aa0c8be
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
mov dword [ebp - 0x3c], ecx
mov eax, dword [ebp + 8]
movzx eax, byte [eax + 0x10]
and eax, 0xffffffe0
mov byte [ebp - 0xa], al
cmp byte [ebp - 0xa], 0x20
jne 0x6aa0ca8d
mov eax, dword [ebp + 8]
movzx eax, byte [eax + 0x10]
and eax, 0x10
mov byte [ebp - 0xb], al
mov eax, dword [ebp - 0x3c]
movzx eax, byte [eax + 0x74]
cmp byte [ebp - 0xb], al
je 0x6aa0c92c
mov eax, dword [ebp - 0x3c]
movzx eax, byte [eax + 0x3a]
movzx ecx, al
mov eax, dword [ebp - 0x3c]
movzx eax, word [eax + 0x38]
movzx edx, ax
mov eax, dword [ebp - 0x3c]
mov dword [esp + 8], 0x5030000
mov dword [esp + 4], ecx
mov dword [esp], edx
mov ecx, eax
call fcn.6aa0d50a
sub esp, 0xc
jmp 0x6aa0ca8e
mov eax, dword [ebp - 0x3c]
add eax, 0x3c
mov ecx, eax
call fcn.6aa71fc8
test al, al
je 0x6aa0c94c
mov eax, dword [ebp - 0x3c]
mov ecx, eax
call fcn.6aa0c10c
jmp 0x6aa0ca8e
mov eax, dword [ebp - 0x3c]
movzx eax, byte [eax + 0x74]
not eax
and eax, 0x10
mov edx, eax
mov eax, dword [ebp - 0x3c]
mov byte [eax + 0x74], dl
lea eax, [ebp - 0x30]
mov ecx, eax
call fcn.6aa2db80
mov eax, dword [ebp - 0x3c]
mov eax, dword [eax + 0x30]
mov dword [ebp - 0x30], eax
mov byte [ebp - 0x18], 8
mov byte [ebp - 0x20], 0
movzx edx, byte [ebp - 0x20]
mov eax, dword [ebp - 0x3c]
movzx eax, byte [eax + 0x74]
or eax, edx
mov byte [ebp - 0x20], al
mov eax, dword [ebp - 0x3c]
add eax, 0x3c
mov ecx, eax
call fcn.6aa71fb0
cmp eax, 7
setbe al
test al, al
je 0x6aa0c9d1
mov eax, dword [ebp - 0x3c]
add eax, 0x3c
mov ecx, eax
call fcn.6aa71fb0
mov edx, 7
sub edx, eax
lea eax, [edx + edx]
and eax, 0xe
mov edx, eax
movzx eax, byte [ebp - 0x20]
or eax, edx
mov byte [ebp - 0x20], al
movzx eax, byte [ebp - 0x20]
or eax, 1
mov byte [ebp - 0x20], al
mov byte [ebp - 9], 0
jmp 0x6aa0ca03
mov eax, dword [ebp - 0x3c]
add eax, 0x3c
mov ecx, eax
call fcn.6aaea688
movzx edx, byte [ebp - 9]
add edx, 1
movzx eax, byte [eax]
mov byte [ebp + edx - 0x20], al
add byte [ebp - 9], 1
mov eax, dword [ebp - 0x3c]
add eax, 0x3c
mov ecx, eax
call fcn.6aaea64c
cmp byte [ebp - 9], 6
ja 0x6aa0ca24
mov eax, dword [ebp - 0x3c]
add eax, 0x3c
mov ecx, eax
call fcn.6aa71fc8
xor eax, 1
test al, al
je 0x6aa0ca24
mov eax, 1
jmp 0x6aa0ca29
mov eax, 0
test al, al
jne 0x6aa0c9d7
mov eax, dword [ebp - 0x3c]
add eax, 0x78
mov ecx, eax
call fcn.6aa0d6ec
mov eax, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x30]
mov dword [esp], edx
mov edx, dword [ebp - 0x2c]
mov dword [esp + 4], edx
mov edx, dword [ebp - 0x28]
mov dword [esp + 8], edx
mov edx, dword [ebp - 0x24]
mov dword [esp + 0xc], edx
mov edx, dword [ebp - 0x20]
mov dword [esp + 0x10], edx
mov edx, dword [ebp - 0x1c]
mov dword [esp + 0x14], edx
mov edx, dword [ebp - 0x18]
mov dword [esp + 0x18], edx
mov edx, dword [ebp - 0x14]
mov dword [esp + 0x1c], edx
mov ecx, eax
call fcn.6aa560a4
sub esp, 0x20
mov eax, dword [ebp - 0x3c]
mov dword [eax + 0x98], 4
jmp 0x6aa0ca8e
nop
leave
ret 4
Function at 0x6aa0e190
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x144
mov dword [ebp - 0x12c], ecx
lea eax, [ebp - 0x11c]
mov ecx, eax
call fcn.6ab06840
mov dword [esp + 4], str.WiCANopenFlasher:
lea eax, [ebp - 0x11c]
mov dword [esp], eax
call fcn.6ab1fa80
mov dword [esp + 4], str.virtual_uint32_t_PeakCanDevice::closeDevice__
mov dword [esp], eax
call fcn.6ab1fa80
lea eax, [ebp - 0x54]
lea edx, [ebp - 0x11c]
mov dword [esp], edx
mov ecx, eax
call fcn.6aa77680
sub esp, 4
lea eax, [ebp - 0x54]
mov ecx, eax
call fcn.6aa76920
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
call eax
sub esp, 4
lea eax, [ebp - 0x54]
mov ecx, eax
call fcn.6aafa780
lea eax, [ebp - 0x11c]
mov ecx, eax
call fcn.6ab07080
mov eax, dword [ebp - 0x12c]
add eax, 0x54
mov dword [esp], 0
mov ecx, eax
call fcn.6aaea9dc
sub esp, 4
mov eax, dword [ebp - 0x12c]
movzx eax, byte [eax + 0x2c]
movzx eax, al
mov dword [esp], eax
call sub.PCANBasic.dll_CAN_Uninitialize
sub esp, 4
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x3c]
mov edx, dword [ebp - 0xc]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.6aa0e708
mov eax, dword [ebp - 0x12c]
add eax, 0x34
lea edx, [ebp - 0x3c]
mov dword [esp], edx
mov ecx, eax
call fcn.6aaf62b0
sub esp, 4
lea eax, [ebp - 0x3c]
mov ecx, eax
call fcn.6aaf6250
cmp dword [ebp - 0xc], 0
je 0x6aa0e330
lea eax, [ebp - 0x11c]
mov ecx, eax
call fcn.6ab06840
mov dword [esp + 4], str.WiCANopenFlasher:
lea eax, [ebp - 0x11c]
mov dword [esp], eax
call fcn.6ab1fa80
mov dword [esp + 4], str.virtual_uint32_t_PeakCanDevice::closeDevice__
mov dword [esp], eax
call fcn.6ab1fa80
mov dword [esp + 4], str._error:
mov dword [esp], eax
call fcn.6ab1fa80
mov ebx, eax
mov eax, dword [ebp - 0x12c]
add eax, 0x34
mov ecx, eax
call fcn.6aa75af0
mov dword [esp + 4], eax
mov dword [esp], ebx
call fcn.6ab1fa80
lea eax, [ebp - 0x24]
lea edx, [ebp - 0x11c]
mov dword [esp], edx
mov ecx, eax
call fcn.6aa77680
sub esp, 4
lea eax, [ebp - 0x24]
mov ecx, eax
call fcn.6aa76920
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
call eax
sub esp, 4
lea eax, [ebp - 0x24]
mov ecx, eax
call fcn.6aafa780
lea eax, [ebp - 0x11c]
mov ecx, eax
call fcn.6ab07080
mov eax, dword [ebp - 0xc]
jmp 0x6aa0e383
mov ebx, dword [ebp - 4]
leave
ret
Function at 0x6aa0f130
Capabilities:
Contain obfuscated stackstrings
Print debug messages

Disassembly:
push edi
xor eax, eax
mov ecx, 0x10
sub esp, 0x88
lea edi, [esp + 0x40]
mov dword [esp + 0x15], 0x6f727245
mov dword [esp + 0x19], 0x6c632072
mov dword [esp + 0x1d], 0x696e6165
mov dword [esp + 0x21], 0x7520676e
mov dword [esp + 0x25], 0x70732070
mov dword [esp + 0x29], 0x6b5f6e69
mov dword [esp + 0x2d], 0x20737965
mov dword [esp + 0x31], 0x20726f66
mov dword [esp + 0x35], 0x65726874
mov dword [esp + 0x39], 0x206461
mov dword [esp + 0x3d], 0
mov dword [esp + 0x7c], 0
rep stosd dword es:[edi], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea edx, [esp + 0x3c]
mov dword [esp + 8], 0xa
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.msvcrt.dll__ultoa]
cmp byte [esp + 0x3c], 0
je 0x6aa0f20b
mov eax, 0x27
lea edx, [esp + 0x15]
jmp 0x6aa0f1dd
cmp eax, 0x6a
je 0x6aa0f1fa
mov ecx, eax
add eax, 1
cmp byte [edx + eax], 0
jne 0x6aa0f1d8
cmp eax, 0x6a
je 0x6aa0f1fa
add ecx, 2
mov byte [esp + eax + 0x15], 0xa
mov byte [esp + ecx + 0x15], 0
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
sub esp, 4
call sub.msvcrt.dll_abort
mov ecx, 0x28
mov eax, 0x27
lea edx, [esp + 0x15]
jmp 0x6aa0f1f0

Function at 0x6aa0f590
Capabilities:
Allocate thread local storage

Disassembly:
cmp dword [0x6abe51d8], 1
je 0x6aa0f648
push edi
mov eax, 0x6abe51d8
push esi
push ebx
sub esp, 0x10
call fcn.6aa0ef10
lea esi, [eax + 4]
mov ebx, eax
mov dword [esp], esi
call fcn.6aa11e80
mov edi, dword [0x6abe51d8]
test edi, edi
jne 0x6aa0f600
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x6ab34068], eax
cmp eax, 0xffffffff
je 0x6ab23be5
mov dword [0x6abe51d8], 1
mov dword [esp], esi
call fcn.6aa121c0
test ebx, ebx
je 0x6aa0f63a
add esp, 0x10
mov eax, ebx
pop ebx
pop esi
pop edi
jmp fcn.6aa0f220
cmp edi, 1
je 0x6aa0f5e2
mov dword [esp], 2
call dword [0x6ab340f8]
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0x6abe51d8
mov dword [esp + 4], str._once__p_is__d_n
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
mov dword [esp], esi
call fcn.6aa121c0
test ebx, ebx
jne 0x6aa0f5ee
add esp, 0x10
pop ebx
pop esi
pop edi
ret
ret
call sub.msvcrt.dll_abort
Function at 0x6aa0f650
Capabilities:
Set thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x2c
call fcn.6aa0f310
mov edx, dword [entry3]
test edx, edx
je 0x6aa0f780
mov ebx, eax
test eax, eax
je 0x6aa0f780
mov dword [eax + 0x24], 1
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebx + 0x3c], eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [ebx + 0x1c], 0xffffffff
mov dword [ebx + 0x18], eax
sub esp, 0x10
lea eax, [ebx + 0x38]
mov dword [esp], eax
call fcn.6aa131c0
cmp eax, 1
je 0x6aa0f78c
mov ebp, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [ebx + 0x38], 0xffffffff
mov dword [ebx + 0x64], 0
mov dword [ebx + 0x14], 0
call ebp
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov esi, eax
call ebp
lea edx, [ebx + 0x14]
mov dword [esp + 8], edi
mov dword [esp + 0x18], 2
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], edx
mov dword [esp + 4], esi
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
sub esp, 0x1c
test eax, eax
je fcn.6ab23bea
mov eax, dword [ebx + 0x14]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov dword [ebx + 0x68], 0
mov dword [ebx + 0x6c], eax
movzx eax, byte [ebx + 0x20]
sub esp, 4
and eax, 0xffffffcf
or eax, 0x10
mov byte [ebx + 0x20], al
mov eax, dword [0x6ab34068]
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
test eax, eax
je 0x6aa0f791
add esp, 0x2c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
add esp, 0x2c
xor ebx, ebx
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
call fcn.6aa0f130
jmp fcn.6ab23bea

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

Disassembly:
sub esp, 0x1c
call fcn.6aa0f590
mov eax, dword [0x6ab34068]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
test eax, eax
je 0x6aa0f7c8
add esp, 0x1c
ret
add esp, 0x1c
jmp fcn.6aa0f650