joyce8/EMBER2024-capa huggingface dataset:
Function at 0x421f40
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x421f7a
mov eax, dword [0x43a858]
mov dword [esi + 4], 0
mov dword [esi], 0
test eax, eax
je 0x421f6d
dec dword [eax + 0x36c]
push ecx
call edi
add esp, 4
mov dword [esi + 8], 0
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x421fab
mov eax, dword [0x43a858]
mov dword [esi + 0x10], 0
mov dword [esi + 0xc], 0
test eax, eax
je 0x421f9e
dec dword [eax + 0x36c]
push ecx
call edi
add esp, 4
mov dword [esi + 0x14], 0
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x421fdc
mov eax, dword [0x43a858]
mov dword [esi + 0x1c], 0
mov dword [esi + 0x18], 0
test eax, eax
je 0x421fcf
dec dword [eax + 0x36c]
push ecx
call edi
add esp, 4
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov ecx, dword [esi + 0x44]
test ecx, ecx
je 0x422029
mov eax, dword [0x43a858]
mov dword [esi + 0x40], 0
mov dword [esi + 0x3c], 0
test eax, eax
je 0x42201c
dec dword [eax + 0x36c]
push ecx
call edi
add esp, 4
mov dword [esi + 0x44], 0
mov ecx, dword [esi + 0x50]
test ecx, ecx
je 0x42205a
mov eax, dword [0x43a858]
mov dword [esi + 0x4c], 0
mov dword [esi + 0x48], 0
test eax, eax
je 0x42204d
dec dword [eax + 0x36c]
push ecx
call edi
add esp, 4
mov dword [esi + 0x50], 0
mov ecx, dword [esi + 0x5c]
test ecx, ecx
je 0x42208b
mov eax, dword [0x43a858]
mov dword [esi + 0x58], 0
mov dword [esi + 0x54], 0
test eax, eax
je 0x42207e
dec dword [eax + 0x36c]
push ecx
call edi
add esp, 4
mov dword [esi + 0x5c], 0
pop edi
lea ecx, [esi + 0x78]
pop esi
jmp fcn.004247f0
Function at 0x42eb00
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x25c
mov eax, dword [0x43a040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0
mov ebx, ecx
push 2
mov dword [ebp - 0x244], ebx
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
mov dword [ebp - 0x240], esi
cmp esi, 0xffffffff
je 0x42ec9d
lea eax, [ebp - 0x238]
mov dword [ebp - 0x238], 0x22c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x42ec96
nop dword [eax]
xorps xmm0, xmm0
mov dword [ebp - 0x24c], 0
lea eax, [ebp - 0x214]
mov dword [ebp - 0x248], 0
movups xmmword [ebp - 0x25c], xmm0
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x42eb87
sub eax, edx
lea ecx, [ebp - 0x25c]
sar eax, 1
push eax
lea eax, [ebp - 0x214]
push eax
call fcn.00405320
cmp dword [ebx + 0x14], 7
mov eax, ebx
jbe 0x42ebb3
mov eax, dword [ebx]
cmp dword [ebp - 0x248], 7
lea edi, [ebp - 0x25c]
mov edx, dword [ebp - 0x25c]
mov ecx, dword [ebp - 0x24c]
cmova edi, edx
mov dword [ebp - 0x23c], edx
cmp ecx, dword [ebx + 0x10]
je 0x42ebde
xor bl, bl
jmp 0x42ec17
test ecx, ecx
jne 0x42ebe6
mov bl, 1
jmp 0x42ec17
sub edi, eax
nop dword [eax + eax]
movzx edx, word [edi + eax]
movzx esi, word [eax]
cmp dx, si
jne 0x42ec6e
add eax, 2
sub ecx, 1
jne 0x42ebf0
xor eax, eax
mov edx, dword [ebp - 0x23c]
test eax, eax
mov esi, dword [ebp - 0x240]
sete bl
mov eax, dword [ebp - 0x248]
cmp eax, 7
jbe 0x42ec4d
lea ecx, [eax*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x42ec43
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42ec76
push ecx
push edx
call fcn.0042f67e
add esp, 8
test bl, bl
jne 0x42ec7c
lea eax, [ebp - 0x238]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
je 0x42ec96
mov ebx, dword [ebp - 0x244]
jmp 0x42eb60
sbb eax, eax
and eax, 0xfffffffe
inc eax
jmp 0x42ec06
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042f526
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042f526
mov esp, ebp
pop ebp
ret
Function at 0x42ecb0
Capabilities:
Execute command

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x43a040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
mov eax, 0x7ffffffe
push esi
push edi
mov edx, dword [ebx + 0x10]
sub eax, edx
mov dword [ebp - 0x20], edx
cmp eax, 0x10
jb 0x42ee1a
cmp dword [ebx + 0x14], 7
jbe 0x42ece3
mov ebx, dword [ebx]
lea ecx, [edx + 0x10]
mov dword [ebp - 0xc], 0
mov esi, 7
mov dword [ebp - 8], 0
mov dword [ebp - 0x24], ecx
xorps xmm0, xmm0
lea edi, [ebp - 0x1c]
movups xmmword [ebp - 0x1c], xmm0
cmp ecx, esi
jbe 0x42ed85
mov esi, ecx
or esi, 7
cmp esi, 0x7ffffffe
jbe 0x42ed51
mov eax, 0x7fffffff
mov esi, 0x7ffffffe
add eax, eax
cmp eax, 0x1000
jb 0x42ed71
lea ecx, [eax + 0x23]
cmp ecx, eax
jbe 0x42ee1f
push ecx
call fcn.0042f534
add esp, 4
test eax, eax
je 0x42edf9
lea edi, [eax + 0x23]
and edi, 0xffffffe0
mov dword [edi - 4], eax
jmp 0x42ed7c
mov eax, 0xa
cmp esi, eax
cmovb esi, eax
lea eax, [esi + 1]
cmp eax, 0x7fffffff
ja 0x42ee1f
add eax, eax
jne 0x42ed23
xor edi, edi
jmp 0x42ed82
push eax
call fcn.0042f534
add esp, 4
mov edi, eax
mov edx, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x1c], edi
movups xmm0, xmmword [str.taskkill__F__IM]
mov dword [ebp - 0xc], ecx
lea eax, [edx + edx]
mov dword [ebp - 8], esi
lea ecx, [edi + 0x20]
movups xmmword [edi], xmm0
push eax
movups xmm0, xmmword [0x436e54]
push ebx
push ecx
movups xmmword [edi + 0x10], xmm0
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebp - 0x20]
xor ecx, ecx
mov word [edi + eax*2 + 0x20], cx
lea eax, [ebp - 0x1c]
cmp dword [ebp - 8], 7
cmova eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wsystem]
mov ecx, dword [ebp - 8]
add esp, 0x10
cmp ecx, 7
jbe 0x42ee09
mov edx, dword [ebp - 0x1c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x42edff
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x42edff
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0042f67e
add esp, 8
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042f526
mov esp, ebp
pop ebp
ret
call fcn.00401160
call fcn.004010c0
int3

Function at 0x42ee49
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push 2
lea eax, [ebp - 4]
push eax
push 0x20000001
push str._x_sys_default_locale
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
xor ecx, ecx
test eax, eax
jne 0x42ee70
mov eax, ecx
mov dword [ebp - 4], eax
jmp 0x42ee73
mov eax, dword [ebp - 4]
push esi
mov esi, dword [ebp + 0xc]
push ecx
push ecx
push esi
push eax
push dword [ebp + 8]
push ecx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push eax
push dword [esi]
call fcn.0042ee25
pop esi
leave
ret 8
Function at 0x42f846
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
lea edx, [ecx + 0x18]
add edx, eax
movzx eax, word [ecx + 6]
imul esi, eax, 0x28
add esi, edx
jmp 0x42f87b
mov ecx, dword [edx + 0xc]
cmp dword [ebp + 0xc], ecx
jb 0x42f878
mov eax, dword [edx + 8]
add eax, ecx
cmp dword [ebp + 0xc], eax
jb 0x42f884
add edx, 0x28
cmp edx, esi
jne 0x42f866
xor eax, eax
pop esi
pop ebp
ret
mov eax, edx
jmp 0x42f881

Function at 0x43021e
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x43025d
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x43025d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x43025d
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x43025d
cmp dword [ecx + 0x74], 0xe
jbe 0x43025d
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x10001090
Capabilities:
Read file on windows

Disassembly:
push edi
push 0x10011170
push dword [esp + 0xc]
call fcn.10004ab3
mov edi, eax
add esp, 8
test edi, edi
jne 0x100010aa
pop edi
ret
push ebx
push ebp
push 2
push 0
push edi
call fcn.100050c7
add esp, 0xc
test eax, eax
jne 0x1000120c
push edi
call fcn.10005726
mov ebx, eax
add esp, 4
cmp ebx, 0xffffffff
je 0x1000120c
push 0
push 0
push edi
call fcn.100050c7
add esp, 0xc
test eax, eax
jne 0x1000120c
lea eax, [ebx + 0x81]
push eax
call fcn.10005771
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x1000120c
push esi
push edi
push ebx
lea esi, [ebp + 0x80]
push 1
push esi
call fcn.10004ca3
add esp, 0x10
push edi
test eax, eax
jne 0x10001131
call fcn.100049cc
push ebp
call fcn.10005756
add esp, 8
xor eax, eax
pop esi
pop ebp
pop ebx
pop edi
ret
mov byte [ebx + ebp + 0x80], 0
call fcn.100049cc
xor edx, edx
add esp, 4
cmp byte [esi], dl
je 0x100011fd
nop dword [eax + eax]
mov al, byte [esi]
cmp al, 0xd
je 0x1000115a
cmp al, 0xa
jne 0x1000115d
inc esi
jmp 0x10001150
mov ecx, esi
test al, al
je 0x100011f8
cmp al, 0x23
je 0x100011e0
cmp al, 0x20
je 0x10001185
cmp al, 9
je 0x10001185
cmp al, 0x3d
je 0x10001185
cmp al, 0x3a
je 0x10001185
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x10001167
jmp 0x100011f8
mov byte [esi], 0
mov al, byte [esi + 1]
inc esi
cmp al, 0x20
je 0x10001188
cmp al, 9
je 0x10001188
cmp al, 0x3d
je 0x10001188
cmp al, 0x3a
je 0x10001188
test al, al
je 0x100011f8
cmp al, 0xd
je 0x10001150
cmp al, 0xa
je 0x10001150
cmp byte [ecx], 0
je 0x100011c0
cmp edx, 0x10
je 0x10001205
mov dword [ebp + edx*4], ecx
mov dword [ebp + edx*4 + 0x40], esi
inc edx
nop dword [eax + eax]
mov al, byte [esi + 1]
inc esi
test al, al
je 0x100011f8
cmp al, 0xd
je 0x100011d0
cmp al, 0xa
jne 0x100011c0
test al, al
je 0x100011f8
mov byte [esi], 0
inc esi
mov al, byte [esi]
jmp 0x100011f0
mov al, byte [esi + 1]
inc esi
test al, al
je 0x100011f8
cmp al, 0xd
je 0x100011f0
cmp al, 0xa
jne 0x100011e0
test al, al
jne 0x10001150
cmp edx, 0x10
je 0x10001205
mov dword [ebp + edx*4], 0
pop esi
mov eax, ebp
pop ebp
pop ebx
pop edi
ret
push edi
call fcn.100049cc
add esp, 4
xor eax, eax
pop ebp
pop ebx
pop edi
ret
Function at 0x1000551f
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.10010550
mov eax, dword [0x10018040]
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.10006c00
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x10005561
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x100056bd
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.100104a0
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 + 0x10018f00]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.10008bf0
mov ecx, dword [esi*4 + 0x10018f00]
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 0x100056b6
cmp eax, dword [ecx + edi + 0x24]
jne 0x100056b6
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 0x100056b6
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.10008bf0
add esp, 0x14
test edx, edx
jl 0x100056b6
jg 0x1000562c
test eax, eax
jb 0x100056b6
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x100056b6
jl 0x10005646
cmp dword [ebp - 0x1008], eax
ja 0x100056b6
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x10005664
test ebx, ebx
je 0x1000569d
cmp ecx, edi
jae 0x1000569d
mov al, byte [ecx]
cmp al, 0xd
jne 0x1000567e
lea eax, [edi - 1]
cmp ecx, eax
jae 0x1000568a
cmp byte [ecx + 1], 0xa
jne 0x1000568a
inc ecx
jmp 0x1000568a
movzx eax, al
movsx eax, byte [eax + 0x10018250]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x10005664
cmp edx, ebx
jne 0x10005664
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x100056bb
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.10001851
leave
ret

Function at 0x10005d0e
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x10005d4d
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10005d4d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10005d4d
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x10005d4d
cmp dword [ecx + 0x74], 0xe
jbe 0x10005d4d
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x10007f2e
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 + 0x10018f00]
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 0x10007f6e
cmp byte [ebx], 0xa
jne 0x10007f6e
or byte [edi + eax + 0x28], 4
jmp 0x10007f73
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 0x10008072
mov dl, byte [eax]
cmp dl, 0x1a
je 0x10008055
inc eax
cmp dl, 0xd
je 0x10007f9f
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x10007fc5
cmp eax, ecx
jae 0x10007fd3
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 0x10007f87
jmp 0x10008072
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 0x10008050
cmp dword [ebp - 0x10], 0
je 0x10008050
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x10018f00]
test byte [eax + edi + 0x28], 0x48
je 0x1000802a
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x10008015
mov byte [esi], dl
jmp 0x10008026
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x10018f00]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x10008072
cmp byte [ebp - 1], 0xa
jne 0x10008039
cmp esi, ebx
jne 0x10008039
mov byte [esi], 0xa
jmp 0x10008071
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.10008c0e
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x10008072
mov byte [esi], 0xd
jmp 0x10008071
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x10018f00]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x1000806f
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x10008072
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x1000807b
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 + 0x10018f00]
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 0x100080c1
cmp word [ebx], dx
jne 0x100080c1
or byte [eax + edi + 0x28], 4
jmp 0x100080c6
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 0x10008229
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 0x10008209
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x10008107
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x1000813d
cmp eax, edx
jae 0x1000814b
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 0x100080e2
jmp 0x10008229
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 0x10008204
cmp dword [ebp - 0x18], 0
je 0x10008204
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x10018f00]
test byte [eax + edi + 0x28], 0x48
je 0x100081da
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 0x1000819e
mov word [esi], cx
jmp 0x100081d5
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x10018f00]
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 + 0x10018f00]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x10018f00]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x10008229
pop eax
cmp word [ebp - 4], ax
jne 0x100081ea
cmp esi, ebx
jne 0x100081ea
mov word [esi], ax
jmp 0x10008226
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.10008c0e
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x10008229
push 0xd
pop eax
jmp 0x100081e5
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x10018f00]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x10008223
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x10008229
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 0x1000a790
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 0x1000a82d
push ebx
push esi
call fcn.1000a759
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.1000a6ed
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1000a7da
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1000a82c
push edi
push eax
call fcn.10008e5e
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1000a7fa
call fcn.1000695d
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1000a82b
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1000a6ed
add esp, 0x20
test eax, eax
jne 0x1000a819
push edi
call fcn.1000695d
jmp 0x1000a821
push ebx
call fcn.1000695d
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 0x1000aa9a
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10012aa8
push 0x10012aa0
push str.FlsAlloc
push 0x1f
call fcn.1000a9b6
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1000aace
push dword [ebp + 8]
mov ecx, esi
call dword [0x10011124]
call esi
jmp 0x1000aad4
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1000ab18
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10012ab8
push 0x10012ab0
push str.FlsGetValue
push 0x21
call fcn.1000a9b6
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1000ab4f
push dword [ebp + 8]
mov ecx, esi
call dword [0x10011124]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x1000ab57
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10012ac0
push 0x10012ab8
push str.FlsSetValue
push 0x22
call fcn.1000a9b6
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1000ab91
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x10011124]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x1000e1a1
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.1000e11d
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x1000e310
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x1000e310
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x1000e2c5
jg 0x1000e1fd
test eax, eax
je 0x1000e2bb
push 1
push 0x1000
call fcn.10009315
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x1000e220
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x1000e2b2
push 0x8000
push ebx
call fcn.1000e04e
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x1000e249
jg 0x1000e244
cmp ecx, 0x1000
jb 0x1000e249
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.1000c188
add esp, 0x10
cmp eax, 0xffffffff
je 0x1000e28e
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 0x1000e244
jl 0x1000e275
test ecx, ecx
jne 0x1000e236
push dword [ebp - 0xc]
push ebx
call fcn.1000e04e
push esi
call fcn.1000695d
add esp, 0xc
xor ebx, ebx
jmp 0x1000e31e
cmp byte [edi + 0x24], 0
je 0x1000e2a5
cmp dword [edi + 0x20], 5
jne 0x1000e2a5
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x1000e2b0
mov ebx, dword [edi + 0x18]
jmp 0x1000e2b2
xor ebx, ebx
push esi
call fcn.1000695d
pop ecx
jmp 0x1000e31e
test ecx, ecx
jg 0x1000e287
jl 0x1000e2c5
test eax, eax
jae 0x1000e287
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.10008c0e
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x1000e2e5
cmp byte [edi + 0x1c], 0
je 0x1000e287
jmp 0x1000e316
push ebx
call fcn.1000b715
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1000e287
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 0x1000e31e
cmp byte [edi + 0x1c], 0
je 0x1000e31b
mov ebx, dword [edi + 0x18]
jmp 0x1000e31e
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.10008c0e
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x100103a0
Capabilities:
Parse pe header

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