joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43d4c2
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [esp + 0x10]
test edi, edi
jle 0x43d4f7
cmp edi, dword [esi + 0xc]
jge 0x43d4f7
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x43d4f7
cmp edi, dword [eax + 8]
jge 0x43d4f7
mov eax, dword [eax + 0xc]
mov edi, dword [eax + edi*4]
jmp 0x43d4f9
xor edi, edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
pop edi
pop esi
pop ebx
ret 4

Function at 0x43d604
Capabilities:
Allocate thread local storage

Disassembly:
xor eax, eax
push esi
mov esi, ecx
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x18], 4
mov dword [esi + 4], eax
mov dword [esi + 8], 1
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [esi], eax
jne 0x43d638
jmp fcn.00432783
lea eax, [esi + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov eax, esi
pop esi
ret

Function at 0x43d6a9
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
lea esi, [edi + 0x1c]
push esi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp + 8]
xor ebx, ebx
cmp eax, ebx
jle 0x43d7a2
cmp eax, dword [edi + 0xc]
jge 0x43d7a2
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
cmp esi, ebx
je 0x43d6fa
mov ecx, dword [ebp + 8]
cmp ecx, dword [esi + 8]
jl 0x43d78b
cmp dword [ebp + 0xc], ebx
je 0x43d78b
jmp 0x43d724
push 0x10
call fcn.0043d38e
cmp eax, ebx
je 0x43d710
mov ecx, eax
call fcn.0043d5fb
mov esi, eax
jmp 0x43d712
xor esi, esi
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov ecx, dword [edi + 0x14]
mov eax, dword [edi + 0x18]
mov dword [esi + eax], ecx
mov dword [edi + 0x14], esi
mov eax, dword [esi + 0xc]
cmp eax, ebx
jne 0x43d73b
mov eax, dword [edi + 0xc]
shl eax, 2
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
jmp 0x43d74b
mov ecx, dword [edi + 0xc]
push 2
shl ecx, 2
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
cmp eax, ebx
jne 0x43d75d
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.00432783
mov ecx, dword [esi + 8]
mov dword [esi + 0xc], eax
mov edx, dword [edi + 0xc]
sub edx, ecx
shl edx, 2
push edx
lea eax, [eax + ecx*4]
push ebx
push eax
call fcn.00426ec0
mov eax, dword [edi + 0xc]
add esp, 0xc
push esi
mov dword [esi + 8], eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [ebp + 8]
mov eax, dword [esi + 0xc]
cmp eax, ebx
je 0x43d79d
cmp ecx, dword [esi + 8]
jge 0x43d79d
mov edx, dword [ebp + 0xc]
mov dword [eax + ecx*4], edx
push dword [ebp - 4]
jmp 0x43d7a3
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x43d861
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 0x43d88f
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x43d8ad
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0043d7cb
jmp 0x43d8ad
mov eax, dword [esi + 0x14]
test eax, eax
je 0x43d8ad
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.0043d7cb
test edi, edi
mov eax, edi
jne 0x43d897
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x567c94]
test ecx, ecx
je 0x43d960
jmp 0x43d860
ret 8

Function at 0x45db58
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x45db86
mov eax, ebx
call fcn.0045e60c
cmp dword [ebx + 0x40], 0
je 0x45db7f
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x45dbf7
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x45dbe9
cmp dword [ebx + 8], 0
je 0x45dba8
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x45dbba
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x45dbe9
cmp dword [ebx + 8], 0
je 0x45db9b
cmp eax, 3
je 0x45dbcd
dec eax
jne 0x45db9b
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x45db9b
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x45db9b
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x45dc15
cmp dword [ebx + 0x14], 0xcc
je 0x45dc15
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.0045dc20
pop ebx
ret

Function at 0x46e5dc
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404558
mov eax, dword [ebp - 8]
call fcn.00404558
xor eax, eax
push ebp
push 0x46e691
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x429c10]
call fcn.00429cbc
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x46e66f
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, 0x80000002
mov eax, dword [ebp - 0x10]
call fcn.00429d5c
mov cl, 1
mov edx, 0x46e6a8
mov eax, dword [ebp - 0x10]
call fcn.00429dc0
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
call fcn.00429ee4
mov eax, dword [ebp - 0x10]
call fcn.00429d2c
mov byte [ebp - 9], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46e676
mov eax, dword [ebp - 0x10]
call fcn.00403358
ret
Function at 0x569a70
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x113000]
push edi
jmp 0x569a8a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x569a91
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x569a80
mov eax, 1
add ebx, ebx
jne 0x569aa3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x569ab4
jne 0x569ad3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x569ad3
dec eax
add ebx, ebx
jne 0x569ac0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x569a98
add ebx, ebx
jne 0x569acf
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x569b25
xor ecx, ecx
sub eax, 3
jb 0x569aeb
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x569b5a
sar eax, 1
mov ebp, eax
jmp 0x569af6
add ebx, ebx
jne 0x569af6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x569ac4
inc ecx
add ebx, ebx
jne 0x569b04
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x569ac4
add ebx, ebx
jne 0x569b11
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x569b06
jne 0x569b22
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x569b06
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x569b44
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x569b36
jmp 0x569a86
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x569b44
add edi, ecx
jmp 0x569a86
pop esi
mov edi, esi
mov ecx, 0x3ee5
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x569b62
cmp byte [edi], 0x11
jne 0x569b62
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 0x569b67
lea edi, [esi + 0x162000]
mov eax, dword [edi]
or eax, eax
je 0x569bdf
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1faccc]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1fae48]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x569b94
mov ecx, edi
jns 0x569bc3
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 + 0x1fae4c]
or eax, eax
je 0x569bd9
mov dword [ebx], eax
add ebx, 4
jmp 0x569bb1
call dword [esi + 0x1fae5c]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x569c10
cmp al, 0xef
ja 0x569c03
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x569be5
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x569bf2
mov ebp, dword [esi + 0x1fae50]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x22f]
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 0x569c44
sub esp, 0xffffff80
jmp 0x427f4a
Function at 0xce91b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.00ce9140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.00ce9140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.00ce9140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.00ce9140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0xce9bfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0xce9c50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0xcfb87c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0xce9c43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0xce9c52
xor eax, eax
pop esi
leave
ret 4
Function at 0x4779ab
Capabilities:
Parse pe header

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

Function at 0x47c042
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00488d80
mov eax, dword [0x492080]
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.0047f8bf
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x47c084
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x47c1e0
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00488cd0
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 + 0x492f78]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.0047ed78
mov ecx, dword [esi*4 + 0x492f78]
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 0x47c1d9
cmp eax, dword [ecx + edi + 0x24]
jne 0x47c1d9
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 0x47c1d9
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0047ed78
add esp, 0x14
test edx, edx
jl 0x47c1d9
jg 0x47c14f
test eax, eax
jb 0x47c1d9
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x47c1d9
jl 0x47c169
cmp dword [ebp - 0x1008], eax
ja 0x47c1d9
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x47c187
test ebx, ebx
je 0x47c1c0
cmp ecx, edi
jae 0x47c1c0
mov al, byte [ecx]
cmp al, 0xd
jne 0x47c1a1
lea eax, [edi - 1]
cmp ecx, eax
jae 0x47c1ad
cmp byte [ecx + 1], 0xa
jne 0x47c1ad
inc ecx
jmp 0x47c1ad
movzx eax, al
movsx eax, byte [eax + 0x4922c8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x47c187
cmp edx, ebx
jne 0x47c187
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x47c1de
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004770e0
leave
ret
Function at 0x47f8e6
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 + 0x492f78]
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 0x47f926
cmp byte [ebx], 0xa
jne 0x47f926
or byte [edi + eax + 0x28], 4
jmp 0x47f92b
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 0x47fa2a
mov dl, byte [eax]
cmp dl, 0x1a
je 0x47fa0d
inc eax
cmp dl, 0xd
je 0x47f957
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x47f97d
cmp eax, ecx
jae 0x47f98b
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 0x47f93f
jmp 0x47fa2a
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 0x47fa08
cmp dword [ebp - 0x10], 0
je 0x47fa08
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x492f78]
test byte [eax + edi + 0x28], 0x48
je 0x47f9e2
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x47f9cd
mov byte [esi], dl
jmp 0x47f9de
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x492f78]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x47fa2a
cmp byte [ebp - 1], 0xa
jne 0x47f9f1
cmp esi, ebx
jne 0x47f9f1
mov byte [esi], 0xa
jmp 0x47fa29
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0047ed96
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x47fa2a
mov byte [esi], 0xd
jmp 0x47fa29
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x492f78]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x47fa27
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x47fa2a
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x47fa33
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 + 0x492f78]
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 0x47fa79
cmp word [ebx], dx
jne 0x47fa79
or byte [eax + edi + 0x28], 4
jmp 0x47fa7e
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 0x47fbe1
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 0x47fbc1
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x47fabf
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x47faf5
cmp eax, edx
jae 0x47fb03
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 0x47fa9a
jmp 0x47fbe1
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 0x47fbbc
cmp dword [ebp - 0x18], 0
je 0x47fbbc
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x492f78]
test byte [eax + edi + 0x28], 0x48
je 0x47fb92
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 0x47fb56
mov word [esi], cx
jmp 0x47fb8d
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x492f78]
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 + 0x492f78]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x492f78]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x47fbe1
pop eax
cmp word [ebp - 4], ax
jne 0x47fba2
cmp esi, ebx
jne 0x47fba2
mov word [esi], ax
jmp 0x47fbde
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0047ed96
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x47fbe1
push 0xd
pop eax
jmp 0x47fb9d
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x492f78]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x47fbdb
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x47fbe1
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 0x482ce8
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 0x482d85
push ebx
push esi
call fcn.00482cb1
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.00482c45
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x482d32
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x482d84
push edi
push eax
call fcn.00481838
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x482d52
call fcn.00480400
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x482d83
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00482c45
add esp, 0x20
test eax, eax
jne 0x482d71
push edi
call fcn.00480400
jmp 0x482d79
push ebx
call fcn.00480400
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 0x483f47
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x48d110
push 0x48d108
push str.FlsAlloc
push 0x1f
call fcn.00483e06
mov esi, eax
add esp, 0x10
test esi, esi
je 0x483f7b
push dword [ebp + 8]
mov ecx, esi
call dword [0x48a134]
call esi
jmp 0x483f81
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x483fc5
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x48d120
push 0x48d118
push str.FlsGetValue
push 0x21
call fcn.00483e06
mov esi, eax
add esp, 0x10
test esi, esi
je 0x483ffc
push dword [ebp + 8]
mov ecx, esi
call dword [0x48a134]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x484004
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x48d128
push 0x48d120
push str.FlsSetValue
push 0x22
call fcn.00483e06
mov esi, eax
add esp, 0x10
test esi, esi
je 0x48403e
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x48a134]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x486aa5
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.00486a21
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x486c14
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x486c14
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x486bc9
jg 0x486b01
test eax, eax
je 0x486bbf
push 1
push 0x1000
call fcn.00481886
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x486b24
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x486bb6
push 0x8000
push ebx
call fcn.0047db53
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x486b4d
jg 0x486b48
cmp ecx, 0x1000
jb 0x486b4d
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.00480f68
add esp, 0x10
cmp eax, 0xffffffff
je 0x486b92
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 0x486b48
jl 0x486b79
test ecx, ecx
jne 0x486b3a
push dword [ebp - 0xc]
push ebx
call fcn.0047db53
push esi
call fcn.00480400
add esp, 0xc
xor ebx, ebx
jmp 0x486c22
cmp byte [edi + 0x24], 0
je 0x486ba9
cmp dword [edi + 0x20], 5
jne 0x486ba9
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x486bb4
mov ebx, dword [edi + 0x18]
jmp 0x486bb6
xor ebx, ebx
push esi
call fcn.00480400
pop ecx
jmp 0x486c22
test ecx, ecx
jg 0x486b8b
jl 0x486bc9
test eax, eax
jae 0x486b8b
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0047ed96
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x486be9
cmp byte [edi + 0x1c], 0
je 0x486b8b
jmp 0x486c1a
push ebx
call fcn.00483528
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x486b8b
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 0x486c22
cmp byte [edi + 0x1c], 0
je 0x486c1f
mov ebx, dword [edi + 0x18]
jmp 0x486c22
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.0047ed96
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x488c10
Capabilities:
Parse pe header

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