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

Disassembly:
pushal
mov esi, 0x40f015
lea edi, [esi - 0xe015]
push edi
or ebp, 0xffffffff
jmp 0x419782
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x419789
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x419778
mov eax, 1
add ebx, ebx
jne 0x41979b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x419790
jne 0x4197ac
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x419790
xor ecx, ecx
sub eax, 3
jb 0x4197c0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x419832
mov ebp, eax
add ebx, ebx
jne 0x4197cb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x4197d8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x4197fc
inc ecx
add ebx, ebx
jne 0x4197e8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4197dd
jne 0x4197f9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4197dd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x41981c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x41980d
jmp 0x41977e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x41981c
add edi, ecx
jmp 0x41977e
pop esi
mov edi, esi
mov ecx, 0x2b3
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x41983a
cmp byte [edi], 5
jne 0x41983a
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 0x41983f
lea edi, [esi + 0x17000]
mov eax, dword [edi]
or eax, eax
je 0x4198b7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x19000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1908c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x41986c
mov ecx, edi
jns 0x41989b
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 + 0x19090]
or eax, eax
je 0x4198b1
mov dword [ebx], eax
add ebx, 4
jmp 0x419889
call dword [esi + 0x190a0]
mov ebp, dword [esi + 0x19094]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
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 0x4198eb
sub esp, 0xffffff80
jmp 0x404c20

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43100c
nop
nop
pop eax
nop
nop
nop
add eax, 0x403e6a
nop
nop
sub eax, 0x403e10
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x431030
nop
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43101e
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp fcn.00401219
Function at 0x414ac0
Capabilities:
Encode data using xor

Disassembly:
jmp dword [ebx + 0x3649736f]
lahf
invalid
cmpsb byte [esi], byte es:[edi]
std
adc edi, dword [ecx + 0x3ea7a4f6]
jne 0x414a69
scasd eax, dword es:[edi]
xor dword [esi], esi
not byte [0xba8c9c05]
or eax, 0x5797a68b
mov dl, 8
or byte [edx + 0x74], 0x16
cmp eax, 0x9ff2cef3
mov cl, 0x74
dec esi
dec edi
xchg ebx, eax
xor eax, 0x8ba397f6
or dword [eax - 0x7ff6d0e5], eax
or al, 0xcc
out 0x1f, al
mov dl, 0x74
push ds
je 0x414b19
scasb al, byte es:[edi]
jne 0x414a89
mov ecx, dword [ecx]
mov dh, 0x30
or dword [esi + 0x7ff67430], esi
xor byte [esi + esi*8 + 0x7f], dh
je 0x414af9
jg 0x414af8
je 0x414afd
je 0x414afd
jg 0x414afc
je 0x414b01
jg 0x414b00
je 0x414b05
jg 0x414b1d
mov ecx, dword [ecx]
xor bl, 0x74
idiv byte [edi + 0xc]
je 0x414b0d
je 0x414b0d
jg 0x414b25
or al, 0x8b
or dword [eax + 0x7ff674f3], eax
je 0x414b19
mov ecx, dword [ecx]
xor bl, 0x74
idiv byte [edi - 0xd]
je 0x414b15
je 0x414b15
jg 0x414b14
je 0x414b19
jg 0x414b18
je 0x414b1d
jg 0x414b1c
je 0x414ba0
xchg ebx, eax
div dword [ebx - 0x23e0a40e]
mov ah, 0x7f
cli
invalid
bnd retf 0x6c09
Function at 0x10004391
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebx
push edi
push esi
mov al, byte [0x100bc518]
test al, al
je 0x100044c7
mov ecx, 0x100bc4f0
call fcn.100207e0
push 0x6d
push 0x8c9808f
push 0xe76210
push 0x100bc4f0
call fcn.10003dc3
add esp, 0x10
mov al, byte [0x100bc540]
test al, al
je 0x1000451e
mov ecx, 0x100bc520
call fcn.1002082a
push 0x38
push 0x3a7dc
push 0x16a
push 0x100bc520
call fcn.10003dc3
add esp, 0x10
mov al, byte [0x100bc578]
test al, al
je 0x1000456e
mov ecx, 0x100bc550
call fcn.100207e0
push 0x6d
push 0x8e26d6b
push 0xe9f438
push 0x100bc550
call fcn.10003dc3
add esp, 0x10
mov al, byte [0x100bc5a0]
test al, al
je 0x100045c5
mov edi, dword [esp + 0x18]
mov ebx, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
mov ecx, 0x100bc580
call fcn.1002082a
push 0x38
push 0x3b22c
push 0x16e
push 0x100bc580
call fcn.10003dc3
add esp, 0x10
mov al, byte [0x100bc5d0]
test al, al
je 0x10004615
mov ecx, 0x100bc5b0
call fcn.1002082a
push 0x1781
push 0x15fcb1
push 0x450
push 0x100bc5b0
call fcn.10003dc3
sub esp, 0x18
mov dword [esp + 0x24], ebx
mov dword [esp + 0x20], edi
xor eax, eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], eax
xorps xmm0, xmm0
movups xmmword [esp + 4], xmm0
mov dword [esp], esi
mov dword [esp + 0x14], 4
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
setne al
pop esi
pop edi
pop ebx
ret
push 0x100bc518
call fcn.10020dec
add esp, 4
test eax, eax
je 0x100043a1
mov byte [0x100bc510], 1
movaps xmm0, xmmword [0x100ac0f0]
movaps xmmword [0x100bc4f0], xmm0
movaps xmm0, xmmword [0x100ac100]
movaps xmmword [0x100bc500], xmm0
push 0x1001b886
call fcn.100013b0
add esp, 4
push 0x100bc518
call fcn.10020e93
add esp, 4
jmp 0x100043a1
push 0x100bc540
call fcn.10020dec
add esp, 4
test eax, eax
je 0x100043d1
movaps xmm0, xmmword [0x100ac110]
movaps xmmword [0x100bc520], xmm0
movaps xmm0, xmmword [0x100ac120]
movaps xmmword [0x100bc530], xmm0
push 0x1001b898
call fcn.100013b0
add esp, 4
push 0x100bc540
call fcn.10020e93
add esp, 4
jmp 0x100043d1
push 0x100bc578
call fcn.10020dec
add esp, 4
test eax, eax
je 0x10004401
mov byte [0x100bc570], 1
movaps xmm0, xmmword [0x100ac0f0]
movaps xmmword [0x100bc550], xmm0
movaps xmm0, xmmword [0x100ac100]
movaps xmmword [0x100bc560], xmm0
push 0x1001b8aa
call fcn.100013b0
add esp, 4
push 0x100bc578
call fcn.10020e93
add esp, 4
jmp 0x10004401
push 0x100bc5a0
call fcn.10020dec
add esp, 4
test eax, eax
je 0x10004431
movaps xmm0, xmmword [0x100ac110]
movaps xmmword [0x100bc580], xmm0
movaps xmm0, xmmword [0x100ac120]
movaps xmmword [0x100bc590], xmm0
push 0x1001b8bc
call fcn.100013b0
add esp, 4
push 0x100bc5a0
call fcn.10020e93
add esp, 4
jmp 0x10004431
push 0x100bc5d0
call fcn.10020dec
add esp, 4
test eax, eax
je 0x1000446d
movaps xmm0, xmmword [0x100ac130]
movaps xmmword [0x100bc5b0], xmm0
movaps xmm0, xmmword [0x100ac140]
movaps xmmword [0x100bc5c0], xmm0
push 0x1001b8ce
call fcn.100013b0
add esp, 4
push 0x100bc5d0
call fcn.10020e93
add esp, 4
jmp 0x1000446d
Function at 0x100050ec
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
mov al, byte [0x100bc9c8]
test al, al
je 0x10005200
mov ecx, 0x100bc9a0
call fcn.100207e0
push 0x7a
push 0xcab73d4
push 0x10df268
push 0x100bc9a0
call fcn.10003dc3
add esp, 0x10
mov al, byte [0x100bc9f0]
test al, al
je 0x10005257
mov ecx, 0x100bc9d0
call fcn.1002082a
push 0x45
push 0x54450
push 0x1a6
push 0x100bc9d0
call fcn.10003dc3
add esp, 0x10
mov al, byte [0x100bca28]
test al, al
je 0x100052a7
mov ecx, 0x100bca00
call fcn.100207e0
push 0x7a
push 0xcca44e4
push 0x1108490
push 0x100bca00
call fcn.10003dc3
add esp, 0x10
mov al, byte [0x100bca50]
test al, al
je 0x100052fe
mov edi, dword [esp + 0x10]
mov esi, dword [esp + 0xc]
mov ecx, 0x100bca30
call fcn.1002082a
push 0x45
push 0x55110
push 0x1aa
push 0x100bca30
call fcn.10003dc3
add esp, 0x10
mov al, byte [0x100bca80]
test al, al
je 0x1000534e
mov ecx, 0x100bca60
call fcn.1002082a
push 0x178e
push 0x1f9aac
push 0x504
push 0x100bca60
call fcn.10003dc3
add esp, 0x10
push 0x40
push 0x3000
push dword [edi + 0x50]
push 0
push dword [esi]
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
pop esi
pop edi
ret
push 0x100bc9c8
call fcn.10020dec
add esp, 4
test eax, eax
je 0x100050fb
mov byte [0x100bc9c0], 1
movaps xmm0, xmmword [0x100ac220]
movaps xmmword [0x100bc9a0], xmm0
movaps xmm0, xmmword [0x100ac230]
movaps xmmword [0x100bc9b0], xmm0
push 0x1001ba48
call fcn.100013b0
add esp, 4
push 0x100bc9c8
call fcn.10020e93
add esp, 4
jmp 0x100050fb
push 0x100bc9f0
call fcn.10020dec
add esp, 4
test eax, eax
je 0x1000512b
movaps xmm0, xmmword [0x100ac240]
movaps xmmword [0x100bc9d0], xmm0
movaps xmm0, xmmword [0x100ac250]
movaps xmmword [0x100bc9e0], xmm0
push 0x1001ba5a
call fcn.100013b0
add esp, 4
push 0x100bc9f0
call fcn.10020e93
add esp, 4
jmp 0x1000512b
push 0x100bca28
call fcn.10020dec
add esp, 4
test eax, eax
je 0x1000515b
mov byte [0x100bca20], 1
movaps xmm0, xmmword [0x100ac220]
movaps xmmword [0x100bca00], xmm0
movaps xmm0, xmmword [0x100ac230]
movaps xmmword [0x100bca10], xmm0
push 0x1001ba6c
call fcn.100013b0
add esp, 4
push 0x100bca28
call fcn.10020e93
add esp, 4
jmp 0x1000515b
push 0x100bca50
call fcn.10020dec
add esp, 4
test eax, eax
je 0x1000518b
movaps xmm0, xmmword [0x100ac240]
movaps xmmword [0x100bca30], xmm0
movaps xmm0, xmmword [0x100ac250]
movaps xmmword [0x100bca40], xmm0
push 0x1001ba7e
call fcn.100013b0
add esp, 4
push 0x100bca50
call fcn.10020e93
add esp, 4
jmp 0x1000518b
push 0x100bca80
call fcn.10020dec
add esp, 4
test eax, eax
je 0x100051c3
movaps xmm0, xmmword [0x100ac260]
movaps xmmword [0x100bca60], xmm0
movaps xmm0, xmmword [0x100ac270]
movaps xmmword [0x100bca70], xmm0
push 0x1001ba90
call fcn.100013b0
add esp, 4
push 0x100bca80
call fcn.10020e93
add esp, 4
jmp 0x100051c3
Function at 0x100207e0
Capabilities:
Encode data using xor

Disassembly:
cmp byte [ecx + 0x20], 0
je 0x10020828
push ebx
push edi
push esi
sub esp, 8
movsd xmm0, qword [0x100ad020]
movsd qword [esp], xmm0
xor eax, eax
xor esi, esi
xor edx, edx
xor edi, edi
mov ebx, eax
and ebx, 7
mov bl, byte [esp + ebx]
xor byte [ecx + eax], bl
add edx, 1
adc edi, 0
cmp eax, 0x1f
sbb esi, 0
mov eax, edx
mov esi, edi
jb 0x10020801
mov byte [ecx + 0x20], 0
add esp, 8
pop esi
pop edi
pop ebx
ret

Function at 0x1002082a
Capabilities:
Encode data using xor

Disassembly:
cmp byte [ecx + 0x1f], 0
je 0x10020872
push ebx
push edi
push esi
sub esp, 8
movsd xmm0, qword [0x100ad030]
movsd qword [esp], xmm0
xor eax, eax
xor esi, esi
xor edx, edx
xor edi, edi
mov ebx, eax
and ebx, 7
mov bl, byte [esp + ebx]
xor byte [ecx + eax], bl
add edx, 1
adc edi, 0
cmp eax, 0x1e
sbb esi, 0
mov eax, edx
mov esi, edi
jb 0x1002084b
mov byte [ecx + 0x1f], 0
add esp, 8
pop esi
pop edi
pop ebx
ret
Function at 0x10073520
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0xd8
mov edi, dword [ebp + 0x10]
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov dword [esp + 0x10], 0x100b223c
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], esi
test edi, edi
je 0x1007355e
mov dword [edi], 0
call fcn.100797e0
mov dword [edi + 4], eax
mov dword [esp], 0
call fcn.100797e0
mov dword [esp + 4], eax
mov edi, esp
lea eax, [esp + 0x80]
lea ecx, [esp + 8]
push edi
push eax
push esi
push ecx
call fcn.10072cc0
add esp, 0x10
movzx eax, byte [esp + 8]
cmp eax, 2
je 0x100735a1
test eax, eax
jne 0x100735ab
lea ecx, [esp + 0x10]
push edi
call fcn.10073740
jmp 0x100735ca
test byte [ebx], 1
je 0x100735cc
mov eax, dword [ebx + 8]
jmp 0x100735cf
mov dword [esp + 0x30], 0x14
lea eax, [esp + 0x30]
lea ecx, [esp + 0x10]
push 0x100b224d
push eax
push ecx
call fcn.10074310
add esp, 0xc
jmp 0x100735e0
lea eax, [ebx + 2]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, eax
mov al, 1
test ecx, ecx
je 0x100735e8
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.100709b0
add esp, 4
mov esi, eax
call dword [sym.imp.msvcrt.dll__errno]
mov dword [eax], esi
call dword [sym.imp.msvcrt.dll__errno]
cmp dword [eax], 0x11
jne 0x10073664
call dword [sym.imp.msvcrt.dll__errno]
mov esi, dword [eax]
call fcn.10079640
mov dword [esp + 4], eax
mov dword [esp], esi
mov dword [esp + 0x28], 0
call fcn.100797e0
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x28]
lea ecx, [esp + 0x30]
lea edx, [esp + 0x20]
push eax
push ecx
push ebx
push edx
call fcn.10072cc0
add esp, 0x10
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
mov dword [esp + 0xc], ecx
mov dword [esp + 8], eax
cmp al, 2
jne 0x10073687
xor eax, eax
jmp 0x100735e0
call dword [sym.imp.msvcrt.dll__errno]
mov esi, dword [eax]
call fcn.10079640
mov dword [esp + 0x34], eax
mov dword [esp + 0x30], esi
lea eax, [esp + 0x30]
lea ecx, [esp + 0x10]
push eax
jmp 0x1007359a
jmp 0x10073595
Function at 0x100739a0
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x28
mov edi, dword [ebp + 0xc]
mov ebx, edi
sar ebx, 0x1f
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
mov dword [esp], eax
call dword [sym.imp.msvcrt.dll__get_osfhandle]
mov esi, eax
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], edi
movsd xmm0, qword [esp + 0x18]
movsd qword [esp + 4], xmm0
mov dword [esp], eax
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
sub esp, 0x14
test eax, eax
je 0x10073a1e
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
sub esp, 4
test eax, eax
je 0x10073a1e
mov esi, dword [ebp + 0x10]
mov dword [esi], 0
call fcn.100797e0
mov dword [esi + 4], eax
xor eax, eax
jmp 0x10073a4b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], eax
call fcn.100709b0
mov esi, eax
mov edi, dword [sym.imp.msvcrt.dll__errno]
call edi
mov dword [eax], esi
call edi
mov esi, dword [eax]
call fcn.10079640
mov ecx, dword [ebp + 0x10]
mov dword [ecx + 4], eax
mov dword [ecx], esi
mov al, 1
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x10074210
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x80
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [esp + 0x10], 0x100b223c
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], 0
test esi, esi
je 0x1007424f
mov dword [esi], 0
call fcn.100797e0
mov dword [esi + 4], eax
test byte [edi], 1
je 0x10074259
mov eax, dword [edi + 8]
jmp 0x1007425c
lea eax, [edi + 2]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, eax
mov al, 1
test ecx, ecx
jne 0x10074302
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.100709b0
add esp, 4
mov esi, eax
mov ebx, dword [sym.imp.msvcrt.dll__errno]
call ebx
mov dword [eax], esi
call ebx
cmp dword [eax], 0x11
jne 0x100742d9
call dword [sym.imp.msvcrt.dll__errno]
mov esi, dword [eax]
call fcn.10079640
mov dword [esp + 0xc], eax
mov dword [esp + 8], esi
mov dword [esp], 0
call fcn.100797e0
mov dword [esp + 4], eax
mov eax, esp
lea ecx, [esp + 0x28]
lea edx, [esp + 0x20]
push eax
push ecx
push edi
push edx
call fcn.10072cc0
add esp, 0x10
cmp byte [esp + 0x20], 2
jne 0x100742f4
xor eax, eax
jmp 0x10074302
call dword [sym.imp.msvcrt.dll__errno]
mov esi, dword [eax]
call fcn.10079640
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], esi
lea eax, [esp + 0x28]
jmp 0x100742f8
lea eax, [esp + 8]
lea ecx, [esp + 0x10]
push eax
call fcn.10073740
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x10074460
Capabilities:
Get common file path

Disassembly:
push ebx
push edi
push esi
push 0x21c
call sub.msvcrt.dll_malloc
add esp, 4
mov edi, eax
push eax
push 0x10e
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
cmp eax, 0x10f
jb 0x100744b5
mov ebx, eax
add eax, eax
push eax
call sub.msvcrt.dll_malloc
add esp, 4
mov esi, eax
test edi, edi
je 0x100744a3
push edi
call fcn.100ab0e2
add esp, 4
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x100744bb
mov eax, esi
pop esi
pop edi
pop ebx
ret
mov esi, edi
test eax, eax
jne 0x100744af
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.100709b0
add esp, 4
mov edi, eax
call dword [sym.imp.msvcrt.dll__errno]
mov dword [eax], edi
xor eax, eax
test esi, esi
je 0x100744b1
push esi
call fcn.100ab0e2
xor eax, eax
add esp, 4
pop esi
pop edi
pop ebx
ret

Function at 0x10075170
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x38
mov esi, dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1007524f
mov ecx, dword [ebp + 0x14]
mov ebx, dword [ebp + 0x10]
test cl, 1
jne 0x10075268
mov ecx, eax
and ecx, 0x400
je 0x10075268
sub esp, 0x1c
movaps xmm0, xmmword [0x100b21c0]
movups xmmword [esp + 4], xmm0
mov dword [esp], esi
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x2000000
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esp + 4], eax
cmp eax, 0xffffffff
je 0x1007528b
mov esi, eax
lea eax, [esp + 8]
push 0x28
push eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandleEx]
test eax, eax
je 0x10075228
mov eax, dword [esp + 0x28]
mov edx, eax
and edx, 0xfffffffe
xor ecx, ecx
test bl, 0x92
sete cl
or ecx, edx
mov dword [esp + 0x28], ecx
xor edi, edi
cmp ecx, eax
je 0x10075246
push 0x28
lea eax, [esp + 0xc]
push eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFileInformationByHandle]
test eax, eax
jne 0x10075246
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.100709b0
add esp, 4
mov edi, eax
call dword [sym.imp.msvcrt.dll__errno]
mov dword [eax], edi
mov edi, 0xffffffff
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x100752a9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.100709b0
add esp, 4
mov esi, eax
call dword [sym.imp.msvcrt.dll__errno]
jmp 0x100752a2
mov edx, eax
and edx, 0xfffffffe
xor ecx, ecx
test bl, 0x92
sete cl
or ecx, edx
xor edi, edi
cmp ecx, eax
je 0x100752a9
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x100752a9
jmp 0x1007524f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.100709b0
add esp, 4
mov esi, eax
call dword [sym.imp.msvcrt.dll__errno]
mov dword [eax], esi
mov edi, 0xffffffff
mov eax, edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x10075900
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x28
mov eax, dword [ebp + 8]
movaps xmm0, xmmword [0x100b21f0]
movups xmmword [esp + 4], xmm0
mov dword [esp], eax
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x2000000
call dword [sym.imp.KERNEL32.dll_CreateFileW]
sub esp, 0x1c
mov dword [esp + 0x1c], eax
cmp eax, 0xffffffff
je 0x100759b8
mov esi, eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x20], eax
sar eax, 0x1f
mov dword [esp + 0x24], eax
movsd xmm0, qword [esp + 0x20]
movsd qword [esp + 4], xmm0
mov dword [esp], esi
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
sub esp, 0x14
test eax, eax
je 0x1007598d
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
sub esp, 4
xor edi, edi
test eax, eax
jne 0x100759aa
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], eax
call fcn.100709b0
mov edi, eax
call dword [sym.imp.msvcrt.dll__errno]
mov dword [eax], edi
mov edi, 0xffffffff
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
jmp 0x100759d5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], eax
call fcn.100709b0
mov esi, eax
call dword [sym.imp.msvcrt.dll__errno]
mov dword [eax], esi
mov edi, 0xffffffff
mov eax, edi
lea esp, [ebp - 8]
pop esi
pop edi
pop ebp
ret
Function at 0x10078740
Capabilities:
Query environment variable

Disassembly:
push ebp
push ebx
push edi
push esi
mov ebp, dword [esp + 0x1c]
mov ebx, dword [esp + 0x18]
mov edi, dword [esp + 0x14]
call fcn.100809f0
test al, al
je 0x10078787
mov esi, dword [fcn.10078a10]
push 2
call esi
add esp, 4
push ebp
push ebx
push edi
push str.libunwind:__Unwind_SetGR_context_p__reg_d__value0x_0x__n
push eax
call fcn.10077d60
add esp, 0x14
push 2
call esi
add esp, 4
push eax
call sub.msvcrt.dll_fflush
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
jmp fcn.10080ae0
Function at 0x10080410
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push ebx
push edi
push esi
mov eax, dword [esp + 0x18]
cmp eax, 3
ja case.default.0x10080421
jmp dword [eax*4 + 0x100b39c8]
cmp dword [0x100c4494], 0
je 0x10080530
push 0x100c4498
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [0x100c44b0]
test edi, edi
je 0x10080525
mov ebx, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1008046b
mov edi, dword [edi + 8]
test edi, edi
je 0x10080525
push dword [edi]
call ebx
mov esi, eax
call ebp
test eax, eax
jne 0x10080460
test esi, esi
je 0x10080460
mov ecx, dword [edi + 4]
call dword [0x100b974c]
push esi
call ecx
add esp, 4
jmp 0x10080460
call fcn.100a7730
jmp case.default.0x10080421
cmp dword [0x100c4494], 0
je case.default.0x10080421
push 0x100c4498
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [0x100c44b0]
test edi, edi
je 0x10080518
mov ebx, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x100804d7
mov edi, dword [edi + 8]
test edi, edi
je 0x10080518
push dword [edi]
call ebx
mov esi, eax
call ebp
test eax, eax
jne 0x100804d0
test esi, esi
je 0x100804d0
mov ecx, dword [edi + 4]
call dword [0x100b974c]
push esi
call ecx
add esp, 4
jmp 0x100804d0
cmp dword [0x100c4494], 0
jne 0x1008050c
push 0x100c4498
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [0x100c4494], 1
jmp case.default.0x10080421
push 0x100c4498
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp case.default.0x10080421
push 0x100c4498
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [0x100c4494]
cmp eax, 1
jne case.default.0x10080421
mov eax, dword [0x100c44b0]
test eax, eax
je 0x10080562
nop word cs:[eax + eax]
mov esi, dword [eax + 8]
push eax
call fcn.100ab0e2
add esp, 4
mov eax, esi
test esi, esi
jne 0x10080550
mov dword [0x100c44b0], 0
mov dword [0x100c4494], 0
push 0x100c4498
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov eax, 1
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x10080690
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
push edi
push esi
mov esi, dword [0x100b2748]
movzx ecx, word [esi]
xor eax, eax
cmp ecx, 0x5a4d
jne 0x100806f6
mov ecx, dword [esi + 0x3c]
cmp dword [esi + ecx], 0x4550
jne 0x100806f6
add esi, ecx
movzx ecx, word [esi + 0x18]
cmp ecx, 0x10b
jne 0x100806f6
movzx ecx, word [esi + 6]
test ecx, ecx
je 0x100806f6
mov edx, dword [esp + 0xc]
sub edx, dword [0x100b2748]
movzx edi, word [esi + 0x14]
add esi, edi
add esi, 0x18
jmp 0x100806e6
add esi, 0x28
dec ecx
je 0x100806f6
mov edi, dword [esi + 0xc]
cmp edi, edx
ja 0x100806e0
add edi, dword [esi + 8]
cmp edi, edx
jbe 0x100806e0
mov eax, esi
pop esi
pop edi
ret