joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10002720
Capabilities:
Encrypt data using rc4 prga
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x10095a00
push 0x10036820
mov eax, dword fs:[0]
push eax
add esp, 0xffffffc8
push ebx
push esi
push edi
mov eax, dword [0x10097040]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov eax, dword [ebp + 8]
mov dword [ebp - 0x28], eax
cmp dword [ebp + 8], 0
jne 0x1000276a
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [ebp - 0x28], eax
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x28]
movzx edx, word [ecx]
cmp edx, 0x5a4d
je 0x100027a0
push 0xc1
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp - 0x30], 0
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x30]
jmp 0x1000292b
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x28]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 0x24]
cmp dword [edx], 0x4550
je 0x100027d8
push 0xbf
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp - 0x34], 0
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x34]
jmp 0x1000292b
mov eax, dword [ebp - 0x24]
movzx ecx, word [eax + 0x14]
test ecx, ecx
jne 0x10002804
push 0xc0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp - 0x38], 0
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x38]
jmp 0x1000292b
mov edx, dword [ebp - 0x24]
movzx eax, word [edx + 0x14]
mov ecx, dword [ebp - 0x24]
lea edx, [ecx + eax + 0x18]
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x1c], 0
jmp 0x10002827
mov eax, dword [ebp - 0x1c]
add eax, 1
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x24]
movzx edx, word [ecx + 6]
cmp dword [ebp - 0x1c], edx
jae 0x100028d6
push str..detour
mov eax, dword [ebp - 0x1c]
imul eax, eax, 0x28
add eax, dword [ebp - 0x2c]
push eax
call fcn.10041ac0
add esp, 8
test eax, eax
jne 0x100028d1
mov ecx, dword [ebp - 0x1c]
imul ecx, ecx, 0x28
mov edx, dword [ebp - 0x2c]
cmp dword [edx + ecx + 0xc], 0
je 0x10002872
mov eax, dword [ebp - 0x1c]
imul eax, eax, 0x28
mov ecx, dword [ebp - 0x2c]
cmp dword [ecx + eax + 0x10], 0
jne 0x10002874
jmp 0x100028d6
mov edx, dword [ebp - 0x1c]
imul edx, edx, 0x28
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x28]
add ecx, dword [eax + edx + 0xc]
mov dword [ebp - 0x3c], ecx
mov edx, dword [ebp - 0x3c]
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x20]
cmp dword [eax], 0x40
jb 0x100028a1
mov ecx, dword [ebp - 0x20]
cmp dword [ecx + 4], 0x727444
je 0x100028a3
jmp 0x100028d6
mov edx, dword [ebp - 0x20]
cmp dword [edx + 8], 0
jne 0x100028b7
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx]
mov dword [eax + 8], edx
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x40], eax
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x40]
jmp 0x1000292b
jmp 0x1000281e
push 0xc0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp - 0x44], 0
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x44]
jmp 0x1000292b
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x10002e10
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp dword [ecx], 0x678
jne 0x10002e31
mov edx, dword [ebp - 4]
mov eax, dword [edx]
cmp eax, dword [ebp + 0xc]
jbe 0x10002e43
push 0xc1
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x10002f8b
mov dword [ebp - 0x18], 0xffffffff
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0xc], 0xffffffff
mov dword [ebp - 8], 0
lea ecx, [ebp - 0x18]
push ecx
push 0x40
mov edx, dword [ebp - 4]
mov eax, dword [edx + 4]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x10002f88
lea eax, [ebp - 0x10]
push eax
push 0x40
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 8]
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x10002f6c
mov edx, dword [ebp - 4]
mov eax, dword [edx + 4]
push eax
mov ecx, dword [ebp - 4]
add ecx, 0x1c
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x10]
push eax
call fcn.10036100
add esp, 0xc
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 8]
push edx
mov eax, dword [ebp - 4]
add eax, 0x5c
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x14]
push edx
call fcn.10036100
add esp, 0xc
mov eax, dword [ebp - 4]
cmp dword [eax + 0x18], 0
je 0x10002f49
lea ecx, [ebp - 0xc]
push ecx
push 0x40
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0xc]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x10002f47
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0xc]
push ecx
mov edx, dword [ebp - 4]
add edx, 0x664
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x18]
push ecx
call fcn.10036100
add esp, 0xc
lea edx, [ebp - 0x14]
push edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0xc]
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov dword [ebp - 8], 1
jmp 0x10002f50
mov dword [ebp - 8], 1
lea edx, [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 8]
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea edx, [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret 8
Function at 0x1000bfd5
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
lea eax, [ebp - 0x104]
push esi
mov esi, 0x104
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push str.d3d9.dll
lea eax, [ebp - 0x104]
push esi
push eax
call fcn.10038073
add esp, 0xc
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edx, eax
pop esi
lea ecx, [edx + 0x128000]
cmp edx, ecx
jae 0x1000c047
mov ecx, 0x8689
inc edx
mov eax, 0x6c7
cmp word [edx], ax
jne 0x1000c03d
cmp word [edx + 6], cx
jne 0x1000c03d
cmp word [edx + 0xc], cx
je 0x1000c04e
lea eax, [edx + 0x128000]
cmp edx, eax
jb 0x1000c026
inc edx
mov eax, edx
leave
ret 4
add edx, 2
jmp 0x1000c048

Function at 0x1000e1f6
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, edx
mov edx, dword [ebp + 8]
push edi
mov edi, ecx
not edx
movzx eax, byte [edi]
movzx ecx, dl
xor ecx, eax
shr edx, 8
xor edx, dword [ecx*4 + 0x1008c830]
inc edi
sub esi, 1
jne 0x1000e204
pop edi
not edx
pop esi
mov eax, edx
pop ebp
ret

Function at 0x1000e224
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, edx
not ebx
mov esi, ecx
mov edx, ebx
test edi, edi
je 0x1000e288
mov al, byte [esi]
dec edi
inc esi
cmp al, 0x23
jne 0x1000e250
cmp edi, 2
jb 0x1000e250
cmp byte [esi], al
jne 0x1000e250
cmp byte [esi + 1], al
cmove edx, ebx
movzx ecx, dl
movzx eax, al
xor ecx, eax
shr edx, 8
xor edx, dword [ecx*4 + 0x1008c830]
test edi, edi
jne 0x1000e239
jmp 0x1000e28f
cmp al, 0x23
jne 0x1000e276
cmp byte [esi], al
jne 0x1000e276
cmp byte [esi + 1], al
cmove edx, ebx
movzx ecx, dl
movzx eax, al
xor ecx, eax
shr edx, 8
xor edx, dword [ecx*4 + 0x1008c830]
mov al, byte [esi]
inc esi
test al, al
jne 0x1000e268
pop edi
not edx
pop esi
mov eax, edx
pop ebx
pop ebp
ret

Function at 0x1000e3b0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x1000e3c0
and dword [edi], 0
mov edx, 0x100913c4
call fcn.1000e298
mov esi, eax
test esi, esi
je 0x1000e426
mov ecx, esi
call fcn.1000e357
mov ebx, eax
cmp ebx, 0xffffffff
je 0x1000e41f
mov ecx, ebx
call fcn.1000fe11
mov dword [ebp + 8], eax
test eax, eax
je 0x1000e41f
push esi
push ebx
push 1
push eax
call fcn.1003be6e
add esp, 0x10
push esi
cmp eax, ebx
je 0x1000e40e
call fcn.1003b2ed
pop ecx
mov ecx, dword [ebp + 8]
call fcn.1000fe28
jmp 0x1000e426
call fcn.1003b2ed
pop ecx
test edi, edi
je 0x1000e41a
mov dword [edi], ebx
mov eax, dword [ebp + 8]
jmp 0x1000e428
push esi
call fcn.1003b2ed
pop ecx
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x1002451f
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push esi
mov esi, ecx
push edi
xor edi, edi
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x10024539
mov dword [esi + 4], edi
mov dword [esi], edi
call fcn.1000fe28
mov dword [esi + 8], edi
lea ecx, [esi + 0xc]
call fcn.1001d8a9
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x10024556
mov dword [esi + 0x1c], edi
mov dword [esi + 0x18], edi
call fcn.1000fe28
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov ecx, dword [esi + 0x44]
test ecx, ecx
je 0x10024577
mov dword [esi + 0x40], edi
mov dword [esi + 0x3c], edi
call fcn.1000fe28
mov dword [esi + 0x44], edi
mov ecx, dword [esi + 0x50]
test ecx, ecx
je 0x1002458c
mov dword [esi + 0x4c], edi
mov dword [esi + 0x48], edi
call fcn.1000fe28
mov dword [esi + 0x50], edi
mov ecx, dword [esi + 0x5c]
test ecx, ecx
je 0x100245a1
mov dword [esi + 0x58], edi
mov dword [esi + 0x54], edi
call fcn.1000fe28
mov dword [esi + 0x5c], edi
pop edi
lea ecx, [esi + 0x78]
pop esi
jmp fcn.10026a24
Function at 0x10032f74
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 1
jne 0x10032f98
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
xor ecx, ecx
push ecx
push ecx
push ecx
push 0x10032f66
push ecx
push ecx
call dword [sym.imp.KERNEL32.dll_CreateThread]
xor eax, eax
inc eax
pop ebp
ret 0xc
Function at 0x10033ee0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
push edi
mov edi, edx
call fcn.10034430
mov dword [ebp - 8], eax
lea ecx, [ebp - 8]
lea eax, [ebp - 0xc]
push eax
call fcn.10034050
mov dword [ebp - 0x1c], 0
mov esi, dword [eax]
test edi, edi
jne 0x10033f11
mov byte [ebp - 0x10], 0
jmp 0x10033f2b
lea eax, [ebp - 0x14]
mov dword [ebp - 0x18], edi
push eax
push 0x40
push edi
push esi
mov dword [ebp - 0x1c], esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
setne byte [ebp - 0x10]
push edi
push 0x90
push esi
call fcn.10036680
add esp, 0xc
cmp byte [ebp - 0x10], 0
je 0x10033f57
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 8]
push ecx
push eax
push dword [ebp - 0x18]
mov dword [ebp - 8], eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x10033f60
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
mov ecx, 0x6194a0
mov bl, dl
call fcn.10034430
mov dword [ebp - 8], eax
lea ecx, [ebp - 8]
lea eax, [ebp - 0xc]
push eax
call fcn.10034050
mov dword [ebp - 0x18], 1
mov esi, dword [eax]
lea eax, [ebp - 0x14]
push eax
push 0x40
push 1
push esi
mov dword [ebp - 0x1c], esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
setne byte [ebp - 0x10]
mov byte [esi], bl
cmp byte [ebp - 0x10], 0
je 0x10033fc3
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 8]
push ecx
push eax
push dword [ebp - 0x18]
mov dword [ebp - 8], eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10033fd0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
push edi
mov dword [ebp - 8], edx
call fcn.10034430
mov dword [ebp - 4], eax
lea ecx, [ebp - 4]
lea eax, [ebp - 0xc]
push eax
call fcn.10034050
mov edi, dword [ebp + 8]
mov dword [ebp - 0x1c], 0
mov esi, dword [eax]
test edi, edi
jne 0x10034005
mov byte [ebp - 0x10], 0
jmp 0x1003401f
lea eax, [ebp - 0x14]
mov dword [ebp - 0x18], edi
push eax
push 0x40
push edi
push esi
mov dword [ebp - 0x1c], esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
setne byte [ebp - 0x10]
push edi
push dword [ebp - 8]
push esi
call fcn.10036100
add esp, 0xc
cmp byte [ebp - 0x10], 0
je 0x10034049
mov eax, dword [ebp - 0x14]
lea ecx, [ebp + 8]
push ecx
push eax
push dword [ebp - 0x18]
mov dword [ebp + 8], eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1003b73b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.10050600
mov eax, dword [0x10097040]
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.10044865
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x1003b77d
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x1003b8d9
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.10050550
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 + 0x100986d0]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.10045586
mov ecx, dword [esi*4 + 0x100986d0]
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 0x1003b8d2
cmp eax, dword [ecx + edi + 0x24]
jne 0x1003b8d2
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 0x1003b8d2
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.10045586
add esp, 0x14
test edx, edx
jl 0x1003b8d2
jg 0x1003b848
test eax, eax
jb 0x1003b8d2
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x1003b8d2
jl 0x1003b862
cmp dword [ebp - 0x1008], eax
ja 0x1003b8d2
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x1003b880
test ebx, ebx
je 0x1003b8b9
cmp ecx, edi
jae 0x1003b8b9
mov al, byte [ecx]
cmp al, 0xd
jne 0x1003b89a
lea eax, [edi - 1]
cmp ecx, eax
jae 0x1003b8a6
cmp byte [ecx + 1], 0xa
jne 0x1003b8a6
inc ecx
jmp 0x1003b8a6
movzx eax, al
movsx eax, byte [eax + 0x10097280]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x1003b880
cmp edx, ebx
jne 0x1003b880
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x1003b8d7
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.1003516d
leave
ret

Function at 0x10041f98
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x10041fd7
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10041fd7
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10041fd7
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x10041fd7
cmp dword [ecx + 0x74], 0xe
jbe 0x10041fd7
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x10045602
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 + 0x100986d0]
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 0x10045642
cmp byte [ebx], 0xa
jne 0x10045642
or byte [edi + eax + 0x28], 4
jmp 0x10045647
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 0x10045746
mov dl, byte [eax]
cmp dl, 0x1a
je 0x10045729
inc eax
cmp dl, 0xd
je 0x10045673
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x10045699
cmp eax, ecx
jae 0x100456a7
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 0x1004565b
jmp 0x10045746
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 0x10045724
cmp dword [ebp - 0x10], 0
je 0x10045724
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x100986d0]
test byte [eax + edi + 0x28], 0x48
je 0x100456fe
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x100456e9
mov byte [esi], dl
jmp 0x100456fa
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x100986d0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x10045746
cmp byte [ebp - 1], 0xa
jne 0x1004570d
cmp esi, ebx
jne 0x1004570d
mov byte [esi], 0xa
jmp 0x10045745
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.100455a4
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x10045746
mov byte [esi], 0xd
jmp 0x10045745
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x100986d0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x10045743
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x10045746
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x1004574f
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 + 0x100986d0]
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 0x10045795
cmp word [ebx], dx
jne 0x10045795
or byte [eax + edi + 0x28], 4
jmp 0x1004579a
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 0x100458fd
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 0x100458dd
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x100457db
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x10045811
cmp eax, edx
jae 0x1004581f
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 0x100457b6
jmp 0x100458fd
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 0x100458d8
cmp dword [ebp - 0x18], 0
je 0x100458d8
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x100986d0]
test byte [eax + edi + 0x28], 0x48
je 0x100458ae
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 0x10045872
mov word [esi], cx
jmp 0x100458a9
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x100986d0]
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 + 0x100986d0]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x100986d0]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x100458fd
pop eax
cmp word [ebp - 4], ax
jne 0x100458be
cmp esi, ebx
jne 0x100458be
mov word [esi], ax
jmp 0x100458fa
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.100455a4
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x100458fd
push 0xd
pop eax
jmp 0x100458b9
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x100986d0]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x100458f7
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x100458fd
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 0x100470d7
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1005a3e0
push 0x1005a3d8
push str.FlsAlloc
push 0x1f
call fcn.10046ff3
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1004710b
push dword [ebp + 8]
mov ecx, esi
call dword [0x100561d4]
call esi
jmp 0x10047111
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x10047155
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1005a3f0
push 0x1005a3e8
push str.FlsGetValue
push 0x21
call fcn.10046ff3
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1004718c
push dword [ebp + 8]
mov ecx, esi
call dword [0x100561d4]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x10047194
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1005a3f8
push 0x1005a3f0
push str.FlsSetValue
push 0x22
call fcn.10046ff3
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100471ce
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x100561d4]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x10049c39
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 0x10049cd6
push ebx
push esi
call fcn.10049c02
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.10049b96
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x10049c83
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10049cd5
push edi
push eax
call fcn.10043621
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x10049ca3
call fcn.1004366f
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10049cd4
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.10049b96
add esp, 0x20
test eax, eax
jne 0x10049cc2
push edi
call fcn.1004366f
jmp 0x10049cca
push ebx
call fcn.1004366f
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