joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10008df0
Capabilities:
Get common file path

Disassembly:
mov eax, 0x10072600
sub esp, 0x220
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10008e00
push ebp
mov ebp, dword [sym.imp.USER32.dll_wsprintfA]
sub eax, edx
push edi
mov dword [esp + 8], eax
jne 0x10008e2c
mov edx, esi
mov eax, ebx
sub edx, ebx
lea ecx, [ecx]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x10008e20
jmp 0x10008e3d
push ebx
push 0x10072600
push 0x10044214
push esi
call ebp
add esp, 0x10
lea eax, [esp + 0xc]
push eax
push esi
call fcn.1002cdd9
mov edi, eax
add esp, 8
cmp edi, 0xffffffff
je 0x10008ee9
mov ecx, dword [esp + 0x22c]
push 2
push 0x10045054
push ecx
call fcn.1003b983
add esp, 0xc
test eax, eax
jne 0x10008e99
push 0xc
lea edx, [esp + 0x24]
push str.ATRICDXX.DFT
push edx
call fcn.1003b983
add esp, 0xc
test eax, eax
jne 0x10008e99
lea eax, [esp + 0xc]
push eax
push edi
call fcn.1002ceb2
add esp, 8
mov edi, eax
cmp edi, 0xffffffff
je 0x10008ee9
mov eax, 0x10072600
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10008ea6
sub eax, edx
mov dword [esp + 8], eax
jne 0x10008ecf
lea eax, [esp + 0x20]
mov edx, esi
mov ecx, eax
sub edx, ecx
nop
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x10008ec0
jmp 0x10008f87
lea edx, [esp + 0x20]
push edx
push 0x10072600
push 0x10044214
push esi
call ebp
add esp, 0x10
jmp 0x10008f87
push 0x104
lea eax, [esp + 0x128]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push ebx
lea ecx, [esp + 0x128]
push ecx
push 0x10044214
push esi
call ebp
lea edx, [esp + 0x1c]
push edx
push esi
call fcn.1002cdd9
mov edi, eax
add esp, 0x18
cmp edi, 0xffffffff
je 0x10008f84
mov eax, dword [esp + 0x22c]
push 2
push 0x10045054
push eax
call fcn.1003b983
add esp, 0xc
test eax, eax
jne 0x10008f65
push 0xc
lea ecx, [esp + 0x24]
push str.ATRICDXX.DFT
push ecx
call fcn.1003b983
add esp, 0xc
test eax, eax
jne 0x10008f65
lea edx, [esp + 0xc]
push edx
push edi
call fcn.1002ceb2
add esp, 8
mov edi, eax
cmp edi, 0xffffffff
je 0x10008f84
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x128]
push ecx
push 0x10044214
push esi
call ebp
add esp, 0x10
jmp 0x10008f87
mov byte [esi], 0
mov eax, esi
pop edi
lea edx, [eax + 1]
pop ebp
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10008f90
sub eax, edx
add esp, 0x220
ret
Function at 0x10009010
Capabilities:
Get geographical location

Disassembly:
sub esp, 0x108
test eax, eax
push ebx
push ebp
mov ebp, dword [esp + 0x114]
push esi
mov esi, ecx
push edi
mov byte [esi], 0
jne 0x10009042
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
push 4
lea ecx, [esp + 0x14]
push ecx
push 3
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
jmp 0x10009052
lea edx, [esp + 0x10]
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x10009048
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x18]
push ebp
push eax
mov byte [esp + 0x1f], 0
call edi
lea ecx, [esp + 0x1c]
push ecx
lea ebx, [esp + 0x24]
call fcn.10008df0
add esp, 0x10
test eax, eax
jne 0x100090fd
lea edx, [esp + 0x10]
push edx
mov byte [esp + 0x16], al
mov eax, ebx
push ebp
push eax
call edi
lea ecx, [esp + 0x1c]
push ecx
call fcn.10008df0
add esp, 0x10
test eax, eax
jne 0x100090fd
lea edx, [esp + 0x10]
push edx
mov eax, ebx
push ebp
push eax
mov byte [esp + 0x1e], 0x3f
call edi
lea ecx, [esp + 0x1c]
push ecx
call fcn.10008df0
add esp, 0x10
test eax, eax
jne 0x100090fd
push 0x1004505c
mov edx, ebx
push ebp
push edx
call edi
lea eax, [esp + 0x1c]
push eax
mov byte [esp + 0x20], 0
call fcn.10008df0
add esp, 0x10
test eax, eax
jne 0x100090fd
push 0x10045058
mov ecx, ebx
push ebp
push ecx
mov byte [esp + 0x1c], al
call edi
lea edx, [esp + 0x1c]
push edx
call fcn.10008df0
add esp, 0x10
pop edi
mov eax, esi
pop esi
pop ebp
lea edx, [eax + 1]
pop ebx
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10009106
sub eax, edx
add esp, 0x108
ret
Function at 0x10014bb0
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x24], 0xffffffff
xor eax, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x38]
push ecx
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
jne 0x10014c0a
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x20]
mov dword [edx], eax
mov ecx, dword [ebp - 0x1c]
mov dword [edx + 4], ecx
mov eax, dword [ebp - 0x18]
mov dword [edx + 8], eax
mov ecx, dword [ebp - 0x14]
mov dword [edx + 0xc], ecx
mov eax, dword [ebp + 8]
jmp 0x10014cfd
mov dword [ebp - 0x10], 0
jmp 0x10014c1c
mov edx, dword [ebp - 0x10]
add edx, 1
mov dword [ebp - 0x10], edx
cmp dword [ebp - 0x10], 0xa
jge 0x10014c5f
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, 0x80000000
mov bx, 0xfa0
bsf ecx, eax
dec bx
jne 0x10014c35
lea ecx, [ebp - 0x30]
push ecx
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov edx, dword [ebp - 0x30]
sub edx, dword [ebp - 0x40]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0x24]
jae 0x10014c5d
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x24], ecx
jmp 0x10014c13
mov edx, dword [ebp - 0x24]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0xc]
imul eax, eax, 0x186a0
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x38]
xor edx, edx
mov ecx, 0xa
div ecx
mov ecx, eax
mov eax, dword [ebp - 0xc]
xor edx, edx
div ecx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
xor edx, edx
div dword [ebp - 0x38]
mov eax, dword [ebp - 0x38]
shr eax, 1
cmp edx, eax
jbe 0x10014ca3
mov ecx, dword [ebp - 0xc]
add ecx, 1
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp + 0xc]
xor edx, edx
div dword [ebp - 0xc]
mov dword [ebp - 8], eax
mov edx, dword [ebp - 8]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp + 0xc]
xor edx, edx
div dword [ebp - 0xc]
mov eax, dword [ebp - 0xc]
shr eax, 1
cmp edx, eax
jbe 0x10014cce
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x20]
mov dword [edx], eax
mov ecx, dword [ebp - 0x1c]
mov dword [edx + 4], ecx
mov eax, dword [ebp - 0x18]
mov dword [edx + 8], eax
mov ecx, dword [ebp - 0x14]
mov dword [edx + 0xc], ecx
mov eax, dword [ebp + 8]
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10015550
Capabilities:
Get cpu information
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
lea eax, [ebp - 8]
push eax
push 0x20019
push 0
push str.HARDWAREDESCRIPTIONSystemCentralProcessor0
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10015602
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], 4
lea ecx, [ebp - 4]
push ecx
lea edx, [ebp - 0xc]
push edx
push 0
push 0
push str.MHz
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x100155c9
lea ecx, [ebp - 4]
push ecx
lea edx, [ebp - 0xc]
push edx
push 0
push 0
push str.Mhz
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x100155ed
lea ecx, [ebp - 4]
push ecx
lea edx, [ebp - 0xc]
push edx
push 0
push 0
push str.mhz
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x20], 0
jne 0x10015602
mov eax, dword [ebp - 0xc]
jmp 0x10015635
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x30]
push eax
call fcn.10001037
add esp, 8
mov ecx, dword [eax]
mov dword [ebp - 0x1c], ecx
mov edx, dword [eax + 4]
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + 8]
mov dword [ebp - 0x14], ecx
mov edx, dword [eax + 0xc]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x14]
push eax
call fcn.10001145
add esp, 4
mov esp, ebp
pop ebp
ret

Function at 0x10015710
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
push edi
lea eax, [ebp - 0x1c]
push eax
or edi, 0xffffffff
xor esi, esi
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
jne 0x10015743
mov eax, dword [ebp + 8]
mov edx, eax
mov dword [edx], esi
mov ecx, esi
mov dword [edx + 4], ecx
mov dword [edx + 8], ecx
pop edi
mov dword [edx + 0xc], esi
pop esi
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov dword [ebp - 4], 0xa
push ebx
lea eax, [ebp - 0x14]
push eax
call esi
mov eax, 0x80000000
mov bx, 0xfa0
bsf ecx, eax
dec bx
jne 0x10015760
lea ecx, [ebp - 0xc]
push ecx
call esi
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 0x14]
cmp eax, edi
jae 0x10015779
mov edi, eax
dec dword [ebp - 4]
jne 0x10015751
mov esi, dword [ebp - 0x1c]
imul edi, edi, 0x186a0
mov eax, 0xcccccccd
mul esi
mov ecx, edx
xor edx, edx
shr ecx, 3
mov eax, edi
div ecx
xor edx, edx
mov ecx, eax
div esi
shr esi, 1
cmp edx, esi
jbe 0x100157a6
inc ecx
mov edi, dword [ebp + 0xc]
xor edx, edx
mov eax, edi
div ecx
mov ebx, ecx
shr ebx, 1
cmp edx, ebx
mov esi, eax
jbe 0x100157ba
inc eax
mov edx, dword [ebp + 8]
mov ebx, edx
mov dword [ebx], edi
mov dword [ebx + 4], ecx
mov dword [ebx + 8], esi
mov dword [ebx + 0xc], eax
pop ebx
pop edi
mov eax, edx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10015b80
Capabilities:
Execute anti-debugging instructions

Disassembly:
sub esp, 0x28
push ebx
push ebp
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov ebx, eax
xor eax, eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
push ebx
mov dword [esp + 0x38], eax
call dword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov ebp, eax
cmp ebp, 0x7fffffff
je 0x10015bbd
lea ecx, [ebp + 1]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
xor edx, edx
mov dword [esp + 0x10], edx
xor ax, ax
out 0x70, al
xor ax, ax
in al, 0x71
mov word [esp + 0x10], ax
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x10], edx
xor ax, ax
out 0x70, al
xor ax, ax
in al, 0x71
mov word [esp + 0x10], ax
mov edi, dword [esp + 0x10]
mov eax, edi
sub eax, ecx
cmp edi, ecx
jge 0x10015bfa
add eax, 0xa
jmp 0x10015c0b
mov dword [esp + 0x1c], ecx
xor ecx, ecx
test eax, eax
setg cl
mov eax, ecx
mov ecx, dword [esp + 0x1c]
cmp eax, edx
je 0x10015bd6
mov dword [esp + 0x1c], edx
mov dword [esp + 0x18], edx
rdtsc
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], edx
mov dword [esp + 0x10], edx
xor ax, ax
out 0x70, al
xor ax, ax
in al, 0x71
mov word [esp + 0x10], ax
mov esi, dword [esp + 0x10]
cmp esi, edi
jge 0x10015c45
mov eax, esi
sub eax, edi
add eax, 0xa
jmp 0x10015c50
mov ecx, esi
sub ecx, edi
xor eax, eax
test ecx, ecx
setg al
cmp eax, edx
je 0x10015c21
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], edx
rdtsc
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edx
cmp ebp, 0x7fffffff
je 0x10015c76
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x10], edx
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], edx
mov eax, dword [esp + 0x10]
mov ebx, dword [esp + 0x18]
sub eax, ebx
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x1c]
sbb eax, ebx
mov dword [esp + 0x24], eax
mov ebx, dword [esp + 0x20]
mov eax, 0x4f8b588f
mul ebx
mov ecx, ebx
sub ecx, edx
shr ecx, 1
add ecx, edx
mov eax, 0x431bde83
mul ebx
shr edx, 0x12
lea eax, [edx + edx*4]
shr ecx, 0x10
shl eax, 1
sub ecx, eax
cmp ecx, 6
mov ebp, edx
jb 0x10015ce1
inc edx
mov eax, dword [esp + 0x3c]
sub esi, edi
imul esi, esi, 0xf4240
mov ecx, eax
mov dword [ecx], ebx
pop edi
mov dword [ecx + 4], esi
pop esi
mov dword [ecx + 8], ebp
pop ebp
mov dword [ecx + 0xc], edx
pop ebx
add esp, 0x28
ret
Function at 0x1002f9fd
Capabilities:
Accept command line arguments

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
cmp eax, 1
push esi
push edi
jne 0x1002fb16
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push 0x94
push 0
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x1002fbb7
push esi
mov dword [esi], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
push esi
push 0
jne 0x1002fa52
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x1002fbb7
mov eax, dword [esi + 0x10]
mov dword [0x100715d8], eax
mov eax, dword [esi + 4]
mov dword [0x100715e4], eax
mov eax, dword [esi + 8]
mov dword [0x100715e8], eax
mov eax, dword [esi + 0xc]
and eax, 0x7fff
mov dword [0x100715dc], eax
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [0x100715d8], 2
je 0x1002fa90
or byte [0x100715dd], 0x80
mov eax, dword [0x100715e4]
shl eax, 8
add eax, dword [0x100715e8]
push 1
mov dword [0x100715e0], eax
call fcn.10033a65
test eax, eax
pop ecx
je 0x1002fbb7
call fcn.10030bca
test eax, eax
jne 0x1002fac6
call fcn.10033abc
jmp 0x1002fbb7
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x1009206c], eax
call fcn.10035ab5
mov dword [0x1007162c], eax
call fcn.10035512
test eax, eax
jl 0x1002fb0f
call fcn.10035a05
test eax, eax
jl 0x1002fb0a
call fcn.10035797
test eax, eax
jl 0x1002fb0a
call fcn.1002f4f9
test eax, eax
jne 0x1002fb0a
inc dword [0x10071628]
jmp 0x1002fbc7
call fcn.10035746
call fcn.10030969
jmp 0x1002fabc
xor edi, edi
cmp eax, edi
jne 0x1002fb62
cmp dword [0x10071628], edi
jle 0x1002fbb7
dec dword [0x10071628]
cmp dword [0x10071614], edi
jne 0x1002fb3b
call fcn.1002f64f
push 0xffffffffffffffff
call fcn.1002d846
test al, 0x20
pop ecx
je 0x1002fb4c
call fcn.1002de70
cmp dword [ebp + 0x10], edi
jne 0x1002fbc7
call fcn.10035746
call fcn.10030969
call fcn.10033abc
jmp 0x1002fbc7
cmp eax, 2
jne 0x1002fbbb
push 0x13b
push str.d:_srvidx01_basecrtscrtw32_startupdllcrt0.c
push eax
push 0x8c
push 1
call fcn.1002e80c
mov esi, eax
add esp, 0x14
cmp esi, edi
je 0x1002fbb7
push esi
push dword [0x10050a28]
call dword [0x10071650]
test eax, eax
je 0x1002fbad
push esi
call fcn.10030986
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
or dword [esi + 4], 0xffffffff
mov dword [esi], eax
jmp 0x1002fbc7
push 2
push esi
call fcn.1002e6d5
pop ecx
pop ecx
xor eax, eax
jmp 0x1002fbca
cmp eax, 3
jne 0x1002fbc7
push edi
call fcn.10030b87
pop ecx
xor eax, eax
inc eax
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x10030dfe
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x50
push ebx
push esi
push edi
push 4
pop eax
call fcn.10031380
mov dword [ebp - 8], esp
push 0x1c
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x10030efa
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov edi, dword [ebp - 0x4c]
xor esi, esi
cmp dword [0x100715d8], 2
jne 0x10030e7f
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp eax, esi
je 0x10030e7f
push str.SetThreadStackGuarantee
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, esi
je 0x10030e7f
lea ecx, [ebp - 4]
push ecx
mov dword [ebp - 4], esi
call eax
cmp eax, 1
pop ecx
jne 0x10030e7f
cmp dword [ebp - 4], esi
jbe 0x10030e7f
mov esi, dword [ebp - 4]
mov edx, dword [0x100715d8]
mov ebx, edx
dec ebx
neg ebx
sbb ebx, ebx
and ebx, 0x103
lea ecx, [edi - 1]
lea eax, [esi + edi - 1]
not ecx
inc ebx
and eax, ecx
mov dword [ebp - 4], eax
je 0x10030ea8
add eax, edi
mov dword [ebp - 4], eax
lea ecx, [edi + edi]
cmp eax, ecx
jae 0x10030eb4
mov dword [ebp - 4], ecx
mov eax, ecx
lea esi, [edi - 1]
not esi
and esi, dword [ebp - 8]
sub esi, eax
cmp edx, 1
jne 0x10030ec6
push 0x11
pop edi
mov ecx, dword [ebp - 0xc]
add edi, ecx
cmp esi, edi
jb 0x10030efa
push 4
push 0x1000
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
je 0x10030efa
lea eax, [ebp - 0x10]
push eax
push ebx
push dword [ebp - 4]
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x10030efa
xor eax, eax
inc eax
jmp 0x10030efc
xor eax, eax
lea esp, [ebp - 0x5c]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10035ab5
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x10071918]
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
push edi
xor ebx, ebx
xor edi, edi
cmp eax, ebx
jne 0x10035b01
call esi
mov edi, eax
cmp edi, ebx
je 0x10035ae7
mov dword [0x10071918], 1
jmp 0x10035b0a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x10035afc
push 2
pop eax
mov dword [0x10071918], eax
jmp 0x10035b01
mov eax, dword [0x10071918]
cmp eax, 1
jne 0x10035b94
cmp edi, ebx
jne 0x10035b1a
call esi
mov edi, eax
cmp edi, ebx
je 0x10035b9d
cmp word [edi], bx
mov eax, edi
je 0x10035b2f
inc eax
inc eax
cmp word [eax], bx
jne 0x10035b21
inc eax
inc eax
cmp word [eax], bx
jne 0x10035b21
mov esi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push ebx
push ebx
push ebx
sub eax, edi
push ebx
sar eax, 1
inc eax
push eax
push edi
push ebx
push ebx
mov dword [ebp - 0xc], eax
call esi
cmp eax, ebx
mov dword [ebp - 8], eax
je 0x10035b8b
push 0x6f
push str.d:_srvidx01_basecrtscrtw32misc_a_env.c
push 2
push eax
call fcn.1002e7d0
add esp, 0x10
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x10035b8b
push ebx
push ebx
push dword [ebp - 8]
push eax
push dword [ebp - 0xc]
push edi
push ebx
push ebx
call esi
test eax, eax
jne 0x10035b88
push 2
push dword [ebp - 4]
call fcn.1002e6d5
pop ecx
pop ecx
mov dword [ebp - 4], ebx
mov ebx, dword [ebp - 4]
push edi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x10035bfa
cmp eax, 2
je 0x10035ba1
cmp eax, ebx
je 0x10035ba1
xor eax, eax
jmp 0x10035bfc
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov esi, eax
cmp esi, ebx
mov dword [ebp - 4], esi
je 0x10035b9d
cmp byte [esi], bl
je 0x10035bbe
inc eax
cmp byte [eax], bl
jne 0x10035bb4
inc eax
cmp byte [eax], bl
jne 0x10035bb4
push 0x9a
sub eax, esi
inc eax
push str.d:_srvidx01_basecrtscrtw32misc_a_env.c
mov edi, eax
push 2
push edi
call fcn.1002e7d0
add esp, 0x10
cmp eax, ebx
je 0x10035bf3
mov ecx, edi
mov edx, ecx
shr ecx, 2
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebp - 4]
mov ebx, eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10035c01
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
xor ecx, ecx
push esi
xor eax, eax
cmp ebx, dword [eax*8 + 0x100510c0]
je 0x10035c1f
inc eax
cmp eax, 0x13
jb 0x10035c10
mov esi, eax
shl esi, 3
cmp ebx, dword [esi + 0x100510c0]
mov dword [ebp + 8], esi
jne 0x10035d88
push edi
mov edi, 0xfc
cmp ebx, edi
je 0x10035c5e
cmp ebx, 0xff
je 0x10035c5e
push dword [esi + 0x100510c4]
push ecx
push ecx
push ecx
push 1
call fcn.10031fc6
add esp, 0x14
cmp eax, 1
jne 0x10035c5e
int3
mov eax, dword [0x10071634]
cmp eax, 1
je 0x10035d58
test eax, eax
jne 0x10035c7d
cmp dword [0x10071638], 1
je 0x10035d58
cmp ebx, edi
je 0x10035d87
push 6
pop ecx
mov esi, str.Runtime_Error__n_nProgram:
mov edi, 0x10071920
rep movsd dword es:[edi], dword [esi]
push 0x104
mov ebx, 0x1007193a
push ebx
movsw word es:[edi], word [esi]
push 0
mov byte [0x10071a3e], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x10035cc6
push 5
pop ecx
mov esi, str._program_name_unknown_
mov edi, 0x1007193a
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10035ccb
sub eax, edx
inc eax
cmp eax, 0x3c
jbe 0x10035cfe
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10035cdf
sub eax, edx
push 3
lea eax, [eax + 0x100718ff]
push 0x1004a9cc
push eax
call fcn.1002c810
add esp, 0xc
mov edx, 0x10071920
mov edi, edx
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x10035d06
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x100510c4]
mov esi, 0x1004a940
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10035d21
mov edi, edx
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x10035d2d
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push 0x12010
mov ecx, eax
and ecx, 3
push str.Microsoft_Visual_C_Runtime_Library
push edx
rep movsb byte es:[edi], byte [esi]
call fcn.10039459
add esp, 0xc
jmp 0x10035d87
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
test eax, eax
je 0x10035d87
mov esi, dword [esi + 0x100510c4]
mov ecx, esi
lea edx, [ecx + 1]
mov bl, byte [ecx]
inc ecx
test bl, bl
jne 0x10035d6f
push 0
sub ecx, edx
lea edx, [ebp - 4]
push edx
push ecx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100389bb
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x41c
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x14], edi
jne 0x100389db
xor eax, eax
jmp 0x10038b49
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x10090900]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x10038a0e
push 2
push edi
push edi
push dword [ebp + 8]
call fcn.1003ba04
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x10038ae0
cmp dword [ebp + 0x10], edi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], edi
jbe 0x10038b18
mov ecx, dword [ebp - 0xc]
sub ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x41c]
mov dword [ebp - 8], edi
cmp ecx, dword [ebp + 0x10]
jae 0x10038a69
mov edx, dword [ebp - 0xc]
inc dword [ebp - 0xc]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x10038a5a
inc dword [ebp - 0x14]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 8]
mov byte [eax], dl
inc eax
inc dword [ebp - 8]
cmp dword [ebp - 8], 0x400
jl 0x10038a3d
mov edi, eax
lea eax, [ebp - 0x41c]
sub edi, eax
push 0
lea eax, [ebp - 0x18]
push eax
push edi
lea eax, [ebp - 0x41c]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10038aa9
mov eax, dword [ebp - 0x18]
add dword [ebp - 0x10], eax
cmp eax, edi
jl 0x10038ab2
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp + 0xc]
xor edi, edi
cmp eax, dword [ebp + 0x10]
jb 0x10038a2e
jmp 0x10038ab4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
xor edi, edi
mov eax, dword [ebp - 0x10]
cmp eax, edi
jne 0x10038b44
cmp dword [ebp - 4], edi
je 0x10038b18
push 5
pop esi
cmp dword [ebp - 4], esi
jne 0x10038b0d
call fcn.10032557
mov dword [eax], 9
call fcn.1003256a
mov dword [eax], esi
jmp 0x10038b3f
push edi
lea ecx, [ebp - 0x18]
push ecx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10038b02
mov eax, dword [ebp - 0x18]
mov dword [ebp - 4], edi
mov dword [ebp - 0x10], eax
jmp 0x10038ab4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
jmp 0x10038ab4
push dword [ebp - 4]
call fcn.1003257d
pop ecx
jmp 0x10038b3f
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x10038b2d
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0x1a
jne 0x10038b2d
xor eax, eax
jmp 0x10038b47
call fcn.10032557
mov dword [eax], 0x1c
call fcn.1003256a
mov dword [eax], edi
or eax, 0xffffffff
jmp 0x10038b47
sub eax, dword [ebp - 0x14]
pop esi
pop ebx
pop edi
leave
ret