joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100089e0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
mov eax, dword [0x10064040]
xor eax, esp
mov dword [esp + 0x10], eax
cmp dword [0x10064d18], 1
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
je 0x10008a31
cmp byte [ebp + 8], 0
jne 0x10008a20
mov eax, dword [0x10064ae4]
test eax, eax
je 0x10008a31
cmp eax, 0x3e7
je 0x10008a20
dec eax
mov dword [0x10064ae4], eax
test ebx, ebx
jne 0x10008a49
push str.GetAchievement_Failed_____pchName_is_nullptr__r_n
call fcn.10002320
add esp, 4
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.1002d2b1
mov esp, ebp
pop ebp
ret
test edi, edi
jne 0x10008a54
push str.GetAchievement_Failed_____pbAchieved_is_nullptr__r_n
jmp 0x10008a29
cmp byte [edi], 0
lea eax, [esp + 0xc]
push eax
push 0x20019
push 0
push 0x10068688
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x28], 4
mov dword [esp + 0x24], 4
push 0x80000001
jne 0x10008b0b
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10008ace
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x20]
push eax
push 0
push ebx
push dword [esp + 0x20]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword ds:[esp + 0xc]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x10008b59
movzx eax, byte [edi]
mov edx, ebx
push eax
mov ecx, 0x10068688
call fcn.100020c0
add esp, 4
test eax, eax
je 0x10008b63
movzx eax, byte [edi]
push eax
push ebx
push str.GetAchievement_Failed______s______d_r_n
call fcn.10002320
add esp, 0xc
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.1002d2b1
mov esp, ebp
pop ebp
ret
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10008b44
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x1c]
push eax
push 0
push ebx
push dword [esp + 0x20]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [esp + 0xc]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [eax]
test esi, esi
je 0x10008b59
push 0
mov edx, ebx
mov ecx, 0x10068688
call fcn.100020c0
add esp, 4
test eax, eax
jne 0x10008ae5
cmp dword [esp + 0x10], 0
setne al
mov byte [edi], al
mov ecx, dword [esp + 0x1c]
mov al, 1
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1002d2b1
mov esp, ebp
pop ebp
ret
Function at 0x10008da0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x124
mov eax, dword [0x10064040]
xor eax, esp
mov dword [esp + 0x120], eax
cmp dword [0x10064d18], 1
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, edx
mov esi, ecx
je 0x10008df4
mov eax, dword [0x10064ae4]
test eax, eax
je 0x10008df4
cmp eax, 0x3e7
je 0x10008de3
dec eax
mov dword [0x10064ae4], eax
test esi, esi
jne 0x10008e0b
push str.GetAchievementAndUnlockTime_Failed_____pchName_is_nullptr__r_n
call fcn.10002320
add esp, 4
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x120]
xor ecx, esp
call fcn.1002d2b1
mov esp, ebp
pop ebp
ret
test ebx, ebx
jne 0x10008e16
push str.GetAchievementAndUnlockTime_Failed_____pbAchieved_is_nullptr__r_n
jmp 0x10008dec
test edi, edi
jne 0x10008e22
push str.GetAchievementAndUnlockTime_Failed_____prtTime_is_nullptr__r_n
nop
jmp 0x10008dec
push esi
push str.GetAchievementAndUnlockTime______s_r_n
call fcn.10002320
push 0x104
lea eax, [esp + 0x2c]
mov byte [ebx], 0
push 0
push eax
mov dword [edi], 0
call fcn.1002eee0
add esp, 0x14
lea eax, [esp + 0x20]
push esi
push str._s_Time
push 0xffffffffffffffff
push 0x104
push eax
call fcn.10001440
add esp, 0x14
mov byte [esp + 0xf], 0
lea edx, [esp + 0xf]
mov ecx, esi
push 1
call fcn.100089e0
add esp, 4
cmp byte [esp + 0xf], 1
jne 0x10008f10
push esi
push str.GetAchievementAndUnlockTime______s_r_n
call fcn.10002320
add esp, 8
mov byte [ebx], 1
lea eax, [esp + 0x10]
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0x1c], 4
push eax
push 0x20019
push 0
push 0x10068688
push 0x80000001
mov dword [esp + 0x2c], 4
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10008f10
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x24]
push eax
push 0
lea eax, [esp + 0x30]
push eax
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword ds:[esp + 0x10]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x10008f10
mov eax, dword [esp + 0x14]
mov dword [edi], eax
mov ecx, dword ds:[esp + 0x12c]
mov al, 1
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1002d2b1
mov esp, ebp
pop ebp
ret
Function at 0x10027b20
Capabilities:
Enumerate threads

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x10064040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor ebx, ebx
mov esi, ecx
push ebx
push 4
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
mov dword [ebp - 0x24], edi
cmp edi, 0xffffffff
je 0x10027c98
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x1c
xorps xmm0, xmm0
push eax
push edi
movlpd qword [ebp - 0x1c], xmm0
movlpd qword [ebp - 0x14], xmm0
movlpd qword [ebp - 0xc], xmm0
call dword [sym.imp.KERNEL32.dll_Thread32First]
nop dword [eax + eax]
test eax, eax
je 0x10027c91
mov ebx, 1
nop dword [eax]
cmp dword [ebp - 0x20], 0x10
jb 0x10027c1f
nop word [eax + eax]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [ebp - 0x14], eax
jne 0x10027c1f
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [ebp - 0x18], eax
je 0x10027c1f
mov edx, dword [esi]
test edx, edx
jne 0x10027be3
push 0x200
push 8
push dword [0x10073fd8]
mov dword [esi + 4], 0x80
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, eax
mov dword [esi], edx
test edx, edx
je 0x10027c45
lea edi, [esi + 8]
jmp 0x10027c12
mov eax, dword [esi + 4]
lea edi, [esi + 8]
cmp dword [edi], eax
jb 0x10027c12
add eax, eax
mov dword [esi + 4], eax
shl eax, 2
push eax
push edx
push 8
push dword [0x10073fd8]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov edx, eax
test edx, edx
je 0x10027cab
mov dword [esi], edx
mov ecx, dword [edi]
mov eax, dword [ebp - 0x18]
mov dword [edx + ecx*4], eax
inc dword [edi]
mov edi, dword [ebp - 0x24]
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x1c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x10027b90
call dword [sym.imp.KERNEL32.dll_GetLastError]
nop
cmp eax, 0x12
je 0x10027c91
mov eax, dword [esi]
xor ebx, ebx
test eax, eax
je 0x10027c91
push eax
push ebx
push dword [0x10073fd8]
call dword [sym.imp.KERNEL32.dll_HeapSize]
mov ecx, eax
cmp ecx, 0xffffffff
je 0x10027c7b
test ecx, ecx
je 0x10027c7b
mov eax, dword [esi]
nop dword [eax + eax]
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x10027c70
push dword [esi]
push 0
push dword [0x10073fd8]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [esi], 0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1002d2b1
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp - 0x24]
jmp 0x10027c45
Function at 0x10027cc0
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, ecx
mov dword [ebp - 8], edx
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
call fcn.10027b20
test eax, eax
jne 0x10027cf3
mov eax, 9
pop esi
mov esp, ebp
pop ebp
ret
cmp dword [esi], 0
je 0x10027d5e
push ebx
xor ebx, ebx
cmp dword [esi + 8], ebx
jbe 0x10027d56
xor ecx, ecx
mov dword [ebp - 4], ecx
push edi
nop dword [eax + eax]
mov eax, dword [esi]
push dword [eax + ecx]
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov edi, eax
test edi, edi
je 0x10027d46
push edi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
push dword [ebp + 8]
mov edx, dword [ebp - 8]
mov ecx, edi
call fcn.10027980
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
inc ebx
add ecx, 4
mov dword [ebp - 4], ecx
cmp ebx, dword [esi + 8]
jb 0x10027d10
pop edi
pop ebx
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x10027d80
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
cmp dword [esi], 0
je 0x10027e0d
push ebx
xor ebx, ebx
cmp dword [esi + 8], ebx
jbe 0x10027dd6
xor ecx, ecx
mov dword [ebp - 4], ecx
push edi
nop
mov eax, dword [esi]
push dword [eax + ecx]
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov edi, eax
test edi, edi
je 0x10027dc6
push edi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
inc ebx
add ecx, 4
mov dword [ebp - 4], ecx
cmp ebx, dword [esi + 8]
jb 0x10027da0
pop edi
push dword [esi]
push 0
push dword [0x10073fd8]
call dword [sym.imp.KERNEL32.dll_HeapSize]
pop ebx
cmp eax, 0xffffffff
je 0x10027dfd
test eax, eax
je 0x10027dfd
mov ecx, dword [esi]
mov byte [ecx], 0
lea ecx, [ecx + 1]
sub eax, 1
jne 0x10027df2
push dword [esi]
push 0
push dword [0x10073fd8]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10027e20
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x10064040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
imul esi, ecx, 0x2c
mov ebx, edx
mov dword [ebp - 8], 0
push edi
add esi, dword [0x1007400c]
mov eax, dword [esi]
mov cl, byte [esi + 0x14]
and cl, 1
lea edi, [eax - 5]
cmove edi, eax
movzx eax, cl
lea ecx, [ebp - 8]
push ecx
push 0x40
lea eax, [eax*2 + 5]
push eax
push edi
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x10027e89
pop edi
pop esi
mov eax, 0xa
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002d2b1
mov esp, ebp
pop ebp
ret
test ebx, ebx
je 0x10027eab
mov byte ds:[edi], 0xe9
mov eax, dword [esi + 4]
sub eax, edi
sub eax, 5
mov dword [edi + 1], eax
test byte [esi + 0x14], 1
je 0x10027ecc
mov eax, dword [esi]
mov word [eax], 0xf9eb
jmp 0x10027ecc
mov eax, dword [esi + 0xc]
test byte [esi + 0x14], 1
mov dword [edi], eax
je 0x10027ec6
mov ax, word [esi + 0x10]
mov word [edi + 4], ax
mov al, byte [esi + 0x12]
mov byte [edi + 6], al
jmp 0x10027ecc
mov al, byte [esi + 0x10]
mov byte [edi + 4], al
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push dword [ebp - 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push dword [ebp - 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov cl, bl
xor eax, eax
add cl, cl
shl bl, 2
xor cl, byte [esi + 0x14]
and cl, 2
xor cl, byte [esi + 0x14]
xor bl, cl
and bl, 4
xor bl, cl
mov ecx, dword [ebp - 4]
pop edi
mov byte [esi + 0x14], bl
xor ecx, ebp
pop esi
pop ebx
call fcn.1002d2b1
mov esp, ebp
pop ebp
ret
Function at 0x10030e32
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.1004b510
mov eax, dword [0x10064040]
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.1003c8d2
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x10030e74
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x10030fd0
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.1004b460
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 + 0x100668e8]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.1003cae1
mov ecx, dword [esi*4 + 0x100668e8]
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 0x10030fc9
cmp eax, dword [ecx + edi + 0x24]
jne 0x10030fc9
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 0x10030fc9
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.1003cae1
add esp, 0x14
test edx, edx
jl 0x10030fc9
jg 0x10030f3f
test eax, eax
jb 0x10030fc9
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x10030fc9
jl 0x10030f59
cmp dword [ebp - 0x1008], eax
ja 0x10030fc9
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x10030f77
test ebx, ebx
je 0x10030fb0
cmp ecx, edi
jae 0x10030fb0
mov al, byte [ecx]
cmp al, 0xd
jne 0x10030f91
lea eax, [edi - 1]
cmp ecx, eax
jae 0x10030f9d
cmp byte [ecx + 1], 0xa
jne 0x10030f9d
inc ecx
jmp 0x10030f9d
movzx eax, al
movsx eax, byte [eax + 0x10064250]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x10030f77
cmp edx, ebx
jne 0x10030f77
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x10030fce
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.1002d2b1
leave
ret

Function at 0x1003b9e3
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x1003ba22
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1003ba22
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1003ba22
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x1003ba22
cmp dword [ecx + 0x74], 0xe
jbe 0x1003ba22
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x1003d252
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 + 0x100668e8]
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 0x1003d292
cmp byte [ebx], 0xa
jne 0x1003d292
or byte [edi + eax + 0x28], 4
jmp 0x1003d297
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 0x1003d396
mov dl, byte [eax]
cmp dl, 0x1a
je 0x1003d379
inc eax
cmp dl, 0xd
je 0x1003d2c3
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x1003d2e9
cmp eax, ecx
jae 0x1003d2f7
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 0x1003d2ab
jmp 0x1003d396
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 0x1003d374
cmp dword [ebp - 0x10], 0
je 0x1003d374
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x100668e8]
test byte [eax + edi + 0x28], 0x48
je 0x1003d34e
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x1003d339
mov byte [esi], dl
jmp 0x1003d34a
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x100668e8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x1003d396
cmp byte [ebp - 1], 0xa
jne 0x1003d35d
cmp esi, ebx
jne 0x1003d35d
mov byte [esi], 0xa
jmp 0x1003d395
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.1003caff
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x1003d396
mov byte [esi], 0xd
jmp 0x1003d395
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x100668e8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x1003d393
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x1003d396
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x1003d39f
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 + 0x100668e8]
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 0x1003d3e5
cmp word [ebx], dx
jne 0x1003d3e5
or byte [eax + edi + 0x28], 4
jmp 0x1003d3ea
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 0x1003d54d
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 0x1003d52d
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x1003d42b
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x1003d461
cmp eax, edx
jae 0x1003d46f
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 0x1003d406
jmp 0x1003d54d
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 0x1003d528
cmp dword [ebp - 0x18], 0
je 0x1003d528
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x100668e8]
test byte [eax + edi + 0x28], 0x48
je 0x1003d4fe
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 0x1003d4c2
mov word [esi], cx
jmp 0x1003d4f9
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x100668e8]
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 + 0x100668e8]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x100668e8]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x1003d54d
pop eax
cmp word [ebp - 4], ax
jne 0x1003d50e
cmp esi, ebx
jne 0x1003d50e
mov word [esi], ax
jmp 0x1003d54a
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.1003caff
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x1003d54d
push 0xd
pop eax
jmp 0x1003d509
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x100668e8]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x1003d547
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x1003d54d
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 0x1003f9ba
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1004eaf8
push 0x1004eaf0
push str.FlsAlloc
push 0x1f
call fcn.1003f879
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1003f9ee
push dword [ebp + 8]
mov ecx, esi
call dword [0x1004c1cc]
call esi
jmp 0x1003f9f4
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1003fa38
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1004eb08
push 0x1004eb00
push str.FlsGetValue
push 0x21
call fcn.1003f879
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1003fa6f
push dword [ebp + 8]
mov ecx, esi
call dword [0x1004c1cc]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x1003fa77
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1004eb10
push 0x1004eb08
push str.FlsSetValue
push 0x22
call fcn.1003f879
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1003fab1
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x1004c1cc]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x10042ac3
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 0x10042b60
push ebx
push esi
call fcn.10042a8c
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.10042a20
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x10042b0d
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10042b5f
push edi
push eax
call fcn.1003ddfe
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x10042b2d
call fcn.1003ddc4
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10042b5e
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.10042a20
add esp, 0x20
test eax, eax
jne 0x10042b4c
push edi
call fcn.1003ddc4
jmp 0x10042b54
push ebx
call fcn.1003ddc4
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 0x10042b63
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x10042b74
pop esi
ret
push ebx
push edi
push esi
call fcn.10042a8c
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.1003ddfe
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x10042b9c
push ebx
push esi
push edi
call fcn.1002f0a0
add esp, 0xc
push 0
call fcn.1003ddc4
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x10042f6c
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.10042bb1