joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44d670
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4a2c68
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
lea eax, [esp + 0xc]
mov ecx, dword [esi + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
push 0
lea ecx, [esp + 0x20]
call fcn.0049b58d
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.0044cfd0
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x48]
add eax, 0x64
add esp, 0xc
add ecx, 0x64
mov dword [esp + 8], eax
lea eax, [esp + 4]
mov dword [esp + 4], ecx
push eax
lea ecx, [esp + 0x20]
call fcn.0049b4bb
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
push 1
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
lea eax, [edx + ecx + 1]
xor edx, edx
test eax, eax
setl dl
dec edx
mov ecx, esi
and eax, edx
push eax
push 0
push 0
call fcn.00497d84
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 8]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
xor ecx, ecx
sar edx, 4
mov eax, edx
push 1
shr eax, 0x1f
lea eax, [edx + eax + 1]
test eax, eax
setl cl
dec ecx
and eax, ecx
mov ecx, esi
push eax
push 0
push 1
call fcn.00497d84
push 1
push 0
push 0
mov ecx, esi
call fcn.00497d2c
push 1
push 0
push 1
mov ecx, esi
call fcn.00497d2c
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.0049b5ff
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x44d7f0
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4a2c88
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call fcn.0049b58d
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.0044cfd0
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x4c]
add ecx, 0x64
add esp, 0xc
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
add eax, 0x96
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call fcn.0049b4bb
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x44d8b4
cmp dword [esp + 0x40], 1
jne 0x44d8b2
cmp ecx, eax
jge 0x44d8b4
mov eax, ecx
cmp eax, 0xc8
jge 0x44d8c0
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.0044d670
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.0049b5ff
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x44e0b0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4a2d33
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.0049619f
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], method.CBrush.virtual_0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.0049b835
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.0049cd51
test eax, eax
je 0x44e1cc
mov ecx, dword [esp + 0x3c]
call fcn.0049b862
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x44e190
push edi
mov ecx, esi
call fcn.00498ed2
mov ecx, esi
call fcn.0044e370
cmp dword [esp + 0x38], 1
jne 0x44e1c5
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.0049900d
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x4503d0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x450403
push esi
call fcn.0045e650
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x4503fc
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x450489
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x450472
mov eax, dword [esi + 8]
test eax, eax
je 0x450427
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x45046e
cmp eax, 2
je 0x450472
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x45041a
cmp eax, 3
je 0x45044d
cmp eax, 1
jne 0x45041a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x45041a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x45041a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.004504b0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x450498
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.004504b0
add esp, 4
pop esi
ret

Function at 0x450d20
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x450d41
mov ecx, dword [eax + 0x40]
test ecx, ecx
je 0x450d41
mov eax, dword [eax + 0x44]
test eax, eax
je 0x450d41
mov edx, dword [esp + 8]
push edx
push eax
call ecx
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x46fbf0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x4f7df4]
xor edx, edx
cmp eax, edx
jne 0x46fc16
xor eax, eax
mov byte [eax + 0x4f7cf4], al
inc eax
cmp eax, 0x100
jl 0x46fbfe
mov dword [0x4f7df4], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x4f7cf4
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x46fca7
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x46fc7a
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x46fc48
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x46fd20
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x46fd73
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x46fd5a
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x476700
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4a323e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x10], edi
call fcn.00477020
push 0x10
mov dword [esp + 0x18], 0
mov dword [edi], 0x4bc51c
call fcn.0049492f
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov al, 1
test esi, esi
mov byte [esp + 0x14], al
je 0x476793
push 4
mov byte [esi + 8], al
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.0049492f
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 2
je 0x47678c
push 0
mov ecx, eax
call fcn.0046d830
mov dword [esi + 0xc], eax
jmp 0x476795
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x476795
xor esi, esi
mov ecx, dword [esp + 0xc]
mov dword [edi + 0x30], esi
mov dword [edi + 0x34], 0
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8

Function at 0x496f95
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x496fcd
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00495049
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00495021
jmp 0x496fd9
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x49868c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4986ce
call fcn.0049e13c
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4986ce
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4986c5
xor eax, eax
jmp 0x4986d6
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004986dc
pop edi
pop esi
pop ebx
ret 4
Function at 0x49e66c
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x49e69a
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x49e6b8
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0049e5d2
jmp 0x49e6b8
mov eax, dword [esi + 0x14]
test eax, eax
je 0x49e6b8
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0049e5d2
test edi, edi
mov eax, edi
jne 0x49e6a2
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x403914
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x40e008], 0x8088405
inc edx
mov dword [ebx + 0x40e008], edx
mul edx
mov eax, edx
pop ebx
ret
Function at 0x40e098
Capabilities:
Encode data using xor

Disassembly:
out dx, al
mov dh, 0x1b
jmp 0x40e0ff
inc edx
mov ebx, 0xf86fe08f
cmp dword [eax - 0x287d732f], 0xffffff85
sub byte [ecx], bh
sub dword [ebx], ebp
std
sub dl, al
in al, 0x99
mov ebx, 0xe3a9b279
push 0x29679907
jnp 0x40e08d
sal byte [ebp + ecx - 0x46], cl
invalid
pop ecx
sbb al, 0x61
jb 0x40e149
pop esi
push 0x4b19798d
jecxz 0x40e165
fcomp dword [eax]
ret
call 0xc03bfcf2
push edi
pop es
aas
sbb byte [ebp - 0x27718dac], al
or esp, edi
inc ebx
adc eax, ebx
cmc
test al, 0xfb
test al, 6
cmpsb byte [esi], byte es:[edi]
pop esp
movsd dword es:[edi], dword [esi]
aad 0xda
pop eax
add ebx, esp
push edx
jno 0x40e118
push edx
fsub qword [edi - 0x7797b59b]
rcr eax, 1
sub al, 0xc7
xor ecx, esi
scasb al, byte es:[edi]
sar dword [ebx], 0x66
or ch, byte [ebp + 0x3334ea0b]
jmp 0x9bc0f568
jnp 0x40e1a1
adc esp, dword [edx - 0x67]
mov esp, dword [esi]
and al, 0xb7
stosd dword es:[edi], eax
xor dword [edi - 0x1b], 0xd00ca99d
lahf
call 0xee18e5a
jbe 0x40e13a
jge 0x40e17f
dec edx
push ebx
or edi, dword [eax - 0x25]
inc esi
invalid
retf 0xb53
mov ecx, 0x601b7e4
jns 0x40e176
jecxz 0x40e176
push es
pop edi
frstor dword [ebp + 0x70]
xchg esp, eax
xchg byte [eax - 0x4875c46e], bl
invalid

Function at 0x425b72
Capabilities:
Encode data using xor

Disassembly:
sbb bh, byte [edi - 0xcef8c66]
push es
wait
and edi, dword [esi]
or byte [ecx + 0xa64be49], dl
pop esp
mov al, byte [0x6b30f96d]
invalid

Function at 0x43d4c1
Capabilities:
Encode data using xor

Disassembly:
mov ch, 0xc0
or byte [edx - 0x10], bl
xor ah, byte ss:[ebp - 4]
fnstenv [edx]
mov esp, dword [esi]
mov ch, 0xc1
daa
sbb dl, byte [eax]
pop edi
cmp byte [ebp + 0x1d7dc79], 0xab
cmc
lodsd eax, dword [esi]
push esp
sar byte [ecx], cl
inc ecx
inc ecx
cmc
fsub qword [ebp + 0x2d9d2a38]
push ss
movsd dword es:[edi], dword [esi]
push ds

Function at 0x453880
Capabilities:
Encode data using xor

Disassembly:
ret

Function at 0x498264
Capabilities:
Encode data using xor

Disassembly:
popal
ja 0x498251
test al, 0x43
js 0x498240
mov ah, 0x31
popal
mov esi, 0xc328e3a8
mov dh, byte [ebx + 0x2779d5a8]
xchg edi, eax
mov ebx, 0x6a8eab33
sti
xor byte [ebx], ah
out dx, al
mov bh, 0x58
into
mov ebx, 0x6c03242d
out 0x24, eax
add ebp, dword [edi + 0x24]
out 0x65, al
aas
clc
fnstsw word [0xb526f0be]
push ss
push 0x8cff0f1
or byte [esi], ah
js 0x49822b
or byte [esi], ah
js 0x49822b
xchg ebp, eax
pop ebp
invalid
scasd eax, dword es:[edi]
daa
invalid

Function at 0x499148
Capabilities:
Encode data using xor

Disassembly:
out dx, al
pushfd
push edi
sbb esi, dword [0x42c05b3d]
lodsb al, byte [esi]
fadd qword [0x8d850e99]
jl 0x499182
cmp dword [eax], ebp
aas
int3
movhps xmm6, qword [0xe28b0807]
adc dword [ecx - 0x2916ec93], edx
push edi
lodsd eax, dword [esi]
invalid
Function at 0x4b7af9
Capabilities:
Encode data using xor

Disassembly:
push ebx
stosb byte es:[edi], al
scasb al, byte es:[edi]
inc ebx
shl byte [ecx], cl
fstp dword [esi + eax*4 - 0x5e419fcc]
loope 0x4b7b77
sbb dword [ecx + 0x42db6500], 0x5fc8004c
pop edx
jg 0x4b7b66
adc dword [esi], esp
push edx
cmp al, 0xe1
test dword [edx + edx - 0x6f6a1817], ecx
leave
sbb al, 0x2a
mov esi, 0x5d614a7f
pop ds
ret
stc
pop edx
cmp edx, eax
outsb dx, byte [esi]
bound ecx, qword [ebp + 0x3b4dc082]
insb byte es:[edi], dx
push ebp
adc dl, byte [edi - 0x229eb7ce]
mov ch, 2
pop eax
clc
or ecx, ecx
xor cl, byte [eax + 0x61]
fnsave dword [ebp + 0x9f85802]
leave
out dx, eax
cmp dh, al
xor byte [esi], ah
jg 0x4b7b6d
or edx, dword [ecx]
invalid
Function at 0x10001338
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 0x18
mov eax, dword [0x1001c014]
xor eax, esp
mov dword [esp + 0x14], eax
push ebx
push ebp
mov ebp, dword [esp + 0x24]
xor eax, eax
and dword [esp + 0x14], eax
and dword [esp + 0x18], eax
push esi
mov ebx, dword [ebp + 4]
sub ebx, dword [ebp]
push edi
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], eax
lea edi, [ebx + 4]
test edi, edi
je 0x100013a0
push edi
lea ecx, [esp + 0x1c]
call fcn.10002664
mov esi, dword [esp + 0x18]
push edi
push 0
push esi
call fcn.10005290
and dword [esp + 0x1c], 0
lea eax, [esi + edi]
add esp, 0xc
mov dword [esp + 0x1c], eax
lea ecx, [esp + 0x10]
call fcn.1000262a
mov eax, dword [esp + 0x18]
mov dword [eax], ebx
mov eax, dword [ebp + 4]
sub eax, dword [ebp]
push eax
mov eax, dword [esp + 0x1c]
push dword [ebp]
add eax, 4
push eax
call fcn.10004b10
mov ebx, dword [esp + 0x20]
add esp, 0xc
xor esi, esi
mov ecx, dword [ebx + 0x10]
xor edx, edx
inc edx
xor eax, eax
lock cmpxchg dword [ecx], edx
test eax, eax
jne 0x100013c2
mov ecx, dword [esp + 0x1c]
mov eax, ecx
mov edx, dword [esp + 0x18]
sub eax, edx
je 0x1000140b
sub ecx, edx
lea eax, [edx + esi]
push 0
sub ecx, esi
push ecx
push eax
push dword [ebx + 0xc]
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x1000140b
mov ecx, dword [esp + 0x1c]
add esi, eax
mov edx, dword [esp + 0x18]
mov eax, ecx
sub eax, edx
cmp esi, eax
jb 0x100013e0
mov eax, dword [ebx + 0x10]
xor ecx, ecx
xchg dword [eax], ecx
mov edx, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
test edx, edx
je 0x1000142d
mov ecx, dword [esp + 0x10]
sub ecx, edx
push ecx
push edx
call fcn.100025be
pop ecx
pop ecx
mov ecx, dword [esp + 0x14]
mov al, 1
xor ecx, esp
call fcn.1000360c
add esp, 0x18
ret 4

Function at 0x100021e1
Capabilities:
Create thread

Disassembly:
push 8
mov eax, 0x10013aa4
call fcn.10003e4a
mov esi, ecx
push 4
xor ebx, ebx
call fcn.1000361a
mov dword [ebp - 0x14], eax
mov dword [eax], 0x10001ae3
lea edi, [esi + 4]
mov dword [ebp - 4], ebx
push edi
push ebx
push eax
push 0x10002c76
push ebx
push ebx
call fcn.10006c19
add esp, 0x1c
mov dword [esi], eax
test eax, eax
je 0x10002229
mov eax, esi
call fcn.10003df9
ret 4
push 6
mov dword [edi], ebx
call fcn.100031a2
int3

Function at 0x100078dc
Capabilities:
Parse pe header

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

Function at 0x10009a48
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100167d4
push 0x100167cc
push str.FlsAlloc
push 0x1f
call fcn.10009924
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10009a7c
push dword [ebp + 8]
mov ecx, esi
call dword [0x10014168]
call esi
jmp 0x10009a82
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4
Function at 0x10009ac6
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100167e4
push 0x100167dc
push str.FlsGetValue
push 0x21
call fcn.10009924
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10009afd
push dword [ebp + 8]
mov ecx, esi
call dword [0x10014168]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x10009b05
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100167ec
push 0x100167e4
push str.FlsSetValue
push 0x22
call fcn.10009924
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10009b3f
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x10014168]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x1000c6f3
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 0x1000c790
push ebx
push esi
call fcn.1000c6bc
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.1000c650
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1000c73d
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1000c78f
push edi
push eax
call fcn.1000b15f
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1000c75d
call fcn.10008b64
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1000c78e
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1000c650
add esp, 0x20
test eax, eax
jne 0x1000c77c
push edi
call fcn.10008b64
jmp 0x1000c784
push ebx
call fcn.10008b64
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 0x1000e774
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
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 + 0x1001d480]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x1000e7b4
cmp byte [ebx], 0xa
jne 0x1000e7b4
or byte [edi + eax + 0x28], 4
jmp 0x1000e7b9
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x1000e8b8
mov dl, byte [eax]
cmp dl, 0x1a
je 0x1000e89b
inc eax
cmp dl, 0xd
je 0x1000e7e5
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x1000e80b
cmp eax, ecx
jae 0x1000e819
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x1000e7cd
jmp 0x1000e8b8
push 0
lea eax, [ebp - 0x10]
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 0x1000e896
cmp dword [ebp - 0x10], 0
je 0x1000e896
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x1001d480]
test byte [eax + edi + 0x28], 0x48
je 0x1000e870
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x1000e85b
mov byte [esi], dl
jmp 0x1000e86c
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x1001d480]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x1000e8b8
cmp byte [ebp - 1], 0xa
jne 0x1000e87f
cmp esi, ebx
jne 0x1000e87f
mov byte [esi], 0xa
jmp 0x1000e8b7
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.1000e56d
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x1000e8b8
mov byte [esi], 0xd
jmp 0x1000e8b7
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x1001d480]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x1000e8b5
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x1000e8b8
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret