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

Disassembly:
nop
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x100c5700]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push 4
xor ebx, ebx
cmp dword [eax + 0x14], 8
pop ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ecx
jb 0x1002847f
mov eax, dword [eax]
push eax
push str.SoftwareMicrosoftOneDriveAccounts
lea eax, [ebp - 0x28]
push eax
call fcn.1002dff8
cmp dword [eax + 0x14], 8
jb 0x10028496
mov eax, dword [eax]
push esi
lea ecx, [ebp - 0xc]
push ecx
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 0x10]
push ecx
push 0x10
push str.IsGoSov
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
lea ecx, [ebp - 0x28]
mov esi, eax
call fcn.10009715
test esi, esi
pop esi
jne 0x100284cc
cmp dword [ebp - 8], 1
sete bl
mov ecx, dword [ebp - 4]
mov al, bl
xor ecx, ebp
pop ebx
call fcn.1006077c
leave
ret 4
push ebp
mov ebp, esp
pop ebp
jmp 0x10028453

Function at 0x1003e332
Capabilities:
Enumerate gui resources

Disassembly:
push 0x6c
mov eax, 0x1008e06d
call fcn.100614ea
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
and dword [ebp - 0x4c], 0
mov dword [ebp - 0x78], eax
and dword [ebp - 4], 0
push ecx
lea ecx, [ebp - 0x70]
call fcn.1002ccec
xor ebx, ebx
lea ecx, [ebp - 0x48]
inc ebx
push esi
mov dword [ebp - 4], ebx
call fcn.10009348
push edi
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 2
call fcn.10009348
and dword [ebp - 0x18], 0
lea eax, [ebp - 0x78]
push eax
push 0x1002a5c0
call dword [sym.imp.USER32.dll_EnumWindows]
test eax, eax
je 0x1002a889
cmp dword [ebp - 0x18], 0
ja 0x1002a88b
xor bl, bl
lea ecx, [ebp - 0x78]
call 0x10021977
mov al, bl
call fcn.10061499
ret 0x10
push ebp
mov ebp, esp
pop ebp
jmp 0x1002a824

Function at 0x1003e3d2
Capabilities:
Set registry value

Disassembly:
nop
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x100c5700]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov ecx, 0x20006
cmp byte [ebp + 0x1c], 0
mov edx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, 0x102
cmovne ecx, edi
cmp dword [eax + 0x14], 8
jb 0x1002b180
mov eax, dword [eax]
push 0
lea edi, [ebp - 8]
push edi
xor edi, edi
push edi
push ecx
push edi
push edi
push edi
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov edi, eax
test edi, edi
jne 0x1002b1c9
cmp dword [esi + 0x10], eax
jne 0x1002b1a4
xor esi, esi
jmp 0x1002b1ac
cmp dword [esi + 0x14], 8
jb 0x1002b1ac
mov esi, dword [esi]
push dword [ebp + 0x18]
push ebx
push 3
push 0
push esi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 8]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
movzx eax, di
or eax, 0x80070000
test edi, edi
cmovle eax, edi
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.1006077c
leave
ret 0x18
push ebp
mov ebp, esp
pop ebp
jmp 0x1002b147
Function at 0x1003e442
Capabilities:
Set registry value

Disassembly:
nop
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x100c5700]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov ecx, 0x20006
cmp byte [ebp + 0x18], 0
mov edx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, 0x102
cmovne ecx, edi
cmp dword [eax + 0x14], 8
jb 0x1002b344
mov eax, dword [eax]
lea edi, [ebp - 8]
push edi
push ecx
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
test edi, edi
jne 0x1002b386
cmp dword [esi + 0x10], eax
jne 0x1002b362
xor esi, esi
jmp 0x1002b36a
cmp dword [esi + 0x14], 8
jb 0x1002b36a
mov esi, dword [esi]
push 4
push ebx
push 4
push 0
push esi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 8]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
movzx eax, di
or eax, 0x80070000
test edi, edi
cmovle eax, edi
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.1006077c
leave
ret 0x14
push ebp
mov ebp, esp
pop ebp
jmp 0x1002b30b

Function at 0x1003e452
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.1002b3a4

Function at 0x1003e472
Capabilities:
Set registry value

Disassembly:
nop
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x100c5700]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov ecx, 0x20006
cmp byte [ebp + 0x18], 0
mov edx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, 0x102
cmovne ecx, edi
cmp dword [eax + 0x14], 8
jb 0x1002b5ab
mov eax, dword [eax]
lea edi, [ebp - 8]
push edi
push ecx
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
test edi, edi
jne 0x1002b603
cmp dword [ebx + 0x14], 8
mov eax, dword [ebx + 0x10]
lea ecx, [eax*2 + 2]
jb 0x1002b5d2
mov ebx, dword [ebx]
movzx eax, byte [ebp + 0x1c]
inc eax
cmp dword [esi + 0x10], 0
jne 0x1002b5e1
xor esi, esi
jmp 0x1002b5e9
cmp dword [esi + 0x14], 8
jb 0x1002b5e9
mov esi, dword [esi]
push ecx
push ebx
push eax
push 0
push esi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 8]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
movzx eax, di
or eax, 0x80070000
test edi, edi
cmovle eax, edi
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.1006077c
leave
ret 0x18
push ebp
mov ebp, esp
pop ebp
jmp 0x1002b572

Function at 0x1003e482
Capabilities:
Set registry value

Disassembly:
nop
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
cmp dword [ecx + 0x14], 8
mov eax, dword [ecx + 0x10]
lea edx, [eax*2 + 2]
jb 0x1002b63b
mov ecx, dword [ecx]
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 8
jb 0x1002b646
mov eax, dword [eax]
push edx
push ecx
push 2
push eax
push str.Environment
push dword [ebp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegSetKeyValueW]
movzx ecx, ax
mov edx, 0x80070000
or ecx, edx
test eax, eax
cmovle ecx, eax
test ecx, ecx
cmovle edx, ecx
shr edx, 0x1f
xor dl, 1
mov al, dl
pop ebp
ret 0xc
push ebp
mov ebp, esp
pop ebp
jmp 0x1002b621
Function at 0x1003e502
Capabilities:
Query or enumerate registry value

Disassembly:
nop
push ebp
mov ebp, esp
sub esp, 0x240
mov eax, dword [0x100c5700]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x14]
mov ecx, esi
push edi
mov edi, dword [ebp + 8]
push 0x100adfc8
mov dword [ebp - 0x120], ebx
mov dword [ebp - 0x240], eax
call fcn.1000b07f
mov eax, dword [ebp - 0x240]
xor ecx, ecx
push pe_nt_image_headers32
push ecx
mov dword [eax], ecx
lea eax, [ebp - 0x238]
mov dword [ebx], ecx
mov bl, cl
push eax
mov dword [edi], ecx
call fcn.10062dd0
add esp, 0xc
mov dword [ebp - 0x23c], 0x11c
lea eax, [ebp - 0x23c]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x1002c441
mov ecx, dword [ebp - 0x120]
mov bl, 1
mov eax, dword [ebp - 0x238]
mov dword [edi], eax
mov eax, dword [ebp - 0x234]
mov dword [ecx], eax
mov ecx, dword [ebp - 0x240]
mov eax, dword [ebp - 0x230]
mov dword [ebp - 0x120], pe_nt_image_headers32
mov dword [ecx], eax
lea eax, [ebp - 0x120]
push eax
lea eax, [ebp - 0x11c]
push eax
push 0
push 2
push str.BuildLab
push str.SoftwareMicrosoftWindows_NTCurrentVersion
push dword [0x100c5028]
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
js 0x1002c441
push esi
lea eax, [ebp - 0x11c]
push eax
call fcn.1002bfe4
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1006077c
leave
ret 0x10
push ebp
mov ebp, esp
pop ebp
jmp 0x1002c35c

Function at 0x1003fd07
Capabilities:
Accept command line arguments

Disassembly:
push 0x230
mov eax, 0x10091682
call fcn.100614ea
mov ebx, dword [ebp + 8]
xor ecx, ecx
mov dword [ebp - 0x23c], ebx
mov dword [ebp - 0x238], ecx
mov dword [ebx], ecx
xor eax, eax
mov dword [ebx + 0x10], ecx
mov dword [ebx + 0x14], 7
mov word [ebx], ax
mov dword [ebp - 4], ecx
mov dword [ebp - 0x238], 1
call fcn.1003940d
mov edi, eax
mov eax, dword [edi]
mov esi, dword [eax + 0x1c4]
mov ecx, esi
call dword [0x10096750]
mov ecx, edi
call esi
mov byte [ebp - 0x234], al
test al, al
jne 0x1003fde7
push 0x208
xor esi, esi
lea eax, [ebp - 0x218]
push esi
push eax
call fcn.10062dd0
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x1003fde7
lea eax, [ebp - 0x218]
push 0x100a0f14
push eax
call fcn.100646fa
pop ecx
pop ecx
test eax, eax
je 0x1003fde7
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea ecx, [ebp - 0x230]
call fcn.1000890f
push esi
push str._allusers
lea ecx, [ebp - 0x230]
call fcn.10017bd3
cmp eax, 0xffffffff
lea ecx, [ebp - 0x230]
setne byte [ebp - 0x234]
call fcn.10009715
push ebx
push dword [ebp - 0x234]
call fcn.10025aaa
push 0x1009af20
mov ecx, ebx
call fcn.100157a6
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.1003ff4b
push eax
lea eax, [ebp - 0x230]
push eax
call fcn.10020eb8
mov dword [ebp - 0x238], 3
lea eax, [ebp - 0x230]
mov dword [ebp - 4], 2
push eax
mov ecx, ebx
call fcn.10008c09
lea ecx, [ebp - 0x230]
call fcn.10009715
mov eax, ebx
call fcn.10061499
ret 0xc
Function at 0x10043415
Capabilities:
Generate random numbers via winapi

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push 2
push 0x20
push dword [eax]
push 0
call sub.bcrypt.dll_BCryptGenRandom
xor ecx, ecx
mov edx, 0x8004fb29
test eax, eax
cmovs ecx, edx
mov eax, ecx
pop ebp
ret 4

Function at 0x10046052
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov edx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x10]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
test esi, esi
jg 0x1004607c
jl 0x10046073
test ebx, ebx
jne 0x1004607c
xor eax, eax
xor edx, edx
jmp 0x10046134
cmp dword [ecx + 0x38], 0
je 0x1004608f
push esi
push ebx
push edx
call method.std::basic_streambuf_char__struct_std::char_traits_char__.virtual_32
jmp 0x10046134
mov eax, dword [ecx + 0x1c]
push edi
mov edi, ebx
mov eax, dword [eax]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x100460cf
mov eax, dword [ecx + 0x2c]
cmp dword [eax], 0
jbe 0x100460cf
cmp dword [eax], ebx
mov esi, ebx
cmovb esi, dword [eax]
push esi
push dword [ebp - 0xc]
push edx
call fcn.10062850
mov ecx, dword [ebp - 8]
sub edi, esi
add dword [ebp - 4], esi
add esp, 0xc
mov eax, dword [ecx + 0x2c]
sub dword [eax], esi
mov eax, dword [ecx + 0x1c]
add dword [eax], esi
mov esi, dword [ebp + 0x10]
cmp dword [ecx + 0x4c], 0
je 0x1004612a
call fcn.1004518c
mov ecx, dword [ebp - 4]
mov edx, edi
cmp edi, 0xfff
jbe 0x10046112
mov eax, dword [ebp - 8]
push dword [eax + 0x4c]
push 0xfff
push 1
push ecx
call fcn.10070f0a
mov ecx, dword [ebp - 4]
sub edi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp - 4], ecx
mov edx, edi
cmp eax, 0xfff
jne 0x1004612a
jmp 0x100460df
test edx, edx
je 0x1004612a
mov eax, dword [ebp - 8]
push dword [eax + 0x4c]
push edi
push 1
push ecx
call fcn.10070f0a
add esp, 0x10
sub edi, eax
sub ebx, edi
mov eax, ebx
sbb esi, 0
mov edx, esi
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x1004a3d2
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0x14]
sub esp, 0x10
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 0x20]
mov dword [ecx], eax
mov eax, dword [ebp + 0x18]
push edi
mov dword [esi], eax
mov ecx, dword [ecx]
cmp ecx, dword [ebp + 0x10]
je 0x1004a53b
mov eax, ecx
xor ebx, ebx
mov dword [ebp - 8], eax
inc ebx
mov edx, dword [ebp + 0x1c]
mov ecx, eax
cmp dword [esi], edx
je 0x1004a53b
mov edx, dword [ebp + 8]
movzx ecx, word [eax]
mov eax, ecx
mov byte [ebp - 1], 0
movzx edi, word [edx]
cmp bx, di
jae 0x1004a451
lea eax, [ecx + 0x2400]
mov edx, 0x3ff
cmp ax, dx
ja 0x1004a54a
mov eax, edi
lea edx, [ecx - 0xdc00]
shl eax, 0xa
or edx, eax
mov cl, byte [ebp - 1]
cmp edx, 0x80
jae 0x1004a473
mov bl, dl
xor edi, edi
jmp 0x1004a4a3
mov edx, eax
lea eax, [ecx + 0x2800]
mov ecx, 0x3ff
cmp ax, cx
ja 0x1004a440
add edx, 0xffff2840
mov cl, bl
shl edx, 0xa
mov byte [ebp - 1], cl
jmp 0x1004a443
mov ebx, edx
cmp edx, 0x800
jae 0x1004a488
shr ebx, 6
xor edi, edi
or bl, 0xc0
inc edi
jmp 0x1004a4a3
cmp edx, 0x10000
jae 0x1004a49a
shr ebx, 0xc
or bl, 0xe0
push 2
jmp 0x1004a4a2
shr ebx, 0x12
or bl, 0xf0
push 3
pop edi
movzx eax, cl
mov ecx, dword [ebp - 8]
xor eax, 1
add eax, eax
cmp edi, 3
cmovb eax, edi
mov dword [ebp - 0x10], eax
inc eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0x1c]
sub eax, dword [esi]
cmp eax, dword [ebp - 0xc]
jl 0x1004a53b
mov eax, ecx
mov ecx, dword [ebp + 0x14]
add eax, 2
cmp byte [ebp - 1], 0
mov dword [ecx], eax
jne 0x1004a4df
cmp edi, 3
jb 0x1004a4df
mov ebx, dword [ebp - 0xc]
jmp 0x1004a4e8
mov eax, dword [esi]
mov byte [eax], bl
inc dword [esi]
mov ebx, dword [ebp - 0x10]
mov eax, dword [esi]
mov dword [ebp - 8], eax
test ebx, ebx
je 0x1004a510
imul ecx, edi, 6
mov edi, dword [ebp - 8]
sub ecx, 6
mov eax, edx
dec ebx
shr eax, cl
and al, 0x3f
or al, 0x80
mov byte [edi], al
inc dword [esi]
mov eax, dword [esi]
mov dword [ebp - 8], eax
test ebx, ebx
jg 0x1004a4f4
xor ebx, ebx
shr edx, 0xa
inc ebx
movzx eax, dx
cmp byte [ebp - 1], 0
mov ecx, ebx
cmovne ecx, eax
mov eax, dword [ebp + 8]
mov word [eax], cx
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax]
mov eax, ecx
mov dword [ebp - 8], eax
cmp ecx, dword [ebp + 0x10]
jne 0x1004a3fe
xor eax, eax
cmp dword [ebp + 0xc], ecx
sete al
pop edi
pop esi
pop ebx
leave
ret 0x1c
push 2
pop eax
jmp 0x1004a543

Function at 0x1004e4da
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.1004e4b6
pop esi
leave
ret 8
Function at 0x10079d74
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100a63a0
push 0x100a6398
push str.FlsAlloc
push 0x1e
call fcn.10079ba1
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10079da8
push dword [ebp + 8]
mov ecx, esi
call dword [0x10096750]
call esi
jmp 0x10079dae
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x10079df2
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100a63b0
push 0x100a63a8
push str.FlsGetValue
push 0x20
call fcn.10079ba1
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10079e29
push dword [ebp + 8]
mov ecx, esi
call dword [0x10096750]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x1007f945
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1007f7b6

Function at 0x1007fd3f
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.10061f30
mov eax, dword [0x100c5700]
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.100795a5
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x1007fd81
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x1007fedd
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.10061590
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 + 0x100cd300]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.10080d36
mov ecx, dword [esi*4 + 0x100cd300]
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 0x1007fed6
cmp eax, dword [edi + ecx + 0x24]
jne 0x1007fed6
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 0x1007fed6
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.10080d36
add esp, 0x14
test edx, edx
jl 0x1007fed6
jg 0x1007fe4c
test eax, eax
jb 0x1007fed6
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x1007fed6
jl 0x1007fe66
cmp dword [ebp - 0x1008], eax
ja 0x1007fed6
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x1007fe84
test ebx, ebx
je 0x1007febd
cmp ecx, edi
jae 0x1007febd
mov al, byte [ecx]
cmp al, 0xd
jne 0x1007fe9e
lea eax, [edi - 1]
cmp ecx, eax
jae 0x1007feaa
cmp byte [ecx + 1], 0xa
jne 0x1007feaa
inc ecx
jmp 0x1007feaa
movzx eax, al
movsx eax, byte [eax + 0x100c6058]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x1007fe84
cmp edx, ebx
jne 0x1007fe84
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x1007fedb
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.1006077c
leave
ret
Function at 0x100801d4
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 + 0x100cd300]
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 0x10080214
cmp byte [ebx], 0xa
jne 0x10080214
or byte [eax + edi + 0x28], 4
jmp 0x10080219
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x10080317
mov al, byte [edx]
cmp al, 0x1a
je 0x100802f9
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x10080248
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x1008026d
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x10080277
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 0x1008022a
jmp 0x10080317
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 0x100802f4
cmp dword [ebp - 0xc], 0
je 0x100802f4
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x100cd300]
test byte [eax + edi + 0x28], 0x48
je 0x100802ce
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x100802b9
mov byte [esi], dl
jmp 0x100802ca
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x100cd300]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x10080317
cmp byte [ebp - 1], 0xa
jne 0x100802dd
cmp esi, ebx
jne 0x100802dd
mov byte [esi], 0xa
jmp 0x10080316
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.10080d54
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x10080317
mov byte [esi], 0xd
jmp 0x10080316
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x100cd300]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x10080313
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x10080317
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x10080320
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 + 0x100cd300]
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 0x10080363
cmp word [esi], dx
jne 0x10080363
or byte [edi + eax + 0x28], 4
jmp 0x10080368
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 0x100804bb
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 0x1008049b
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x100803aa
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x100803e0
cmp eax, edx
jae 0x100803ec
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 0x10080382
jmp 0x100804bb
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 0x10080497
cmp dword [ebp - 0x14], 0
je 0x10080497
mov eax, dword [ebx*4 + 0x100cd300]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x1008046f
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x10080438
mov word [esi], cx
jmp 0x1008046b
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x100cd300]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x100cd300]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x100cd300]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x100804bb
pop ebx
cmp word [ebp - 4], bx
jne 0x10080480
cmp esi, dword [ebp + 0xc]
jne 0x10080480
mov word [esi], bx
jmp 0x100804b8
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.10080d54
add esp, 0x10
cmp word [ebp - 4], bx
je 0x100804bb
push 0xd
jmp 0x100804b4
mov ecx, dword [ebx*4 + 0x100cd300]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x100804b2
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x100804bb
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 0x100837b0
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 0x1008384d
push ebx
push esi
call fcn.10083779
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.10082eff
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x100837fa
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1008384c
push edi
push eax
call fcn.100786b4
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1008381a
call fcn.1007867a
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1008384b
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.10082eff
add esp, 0x20
test eax, eax
jne 0x10083839
push edi
call fcn.1007867a
jmp 0x10083841
push ebx
call fcn.1007867a
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 0x10083850
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x10083861
pop esi
ret
push ebx
push edi
push esi
call fcn.10083779
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.100786b4
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x10083889
push ebx
push esi
push edi
call fcn.10062850
add esp, 0xc
push 0
call fcn.1007867a
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x10083c4d
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1008389e