joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10005a88
Capabilities:
Access peb ldr_data

Disassembly:
jae 0x10005a86
jmp 0x10005a81
call fcn.10005a88
jae 0x10005a81
add esp, 4
jmp 0x10005a8d
dec dword [esp]
jno 0x10005a92
jns 0x10005a7d
jp 0x10005a96
add esp, 4
popf
jmp 0x10005a9d
push eax
push edx
xor edx, 0x90
push edx
sub edx, 0x80
pop eax
add eax, edx
pop edx
pop eax
je 0x10005ab6
jne 0x10005ab6
call 0x1fc08e0a
wait
rcl byte [edx + 0x33], 0xd0
push eax
xor eax, eax
setnp al
push edx
xor edx, eax
shl edx, 2
xchg edx, eax
pop edx
or eax, ecx
pop eax
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0xc]
mov dword [eax + 0x20], 0x20000
pushf
push 0xa
jae 0x10005ae7
jmp 0x10005ae2
call 0x10005ae9
jae 0x10005ae2
add esp, 4
jmp 0x10005aee
dec dword [esp]
jno 0x10005af3
jns 0x10005ade
jp 0x10005af7
add esp, 4
popf
jmp 0x10005afe
clc
jae 0x10005b03
imul esi, edx, 0x50
push eax
push edx
xor edx, 0x90
push edx
sub edx, 0x80
pop eax
add eax, edx
pop edx
pop eax
je 0x10005b1c
jne 0x10005b1c
bnd jl 0x10005b21
jl 0x10005b21
jmp 0x10005b23
je 0x10005b1e
push eax
xor eax, eax
setnp al
push edx
xor edx, eax
shl edx, 2
xchg edx, eax
pop edx
or eax, ecx
pop eax
xor eax, eax
test eax, eax
je 0x10005b3d
jne 0x10005b3c
call 0x93044bc4
rol byte [ebx + eax*4], 0xf0
add eax, 0x1750374
xor eax, 3
add eax, 4
xor eax, 5
je 0x10005b4b
jne 0x10005b4b
call 0x6d5bb9ae
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x100103a0
Capabilities:
Act as tcp client
Connect tcp socket
Connect udp socket
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1e8
mov eax, dword [0x100a8024]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov dword [ebp - 0x1d4], ecx
je 0x100103c1
jne 0x100103c1
pop eax
jl 0x100103c6
jmp 0x100103c8
je 0x100103c3
pushf
push 0xa
Function at 0x100108f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
je 0x10010901
jne 0x10010901
mov ebx, 0x101fdbe9
add byte [eax], ah
adc byte [eax], al
jmp fcn.101128e1
add byte [eax], al
add byte [eax], al
add byte [eax], al
inc ebx
push esi
and byte [eax], ah
pop edx
nop
xchg edx, eax
mov edx, 0xfce81201
lodsb al, byte [esi]
add ax, 0xebac
push 0x32
xor ebx, dword [esi - 0x2257c1bb]
adc byte [eax + ecx + 0x438a4854], ah
inc ebp
push edi
jg 0x10010909
sub al, 0x69
sti
jnp 0x1001098d
leave
jbe 0x10010909
fimul dword [edi]
jno 0x10010900
lodsd eax, dword [esi]
jmp 0x4da320c2
bnd retf 0x4736

Function at 0x100119e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x100a8024]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0
push 0x2fa
call fcn.1007105a
add esp, 4
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x10011a28
push 0x2fa
push 0
mov eax, dword [ebp - 0x10]
push eax
call fcn.10072cd0
add esp, 0xc
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x14], ecx
jmp 0x10011a2f
mov dword [ebp - 0x14], 0
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0xc], edx
push 0x2fa
push 0
mov eax, dword [ebp - 0xc]
push eax
call fcn.10072cd0
add esp, 0xc
mov eax, dword [ebp - 0xc]
cdq
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 0x10], eax
mov dword [ecx + 0x14], edx
push 0
lea edx, [ebp - 8]
push edx
push 0x270
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x10011a76
xor eax, eax
jmp 0x10011ab6
cmp dword [ebp - 8], 0x2fa
je 0x10011a83
xor eax, eax
jmp 0x10011ab6
mov edx, dword [ebp - 0xc]
cmp dword [edx + 4], 0x12121212
je 0x10011a93
xor eax, eax
jmp 0x10011ab6
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 8]
not ecx
mov edx, dword [ebp + 0xc]
cmp ecx, dword [edx + 8]
je 0x10011aa7
xor eax, eax
jmp 0x10011ab6
mov eax, dword [ebp + 0xc]
push eax
call fcn.10076463
add esp, 4
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10071030
mov esp, ebp
pop ebp
ret
Function at 0x1004a440
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [ebp + 8]
mov eax, ecx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, edx
mov dword [ebp - 4], eax
and edi, 0x1f
mov dword [ebp - 8], edi
cmp edi, 8
jb 0x1004a566
mov ecx, edi
shr ecx, 3
cmp dword [ebp + 0x10], 1
jne 0x1004a4e5
mov dword [ebp - 8], ecx
push 0xc2b2ae3d
push 0x27d4eb4f
push dword [eax + 4]
push dword [eax]
call fcn.10071bc0
add dword [ebp - 4], 8
mov ecx, eax
push 0x9e3779b1
shld ecx, edx, 0x1f
shld edx, eax, 0x1f
push 0x85ebca87
push edx
push ecx
call fcn.10071bc0
mov ecx, eax
xor edx, esi
xor ecx, ebx
mov eax, ecx
push 0x9e3779b1
shld eax, edx, 0x1b
shld edx, ecx, 0x1b
push 0x85ebca87
push edx
push eax
call fcn.10071bc0
mov ebx, eax
mov esi, edx
mov eax, dword [ebp - 4]
add ebx, 0xc2b2ae63
adc esi, 0x85ebca77
sub edi, 8
sub dword [ebp - 8], 1
jne 0x1004a473
jmp 0x1004a560
mov dword [ebp - 8], ecx
nop dword [eax + eax]
push 0xc2b2ae3d
push 0x27d4eb4f
push dword [eax + 4]
push dword [eax]
call fcn.10071bc0
add dword [ebp - 4], 8
mov ecx, eax
push 0x9e3779b1
shld ecx, edx, 0x1f
shld edx, eax, 0x1f
push 0x85ebca87
push edx
push ecx
call fcn.10071bc0
mov ecx, eax
xor edx, esi
xor ecx, ebx
mov eax, ecx
push 0x9e3779b1
shld eax, edx, 0x1b
shld edx, ecx, 0x1b
push 0x85ebca87
push edx
push eax
call fcn.10071bc0
mov ebx, eax
mov esi, edx
mov eax, dword [ebp - 4]
add ebx, 0xc2b2ae63
adc esi, 0x85ebca77
sub edi, 8
sub dword [ebp - 8], 1
jne 0x1004a4f0
mov eax, dword [ebp - 4]
mov dword [ebp - 8], edi
mov ecx, eax
cmp edi, 4
jb 0x1004a5bd
add eax, 4
mov dword [ebp - 4], eax
mov eax, 0x9e3779b1
mul dword [ecx]
push 0xc2b2ae3d
mov edi, eax
mov eax, 0x85ebca87
mul dword [ecx]
push 0x27d4eb4f
add edi, edx
xor eax, ebx
xor edi, esi
mov ecx, eax
shld ecx, edi, 0x17
shld edi, eax, 0x17
push edi
push ecx
call fcn.10071bc0
mov edi, dword [ebp - 8]
mov ebx, eax
mov eax, dword [ebp - 4]
add ebx, 0x9e3779f9
mov esi, edx
adc esi, 0x165667b1
sub edi, 4
test edi, edi
je 0x1004a604
movzx eax, byte [eax]
push 0x27d4eb2f
cdq
push 0x165667c5
push edx
push eax
call fcn.10071bc0
inc dword [ebp - 4]
xor ebx, eax
xor esi, edx
mov eax, ebx
push 0x9e3779b1
shld eax, esi, 0xb
push 0x85ebca87
shld esi, ebx, 0xb
push esi
push eax
call fcn.10071bc0
mov ebx, eax
mov eax, dword [ebp - 4]
mov esi, edx
sub edi, 1
jne 0x1004a5c1
push 0xc2b2ae3d
xor ecx, ecx
mov edx, esi
push 0x27d4eb4f
shr edx, 1
xor ecx, esi
xor edx, ebx
push ecx
push edx
call fcn.10071bc0
mov esi, eax
mov ecx, edx
shrd esi, ecx, 0x1d
push 0x165667b1
shr ecx, 0x1d
xor esi, eax
push 0x9e3779f9
xor ecx, edx
push ecx
push esi
call fcn.10071bc0
mov ecx, edx
xor esi, esi
pop edi
xor eax, ecx
xor edx, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100561a0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 0xc]
sub eax, 0x10000
push eax
call fcn.10056350
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 8]
jbe 0x1005626d
mov edx, dword [ebp - 4]
cmp edx, dword [section..data]
jb 0x100561ea
mov eax, dword [ebp - 4]
cmp eax, dword [0x100a8004]
ja 0x100561ea
mov ecx, dword [ebp - 4]
sub ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x100561ba
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call fcn.10072cd0
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x10056210
jmp 0x1005626d
cmp dword [ebp - 0x14], 0x10000
jne 0x10056253
cmp dword [ebp - 0x18], 0x10000
jb 0x10056253
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x10056246
mov eax, dword [ebp - 8]
jmp 0x1005626f
mov eax, dword [ebp - 4]
sub eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x10056268
mov ecx, dword [ebp - 0x20]
sub ecx, 0x10000
push ecx
call fcn.10056350
add esp, 4
mov dword [ebp - 4], eax
jmp 0x100561ba
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x10056280
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 8]
push eax
call fcn.10056380
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0xc]
jae 0x10056345
mov edx, dword [ebp - 4]
cmp edx, dword [section..data]
jb 0x100562c5
mov eax, dword [ebp - 4]
cmp eax, dword [0x100a8004]
ja 0x100562c5
mov ecx, dword [ebp - 4]
add ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x10056295
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call fcn.10072cd0
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x100562eb
jmp 0x10056345
cmp dword [ebp - 0x14], 0x10000
jne 0x1005632e
cmp dword [ebp - 0x18], 0x10000
jb 0x1005632e
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x10056321
mov eax, dword [ebp - 8]
jmp 0x10056347
mov eax, dword [ebp - 4]
add eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x10056340
mov ecx, dword [ebp - 0x24]
add ecx, dword [ebp - 0x18]
push ecx
call fcn.10056380
add esp, 4
mov dword [ebp - 4], eax
jmp 0x10056295
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x100708fb
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
call fcn.1007b866
push 2
lea ecx, [ebp - 4]
push ecx
mov eax, dword [eax + 0x14]
push 0x22
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
movzx eax, word [ebp - 4]
sub eax, 0x30
je 0x1007093a
sub eax, 1
je 0x10070935
sub eax, 1
je 0x10070931
xor eax, eax
leave
ret
push 3
jmp 0x1007093c
xor eax, eax
inc eax
leave
ret
push 2
pop eax
leave
ret

Function at 0x1007a84f
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.10071f70
mov eax, dword [0x100a8024]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.10084cf8
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x1007a891
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x1007a9ed
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.10094aa0
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x100cb658]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.10087fda
mov ecx, dword [esi*4 + 0x100cb658]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x1007a9e6
cmp eax, dword [edi + ecx + 0x24]
jne 0x1007a9e6
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1007a9e6
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.10087fda
add esp, 0x14
test edx, edx
jl 0x1007a9e6
jg 0x1007a95c
test eax, eax
jb 0x1007a9e6
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x1007a9e6
jl 0x1007a976
cmp dword [ebp - 0x1008], eax
ja 0x1007a9e6
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x1007a994
test ebx, ebx
je 0x1007a9cd
cmp ecx, edi
jae 0x1007a9cd
mov al, byte [ecx]
cmp al, 0xd
jne 0x1007a9ae
lea eax, [edi - 1]
cmp ecx, eax
jae 0x1007a9ba
cmp byte [ecx + 1], 0xa
jne 0x1007a9ba
inc ecx
jmp 0x1007a9ba
movzx eax, al
movsx eax, byte [eax + 0x100a8248]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x1007a994
cmp edx, ebx
jne 0x1007a994
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x1007a9eb
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.10071030
leave
ret
Function at 0x10085885
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x100cb658]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x100858c5
cmp byte [ebx], 0xa
jne 0x100858c5
or byte [eax + edi + 0x28], 4
jmp 0x100858ca
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x100859c8
mov al, byte [edx]
cmp al, 0x1a
je 0x100859aa
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x100858f9
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x1008591e
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x10085928
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x100858db
jmp 0x100859c8
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100859a5
cmp dword [ebp - 0xc], 0
je 0x100859a5
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x100cb658]
test byte [eax + edi + 0x28], 0x48
je 0x1008597f
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x1008596a
mov byte [esi], dl
jmp 0x1008597b
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x100cb658]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x100859c8
cmp byte [ebp - 1], 0xa
jne 0x1008598e
cmp esi, ebx
jne 0x1008598e
mov byte [esi], 0xa
jmp 0x100859c7
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.10087ff8
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x100859c8
mov byte [esi], 0xd
jmp 0x100859c7
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x100cb658]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x100859c4
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x100859c8
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x100859d1
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x100cb658]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x10085a14
cmp word [esi], dx
jne 0x10085a14
or byte [edi + eax + 0x28], 4
jmp 0x10085a19
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x10085b6c
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x10085b4c
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x10085a5b
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x10085a91
cmp eax, edx
jae 0x10085a9d
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x10085a33
jmp 0x10085b6c
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10085b48
cmp dword [ebp - 0x14], 0
je 0x10085b48
mov eax, dword [ebx*4 + 0x100cb658]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x10085b20
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x10085ae9
mov word [esi], cx
jmp 0x10085b1c
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x100cb658]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x100cb658]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x100cb658]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x10085b6c
pop ebx
cmp word [ebp - 4], bx
jne 0x10085b31
cmp esi, dword [ebp + 0xc]
jne 0x10085b31
mov word [esi], bx
jmp 0x10085b69
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.10087ff8
add esp, 0x10
cmp word [ebp - 4], bx
je 0x10085b6c
push 0xd
jmp 0x10085b65
mov ecx, dword [ebx*4 + 0x100cb658]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x10085b63
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x10085b6c
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x1008638d
Capabilities:
Read file on windows

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

Function at 0x10087904
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1009c05c
push 0x1009c054
push str.FlsAlloc
push 0x1e
call fcn.10087731
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10087938
push dword [ebp + 8]
mov ecx, esi
call dword [0x10097328]
call esi
jmp 0x1008793e
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x10087982
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1009c06c
push 0x1009c064
push str.FlsGetValue
push 0x20
call fcn.10087731
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100879b9
push dword [ebp + 8]
mov ecx, esi
call dword [0x10097328]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x1008b548
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x1008b5e5
push ebx
push esi
call fcn.1008b511
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.10089c84
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1008b592
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1008b5e4
push edi
push eax
call fcn.10086454
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1008b5b2
call fcn.10084cbe
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1008b5e3
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.10089c84
add esp, 0x20
test eax, eax
jne 0x1008b5d1
push edi
call fcn.10084cbe
jmp 0x1008b5d9
push ebx
call fcn.10084cbe
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x1008b5e8
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x1008b5f9
pop esi
ret
push ebx
push edi
push esi
call fcn.1008b511
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.10086454
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x1008b621
push ebx
push esi
push edi
call fcn.10072750
add esp, 0xc
push 0
call fcn.10084cbe
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x1008b9e5
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1008b636
Function at 0x10092b91
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.10092b0d
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x10092d09
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x10092d09
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x10092cb8
jg 0x10092bea
test eax, eax
je 0x10092cae
push 1
push 0x1000
call fcn.10087d5f
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x10092c10
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x10092ca5
push 0x8000
push ebx
call fcn.10092a3e
mov edi, dword [ebp + 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x10092c3c
jg 0x10092c37
cmp ecx, 0x1000
jb 0x10092c3c
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.1008ee00
add esp, 0x10
cmp eax, 0xffffffff
je 0x10092c81
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x10092c37
jl 0x10092c68
test ecx, ecx
jne 0x10092c29
push dword [ebp - 0xc]
push ebx
call fcn.10092a3e
push esi
call fcn.10084cbe
add esp, 0xc
xor edi, edi
jmp 0x10092d1a
cmp byte [edi + 0x24], 0
je 0x10092c98
cmp dword [edi + 0x20], 5
jne 0x10092c98
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x10092ca3
mov edi, dword [edi + 0x18]
jmp 0x10092ca5
xor edi, edi
push esi
call fcn.10084cbe
pop ecx
jmp 0x10092d1a
test ecx, ecx
jg 0x10092c7a
jl 0x10092cb8
test eax, eax
jae 0x10092c7a
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.10087ff8
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x10092cdb
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x10092c7a
jmp 0x10092d12
push ebx
call fcn.1008e38a
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x10092c7a
mov esi, dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [esi + 0x24], 1
mov dword [esi + 0x20], eax
pop edi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x18], edi
jmp 0x10092d1a
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x10092d17
mov edi, dword [edi + 0x18]
jmp 0x10092d1a
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.10087ff8
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x100949c0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x100949ed
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x100949ed
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret