joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10023f3c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 2
lea eax, [ebp - 4]
push eax
push 0x20000001
push str._x_sys_default_locale
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov esi, dword [ebp + 0xc]
neg eax
sbb eax, eax
xor ecx, ecx
and eax, dword [ebp - 4]
push ecx
push ecx
push esi
push eax
push dword [ebp + 8]
mov dword [ebp - 4], eax
push ecx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push eax
push dword [esi]
call fcn.10023f18
pop esi
leave
ret 8

Function at 0x1007498c
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x100cf3f0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x100ba858
push esi
call fcn.10094df7
pop ecx
pop ecx
test eax, eax
jne 0x100749ba
xor al, al
jmp 0x10074a37
push ebx
lea eax, [ebp - 0x210]
xor ebx, ebx
push eax
push 0x104
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x210], ebx
push esi
push eax
call fcn.100745ef
mov edx, eax
add esp, 0x10
test edx, edx
jne 0x100749f4
push dword [ebp - 0x210]
call fcn.1007740b
xor al, al
jmp 0x10074a35
mov ecx, edx
push edi
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x100749fa
sub ecx, edi
sar ecx, 1
pop edi
cmp ecx, 3
je 0x10074a1a
push edx
call fcn.100748c2
pop ecx
test al, al
je 0x100749e5
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x10074a28
mov bl, 1
push dword [ebp - 0x210]
call fcn.1007740b
mov al, bl
pop ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.100461c3
leave
ret

Function at 0x10093492
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100bd1b4
push 0x100bd1ac
push str.FlsAlloc
push 0x1e
call fcn.10093162
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100934c6
push dword [ebp + 8]
mov ecx, esi
call dword [0x100b228c]
call esi
jmp 0x100934cc
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x10093510
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100bd1c4
push 0x100bd1bc
push str.FlsGetValue
push 0x20
call fcn.10093162
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10093547
push dword [ebp + 8]
mov ecx, esi
call dword [0x100b228c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x10097726
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1009730d

Function at 0x10097731
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1009749c

Function at 0x10097c54
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.10046590
mov eax, dword [0x100cf3f0]
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.100922a0
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x10097c96
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x10097df2
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.100ace30
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 + 0x100d6120]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.100991e7
mov ecx, dword [esi*4 + 0x100d6120]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x10097deb
cmp eax, dword [edi + ecx + 0x24]
jne 0x10097deb
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10097deb
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.100991e7
add esp, 0x14
test edx, edx
jl 0x10097deb
jg 0x10097d61
test eax, eax
jb 0x10097deb
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x10097deb
jl 0x10097d7b
cmp dword [ebp - 0x1008], eax
ja 0x10097deb
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x10097d99
test ebx, ebx
je 0x10097dd2
cmp ecx, edi
jae 0x10097dd2
mov al, byte [ecx]
cmp al, 0xd
jne 0x10097db3
lea eax, [edi - 1]
cmp ecx, eax
jae 0x10097dbf
cmp byte [ecx + 1], 0xa
jne 0x10097dbf
inc ecx
jmp 0x10097dbf
movzx eax, al
movsx eax, byte [eax + 0x100cf690]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x10097d99
cmp edx, ebx
jne 0x10097d99
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x10097df0
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.100461c3
leave
ret
Function at 0x10098370
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
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 + 0x100d6120]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x100983b0
cmp byte [ebx], 0xa
jne 0x100983b0
or byte [eax + edi + 0x28], 4
jmp 0x100983b5
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x100984b3
mov al, byte [edx]
cmp al, 0x1a
je 0x10098495
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x100983e4
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x10098409
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x10098413
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x100983c6
jmp 0x100984b3
push 0
lea eax, [ebp - 0xc]
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 0x10098490
cmp dword [ebp - 0xc], 0
je 0x10098490
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x100d6120]
test byte [eax + edi + 0x28], 0x48
je 0x1009846a
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x10098455
mov byte [esi], dl
jmp 0x10098466
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x100d6120]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x100984b3
cmp byte [ebp - 1], 0xa
jne 0x10098479
cmp esi, ebx
jne 0x10098479
mov byte [esi], 0xa
jmp 0x100984b2
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.10099205
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x100984b3
mov byte [esi], 0xd
jmp 0x100984b2
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x100d6120]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x100984af
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x100984b3
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x100984bc
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x100d6120]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x100984ff
cmp word [esi], dx
jne 0x100984ff
or byte [edi + eax + 0x28], 4
jmp 0x10098504
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x10098657
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x10098637
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x10098546
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x1009857c
cmp eax, edx
jae 0x10098588
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
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 - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x1009851e
jmp 0x10098657
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10098633
cmp dword [ebp - 0x14], 0
je 0x10098633
mov eax, dword [ebx*4 + 0x100d6120]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x1009860b
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x100985d4
mov word [esi], cx
jmp 0x10098607
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x100d6120]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x100d6120]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x100d6120]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x10098657
pop ebx
cmp word [ebp - 4], bx
jne 0x1009861c
cmp esi, dword [ebp + 0xc]
jne 0x1009861c
mov word [esi], bx
jmp 0x10098654
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.10099205
add esp, 0x10
cmp word [ebp - 4], bx
je 0x10098657
push 0xd
jmp 0x10098650
mov ecx, dword [ebx*4 + 0x100d6120]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x1009864e
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x10098657
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x1009dd7f
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x100cf3f0]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x1009ddca
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.1009e11a
test al, al
jne 0x1009ddc4
sub edx, 2
cmp edx, edi
jne 0x1009ddaa
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x1009ddec
lea eax, [edi + 2]
cmp edx, eax
je 0x1009ddec
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.1009da46
add esp, 0x10
jmp 0x1009dee6
push esi
lea ecx, [ebp - 0x255]
call fcn.1009e11a
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x1009de2f
push dword [ebp - 0x25c]
jmp 0x1009dddc
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x1009de6c
cmp word [ebp - 0x226], 0
je 0x1009de8d
cmp word [ebp - 0x226], ax
jne 0x1009de6c
cmp word [ebp - 0x224], 0
je 0x1009de8d
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.1009da46
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x1009ded9
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x1009de46
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x1009dec1
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x1009dee6
push 0x1009d648
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.100752c0
add esp, 0x10
jmp 0x1009deb6
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100461c3
leave
ret
Function at 0x1009f20d
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 0x1009f2aa
push ebx
push esi
call fcn.1009f1c9
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.10093dea
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1009f257
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1009f2a9
push edi
push eax
call fcn.100912a6
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1009f277
call fcn.1009126c
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1009f2a8
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.10093dea
add esp, 0x20
test eax, eax
jne 0x1009f296
push edi
call fcn.1009126c
jmp 0x1009f29e
push ebx
call fcn.1009126c
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 0x1009f2ad
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x1009f2be
pop esi
ret
push ebx
push edi
push esi
call fcn.1009f1c9
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.100912a6
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x1009f2e6
push ebx
push esi
push edi
call fcn.100480e0
add esp, 0xc
push 0
call fcn.1009126c
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x1009fbc7
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1009f559

Function at 0x100aa636
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.100aa50a
Function at 0x100aabe4
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]
push dword [ebp + 0xc]
push ebx
call fcn.100aaa04
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x100aad5c
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x100aad5c
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x100aad0b
jg 0x100aac3d
test eax, eax
je 0x100aad01
push 1
push 0x1000
call fcn.100964d8
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x100aac63
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x100aacf8
push 0x8000
push ebx
call fcn.100aa839
mov edi, dword [ebp + 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x100aac8f
jg 0x100aac8a
cmp ecx, 0x1000
jb 0x100aac8f
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.1009710d
add esp, 0x10
cmp eax, 0xffffffff
je 0x100aacd4
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 0x100aac8a
jl 0x100aacbb
test ecx, ecx
jne 0x100aac7c
push dword [ebp - 0xc]
push ebx
call fcn.100aa839
push esi
call fcn.1009126c
add esp, 0xc
xor edi, edi
jmp 0x100aad6d
cmp byte [edi + 0x24], 0
je 0x100aaceb
cmp dword [edi + 0x20], 5
jne 0x100aaceb
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x100aacf6
mov edi, dword [edi + 0x18]
jmp 0x100aacf8
xor edi, edi
push esi
call fcn.1009126c
pop ecx
jmp 0x100aad6d
test ecx, ecx
jg 0x100aaccd
jl 0x100aad0b
test eax, eax
jae 0x100aaccd
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.10099205
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x100aad2e
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x100aaccd
jmp 0x100aad65
push ebx
call fcn.1009526c
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x100aaccd
mov esi, dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [esi + 0x24], 1
mov dword [esi + 0x20], eax
pop edi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x18], edi
jmp 0x100aad6d
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x100aad6a
mov edi, dword [edi + 0x18]
jmp 0x100aad6d
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.10099205
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x100acb70
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x100acb9d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x100acb9d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x404064
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
mov eax, dword [0x4a5214]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0x3fe
push eax
mov word [ebp - 0x404], ax
lea eax, [ebp - 0x402]
push eax
call fcn.00432100
add esp, 0xc
push 0x200
lea eax, [ebp - 0x404]
push eax
push dword [edi + 0x68]
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea eax, [ebp - 0x404]
lea ecx, [eax + 2]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x4040b3
sub eax, ecx
push esi
sar eax, 1
lea esi, [edi + 0x8c]
lea ecx, [ebp - 0x404]
call fcn.00401f58
push 1
push dword [edi + 4]
call dword [sym.imp.USER32.dll_EndDialog]
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
inc eax
pop esi
call fcn.0042fdff
leave
ret
Function at 0x406d26
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x4a5214]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, ecx
mov ecx, dword [esi + 4]
push edi
or ecx, 0x2001f
push ecx
push eax
push dword [esi]
xor ebx, ebx
lea edi, [ebp - 0x218]
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x218], ebx
mov dword [ebp - 0x214], ebx
mov dword [ebp - 0x210], ebx
call fcn.00406cdf
mov edi, eax
cmp edi, ebx
je 0x406d94
cmp dword [ebp - 0x218], ebx
je 0x406d8d
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
jmp 0x406e57
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x406db8
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x218]
call fcn.00406d26
mov dword [ebp - 0x224], eax
cmp eax, ebx
jne 0x406e21
lea eax, [ebp - 0x22c]
push eax
push ebx
push ebx
push ebx
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x20c]
push eax
push ebx
push dword [ebp - 0x218]
mov dword [ebp - 0x21c], 0x100
call edi
test eax, eax
je 0x406d9c
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x218], ebx
je 0x406e03
push dword [ebp - 0x218]
call edi
mov dword [ebp - 0x218], ebx
mov eax, dword [esi + 8]
push dword [ebp - 0x220]
mov dword [ebp - 0x214], ebx
push dword [esi]
cmp eax, ebx
je 0x406e3d
mov esi, eax
call fcn.00406eb9
jmp 0x406e43
cmp dword [ebp - 0x218], ebx
je 0x406e35
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x224]
jmp 0x406e57
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov esi, eax
cmp dword [ebp - 0x218], ebx
je 0x406e55
push dword [ebp - 0x218]
call edi
mov eax, esi
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042fdff
leave
ret 4
Function at 0x407774
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x424
mov eax, 0x482632
call fcn.004364bb
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
xor esi, esi
mov edi, edx
mov dword [ebp - 0x430], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], esi
mov dword [ebp - 0x418], esi
push 2
push esi
push eax
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov dword [ebp - 0x41c], eax
cmp eax, esi
jne 0x4077cc
call fcn.00406219
mov esi, eax
jmp 0x4078d6
push ebx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
cmp edi, esi
jne 0x4077e5
call fcn.00406219
jmp 0x4078c8
push edi
push dword [ebp - 0x41c]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x420], eax
cmp eax, esi
je 0x4077db
push edi
push dword [ebp - 0x41c]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
lea eax, [edi + 1]
mov dword [ebp - 0x424], edi
cmp eax, edi
jae 0x407822
mov esi, 0x8007000e
jmp 0x4078ca
xor ecx, ecx
shld ecx, eax, 1
add eax, eax
mov byte [ebp - 4], 2
cmp ecx, esi
ja 0x407837
cmp eax, 0xffffffff
jbe 0x407841
push 0x80070216
call fcn.00403761
cmp eax, 0x400
jbe 0x40786e
push eax
lea eax, [ebp - 0x418]
push eax
call fcn.00406786
jmp 0x40787a
lea eax, [ebp - 0x414]
mov dword [ebp - 0x418], eax
mov dword [ebp - 4], 1
cmp dword [ebp - 0x418], esi
je 0x407818
push edi
push dword [ebp - 0x418]
push edi
push dword [ebp - 0x420]
push esi
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, esi
je 0x4077db
mov edx, dword [ebp - 0x418]
push dword [ebp + 0x10]
xor ecx, ecx
mov word [edx + eax*2], cx
mov ecx, dword [ebp - 0x418]
lea edx, [ebp - 0x42c]
call fcn.00407614
mov esi, eax
push dword [ebp - 0x41c]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x4078ef
lea eax, [ebp - 0x418]
call fcn.00406203
mov eax, esi
call fcn.00436517
ret 0xc
Function at 0x409a63
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x4a5214]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov esi, ecx
xor edi, edi
cmp dword [esi + 0x10], edi
jne 0x409b9e
push ebx
lea eax, [ebp - 0x220]
push eax
push edi
push edi
push 0x1a
push edi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x409b9d
lea eax, [ebp - 0x220]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x409aa9
sub eax, edx
sar eax, 1
lea ecx, [ebp - 0x220]
call fcn.00401f58
push 8
pop ebx
cmp dword [esi + 0x14], ebx
jb 0x409acf
mov eax, dword [esi]
jmp 0x409ad1
mov eax, esi
push eax
call fcn.004313c1
pop ecx
test eax, eax
jne 0x409b9d
push str.DoneEx
push 7
pop edi
mov eax, esi
call fcn.00402882
cmp dword [esi + 0x14], ebx
jb 0x409af8
mov eax, dword [esi]
jmp 0x409afa
mov eax, esi
push eax
call fcn.004313c1
pop ecx
test eax, eax
je 0x409b1b
cmp dword [esi + 0x14], ebx
jb 0x409b0e
mov eax, dword [esi]
jmp 0x409b10
mov eax, esi
push eax
call fcn.004314ed
pop ecx
test eax, eax
jne 0x409b91
push str.XCell_Compiler
push 0xf
pop edi
mov eax, esi
call fcn.00402882
cmp dword [esi + 0x14], ebx
jb 0x409b33
mov eax, dword [esi]
jmp 0x409b35
mov eax, esi
push eax
call fcn.004313c1
pop ecx
test eax, eax
je 0x409b56
cmp dword [esi + 0x14], ebx
jb 0x409b49
mov eax, dword [esi]
jmp 0x409b4b
mov eax, esi
push eax
call fcn.004314ed
pop ecx
test eax, eax
jne 0x409b91
push str.AddIns
push 7
pop edi
mov eax, esi
call fcn.00402882
cmp dword [esi + 0x14], ebx
jb 0x409b6e
mov eax, dword [esi]
jmp 0x409b70
mov eax, esi
push eax
call fcn.004313c1
pop ecx
test eax, eax
je 0x409b9d
cmp dword [esi + 0x14], ebx
jb 0x409b84
mov eax, dword [esi]
jmp 0x409b86
mov eax, esi
push eax
call fcn.004314ed
pop ecx
test eax, eax
je 0x409b9d
xor eax, eax
mov ecx, 0x490ba8
call fcn.00401f58
pop ebx
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0042fdff
leave
ret

Function at 0x409bae
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
cmp dword [eax + 0x14], 8
jb 0x409bb9
mov eax, dword [eax]
push esi
push 0x49520c
push eax
call fcn.004315dd
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x409c01
cmp dword [edi + 0x14], 0x10
jb 0x409bd7
mov eax, dword [edi]
jmp 0x409bd9
mov eax, edi
add eax, dword [ebp + 8]
push esi
push 1
push dword [ebp + 0xc]
push eax
call fcn.0043174b
add esp, 0x10
push esi
cmp eax, 1
je 0x409bfb
call fcn.00431832
pop ecx
xor eax, eax
jmp 0x409c04
call fcn.00431832
pop ecx
xor eax, eax
inc eax
pop esi
pop ebp
ret 8