joyce8/EMBER2024-capa huggingface dataset:
Function at 0x419673
Capabilities:
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x46f0c0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
push 0
push 0x26
lea eax, [ebp - 0x108]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
jl 0x4196ec
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendA]
push str.Hewlett_PackardeSupportDiags
lea eax, [ebp - 0x108]
push eax
call esi
push edi
lea eax, [ebp - 0x108]
push eax
call esi
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
jne 0x4196d7
xor al, al
jmp 0x4196ee
push str.DllRegisterServer
push esi
call dword [0x4705d4]
call eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov al, 1
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00438e3d
leave
ret

Function at 0x4204b3
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x4204f6
call fcn.004254a5
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x4204f6
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x420511
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.0042006a
test ebx, ebx
mov esi, eax
je 0x42050f
test edi, edi
je 0x42050f
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x4287ad
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
je 0x4287f3
call fcn.004254a5
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x4287f3
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 4], eax
je 0x428836
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
je 0x42881f
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x42881f
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x428833
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x4294b2
Capabilities:
Read file on windows

Disassembly:
cmp dword [esp + 8], 0
push esi
mov esi, ecx
jne 0x4294bb
xor eax, eax
jmp 0x429524
cmp dword [esp + 8], 0
jne 0x4294c7
call fcn.0042183a
push edi
push dword [esi + 0x10]
push dword [esp + 0x14]
push 1
push dword [esp + 0x18]
call fcn.0043e97f
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x429502
push dword [esi + 0x10]
call fcn.0043e6c4
test eax, eax
pop ecx
jne 0x429502
mov esi, dword [esi + 0xc]
call fcn.0043a900
push esi
push dword [eax]
push 1
call fcn.00425a1e
push dword [esi + 0x10]
call fcn.0043e6f3
test eax, eax
pop ecx
je 0x429521
push dword [esi + 0x10]
call fcn.0043e618
push eax
call fcn.0040144d
pop ecx
pop ecx
jmp 0x4294f0
mov eax, edi
pop edi
pop esi
ret 8

Function at 0x42952d
Capabilities:
Write file on windows

Disassembly:
cmp dword [esp + 4], 0
push esi
mov esi, ecx
jne 0x429537
call fcn.0042183a
push dword [esi + 0x10]
push dword [esp + 0x10]
push 1
push dword [esp + 0x14]
call fcn.0043eab4
add esp, 0x10
cmp eax, dword [esp + 0xc]
je 0x429564
mov esi, dword [esi + 0xc]
call fcn.0043a900
push esi
push dword [eax]
push 1
call fcn.00425a1e
pop esi
ret 8

Function at 0x438e3d
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x46f0c0]
jne 0x438e47
repz ret
jmp fcn.0044347c

Function at 0x4512ca
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x46f0c0]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.0045125f
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.00439d20
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x451319
cmp dword [ebp - 0x1c], 5
jb 0x451331
jmp 0x45132d
cmp dword [ebp - 0x10], 1
jne 0x451331
cmp dword [ebp - 0x1c], 4
ja 0x45132d
jne 0x451331
cmp dword [ebp - 0x18], 0
jbe 0x451331
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x460f0c
call fcn.0040fed3
test eax, eax
jge 0x451352
mov byte [0x470793], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00438e3d
add ebp, 0x78
leave
ret
Function at 0x458ce6
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov eax, 0x45df2e
call fcn.0041c02c
sub esp, 0x118
mov eax, dword [0x47aaf0]
push ebx
push esi
push edi
mov dword [ebp - 0x10], eax
call fcn.004349cf
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x118], eax
xor ebx, ebx
mov dword [ebp - 4], ebx
call fcn.004349cf
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x11c], eax
mov edi, SysReAllocStringLen
cmp dword [ebp + 0x18], edi
mov byte [ebp - 4], 1
mov dword [ebp - 0x120], ebx
jne 0x458d5d
lea eax, [ebp - 0x120]
push eax
push 0x20019
push ebx
push str.CLSID
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov eax, dword [ebp + 8]
mov esi, dword [eax]
cmp esi, ebx
mov dword [ebp - 0x124], 1
je 0x458e48
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
add dword [ebp + 8], 4
cmp dword [ebp + 0x18], edi
jne 0x458d8c
cmp byte [esi], 0
je 0x458e2d
push esi
call ebx
push dword [ebp + 0x10]
lea eax, [eax + esi + 1]
push dword [ebp + 0xc]
mov dword [ebp - 0x114], eax
push esi
lea eax, [ebp - 0x118]
push eax
call fcn.0044672d
push dword [ebp + 0x10]
lea eax, [ebp - 0x11c]
push dword [ebp + 0xc]
push dword [ebp - 0x114]
push eax
call fcn.0044672d
cmp dword [ebp + 0x18], edi
mov eax, dword [ebp - 0x118]
jne 0x458dd5
cmp dword [eax - 0xc], 0
je 0x458e2d
cmp dword [ebp + 0x14], 0
jne 0x458e07
lea ecx, [ebp - 0x114]
push ecx
lea ecx, [ebp - 0x110]
push ecx
push eax
push dword [ebp + 0x18]
mov dword [ebp - 0x114], pe_nt_image_headers32
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
test eax, eax
je 0x458e2d
mov eax, dword [ebp - 0x118]
mov esi, dword [ebp - 0x11c]
push esi
mov dword [ebp - 0x114], eax
call ebx
push eax
push esi
push 1
push dword [ebp - 0x114]
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegSetValueA]
test eax, eax
jne 0x458e3c
mov eax, dword [ebp + 8]
mov esi, dword [eax]
test esi, esi
jne 0x458d7a
jmp 0x458e48
cmp eax, 5
je 0x458e48
and dword [ebp - 0x124], 0
cmp dword [ebp - 0x120], 0
pop edi
pop esi
pop ebx
je 0x458e60
push dword [ebp - 0x120]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x11c]
add ecx, 0xfffffff0
call fcn.00401060
mov ecx, dword [ebp - 0x118]
add ecx, 0xfffffff0
call fcn.00401060
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x124]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
call fcn.0041bebe
leave
ret 0x14

Function at 0x402732
Capabilities:
Parse pe header

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

Disassembly:
xor ch, byte [eax - 0x1d]
cdq
sbb byte [esp + edx*4 + 0x7e], bl
add edx, dword [ebx]
invalid
inc ebx
in eax, 0x4a
in al, 0x3f
push ds
dec esi
sub al, 0xae
inc ebp
out 0x23, eax
cli
push es
aaa
jae 0x421ea6
neg dword [edi + 0x19b68a70]
enter 0xffffffffffffee42, 0
xor eax, 0xcc9f5f07
sar dword [ecx], cl
pop es
lodsb al, byte [esi]
je 0x421f61
pop es
xchg dword [eax - 0x592cee92], edi
mov bh, 0x76
mov ebx, 0xbff2ab10
ror byte [edi - 0x6e], cl
pop edi
repne outsd dx, dword [esi]
mov esi, 0x72c0ceb3
sbb eax, 0x7862e7e2
add dword [ecx + eax], edi
in al, dx
hlt
dec edx
xchg esp, eax
imul esp, dword [ebp + 0x677e6ec6], 0xffffffe7
jae 0x421eeb
out 0x73, eax
xchg byte [edi + 0x36], ch
movsd dword es:[edi], dword [esi]
outsd dx, dword [esi]
movsd dword es:[edi], dword ss:[esi]
and byte [ebp + 0x2dd24c81], dl
sar dword [edi], 0x21
popal
retf 0xb2b5
pop ds
mov edi, 0xef03d2eb
call 0x85865182
and bl, bh
push edx
and eax, 0x8f029d00
mov al, 0x5a
push 0x71
push 0x72
cmp byte cs:[ecx + esi + 0x7c], 0x76
pop ds
add bl, byte [eax]
je 0x421f5a
in eax, dx
cli
and eax, 0x28c21376
dec dword [edi - 0x1f]
or eax, 0xdfe04076
mov edi, 0x1ba2fe96
xor al, 0x50
outsd dx, dword fs:[esi]
outsd dx, dword [esi]
mov eax, 0x4e2af3c6
outsd dx, dword [esi]
or eax, 0x206a38d
jecxz 0x421fe8
mov dl, 0xad
lodsd eax, dword [esi]
push ds
xor al, 0xae
jle 0x422022
push edi
movsb byte es:[edi], byte [esi]
test eax, 0x978d9a78
push ds
pushal
pop ds
mov dword [0x2711a716], eax
cmpsd dword [esi], dword es:[edi]
adc dword [edi], esp
sbb dword [eax + 0x6a], ebx
xor ah, byte [esi]
sbb edx, dword [ebx]
nop
aam 0x86
arpl word [ebx + 0x47], cx
fsub st(5)
xchg dword [ebx], esp
ja 0x421fe5
insb byte es:[edi], dx
inc edi
jle 0x422039
or al, 0x96
test eax, 0x9e9163e0
sbb ah, ch
invalid
jno 0x421fd4
mov ah, 0x27
jmp 0x3e3de276
jg 0x421fc5
invalid
Function at 0x463bf7
Capabilities:
Encode data using xor

Disassembly:
push ds
cli
into
inc ecx
cmpsd dword [esi], dword es:[edi]
dec ebp
dec edi
sub al, byte [esi - 0x4fce922f]
popal
iretd
push edi
mov edi, dword [eax + 0x4f]
pushal
push es
push eax
inc eax
mov dword [0xcfcee290], eax
rcl byte [edx], 0xdb
cmp ch, byte [edx + 0x14d6010a]
sti
lahf
mov ah, 0x4d
adc byte [edi], dh
xor al, 0x5e
adc bl, byte [edi + 0x72]
jge 0x463ba6
mov edi, 0x112003f1
adc bl, byte [esi]
add bl, dl
aad 0xa1
mov al, 0x87
mov al, 0xa
fimul dword ds:[edx - 0x2e]
adc dword [ecx + 0x329f0297], 0x34
in al, dx
and ch, 0xd6
mov byte [0xa8216dc3], al
sub esi, eax
jg 0x463cad
scasb al, byte es:[edi]
and byte [esi + 0x5f98ed91], dl
mov eax, 0x28512a4f
sub dword [esi + edx*2], esi
push esi
dec esp
popfd
xor ecx, dword [esi + 0x26]
sub dl, bl
jnp 0x463c50
ret
mov bh, 0x2a
sal esp, cl
loopne 0x463ca9
xchg edx, eax
xor al, 0xe2
push esp
loop 0x463cff
xchg edx, eax
mov dl, 0x11
jmp 0x463cd3
adc ebx, ebp
and ebx, dword [edx + eax*8]
jg 0x463ca1
cmp al, 0xda
shr byte [edx + 0x6e], cl
push 0x6e
mov ch, 0xeb
test byte [edi + 0x18], ch
pop esi
mov bl, byte [edi + 0x71990fd3]
jno 0x463d55
push es
mov dl, 0x86
ror byte [edx + esi], 1
cmp al, 0x23
push ebp
cli
pop edi
mov dword [0x4199f359], eax
ficom word [edx - 0x12]
mov dword [0xe0c4f5a5], eax
lodsd eax, dword [esi]
sar dword [edi - 0x668b445d], cl
xchg esi, eax
push ds
sub esi, esp
in al, 0x4b
invalid
Function at 0x4e2687
Capabilities:
Compute adler32 checksum

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x10]
push edi
mov edi, ecx
shr edi, 0x10
and ecx, 0xffff
cmp ebx, 1
jne 0x4e26d3
mov eax, dword [ebp + 0xc]
movzx edx, byte [eax]
add ecx, edx
cmp ecx, 0xfff1
jb 0x4e26b8
sub ecx, 0xfff1
add edi, ecx
cmp edi, 0xfff1
jb 0x4e26c8
sub edi, 0xfff1
mov eax, edi
shl eax, 0x10
pop edi
or eax, ecx
pop ebx
pop ebp
ret
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
jne 0x4e26e3
lea eax, [esi + 1]
pop esi
pop edi
pop ebx
pop ebp
ret
cmp ebx, 0x10
jae 0x4e2722
test ebx, ebx
je 0x4e26f7
movzx eax, byte [esi]
add ecx, eax
inc esi
add edi, ecx
dec ebx
jne 0x4e26ec
cmp ecx, 0xfff1
jb 0x4e2705
sub ecx, 0xfff1
mov eax, 0x80078071
mul edi
shr edx, 0xf
mov eax, edx
shl eax, 4
sub eax, edx
add eax, edi
pop esi
shl eax, 0x10
pop edi
or eax, ecx
pop ebx
pop ebp
ret
cmp ebx, 0x15b0
jb 0x4e280d
mov eax, 0x5e6ea9af
mul ebx
shr edx, 0xb
mov dword [ebp + 8], edx
jmp 0x4e2747
Function at 0x5018d7
Capabilities:
Encode data using xor

Disassembly:
push ds
or eax, 0x5d3d32ef
jle 0x5018bf
dec edi
dec ebx
and al, 0x4d
iretd
mov cl, 0x1b
xor eax, 0xd2df618f
test dword [edi], ecx
popal
invalid
dec ebx
dec dword [ebx + 0x22907180]
arpl word [edi + 0x40], bp
loopne 0x501891
xchg esi, eax
inc eax
or dword [ecx + 0x5b788eca], 0xffffffb1
and ecx, dword [esi]
xor eax, 0x3ec1f9de
fdivp st(1)
sar dword [esi], 0xd
sbb byte [esi - 0x41], 0xd6
fdivp st(1)
sar dword [esi], 0xd
sbb byte [esi - 0x41], 0xd6
xchg edx, eax
scasb al, byte es:[edi]
lcall 0x4ec5, 0xdf93b788
dec ebp
sti
dec ebx
out 0xfe, eax
cmp eax, 0x1ce3fb
push ds
xor eax, 0x30f4ac1d
jle 0x5018ba
xor byte [edi + 0xaa34120], 0xac
das
and ah, bl
mov ebp, 0xa93384d9
jp 0x5018b6
lea ebx, [ebp + 0x164ede44]
inc eax
out dx, eax
xchg ebx, eax
salc
pop esi
pop edi
aad 0x40
add dword [eax], 0x32128192
inc esi
jno 0x501954
xchg ebp, eax
invalid
xor edi, dword [edi + 0x6b]
mov ebp, 0x58bb135b
cmpsd dword [esi], dword es:[edi]
push ds
cld
invalid
Function at 0x6577ed
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x65f3b8
cmp edx, dword [eax]
je 0x65780f
add eax, 8
inc ecx
cmp eax, 0x65f448
jl 0x657800
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x65f3b8]
jne 0x65793d
mov eax, dword [0xa64d28]
cmp eax, 1
je 0x657917
test eax, eax
jne 0x657840
cmp dword [0x65f2e4], 1
je 0x657917
cmp edx, 0xfc
je 0x65793d
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x657877
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.006581d0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00658660
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x6578ba
lea eax, [ebp - 0x1a4]
push eax
call fcn.00658660
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x65c994
push edi
call fcn.0065a530
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.006581d0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.006581e0
lea eax, [ebp - 0xa0]
push 0x65c974
push eax
call fcn.006581e0
push dword [esi + 0x65f3bc]
lea eax, [ebp - 0xa0]
push eax
call fcn.006581e0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0065a4a4
add esp, 0x2c
pop edi
jmp 0x65793d
lea eax, [ebp + 8]
lea esi, [esi + 0x65f3bc]
push 0
push eax
push dword [esi]
call fcn.00658660
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret

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

Disassembly:
pushal
call 0x43300c
pop eax
nop
nop
nop
nop
nop
add eax, 0x40a063
nop
nop
sub eax, 0x40a009
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x433030
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x43301e
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x407360
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
test ebx, ebx
jle 0x4073c1
lea edx, [ebx + 8]
mov eax, 0x38e38e39
mul edx
mov ecx, dword [esp + 8]
push ebp
push esi
mov esi, 9
push edi
sub esi, ecx
mov edi, edx
mov ebp, ebx
mov dword [esp + 0x18], esi
shr edi, 1
jmp 0x407391
mov esi, dword [esp + 0x18]
add esi, ecx
cmp esi, ebx
mov esi, 9
jl 0x40739e
mov esi, ebp
xor eax, eax
test esi, esi
jle 0x4073b5
mov edx, dword [0x41eaf4]
mov dl, byte [edx + eax]
xor byte [ecx + eax], dl
inc eax
cmp eax, esi
jl 0x4073a4
sub ebp, 9
add ecx, 9
dec edi
jne 0x40738d
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x100012b9
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub dword [ebp + 0xc], 1
jne 0x100012e3
mov eax, dword [ebp + 8]
push eax
mov dword [0x10091940], eax
call dword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
xor eax, eax
push eax
push eax
push eax
push 0x10001800
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
xor eax, eax
inc eax
pop ebp
ret 0xc

Function at 0x100012ea
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x1008ce00]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
mov dword [ebp - 0xc], edx
push esi
push edi
mov dword [ebp - 8], ebx
mov edi, ebx
mov dword [ebp - 8], ebx
xor eax, eax
push 0x25b2
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor edi, edi
mov dword [ebx], edi
mov dword [ebx + 4], edi
mov dword [ebx + 8], edi
call fcn.10001cdc
mov esi, eax
mov dword [esp], 0x25b2
push edi
mov dword [ebx], esi
push esi
lea eax, [esi + 0x25b2]
mov dword [ebx + 8], eax
call fcn.10046f20
lea eax, [esi + 0x25b2]
add esp, 0xc
mov dword [ebx + 4], eax
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x14], 7
jbe 0x10001355
mov eax, dword [eax]
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push edi
push edi
mov esi, eax
push 0x105569
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push edi
lea eax, [ebp - 8]
push eax
push 0x25b2
push dword [ebx]
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10045740
leave
ret
Function at 0x10001d30
Capabilities:
Allocate thread local storage

Disassembly:
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 0x10001de7
xor ecx, ecx
call fcn.100064e0
push eax
push str.CreateEvent_failed:__s
push str.usbi_create_event
push 1
push 0
call fcn.10006230
mov ebx, 0xffffff9d
jmp 0x10001ecb
push ecx
mov edx, eax
mov ecx, edi
call fcn.10003740
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, eax
add esp, 4
test ebx, ebx
js 0x10001ea7
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateWaitableTimerW]
mov dword [edi + 0x10], eax
test eax, eax
jne 0x10001e4e
xor ecx, ecx
call fcn.100064e0
push eax
push str.CreateWaitableTimer_failed:__s
push str.usbi_create_timer
push 2
push 0
call fcn.10006230
push str.timer_not_available_for_timeouts
push str.usbi_io_init
push 4
push edi
call fcn.10006230
add esp, 0x24
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
push str.using_timer_for_timeouts
push str.usbi_io_init
push 4
push edi
call fcn.10006230
mov edx, dword [edi + 0x10]
add esp, 0xc
mov ecx, edi
call fcn.10003740
mov ebx, eax
add esp, 4
test ebx, ebx
jns 0x10001e47
push dword [edi + 0x10]
call esi
test eax, eax
jne 0x10001e9d
xor ecx, ecx
call fcn.100064e0
push eax
push str.CloseHandle_failed:__s
push str.usbi_destroy_timer
push 2
push 0
call fcn.10006230
add esp, 0x14
mov edx, dword [edi + 0xc]
mov ecx, edi
call fcn.100037f0
push dword [edi + 0xc]
call esi
test eax, eax
jne 0x10001ece
xor ecx, ecx
call fcn.100064e0
push eax
push str.CloseHandle_failed:__s
push str.usbi_destroy_event
push 2
push 0
call fcn.10006230
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
ret
Function at 0x100065d0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x110
mov eax, dword [0x1008ce00]
xor eax, esp
mov dword [esp + 0x10c], eax
push ebx
push esi
push edi
push 0x104
lea eax, [esp + 0x10]
mov edi, edx
push eax
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edx, eax
test edx, edx
je 0x10006664
cmp edx, 0x104
jae 0x10006664
mov ecx, edi
lea ebx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10006610
sub ecx, ebx
lea eax, [edx + 6]
add eax, ecx
cmp eax, 0x104
jb 0x1000662c
push str.program_assertion_failed___library_path_buffer_overflow
jmp 0x10006669
push edi
lea eax, [esp + 0x10]
add eax, edx
push str._s.dll
push eax
call fcn.100064a0
add esp, 0xc
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x10c]
xor ecx, esp
call fcn.10045740
add esp, 0x110
ret
push str.program_assertion_failed___could_not_get_system_directory
push str.load_system_library
push 1
push esi
call fcn.10006230
mov ecx, dword [esp + 0x128]
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10045740
add esp, 0x110
ret