joyce8/EMBER2024-capa huggingface dataset:
Function at 0x52c23b
Capabilities:
Decompress data using aplib

Disassembly:
add dl, dl
jne 0x50aa68
mov dl, byte [esi]
inc esi
adc dl, dl
nop
adc eax, eax
push esi
pop esi
jne 0x518c79
mov byte [edi], al
push ebx
pop ebx
push eax
inc edi
pop eax
mov ebx, 2
jmp 0x52bba4
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x52b16f
jmp 0x52a8e5
add dl, dl
jne 0x50e4ed
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x51ca57
mov eax, 1
add dl, dl
je 0x518c84
jmp 0x51ca42
add dl, dl
mov ebx, ebx
jmp 0x51912c
jmp 0x51ca42
mov dl, byte [esi]
inc esi
mov eax, eax
push ecx
pop ecx
adc dl, dl
mov edi, edi
jmp 0x51ca4c
sub eax, ebx
jmp 0x5157c5
jmp 0x528a44
mov ecx, 1
add dl, dl
je 0x5118d7
adc ecx, ecx
jmp 0x50ea3a
add esi, 1
mov byte [edi], al
add edi, 1
mov ebx, 2
jmp 0x52bba4
jmp 0x52bba4
mov dl, byte [esi]
jmp 0x51dc07
adc dl, dl
jmp 0x528a56
inc esi
adc dl, dl
jmp 0x510b62
mov ebx, 1
je 0x510d5d
dec eax
shl eax, 8
mov al, byte [esi]
jmp 0x528a3c
adc eax, eax
xchg ecx, ecx
jmp 0x51c1a6
pop esi
sub esi, eax
jmp 0x51ff11
adc dl, dl
jmp 0x515b37
inc esi
jmp 0x511aec
mov dl, byte [esi]
inc esi
jmp 0x517f89
inc esi
adc dl, dl
jmp 0x51ca7c
push edi
pop ebx
sub ebx, eax
mov al, byte [ebx]
jmp 0x50aa72
mov dl, byte [esi]
mov ebx, ebx
jmp 0x513643
je 0x52abfd
jb 0x510d62
push esi
push edi
mov esp, esp
pop esi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x5118d2
add dl, dl
jne 0x51c1b3
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
jmp 0x50aa5a
adc eax, eax
add dl, dl
je 0x510b67
jae 0x510b77
jmp 0x50e4f8
xor eax, eax
add dl, dl
jne 0x51ca6e
mov dl, byte [esi]
xchg eax, eax
push ecx
xchg ebx, ebx
inc esi
nop
pop ecx
adc dl, dl
nop
jae 0x50aa83
add dl, dl
je 0x52b179
adc eax, eax
jmp 0x527cf4
sub esi, eax
jmp 0x526684
inc esi
jmp 0x523a8e
jne 0x515b37
jmp 0x5186d4
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x52bba4
jmp 0x519132
mov dl, byte [esi]
inc esi
adc dl, dl
jmp 0x528a4c
mov dl, byte [esi]
jmp 0x5184cc
adc dl, dl
push ebp
pop ebp
jmp 0x52abf8
cmp eax, 0x500
sbb ecx, 0xffffffff
cmp eax, 0x80
adc ecx, 0
cmp eax, 0x80
mov esi, esi
push ecx
xchg esp, esp
jmp 0x528248
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x52b163
cmp eax, 0x7d00
sbb ecx, 0xffffffff
mov edi, edi
jmp 0x525a11
push ebp
nop
pop ebp
jmp 0x51cf85
add dl, dl
jmp 0x51e648
pop ecx
adc ecx, 0
push esi
push edi
mov ecx, ecx
jmp 0x51789a
inc esi
push eax
pop ebp
mov ecx, 1
add dl, dl
je 0x5210d3
adc ecx, ecx
add dl, dl
je 0x5210dd
jae 0x52750e
jmp 0x510d58
adc ecx, 2
push eax
pop ebp
push esi
push edi
pop esi
jmp 0x527943
jmp 0x510d6a
mov dl, byte [esi]
inc esi
adc dl, dl
jmp 0x5210ce
mov ebx, 1
mov ebx, ebx
jmp 0x52bba4
sub edi, dword [esp + 0x28]
mov dword [esp + 0x1c], edi
popal
ret
mov dl, byte [esi]
jmp 0x518c71
add dl, dl
jne 0x52bbb3
mov dl, byte [esi]
inc esi
adc dl, dl
xchg ebx, ebx
jb 0x50e4e0
jmp 0x52c6d2
pushal
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
cld
mov dl, 0x80
jmp 0x52c6d2
mov al, byte [esi]
jmp 0x5110e1
Function at 0x535220
Capabilities:
Hash data using sha256

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
jne 0x535255
push 0x52a130
push 0xd0
push 0x52a14c
push 0x532db8
call 0x56048a
add eax, 0x40
push eax
call 0x55d2f0
push 0x16
call 0x56b8d6
add esp, 0x18
mov dword [esi + 0x28], 0
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0x6a09e667
mov dword [esi + 0xc], 0xbb67ae85
mov dword [esi + 0x10], 0x3c6ef372
mov dword [esi + 0x14], 0xa54ff53a
mov dword [esi + 0x18], 0x510e527f
mov dword [esi + 0x1c], 0x9b05688c
mov dword [esi + 0x20], 0x1f83d9ab
mov dword [esi + 0x24], 0x5be0cd19
xor eax, eax
pop esi
ret
Function at 0x535e80
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0xc
push ebx
push esi
mov esi, dword [esp + 0x1c]
push edi
test esi, esi
jne 0x535ebd
push 0x532d70
push 0x64b
push 0x532da0
push 0x532db8
call 0x56048a
add eax, 0x40
push eax
call 0x55d2f0
add esp, 0x14
push 0x16
call 0x56b8d6
add esp, 4
mov edi, dword [esp + 0x1c]
test edi, edi
jne 0x535ef4
push 0x532d70
push 0x64c
push 0x532dac
push 0x532db8
call 0x56048a
add eax, 0x40
push eax
call 0x55d2f0
add esp, 0x14
push 0x16
call 0x56b8d6
add esp, 4
mov ebx, dword [esp + 0x24]
test ebx, ebx
jne 0x535f2b
push 0x532d70
push 0x64d
push 0x532d90
push 0x532db8
call 0x56048a
add eax, 0x40
push eax
call 0x55d2f0
add esp, 0x14
push 0x16
call 0x56b8d6
add esp, 4
movzx eax, byte [edi]
movzx ecx, byte [edi + 1]
movzx edx, byte [edi + 2]
shl eax, 8
or eax, ecx
movzx ecx, byte [edi + 3]
shl eax, 8
or eax, edx
movzx edx, byte [edi + 4]
shl eax, 8
or eax, ecx
movzx ecx, byte [edi + 6]
mov dword [esp + 0x10], eax
movzx eax, byte [edi + 5]
shl edx, 8
or edx, eax
movzx eax, byte [edi + 7]
shl edx, 8
or edx, ecx
shl edx, 8
or edx, eax
lea ecx, [esp + 0x10]
lea eax, [ebx + 0x80]
push ecx
mov dword [esp + 0x18], edx
call fcn.00535b50
mov eax, dword [esp + 0x14]
mov edx, eax
shr edx, 0x18
mov byte [esi], dl
mov ecx, eax
shr ecx, 0x10
mov byte [esi + 1], cl
mov edx, eax
mov byte [esi + 3], al
mov eax, dword [esp + 0x18]
shr edx, 8
mov ecx, eax
shr ecx, 0x18
mov byte [esi + 2], dl
mov byte [esi + 4], cl
add esp, 4
mov edx, eax
mov ecx, eax
shr edx, 0x10
shr ecx, 8
pop edi
mov byte [esi + 7], al
mov byte [esi + 5], dl
mov byte [esi + 6], cl
pop esi
xor eax, eax
pop ebx
add esp, 0xc
ret

Function at 0x53b59d
Capabilities:
Parse pe header

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x10]
push edi
test esi, esi
je 0x53b625
cmp esi, dword [0x53be2c]
je 0x53b625
push 0x1000
push esi
call dword [0x51e8b0]
test eax, eax
jne 0x53b625
mov eax, 0x5a4d
cmp word [esi], ax
jne 0x53b625
mov eax, dword [esi + 0x3c]
cmp eax, 0x500
jge 0x53b625
add esi, eax
cmp dword [esi], 0x4550
jne 0x53b625
movzx eax, word [esi + 6]
mov ecx, pe_nt_image_headers32
cmp ax, cx
jae 0x53b625
xor ecx, ecx
xor edi, edi
lea ebx, [esi + 0xf8]
cmp cx, ax
jae 0x53b625
mov ebp, 0x5256bc
push ebp
call 0x558a60
push eax
movzx eax, di
imul eax, eax, 0x28
add eax, ebx
push ebp
push eax
call 0x55bb2b
add esp, 0x10
test eax, eax
je 0x53b62c
inc edi
cmp di, word [esi + 6]
jb 0x53b601
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
xor eax, eax
inc eax
jmp 0x53b627

Function at 0x53d101
Capabilities:
Check for peb ntglobalflag flag

Disassembly:
mov ebp, esp
sub esp, 0x100
push ebx
push ecx
push edx
push ebp
push esi
push edi
and dword [ebp - 4], 0
call fcn.0053d027
cmp eax, 0
jne 0x53d11f
jmp 0x53d140
mov eax, dword fs:[0x30]
add eax, 0x68
mov al, byte [eax]
and al, 0x70
cmp al, 0x70
jne 0x53d139
mov dword [ebp - 4], 1
jmp 0x53d140
mov dword [ebp - 4], 0
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebp
pop edx
pop ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x53d252
Capabilities:
Access peb ldr_data

Disassembly:
push ecx
push edx
push ebp
push esi
push edi
and dword [ebp - 4], 0
call fcn.0053d027
cmp eax, 0
jne 0x53d267
jmp 0x53d282
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
movzx eax, byte [eax - 3]
and eax, 6
test eax, eax
je 0x53d282
mov dword [ebp - 4], 1
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebp
pop edx
pop ecx
pop ebx
mov esp, ebp
pop ebp

Function at 0x541615
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0xc]
and dword [ebp - 4], 0
push ebx
push edi
lea edi, [eax - 2]
test edi, edi
jle 0x541648
mov ebx, dword [ebp + 8]
add ebx, dword [ebp + 0xc]
dec ebx
movzx ecx, byte [ebx]
mov ebx, dword [ebp - 4]
add ebx, dword [ebp + 8]
add ecx, dword [ebp - 4]
ror byte [ebx], cl
xor byte [ebx], cl
inc dword [ebp - 4]
cmp dword [ebp - 4], edi
jl 0x541629
lea ecx, [eax - 3]
mov dword [ebp - 4], ecx
test ecx, ecx
jl 0x54169f
mov ecx, dword [ebp + 8]
push esi
lea esi, [ecx + eax]
movzx eax, byte [esi - 2]
cdq
idiv edi
mov eax, edx
or eax, dword [ebp - 4]
cdq
idiv edi
lea ebx, [edx + ecx]
mov al, byte [ebx]
mov byte [ebp + 0xf], al
movzx eax, byte [esi - 1]
cdq
idiv edi
mov eax, edx
add eax, dword [ebp - 4]
cdq
idiv edi
mov al, byte [edx + ecx]
mov byte [ebx], al
movzx eax, byte [esi - 1]
cdq
idiv edi
mov eax, edx
add eax, dword [ebp - 4]
cdq
idiv edi
dec dword [ebp - 4]
mov al, byte [ebp + 0xf]
mov byte [edx + ecx], al
jns 0x541659
pop esi
pop edi
pop ebx
leave
ret

Function at 0x543074
Capabilities:
Packed with generic packer

Disassembly:
push 0x18
push 0x534d68
call 0x55c2f0
xor eax, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], eax
pushaw
mov eax, dword ds:[0x7ffe0018]
mov edx, dword ds:[0x7ffe0014]
cmp eax, dword ds:[0x7ffe001c]
jne 0x54308d
lea ecx, [ebp - 0x20]
mov dword [ecx], edx
mov dword [ecx + 4], eax
popaw
jmp 0x5430c0
mov eax, dword [ebp - 0x20]
push 0
add eax, 0x2ac18000
mov ecx, dword [ebp - 0x1c]
push 0x989680
adc ecx, 0xfe624e21
push ecx
push eax
call 0x55ce40
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], edx
mov dword [ebp - 4], 0xfffffffe
call 0x55c335
ret
Function at 0x543183
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0x14
push 0x534d88
call 0x55c2f0
mov esi, dword [ebp + 8]
test esi, esi
je 0x543298
cmp dword [ebp + 0xc], 0
je 0x543298
xor ecx, ecx
cmp dword [ebp + 0xc], 0xffff
ja 0x5431b0
inc ecx
and dword [ebp - 4], 0
mov eax, dword [esi + 0x3c]
add eax, esi
mov edx, dword [eax + 0x78]
mov dword [ebp + 8], edx
mov eax, dword [eax + 0x7c]
mov dword [ebp - 0x20], eax
test edx, edx
je 0x543291
test eax, eax
je 0x543291
lea edi, [edx + esi]
test ecx, ecx
jne 0x543250
mov ebx, dword [edi + 0x20]
add ebx, esi
and dword [ebp - 0x1c], ecx
mov dword [ebp - 0x24], ebx
mov eax, dword [ebp - 0x1c]
cmp eax, dword [edi + 0x18]
jae 0x543291
mov eax, dword [ebx]
add eax, esi
push eax
push dword [ebp + 0xc]
call 0x55c676
pop ecx
pop ecx
test eax, eax
jne 0x543248
mov eax, dword [edi + 0x24]
mov ecx, dword [ebp - 0x1c]
lea eax, [eax + ecx*2]
movzx eax, word [eax + esi]
mov ecx, dword [edi + 0x1c]
lea eax, [ecx + eax*4]
mov eax, dword [eax + esi]
mov ecx, dword [ebp + 8]
cmp eax, ecx
jb 0x54323e
mov edx, dword [ebp - 0x20]
add edx, ecx
cmp eax, edx
jae 0x54323e
add eax, esi
push eax
call fcn.005430f2
pop ecx
mov dword [ebp - 4], 0xfffffffe
jmp 0x54329a
cmp dword [ebp + 0x10], 0
je 0x543235
add eax, esi
jmp 0x543235
inc dword [ebp - 0x1c]
add ebx, 4
jmp 0x5431e4
movzx ecx, word [ebp + 0xc]
sub ecx, dword [edi + 0x10]
cmp ecx, dword [edi + 0x14]
jae 0x543291
mov edi, dword [edi + 0x1c]
lea ecx, [edi + ecx*4]
mov ecx, dword [ecx + esi]
cmp ecx, edx
jb 0x543274
add eax, edx
cmp ecx, eax
jae 0x543274
add ecx, esi
push ecx
jmp 0x54322f
cmp dword [ebp + 0x10], 0
je 0x54327f
lea eax, [ecx + esi]
jmp 0x543235
mov dword [ebp - 4], 0xfffffffe
mov eax, ecx
jmp 0x54329a
mov dword [ebp - 4], 0xfffffffe
xor eax, eax
call 0x55c335
ret
Function at 0x54c91b
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x53aab0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
push edi
call 0x558a60
xor ebx, ebx
pop ecx
mov byte [ebp - 0x24], 0x48
mov byte [ebp - 0x23], 0x4b
mov byte [ebp - 0x22], 0x50
mov byte [ebp - 0x21], 0x57
mov byte [ebp - 0x20], 0x42
mov byte [ebp - 0x1f], 0x56
mov byte [ebp - 0x1e], 0x54
mov byte [ebp - 0x1d], 0x58
mov byte [ebp - 0x1c], 0x5a
mov byte [ebp - 0x1b], 0x4d
mov byte [ebp - 0x1a], 0x52
mov byte [ebp - 0x19], 0x41
mov byte [ebp - 0x18], 0x4e
mov byte [ebp - 0x17], 0x59
mov byte [ebp - 0x16], 0x43
mov byte [ebp - 0x15], 0x53
mov byte [ebp - 0x14], 0x4a
mov byte [ebp - 0x13], 0x46
mov byte [ebp - 0x12], 0x47
mov byte [ebp - 0x11], 0x51
mov byte [ebp - 0x10], 0x55
mov byte [ebp - 0xf], 0x32
mov byte [ebp - 0xe], 0x33
mov byte [ebp - 0xd], 0x34
mov byte [ebp - 0xc], 0x35
mov byte [ebp - 0xb], 0x36
mov byte [ebp - 0xa], 0x37
mov byte [ebp - 9], 0x38
mov byte [ebp - 8], 0x39
test eax, eax
jbe 0x54c9e4
mov ecx, esi
sub edi, esi
mov dword [ebp - 0x28], eax
mov al, byte [edi + ecx]
xor edx, edx
xor esi, esi
cmp al, byte [ebp + esi - 0x24]
je 0x54c9d1
inc esi
cmp esi, 0x1d
jb 0x54c9c3
jmp 0x54c9d3
mov edx, esi
neg ebx
lea ebx, [edx + ebx*2]
mov al, bl
add al, 0x30
mov byte [ecx], al
inc ecx
dec dword [ebp - 0x28]
jne 0x54c9bc
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call 0x55adcd
leave
ret
Function at 0x4073b0
Capabilities:
Get thread local storage value

Disassembly:
sub esp, 0xc
push ebx
push ebp
mov eax, ecx
mov dword [esp + 0xc], eax
push esi
push edi
test eax, eax
je 0x407521
mov eax, dword [eax + 0x24]
push 0x43b384
push str.libusb_close
push 4
mov edi, dword [eax + 4]
push edi
call fcn.00407e20
add esp, 0x10
push dword [edi + 0xb8]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebp, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor ecx, ecx
test eax, eax
setne cl
mov dword [esp + 0x18], ecx
lea ecx, [edi + 0xd8]
test eax, eax
jne 0x407481
push ecx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [edi + 0xf4]
mov edx, dword [edi + 0xf0]
lea eax, [ecx + 1]
mov dword [edi + 0xf4], eax
test ecx, ecx
jne 0x407432
mov eax, edx
or eax, 0x20
mov dword [edi + 0xf0], eax
test edx, edx
jne 0x407461
push dword [edi + 0xc]
call dword [sym.imp.KERNEL32.dll_SetEvent]
test eax, eax
jne 0x407461
xor ecx, ecx
call fcn.0040ac00
push eax
push str.SetEvent_failed:__s
push str.usbi_signal_event
push 2
push 0
call fcn.00407e20
add esp, 0x14
lea eax, [edi + 0xd8]
push eax
call ebp
lea eax, [edi + 0x9c]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [edi + 0xb4], 1
mov edx, dword [esp + 0x14]
mov ecx, edi
call fcn.004071c0
cmp dword [esp + 0x18], 0
jne 0x407521
lea eax, [edi + 0xd8]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
add dword [edi + 0xf4], 0xffffffff
jne 0x4074b4
and dword [edi + 0xf0], 0xffffffdf
cmp dword [edi + 0xf0], 0
jne 0x4074e8
push dword [edi + 0xc]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
test eax, eax
jne 0x4074e8
xor ecx, ecx
call fcn.0040ac00
push eax
push str.ResetEvent_failed:__s
push str.usbi_clear_event
push 2
push 0
call fcn.00407e20
add esp, 0x14
lea eax, [edi + 0xd8]
push eax
call ebp
lea eax, [edi + 0x9c]
mov dword [edi + 0xb4], 0
push eax
call ebp
lea esi, [edi + 0xbc]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [edi + 0xd4]
push eax
call dword [sym.imp.KERNEL32.dll_WakeAllConditionVariable]
push esi
call ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x409010
Capabilities:
Allocate thread local storage

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push edi
mov edi, ecx
lea ebp, [edi + 0x84]
push ebp
call esi
lea eax, [edi + 0x9c]
push eax
call esi
lea eax, [edi + 0xbc]
push eax
call esi
lea eax, [edi + 0xd4]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeConditionVariable]
lea eax, [edi + 0xd8]
push eax
call esi
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [edi + 0xb8], eax
lea eax, [edi + 0x7c]
mov dword [eax + 4], eax
mov dword [eax], eax
lea eax, [edi + 0xf8]
mov dword [eax + 4], eax
mov dword [eax], eax
lea eax, [edi + 0x100]
push 0
mov dword [eax + 4], eax
mov dword [eax], eax
lea eax, [edi + 0x110]
push 0
mov dword [eax + 4], eax
mov dword [eax], eax
lea eax, [edi + 0x118]
push 1
push 0
mov dword [eax + 4], eax
mov dword [eax], eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [edi + 0xc], eax
test eax, eax
jne 0x4090c8
xor ecx, ecx
call fcn.0040ac00
push eax
push str.CreateEvent_failed:__s
push str.usbi_create_event
push 1
push 0
call fcn.00407e20
mov ebx, 0xffffff9d
jmp 0x40918f
push ecx
mov edx, eax
mov ecx, edi
call fcn.0040a8c0
mov ebx, eax
add esp, 4
test ebx, ebx
js 0x409167
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateWaitableTimerW]
mov dword [edi + 0x10], eax
test eax, eax
jne 0x40912d
xor ecx, ecx
call fcn.0040ac00
push eax
push str.CreateWaitableTimer_failed:__s
push str.usbi_create_timer
push 2
push 0
call fcn.00407e20
add esp, 0x14
push str.timer_not_available_for_timeouts
push str.usbi_io_init
push 4
push edi
call fcn.00407e20
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push str.using_timer_for_timeouts
push str.usbi_io_init
push 4
push edi
call fcn.00407e20
mov edx, dword [edi + 0x10]
add esp, 0xc
mov ecx, edi
call fcn.0040a8c0
mov ebx, eax
add esp, 4
test ebx, ebx
jns 0x409125
lea ecx, [edi + 0x10]
call fcn.0040aaa0
mov edx, dword [edi + 0xc]
mov ecx, edi
call fcn.0040a980
push dword [edi + 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x409192
xor ecx, ecx
call fcn.0040ac00
push eax
push str.CloseHandle_failed:__s
push str.usbi_destroy_event
push 2
push 0
call fcn.00407e20
add esp, 0x14
mov esi, dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
push ebp
call esi
lea eax, [edi + 0x9c]
push eax
call esi
lea eax, [edi + 0xbc]
push eax
call esi
lea eax, [edi + 0xd8]
push eax
call esi
push dword [edi + 0xb8]
call dword [sym.imp.KERNEL32.dll_TlsFree]
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
pop ecx
ret
Function at 0x40ad30
Capabilities:
Hash data using djb2

Disassembly:
push ecx
push ebp
mov ebp, ecx
mov edx, 0x1505
push esi
mov esi, ebp
test ebp, ebp
jne 0x40ad46
pop esi
xor eax, eax
pop ebp
pop ecx
ret
movsx ecx, byte [ebp]
test ecx, ecx
je 0x40ad63
nop
mov eax, edx
lea esi, [esi + 1]
shl edx, 5
add edx, ecx
movsx ecx, byte [esi]
add edx, eax
test ecx, ecx
jne 0x40ad50
push ebx
test edx, edx
mov ebx, 1
mov ecx, ebx
mov eax, 0xc0906d
cmovne ecx, edx
mul ecx
mov eax, ecx
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 9
imul eax, eax, 0x3fd
push edi
push 0x445ac8
sub ecx, eax
cmovne ebx, ecx
mov esi, ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x445aac]
lea edi, [eax + esi*8]
mov eax, dword [edi]
test eax, eax
je 0x40ae7c
cmp eax, ebx
jne 0x40ade3
mov ecx, dword [edi + 4]
mov eax, ebp
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x40add6
test dl, dl
je 0x40add2
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x40add6
add eax, 2
add ecx, 2
test dl, dl
jne 0x40adb6
xor eax, eax
jmp 0x40addb
sbb eax, eax
or eax, 1
test eax, eax
je 0x40af05
push dword [edi + 4]
push ebp
push str.hash_collision___s_vs__s_
push str.htab_hash
push 4
push 0
call fcn.00407e20
mov eax, 0x14191f7
add esp, 0x18
mul ebx
mov eax, ebx
sub eax, edx
shr eax, 1
add eax, edx
mov edx, ebx
shr eax, 9
imul eax, eax, 0x3fb
sub edx, eax
inc edx
mov dword [esp + 0x10], edx
nop
mov ecx, esi
sub ecx, edx
cmp esi, edx
lea eax, [ecx + 0x3fd]
cmova eax, ecx
mov esi, eax
cmp esi, ebx
je 0x40ae7c
mov eax, dword [0x445aac]
mov edi, dword [eax + esi*8]
cmp edi, ebx
jne 0x40ae78
mov eax, dword [eax + esi*8 + 4]
mov ecx, ebp
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x40ae67
test dl, dl
je 0x40ae63
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x40ae67
add ecx, 2
add eax, 2
test dl, dl
jne 0x40ae47
xor eax, eax
jmp 0x40ae6c
sbb eax, eax
or eax, 1
test eax, eax
je 0x40af05
mov edx, dword [esp + 0x10]
test edi, edi
jne 0x40ae20
cmp dword [0x445aa8], 0x3fd
jb 0x40aeb8
push 0x3fd
push str.hash_table_is_full___lu_entries_
push str.htab_hash
push 1
push 0
call fcn.00407e20
add esp, 0x14
xor esi, esi
push 0x445ac8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop ebx
mov eax, esi
pop esi
pop ebp
pop ecx
ret
push ebp
call fcn.0042132d
mov ecx, eax
add esp, 4
mov eax, dword [0x445aac]
mov dword [eax + esi*8 + 4], ecx
lea eax, [eax + esi*8]
test ecx, ecx
jne 0x40aefd
push str.could_not_duplicate_string_for_hash_table
push str.htab_hash
push 1
push ecx
call fcn.00407e20
add esp, 0x10
xor esi, esi
push 0x445ac8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop ebx
mov eax, esi
pop esi
pop ebp
pop ecx
ret
inc dword [0x445aa8]
mov dword [eax], ebx
push 0x445ac8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop ebx
mov eax, esi
pop esi
pop ebp
pop ecx
ret
Function at 0x40b670
Capabilities:
Create thread

Disassembly:
mov eax, dword [0x445abc]
push ebx
inc eax
xor bl, bl
mov dword [0x445abc], eax
push esi
mov esi, dword [esp + 0xc]
push edi
cmp eax, 1
jne 0x40b798
call fcn.0040b030
mov dword [0x44593c], eax
test eax, eax
jne 0x40b6ba
push str.failed_to_detect_Windows_version
push str.windows_init
push 1
push esi
call fcn.00407e20
add esp, 0x10
mov edi, 0xfffffff4
jmp 0x40b823
cmp eax, 4
jge 0x40b6c6
push str.Windows_version_is_too_old
jmp 0x40b6a0
cmp dword [0x445aac], 0
je 0x40b720
push str.program_assertion_failed___hash_table_already_allocated
push str.htab_create
push 1
push esi
call fcn.00407e20
add esp, 0x10
push esi
call fcn.0040d2d0
mov edi, eax
add esp, 4
test edi, edi
jne 0x40b823
push esi
mov bl, 1
call fcn.00414f60
add esp, 4
test eax, eax
jne 0x40b783
push str.UsbDk_backend_is_available
push str.windows_init
push 4
push esi
call fcn.00407e20
mov byte [0x445968], bl
jmp 0x40b795
push 0x445ac8
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x3fd
push str.using__lu_entries_hash_table
push str.htab_create
push 4
push esi
call fcn.00407e20
push 8
push 0x3fe
mov dword [0x445aa8], 0
call fcn.00420a64
add esp, 0x1c
mov dword [0x445aac], eax
test eax, eax
jne 0x40b6e4
push str.could_not_allocate_space_for_hash_table
push str.htab_create
push 1
push esi
call fcn.00407e20
add esp, 0x10
mov edi, 0xfffffff5
jmp 0x40b823
push str.UsbDk_backend_is_not_available
push str.windows_init
push 3
push esi
call fcn.00407e20
add esp, 0x10
push 1
push 0
push 0
push 0xffffffffffffffff
mov dword [esi + fcn.0040d2d0], 0x43dbf8
mov edi, 0xfffffff5
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
mov dword [esi + 0x12c], eax
test eax, eax
jne 0x40b7de
xor ecx, ecx
call fcn.0040ac00
push eax
push str.failed_to_create_I_O_completion_port:__s
push str.windows_init
push 1
push esi
call fcn.00407e20
add esp, 0x14
jmp 0x40b823
push 0
push 0
push esi
push 0x40b420
push 0
push 0
call fcn.004209d3
add esp, 0x18
mov dword [esi + 0x130], eax
test eax, eax
jne 0x40b821
push str.failed_to_create_I_O_completion_port_thread
push str.windows_init
push 1
push esi
call fcn.00407e20
add esp, 0x10
push dword [esi + 0x12c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40b823
xor edi, edi
cmp dword [0x445abc], 1
jne 0x40b872
test edi, edi
je 0x40b872
cmp byte [0x445968], 0
je 0x40b85a
mov eax, dword [0x445c4c]
test eax, eax
je 0x40b853
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [0x445c4c], 0
mov byte [0x445968], 0
test bl, bl
je 0x40b867
push esi
call fcn.0040d350
add esp, 4
call fcn.0040ace0
dec dword [0x445abc]
mov eax, edi
pop edi
pop esi
pop ebx
ret
Function at 0x417a9e
Capabilities:
Parse pe header

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

Function at 0x429348
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x437a1c
push 0x437a14
push str.FlsAlloc
push 0x1f
call fcn.00429147
mov esi, eax
add esp, 0x10
test esi, esi
je 0x42937c
push dword [ebp + 8]
mov ecx, esi
call dword [0x4341d0]
call esi
jmp 0x429382
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4293c6
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x437a2c
push 0x437a24
push str.FlsGetValue
push 0x21
call fcn.00429147
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4293fd
push dword [ebp + 8]
mov ecx, esi
call dword [0x4341d0]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x429405
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x437a34
push 0x437a2c
push str.FlsSetValue
push 0x22
call fcn.00429147
mov esi, eax
add esp, 0x10
test esi, esi
je 0x42943f
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x4341d0]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]

Function at 0x42a316
Capabilities:
Print debug messages

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