joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10134715
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.10128bd0
mov eax, dword [0x1020d140]
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.10141d44
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x10134757
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x101348b3
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.10150c20
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 + 0x10211658]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.101464c9
mov ecx, dword [esi*4 + 0x10211658]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x101348ac
cmp eax, dword [ecx + edi + 0x24]
jne 0x101348ac
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x101348ac
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.101464c9
add esp, 0x14
test edx, edx
jl 0x101348ac
jg 0x10134822
test eax, eax
jb 0x101348ac
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x101348ac
jl 0x1013483c
cmp dword [ebp - 0x1008], eax
ja 0x101348ac
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x1013485a
test ebx, ebx
je 0x10134893
cmp ecx, edi
jae 0x10134893
mov al, byte [ecx]
cmp al, 0xd
jne 0x10134874
lea eax, [edi - 1]
cmp ecx, eax
jae 0x10134880
cmp byte [ecx + 1], 0xa
jne 0x10134880
inc ecx
jmp 0x10134880
movzx eax, al
movsx eax, byte [eax + 0x1020d3e8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x1013485a
cmp edx, ebx
jne 0x1013485a
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x101348b1
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.101279cb
leave
ret

Function at 0x10143371
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.101432f3
Function at 0x101452c7
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10192144
push 0x1019213c
push str.FlsAlloc
push 0x1f
call fcn.101450b2
mov esi, eax
add esp, 0x10
test esi, esi
je 0x101452fb
push dword [ebp + 8]
mov ecx, esi
call dword [0x1016f2d0]
call esi
jmp 0x10145301
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x10145345
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10192154
push 0x1019214c
push str.FlsGetValue
push 0x21
call fcn.101450b2
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1014537c
push dword [ebp + 8]
mov ecx, esi
call dword [0x1016f2d0]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x10145384
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1019215c
push 0x10192154
push str.FlsSetValue
push 0x22
call fcn.101450b2
mov esi, eax
add esp, 0x10
test esi, esi
je 0x101453be
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x1016f2d0]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x10145961
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 + 0x10211658]
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 0x101459a1
cmp byte [ebx], 0xa
jne 0x101459a1
or byte [edi + eax + 0x28], 4
jmp 0x101459a6
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 0x10145aa5
mov dl, byte [eax]
cmp dl, 0x1a
je 0x10145a88
inc eax
cmp dl, 0xd
je 0x101459d2
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x101459f8
cmp eax, ecx
jae 0x10145a06
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 0x101459ba
jmp 0x10145aa5
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 0x10145a83
cmp dword [ebp - 0x10], 0
je 0x10145a83
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x10211658]
test byte [eax + edi + 0x28], 0x48
je 0x10145a5d
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x10145a48
mov byte [esi], dl
jmp 0x10145a59
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x10211658]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x10145aa5
cmp byte [ebp - 1], 0xa
jne 0x10145a6c
cmp esi, ebx
jne 0x10145a6c
mov byte [esi], 0xa
jmp 0x10145aa4
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.101464e7
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x10145aa5
mov byte [esi], 0xd
jmp 0x10145aa4
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x10211658]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x10145aa2
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x10145aa5
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x10145aae
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x10211658]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x10145af4
cmp word [ebx], dx
jne 0x10145af4
or byte [eax + edi + 0x28], 4
jmp 0x10145af9
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x10145c5c
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x10145c3c
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x10145b3a
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x10145b70
cmp eax, edx
jae 0x10145b7e
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
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 - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x10145b15
jmp 0x10145c5c
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10145c37
cmp dword [ebp - 0x18], 0
je 0x10145c37
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x10211658]
test byte [eax + edi + 0x28], 0x48
je 0x10145c0d
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x10145bd1
mov word [esi], cx
jmp 0x10145c08
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x10211658]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x10211658]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x10211658]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x10145c5c
pop eax
cmp word [ebp - 4], ax
jne 0x10145c1d
cmp esi, ebx
jne 0x10145c1d
mov word [esi], ax
jmp 0x10145c59
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.101464e7
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x10145c5c
push 0xd
pop eax
jmp 0x10145c18
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x10211658]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x10145c56
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x10145c5c
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x10148f11
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 0x10148fae
push ebx
push esi
call fcn.10148eda
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.10142357
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x10148f5b
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10148fad
push edi
push eax
call fcn.10140e0c
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x10148f7b
call fcn.10140dd2
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10148fac
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.10142357
add esp, 0x20
test eax, eax
jne 0x10148f9a
push edi
call fcn.10140dd2
jmp 0x10148fa2
push ebx
call fcn.10140dd2
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 0x10148fb1
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x10148fc2
pop esi
ret
push ebx
push edi
push esi
call fcn.10148eda
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.10140e0c
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x10148fea
push ebx
push esi
push edi
call fcn.101297c0
add esp, 0xc
push 0
call fcn.10140dd2
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x101493ba
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.10148fff

Function at 0x1014b4dd
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.1013f23b
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1014b54c
cmp esi, dword [ebp - 4]
je 0x1014b547
cmp dword [ebp + 0xc], 0
je 0x1014b547
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x1014b524
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.1014b02f
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x1014b54e
xor eax, eax
inc eax
jmp 0x1014b54e
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x1014b5b3
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x1020d140]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.1013f23b
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.1013f23b
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x1014b62a
cmp word [ecx], dx
je 0x1014b62a
mov eax, dword [0x101925fc]
push edi
dec eax
push eax
push 0x101924e8
call fcn.1014b552
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x1014b69d
cmp word [eax], dx
je 0x1014b69d
mov eax, dword [edi]
test eax, eax
je 0x1014b64e
cmp word [eax], dx
je 0x1014b64e
lea eax, [ebp - 0x10]
push eax
call fcn.1014af35
jmp 0x1014b657
lea eax, [ebp - 0x10]
push eax
call fcn.1014afd0
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x1014b6c7
mov eax, dword [0x101924e4]
push dword [ebp - 0x14]
dec eax
push eax
push 0x101921d8
call fcn.1014b552
add esp, 0xc
test al, al
je 0x1014b6c7
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x1014b692
cmp word [eax], di
je 0x1014b692
lea eax, [ebp - 0x10]
push eax
call fcn.1014af35
pop ecx
jmp 0x1014b6c9
lea eax, [ebp - 0x10]
push eax
call fcn.1014afd0
jmp 0x1014b68f
mov eax, dword [edi]
test eax, eax
je 0x1014b6b4
cmp word [eax], dx
je 0x1014b6b4
lea eax, [ebp - 0x10]
push eax
call fcn.1014aeea
pop ecx
jmp 0x1014b6c7
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x1014b792
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.1014b3d7
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x1014b792
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x1014b792
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x1014b792
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x1014b71f
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.10145560
test ebx, ebx
je 0x1014b78d
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.10145560
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1014b792
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1014b792
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.10142fd3
add esp, 0x10
xor eax, eax
inc eax
jmp 0x1014b794
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.101279cb
leave
ret
Function at 0x1014f3e1
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]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.1014f35d
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x1014f550
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x1014f550
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x1014f505
jg 0x1014f43d
test eax, eax
je 0x1014f4fb
push 1
push 0x1000
call fcn.10140beb
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x1014f460
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x1014f4f2
push 0x8000
push ebx
call fcn.1014f28e
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x1014f489
jg 0x1014f484
cmp ecx, 0x1000
jb 0x1014f489
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.10144678
add esp, 0x10
cmp eax, 0xffffffff
je 0x1014f4ce
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 0x1014f484
jl 0x1014f4b5
test ecx, ecx
jne 0x1014f476
push dword [ebp - 0xc]
push ebx
call fcn.1014f28e
push esi
call fcn.10140dd2
add esp, 0xc
xor ebx, ebx
jmp 0x1014f55e
cmp byte [edi + 0x24], 0
je 0x1014f4e5
cmp dword [edi + 0x20], 5
jne 0x1014f4e5
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x1014f4f0
mov ebx, dword [edi + 0x18]
jmp 0x1014f4f2
xor ebx, ebx
push esi
call fcn.10140dd2
pop ecx
jmp 0x1014f55e
test ecx, ecx
jg 0x1014f4c7
jl 0x1014f505
test eax, eax
jae 0x1014f4c7
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.101464e7
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x1014f525
cmp byte [edi + 0x1c], 0
je 0x1014f4c7
jmp 0x1014f556
push ebx
call fcn.1014db10
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1014f4c7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x1014f55e
cmp byte [edi + 0x1c], 0
je 0x1014f55b
mov ebx, dword [edi + 0x18]
jmp 0x1014f55e
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.101464e7
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10150b40
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10150b6d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10150b6d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x2580426e
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
pushal
call 0x2580427d
pop dword [ebp - 0x24]
mov eax, 0x2580427d
sub dword [ebp - 0x24], eax
mov dword [ebp - 0x34], 0x44158fc6
add dword [ebp - 0x34], 0xa3cb585
mov dword [ebp - 0x30], 0x60b288f
sub dword [ebp - 0x30], 0xd3d7dc4a
mov dword [ebp - 0x2c], 0x361bfdc2
sub dword [ebp - 0x2c], 0xe9cfb994
mov dword [ebp - 0x28], 0x9909bad1
add dword [ebp - 0x28], 0x66f6452f
lea eax, [ebp - 0x34]
push eax
mov eax, 0xc6a226d6
add eax, 0x5edfa96e
add eax, dword [ebp - 0x24]
call dword [eax]
mov dword [ebp - 0x34], 0x2f6b886
sub dword [ebp - 0x34], 0x8e844f30
mov dword [ebp - 0x30], 0x6ac555f3
add dword [ebp - 0x30], 0xd6a70b82
mov dword [ebp - 0x2c], 0x565dd41a
sub dword [ebp - 0x2c], 0xf2ee67ae
mov dword [ebp - 0x28], 0x9f75c99c
sub dword [ebp - 0x28], 0x9f75c99c
lea ebx, [ebp - 0x34]
push ebx
push eax
mov eax, 0x59c01dcc
add eax, 0xcbc1b2b4
add eax, dword [ebp - 0x24]
call dword [eax]
push 0x40
push 0x1000
push 0x3b2a8
push 0
call eax
mov ecx, 0x63544e80
sub ecx, 0x63540c43
mov ebx, eax
mov esi, 0x425d2520
add esi, 0xe32570e0
add esi, dword [ebp - 0x24]
mov edx, 0x419b5e8e
sub edx, 0x952f5427
sub dword [ebp - 0x18], 0xfc4f58bd
mov edi, dword [esi]
xor dword [ebp - 8], ecx
add edi, edx
sub dword [ebp - 0x1c], ecx
mov dword [ebx], edi
add dword [ebp - 0x14], edi
add ebx, 4
add esi, 0xd839f5e0
sub esi, 0xd839f5dc
loop 0x2580439a
add eax, 0xa2d1e4e9
sub eax, 0xa2d0e922
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0xe4712099
sub ecx, 0xbef12099
add ecx, dword [ebp - 0x24]
call ebx
leave
ret
Function at 0x401520
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x120
mov edx, dword [ecx]
mov edi, dword [ecx + 4]
call fcn.00401539
Function at 0x402680
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push esi
mov eax, dword [0x5fd0f4]
test eax, eax
je 0x4026a2
dec eax
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 2
jb 0x4026b8
cmp dword [eax + 4], 0
je 0x4026b8
add eax, 8
pop esi
ret
mov ecx, 0x5fd0f4
call fcn.005878a0
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 2
jae 0x402697
mov eax, dword [0x5fd0f4]
test eax, eax
je 0x40271f
dec eax
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 1
je 0x402735
mov esi, eax
test eax, eax
jne 0x40270c
movzx eax, byte [0x5fd2ec]
xor ecx, ecx
mov edx, 0xc
call fcn.0056a9f0
test eax, eax
je 0x402745
mov dword [eax], 0x5fd0f4
mov dword [eax + 4], 0
mov esi, eax
mov eax, dword [0x5fd0f4]
test eax, eax
je 0x402739
dec eax
push esi
push eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
mov dword [esi + 4], 1
lea eax, [esi + 8]
mov dword [esi + 8], 0
pop esi
ret
mov ecx, 0x5fd0f4
call fcn.005878a0
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 1
jne 0x4026ce
xor eax, eax
pop esi
ret
mov ecx, 0x5fd0f4
call fcn.005878a0
jmp 0x402704
mov ecx, 4
mov edx, 0xc
call fcn.0057f230
int3

Function at 0x402e30
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0xa50
mov esi, esp
mov dword [esi + 0xa38], ebp
call fcn.00402e4c
Function at 0x4108b0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push esi
mov eax, dword [ecx + 0x14]
mov esi, ecx
lock dec dword [eax]
jne 0x4108c3
lea ecx, [esi + 0x14]
call fcn.004184f0
cmp dword [esi + 8], 0
je 0x4108da
push dword [esi + 0xc]
push 0
push dword [0x5fd290]
call dword [sym.imp.kernel32.dll_HeapFree]
mov eax, dword [esi + 0x268]
cmp eax, 0x80000000
je 0x4109b1
test eax, eax
je 0x410903
push dword [esi + 0x26c]
push 0
push dword [0x5fd290]
call dword [sym.imp.kernel32.dll_HeapFree]
cmp dword [esi + 0x274], 0
je 0x410920
push dword [esi + 0x278]
push 0
push dword [0x5fd290]
call dword [sym.imp.kernel32.dll_HeapFree]
cmp dword [esi + 0x280], 0
je 0x41093d
push dword [esi + 0x284]
push 0
push dword [0x5fd290]
call dword [sym.imp.kernel32.dll_HeapFree]
cmp dword [esi + 0x290], 0
je 0x41095a
push dword [esi + 0x294]
push 0
push dword [0x5fd290]
call dword [sym.imp.kernel32.dll_HeapFree]
cmp dword [esi + 0x2a4], 0
je 0x410977
push dword [esi + 0x2a8]
push 0
push dword [0x5fd290]
call dword [sym.imp.kernel32.dll_HeapFree]
cmp dword [esi + 0x2b0], 0
je 0x410994
push dword [esi + 0x2b4]
push 0
push dword [0x5fd290]
call dword [sym.imp.kernel32.dll_HeapFree]
cmp dword [esi + 0x2c0], 0
je 0x4109b1
push dword [esi + 0x2c4]
push 0
push dword [0x5fd290]
call dword [sym.imp.kernel32.dll_HeapFree]
mov eax, dword [esi + 0x2d4]
cmp eax, 0x80000000
je 0x4109f3
test eax, eax
je 0x4109d6
push dword [esi + 0x2d8]
push 0
push dword [0x5fd290]
call dword [sym.imp.kernel32.dll_HeapFree]
cmp dword [esi + 0x2e0], 0
je 0x4109f3
push dword [esi + 0x2e4]
push 0
push dword [0x5fd290]
call dword [sym.imp.kernel32.dll_HeapFree]
test dword [esi + 0x258], 0x7fffffff
jne 0x410a13
cmp dword [esi + 0x248], 2
jne 0x410a30
cmp dword [esi + 0xc8], 2
jne 0x410a4f
pop esi
ret
push dword [esi + 0x25c]
push 0
push dword [0x5fd290]
call dword [sym.imp.kernel32.dll_HeapFree]
cmp dword [esi + 0x248], 2
je 0x410a08
lea ecx, [esi + 0xd8]
call fcn.004106c0
lea ecx, [esi + 0x198]
call fcn.004106c0
cmp dword [esi + 0xc8], 2
je 0x410a11
add esi, 0x18
mov ecx, esi
pop esi
jmp fcn.004106c0
Function at 0x412400
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x24
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x577db0
lea eax, [ebp - 0x18]
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x28], 0
mov edx, dword fs:[0]
mov dword [ebp - 0x18], edx
mov dword fs:[0], eax
mov eax, dword [ecx + 4]
mov ecx, dword [ecx + 0xc]
sub ecx, eax
lea esi, [eax + 0x30]
mov dword [ebp - 0x2c], eax
shr ecx, 6
mov dword [ebp - 0x24], ecx
jmp 0x41246b
inc edi
lea eax, [esi + 0x40]
mov ecx, esi
mov dword [ebp - 0x10], 1
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x30], eax
call fcn.004112b0
mov esi, dword [ebp - 0x30]
mov eax, dword [ebp - 0x28]
cmp dword [ebp - 0x24], eax
je 0x412495
cmp dword [esi - 0x18], 0
mov edi, eax
je 0x412450
push dword [esi - 0x14]
push 0
push dword [0x5fd290]
call dword [sym.imp.kernel32.dll_HeapFree]
mov dword [ebp - 0x10], 1
jmp 0x412450
mov eax, dword [ebp - 0x20]
cmp dword [eax + 8], 0
je 0x4124ae
push dword [eax]
push 0
push dword [0x5fd290]
call dword [sym.imp.kernel32.dll_HeapFree]
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x41cf20
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x130
mov esi, esp
mov dword [esi + 0x118], ebp
call fcn.0041cf3c