joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4512b0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x2e000]
push edi
jmp 0x4512ca
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4512d1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4512c0
mov eax, 1
add ebx, ebx
jne 0x4512e3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4512f4
jne 0x451313
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x451313
dec eax
add ebx, ebx
jne 0x451300
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4512d8
add ebx, ebx
jne 0x45130f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x451365
xor ecx, ecx
sub eax, 3
jb 0x45132b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x45139a
sar eax, 1
mov ebp, eax
jmp 0x451336
add ebx, ebx
jne 0x451336
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x451304
inc ecx
add ebx, ebx
jne 0x451344
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x451304
add ebx, ebx
jne 0x451351
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x451346
jne 0x451362
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x451346
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x451384
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x451376
jmp 0x4512c6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x451384
add edi, ecx
jmp 0x4512c6
pop esi
mov edi, esi
mov ecx, 0x138e
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4513a2
cmp byte [edi], 0x11
jne 0x4513a2
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
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 0x4513a7
lea edi, [esi + 0x4e000]
mov eax, dword [edi]
or eax, eax
je 0x451416
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x51280]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x512f4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4513d4
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x512fc]
or eax, eax
je 0x451410
mov dword [ebx], eax
add ebx, 4
jmp 0x4513f1
call dword [esi + 0x512f8]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x451447
cmp al, 0xef
ja 0x45143a
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x45141c
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x451429
mov ebp, dword [esi + 0x51300]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
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 0x45147b
sub esp, 0xffffff80
jmp 0x414668
Function at 0x401010
Capabilities:
Parse pe header

Disassembly:
sub esp, 0x1c
xor eax, eax
cmp word [0x400000], 0x5a4d
mov dword [0x40c048], 1
mov dword [0x40c044], 1
mov dword [0x40c040], 1
mov dword [0x40c038], 1
jne 0x401060
mov edx, dword [0x40003c]
cmp dword [edx + 0x400000], 0x4550
lea ecx, [edx + 0x400000]
je 0x4010c0
mov dword [0x40c014], eax
mov eax, dword [0x40c054]
test eax, eax
je 0x4010b0
mov dword [esp], 2
call sym.___set_app_type
call sym.___p__fmode
mov edx, dword [0x40c068]
mov dword [eax], edx
call sym.unk_134
mov edx, dword [0x40c050]
mov dword [eax], edx
call sym.__setargv
cmp dword [0x40a018], 1
je 0x4010f0
xor eax, eax
add esp, 0x1c
ret
mov dword [esp], 1
call sym.___set_app_type
jmp 0x40107a
movzx edx, word [ecx + 0x18]
cmp dx, 0x10b
je 0x401108
cmp dx, 0x20b
jne 0x401060
cmp dword [ecx + 0x84], 0xe
jbe 0x401060
mov edx, dword [ecx + 0xf8]
xor eax, eax
test edx, edx
setne al
jmp 0x401060
mov dword [esp], sym.__matherr
call sym.___mingw_setusermatherr
xor eax, eax
add esp, 0x1c
ret
cmp dword [ecx + 0x74], 0xe
jbe 0x401060
mov ecx, dword [ecx + 0xe8]
xor eax, eax
test ecx, ecx
setne al
jmp 0x401060

Function at 0x401860
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call sym.___acrt_iob_func
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sym._fwrite
mov dword [esp], 2
call sym.___acrt_iob_func
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sym.unk_133
call sym._abort
lea esi, [esi]
Function at 0x407010
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40704e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x407046
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x407050
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x407036
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407120
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x407151
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407151
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x407151
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x423850
Capabilities:
Hash data using sha256

Disassembly:
push ebp
jmp 0x4238b2
ret
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0x6a09e667
mov dword [eax + 0xc], 0xbb67ae85
mov dword [eax + 0x10], 0x3c6ef372
mov dword [eax + 0x14], 0xa54ff53a
mov dword [eax + 0x18], 0x510e527f
mov dword [eax + 0x1c], 0x9b05688c
mov dword [eax + 0x20], 0x1f83d9ab
mov dword [eax + 0x24], 0x5be0cd19
pop ebp
je 0x423883
jne 0x423883
jmp dword [0x41e104]
Function at 0x407010
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40704e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x407046
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x407050
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x407036
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407120
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x407151
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407151
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x407151
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x40915c
nop
nop
mov ecx, 0x733d23d3
test eax, eax
nop
nop
nop
nop
je 0x43104e
nop
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x431024
nop
mov eax, section..reloc
mov ebx, 0x42f3f8
nop
nop
mov ecx, 0x1a40600
test eax, eax
nop
nop
nop
nop
je 0x431084
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43106c
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x401210
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
dec edi
neg esi
rol esi, 0xd1
rcr ebx, 0x19
or eax, 0x2a
imul esi
rcl esi, 0xb8
imul edx
rcl eax, 0xa0
rol edi, 0x12
bswap ebx
and esi, 0x67
neg ebx
rcr ebx, 0x64
sbb esi, 0x52
neg edx
dec edx
dec edx
ror edi, 0x83
ror ebx, 0x1d
rcl ebx, 0x82
neg esi
not eax
sub edi, 0x45
neg edi
inc ebx
add edx, 0xe7
dec edi
imul edi
dec esi
bswap edi
rol edi, 0x1f
sbb esi, 0x33
neg ebx
bswap esi
ror edx, 0x17
imul esi
dec eax
add edx, 0x7f
imul edx
sub esi, 0x51
mov edx, 0x6c
add ebx, 0xe0
dec eax
imul edi
not edx
dec esi
sub eax, 0x33
neg edi
not eax
xor ecx, ecx
xor edi, edi
sub esi, 0x21
ror eax, 0x21
inc edi
mov edx, 0x59
and ebx, 0x1f
rol eax, 0x71
imul eax
imul ebx
mov esi, 0x21
dec edi
rcl eax, 0x14
inc edx
and eax, 0xcd
or esi, 0x37
dec edi
dec ebx
mov eax, 0xb4
add eax, 0x75
not eax
inc ebx
imul edx
bswap eax
not eax
dec ebx
ror ebx, 0x19
sbb eax, 0xf1
not edi
imul eax
or ebx, 0x99
neg edi
imul esi
or esi, 0xc1
neg esi
bswap edx
not edx
inc esi
bswap esi
sbb edi, 0x88
neg eax
sub ebx, 0x59
not edi
neg esi
bswap eax
add eax, 0xe1
add esi, 0x90
not eax
imul esi
neg ebx
imul eax
or eax, 0x9f
mov ecx, dword [ebp + 0xc]
ror eax, 0x21
not ebx
mov eax, 0xf0
bswap esi
dec esi
dec esi
inc edi
imul edi
not ebx
ror eax, 0x93
and ebx, 0xd5
ror esi, 0xef
sbb edx, 0xbf
bswap eax
inc eax
rol edx, 0x9c
imul esi
bswap ebx
dec eax
add eax, 0x42
rcr edi, 0x1a
not esi
sbb edi, 0x34
rcl esi, 0x93
and esi, 0xb2
dec eax
add esi, 0x35
bswap esi
rcr esi, 0xa2
ror eax, 0x43
rcr eax, 0x70
imul ebx
imul eax
bswap edi
imul esi
neg ebx
add esi, 0xa4
mov edx, 0x24
rcl eax, 0x19
bswap ebx
add eax, 0x30
not edi
dec edx
add ebx, 0xaf
dec edi
neg eax
rol esi, 0xf4
rcr esi, 0x78
bswap ebx
inc ebx
mov edi, dword [ebp + 8]
xor eax, ebx
mov eax, eax
xor eax, eax
not byte [edi]
mov esi, esi
mov ebx, eax
mov eax, ebx
mov eax, eax
mov esi, eax
mov eax, ebx
xor ebx, eax
xor ebx, eax
xor eax, ebx
add byte [edi], 0x79
xor ebx, ebx
xor eax, ebx
mov esi, eax
xor esi, eax
xor ebx, esi
mov esi, ebx
mov ebx, ebx
mov esi, esi
mov eax, esi
sub byte [edi], 0x30
mov ebx, eax
mov ebx, ebx
xor esi, ebx
xor ebx, esi
xor ebx, ebx
xor eax, eax
xor eax, esi
xor ebx, ebx
xor ebx, eax
imul byte [edi]
inc edi
loop 0x4013ae
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x404f55
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x428200]
jne 0x404f5f
repz ret
jmp fcn.004072f0
Function at 0x4055c5
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00404375
and dword [ebp - 4], 0
cmp dword [0x429390], 0
mov ebx, eax
jne 0x405676
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x405727
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x405727
push eax
call fcn.00404303
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x429390], eax
call esi
push eax
call fcn.00404303
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x429394], eax
call esi
push eax
call fcn.00404303
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x429398], eax
call esi
push eax
call fcn.00404303
pop ecx
mov dword [0x4293a0], eax
test eax, eax
je 0x405676
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00404303
pop ecx
mov dword [0x42939c], eax
mov eax, dword [0x42939c]
cmp eax, ebx
je 0x4056ce
cmp dword [0x4293a0], ebx
je 0x4056ce
push eax
call fcn.0040437e
push dword [0x4293a0]
mov esi, eax
call fcn.0040437e
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4056ce
test edi, edi
je 0x4056ce
call esi
test eax, eax
je 0x4056c5
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4056c5
test byte [ebp - 0xc], 1
jne 0x4056ce
or dword [ebp + 0x10], 0x200000
jmp 0x405707
mov eax, dword [0x429394]
cmp eax, ebx
je 0x405707
push eax
call fcn.0040437e
pop ecx
test eax, eax
je 0x405707
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x405707
mov eax, dword [0x429398]
cmp eax, ebx
je 0x405707
push eax
call fcn.0040437e
pop ecx
test eax, eax
je 0x405707
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x429390]
call fcn.0040437e
pop ecx
test eax, eax
je 0x405727
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x405729
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4071a0
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 0x407311
mov eax, dword [eax + 0x24]
push 0x43b354
push str.libusb_close
push 4
mov edi, dword [eax + 4]
push edi
call fcn.00407c10
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 0x407271
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 0x407222
mov eax, edx
or eax, 0x20
mov dword [edi + 0xf0], eax
test edx, edx
jne 0x407251
push dword [edi + 0xc]
call dword [sym.imp.KERNEL32.dll_SetEvent]
test eax, eax
jne 0x407251
xor ecx, ecx
call fcn.0040a9e0
push eax
push str.SetEvent_failed:__s
push str.usbi_signal_event
push 2
push 0
call fcn.00407c10
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.00406fb0
cmp dword [esp + 0x18], 0
jne 0x407311
lea eax, [edi + 0xd8]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
add dword [edi + 0xf4], 0xffffffff
jne 0x4072a4
and dword [edi + 0xf0], 0xffffffdf
cmp dword [edi + 0xf0], 0
jne 0x4072d8
push dword [edi + 0xc]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
test eax, eax
jne 0x4072d8
xor ecx, ecx
call fcn.0040a9e0
push eax
push str.ResetEvent_failed:__s
push str.usbi_clear_event
push 2
push 0
call fcn.00407c10
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 0x408e00
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 0x408eb8
xor ecx, ecx
call fcn.0040a9e0
push eax
push str.CreateEvent_failed:__s
push str.usbi_create_event
push 1
push 0
call fcn.00407c10
mov ebx, 0xffffff9d
jmp 0x408f7f
push ecx
mov edx, eax
mov ecx, edi
call fcn.0040a6a0
mov ebx, eax
add esp, 4
test ebx, ebx
js 0x408f57
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateWaitableTimerW]
mov dword [edi + 0x10], eax
test eax, eax
jne 0x408f1d
xor ecx, ecx
call fcn.0040a9e0
push eax
push str.CreateWaitableTimer_failed:__s
push str.usbi_create_timer
push 2
push 0
call fcn.00407c10
add esp, 0x14
push str.timer_not_available_for_timeouts
push str.usbi_io_init
push 4
push edi
call fcn.00407c10
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.00407c10
mov edx, dword [edi + 0x10]
add esp, 0xc
mov ecx, edi
call fcn.0040a6a0
mov ebx, eax
add esp, 4
test ebx, ebx
jns 0x408f15
lea ecx, [edi + 0x10]
call fcn.0040a880
mov edx, dword [edi + 0xc]
mov ecx, edi
call fcn.0040a760
push dword [edi + 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x408f82
xor ecx, ecx
call fcn.0040a9e0
push eax
push str.CloseHandle_failed:__s
push str.usbi_destroy_event
push 2
push 0
call fcn.00407c10
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 0x40ab10
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 0x40ab26
pop esi
xor eax, eax
pop ebp
pop ecx
ret
movsx ecx, byte [ebp]
test ecx, ecx
je 0x40ab43
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 0x40ab30
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 0x445ab8
sub ecx, eax
cmovne ebx, ecx
mov esi, ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x445a9c]
lea edi, [eax + esi*8]
mov eax, dword [edi]
test eax, eax
je 0x40ac5c
cmp eax, ebx
jne 0x40abc3
mov ecx, dword [edi + 4]
mov eax, ebp
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x40abb6
test dl, dl
je 0x40abb2
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x40abb6
add eax, 2
add ecx, 2
test dl, dl
jne 0x40ab96
xor eax, eax
jmp 0x40abbb
sbb eax, eax
or eax, 1
test eax, eax
je 0x40ace5
push dword [edi + 4]
push ebp
push str.hash_collision___s_vs__s_
push str.htab_hash
push 4
push 0
call fcn.00407c10
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 0x40ac5c
mov eax, dword [0x445a9c]
mov edi, dword [eax + esi*8]
cmp edi, ebx
jne 0x40ac58
mov eax, dword [eax + esi*8 + 4]
mov ecx, ebp
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x40ac47
test dl, dl
je 0x40ac43
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x40ac47
add ecx, 2
add eax, 2
test dl, dl
jne 0x40ac27
xor eax, eax
jmp 0x40ac4c
sbb eax, eax
or eax, 1
test eax, eax
je 0x40ace5
mov edx, dword [esp + 0x10]
test edi, edi
jne 0x40ac00
cmp dword [0x445a98], 0x3fd
jb 0x40ac98
push 0x3fd
push str.hash_table_is_full___lu_entries_
push str.htab_hash
push 1
push 0
call fcn.00407c10
add esp, 0x14
xor esi, esi
push 0x445ab8
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.0042ee3b
mov ecx, eax
add esp, 4
mov eax, dword [0x445a9c]
mov dword [eax + esi*8 + 4], ecx
lea eax, [eax + esi*8]
test ecx, ecx
jne 0x40acdd
push str.could_not_duplicate_string_for_hash_table
push str.htab_hash
push 1
push ecx
call fcn.00407c10
add esp, 0x10
xor esi, esi
push 0x445ab8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop ebx
mov eax, esi
pop esi
pop ebp
pop ecx
ret
inc dword [0x445a98]
mov dword [eax], ebx
push 0x445ab8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop ebx
mov eax, esi
pop esi
pop ebp
pop ecx
ret
Function at 0x40b450
Capabilities:
Create thread

Disassembly:
mov eax, dword [0x445aac]
push ebx
inc eax
xor bl, bl
mov dword [0x445aac], eax
push esi
mov esi, dword [esp + 0xc]
push edi
cmp eax, 1
jne 0x40b578
call fcn.0040ae10
mov dword [0x445934], eax
test eax, eax
jne 0x40b49a
push str.failed_to_detect_Windows_version
push str.windows_init
push 1
push esi
call fcn.00407c10
add esp, 0x10
mov edi, 0xfffffff4
jmp 0x40b603
cmp eax, 4
jge 0x40b4a6
push str.Windows_version_is_too_old
jmp 0x40b480
cmp dword [0x445a9c], 0
je 0x40b500
push str.program_assertion_failed___hash_table_already_allocated
push str.htab_create
push 1
push esi
call fcn.00407c10
add esp, 0x10
push esi
call fcn.0040d0b0
mov edi, eax
add esp, 4
test edi, edi
jne 0x40b603
push esi
mov bl, 1
call fcn.00414d50
add esp, 4
test eax, eax
jne 0x40b563
push str.UsbDk_backend_is_available
push str.windows_init
push 4
push esi
call fcn.00407c10
mov byte [0x445958], bl
jmp 0x40b575
push 0x445ab8
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.00407c10
push 8
push 0x3fe
mov dword [0x445a98], 0
call fcn.0041ffa1
add esp, 0x1c
mov dword [0x445a9c], eax
test eax, eax
jne 0x40b4c4
push str.could_not_allocate_space_for_hash_table
push str.htab_create
push 1
push esi
call fcn.00407c10
add esp, 0x10
mov edi, 0xfffffff5
jmp 0x40b603
push str.UsbDk_backend_is_not_available
push str.windows_init
push 3
push esi
call fcn.00407c10
add esp, 0x10
push 1
push 0
push 0
push 0xffffffffffffffff
mov dword [esi + fcn.0040d0b0], 0x43dbc8
mov edi, 0xfffffff5
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
mov dword [esi + 0x12c], eax
test eax, eax
jne 0x40b5be
xor ecx, ecx
call fcn.0040a9e0
push eax
push str.failed_to_create_I_O_completion_port:__s
push str.windows_init
push 1
push esi
call fcn.00407c10
add esp, 0x14
jmp 0x40b603
push 0
push 0
push esi
push 0x40b200
push 0
push 0
call fcn.0041ff10
add esp, 0x18
mov dword [esi + 0x130], eax
test eax, eax
jne 0x40b601
push str.failed_to_create_I_O_completion_port_thread
push str.windows_init
push 1
push esi
call fcn.00407c10
add esp, 0x10
push dword [esi + 0x12c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40b603
xor edi, edi
cmp dword [0x445aac], 1
jne 0x40b652
test edi, edi
je 0x40b652
cmp byte [0x445958], 0
je 0x40b63a
mov eax, dword [0x445c3c]
test eax, eax
je 0x40b633
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [0x445c3c], 0
mov byte [0x445958], 0
test bl, bl
je 0x40b647
push esi
call fcn.0040d130
add esp, 4
call fcn.0040aac0
dec dword [0x445aac]
mov eax, edi
pop edi
pop esi
pop ebx
ret
Function at 0x4178d8
Capabilities:
Parse pe header

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

Function at 0x421ee1
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4368f4
push 0x4368ec
push str.FlsAlloc
push 0x1f
call fcn.00421ce0
mov esi, eax
add esp, 0x10
test esi, esi
je 0x421f15
push dword [ebp + 8]
mov ecx, esi
call dword [0x4341c4]
call esi
jmp 0x421f1b
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x421f5f
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x436904
push 0x4368fc
push str.FlsGetValue
push 0x21
call fcn.00421ce0
mov esi, eax
add esp, 0x10
test esi, esi
je 0x421f96
push dword [ebp + 8]
mov ecx, esi
call dword [0x4341c4]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x421f9e
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x43690c
push 0x436904
push str.FlsSetValue
push 0x22
call fcn.00421ce0
mov esi, eax
add esp, 0x10
test esi, esi
je 0x421fd8
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x4341c4]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]

Function at 0x424c25
Capabilities:
Print debug messages

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