joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10094100
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
and dword [ebp - 4], 0
push ebx
push esi
push edi
mov ebx, ecx
push ecx
lea ecx, [ebp - 4]
call fcn.10094092
mov esi, eax
test esi, esi
jns 0x10094134
cmp dword [ebp - 4], 0
je 0x1009412d
push dword [ebp - 4]
call fcn.100b408c
pop ecx
mov eax, esi
jmp 0x100941ce
xor eax, eax
lea edi, [ebp - 0x14]
stosd dword es:[edi], eax
push 0x44
pop esi
push esi
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x60]
xor edi, edi
push edi
push eax
call fcn.100b46d0
add esp, 0xc
mov dword [ebp - 0x60], esi
mov esi, dword [ebp - 4]
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x60]
push eax
push edi
push edi
push 0x20
push edi
push edi
push edi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x100941b0
call fcn.10096a4e
mov edi, eax
mov ecx, dword [0x100da1f8]
cmp ecx, 0x100da1f8
je 0x100941a1
test byte [ecx + 0x1c], 1
je 0x100941a1
push edi
push esi
push dword [ecx + 0x14]
mov edx, 0x10028144
push dword [ecx + 0x10]
push 0x18
pop ecx
call fcn.10093c4e
test esi, esi
je 0x100941ac
push esi
call fcn.100b408c
pop ecx
mov eax, edi
jmp 0x100941ce
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x100941bc
call fcn.1009494d
mov eax, dword [ebp - 0x14]
mov dword [ebx], eax
test esi, esi
je 0x100941cc
push esi
call fcn.100b408c
pop ecx
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0x20

Function at 0x10094caf
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, ecx
push 4
pop esi
jmp 0x10094cd4
mov eax, dword [ebp - 4]
cmp eax, esi
je 0x10094d29
test eax, eax
je 0x10094d22
cmp eax, esi
ja 0x10094d22
sub esi, eax
add edi, eax
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push 0
push eax
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x10094cc1
call fcn.10096a4e
mov esi, eax
test esi, esi
jns 0x10094d29
mov ecx, dword [0x100da1f8]
cmp ecx, 0x100da1f8
je 0x10094d1e
test byte [ecx + 0x1c], 1
je 0x10094d1e
push esi
push dword [ecx + 0x14]
mov edx, 0x10028280
push dword [ecx + 0x10]
push 0x17
pop ecx
call fcn.10093cb0
mov eax, esi
jmp 0x10094d2b
mov esi, 0x8000ffff
jmp 0x10094cf6
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x10094ea8
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ecx
push esi
push edi
mov edi, edx
mov esi, ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x10094efd
call fcn.10096a4e
mov esi, eax
cmp esi, 0x80070002
je 0x10094ef9
cmp esi, 0x80070003
je 0x10094ef9
mov eax, dword [0x100da1f8]
cmp eax, 0x100da1f8
je 0x10094ef9
test byte [eax + 0x1c], 1
je 0x10094ef9
push esi
push edi
push dword [eax + 0x14]
mov edx, 0x10028280
push dword [eax + 0x10]
push 0x22
pop ecx
call fcn.10093c4e
mov eax, esi
jmp 0x10094f01
mov dword [esi], eax
xor eax, eax
pop edi
pop esi
pop ecx
ret
Function at 0x10094f58
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
mov esi, ecx
push eax
xor ecx, ecx
push ecx
push dword [ebp + 0x10]
mov dword [ebp - 4], ecx
push 0x1007e8e0
push ecx
push ecx
call fcn.100bcf0c
add esp, 0x18
mov dword [esi], eax
test eax, eax
je 0x10094fb6
mov eax, dword [0x100da1f8]
cmp eax, 0x100da1f8
je 0x10094fa6
test byte [eax + 0x1c], 4
je 0x10094fa6
push 0x10028280
push 0x2d
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.10093c08
mov ecx, dword [ebp + 0x18]
test ecx, ecx
je 0x10094fb2
mov eax, dword [ebp - 4]
mov dword [ecx], eax
xor eax, eax
jmp 0x10095011
mov esi, 0x80004005
call fcn.100a103a
mov eax, dword [eax]
sub eax, 0xb
je 0x10094fe4
sub eax, 1
je 0x10094fd6
sub eax, 1
je 0x10094fdd
sub eax, 9
jne 0x10094fe9
mov esi, 0x8007000e
jmp 0x10094fe9
mov esi, 0x80070005
jmp 0x10094fe9
mov esi, 0x8007009b
mov eax, dword [0x100da1f8]
cmp eax, 0x100da1f8
je 0x1009500f
test byte [eax + 0x1c], 1
je 0x1009500f
push esi
push dword [eax + 0x14]
mov edx, 0x10028280
push dword [eax + 0x10]
push 0x2e
pop ecx
call fcn.10093cb0
mov eax, esi
pop esi
leave
ret 0x14

Function at 0x10095ee3
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 0x14]
mov eax, dword [ebx]
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], edx
mov eax, dword [edi]
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push dword [ebp + 0x18]
lea eax, [ebp - 4]
push dword [ebp + 8]
push 0
push eax
push dword [ebp + 0x10]
push edx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x10095f56
mov edx, dword [ebp - 4]
mov eax, 0x800700ea
inc edx
cmp dword [ebp + 0x10], 0
je 0x10095f40
cmp edx, dword [ebx]
cmova esi, eax
cmp dword [ebp + 0x18], 0
mov ecx, dword [ebp - 8]
je 0x10095f4e
cmp ecx, dword [edi]
cmova esi, eax
mov dword [ebx], edx
mov dword [edi], ecx
mov eax, esi
jmp 0x10095fab
mov eax, 0x80070103
cmp esi, eax
je 0x10095fab
add eax, 0xffffffe7
cmp esi, eax
je 0x10095f91
mov eax, dword [0x100da1f8]
cmp eax, 0x100da1f8
je 0x10095f52
test byte [eax + 0x1c], 1
je 0x10095f52
push esi
push dword [ebp - 0xc]
mov edx, 0x100282bc
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x1c
pop ecx
call fcn.10093c27
jmp 0x10095f52
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
inc ecx
cmp dword [ebx], ecx
jb 0x10095fa7
cmp dword [edi], edx
jb 0x10095fa7
mov eax, 0x8000ffff
jmp 0x10095fab
mov dword [ebx], ecx
mov dword [edi], edx
pop edi
pop esi
pop ebx
leave
ret 0x14
Function at 0x1009bed3
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
mov edx, ecx
xor esi, esi
movzx ecx, byte [esi + edi]
movzx eax, dl
xor ecx, eax
shr edx, 8
xor edx, dword [ecx*4 + 0x10029580]
inc esi
cmp esi, 0x10
jb 0x1009bedf
pop edi
pop esi
mov eax, edx
pop ebp
ret 4

Function at 0x100a4af4
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x100a4b33
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x100a4b33
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x100a4b33
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x100a4b33
cmp dword [ecx + 0x74], 0xe
jbe 0x100a4b33
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x100a8a2b
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.100a1445
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x100a8a9a
cmp esi, dword [ebp - 4]
je 0x100a8a95
cmp dword [ebp + 0xc], 0
je 0x100a8a95
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x100a8a72
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.100a8568
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x100a8a9c
xor eax, eax
inc eax
jmp 0x100a8a9c
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x100a8b01
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x100dcd6c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.100a1445
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.100a1445
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x100a8b78
cmp word [ecx], dx
je 0x100a8b78
mov eax, dword [0x10008ab8]
push edi
dec eax
push eax
push 0x10001568
call fcn.100a8aa0
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x100a8beb
cmp word [eax], dx
je 0x100a8beb
mov eax, dword [edi]
test eax, eax
je 0x100a8b9c
cmp word [eax], dx
je 0x100a8b9c
lea eax, [ebp - 0x10]
push eax
call fcn.100a846e
jmp 0x100a8ba5
lea eax, [ebp - 0x10]
push eax
call fcn.100a8509
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x100a8c15
mov eax, dword [0x10008ab4]
push dword [ebp - 0x14]
dec eax
push eax
push 0x10001258
call fcn.100a8aa0
add esp, 0xc
test al, al
je 0x100a8c15
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x100a8be0
cmp word [eax], di
je 0x100a8be0
lea eax, [ebp - 0x10]
push eax
call fcn.100a846e
pop ecx
jmp 0x100a8c17
lea eax, [ebp - 0x10]
push eax
call fcn.100a8509
jmp 0x100a8bdd
mov eax, dword [edi]
test eax, eax
je 0x100a8c02
cmp word [eax], dx
je 0x100a8c02
lea eax, [ebp - 0x10]
push eax
call fcn.100a8423
pop ecx
jmp 0x100a8c15
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x100a8ce0
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.100a8925
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x100a8ce0
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x100a8ce0
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x100a8ce0
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x100a8c6d
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.100a591e
test ebx, ebx
je 0x100a8cdb
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.100a591e
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x100a8ce0
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x100a8ce0
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.100ac504
add esp, 0x10
xor eax, eax
inc eax
jmp 0x100a8ce2
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100b2d85
leave
ret
Function at 0x100ab2c8
Capabilities:
Get file size

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x18
mov eax, dword [eax + 0xc]
nop
shr eax, 3
test al, 1
je 0x100ab2e2
mov al, 1
leave
ret
mov eax, dword [ebp + 8]
push ebx
push esi
mov eax, dword [eax + 0xc]
nop
test al, 0xc0
mov eax, dword [ebp + 8]
je 0x100ab2f9
mov ecx, dword [eax]
cmp ecx, dword [eax + 4]
je 0x100ab351
mov eax, dword [eax + 0x10]
nop
push eax
call fcn.100ab5dd
mov esi, eax
pop ecx
cmp esi, 0xffffffff
je 0x100ab351
xor ebx, ebx
lea eax, [ebp - 0x10]
inc ebx
xorps xmm0, xmm0
push ebx
push eax
movlpd qword [ebp - 8], xmm0
push dword [ebp - 4]
push dword [ebp - 8]
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x100ab351
lea eax, [ebp - 0x18]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x100ab351
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x18]
jne 0x100ab34b
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x14]
je 0x100ab34d
xor bl, bl
mov al, bl
jmp 0x100ab353
xor al, al
pop esi
pop ebx
leave
ret
Function at 0x100b0176
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 + 0x100dd0b8]
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 0x100b01b6
cmp byte [ebx], 0xa
jne 0x100b01b6
or byte [edi + eax + 0x28], 4
jmp 0x100b01bb
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 0x100b02bd
mov dl, byte [eax]
cmp dl, 0x1a
je 0x100b02a0
inc eax
cmp dl, 0xd
je 0x100b01e7
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x100b020c
cmp eax, ecx
jae 0x100b021a
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
push 0xa
sete al
inc eax
add dword [ebp - 8], eax
pop eax
cmp cl, al
push 0xd
pop ecx
cmovne eax, ecx
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 0x100b01cf
jmp 0x100b02bd
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 0x100b0299
cmp dword [ebp - 0x10], 0
je 0x100b0299
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x100dd0b8]
test byte [eax + edi + 0x28], 0x48
je 0x100b0273
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x100b025c
mov byte [esi], dl
jmp 0x100b026f
push 0xd
pop eax
mov byte [esi], al
mov eax, dword [ecx*4 + 0x100dd0b8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x100b02bd
cmp byte [ebp - 1], 0xa
jne 0x100b0282
cmp esi, ebx
jne 0x100b0282
mov byte [esi], 0xa
jmp 0x100b02bc
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.100af0c6
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x100b02bd
push 0xd
pop eax
mov byte [esi], al
jmp 0x100b02bc
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x100dd0b8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x100b02ba
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x100b02bd
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x100b02c6
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 + 0x100dd0b8]
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 0x100b030c
cmp word [ebx], dx
jne 0x100b030c
or byte [eax + edi + 0x28], 4
jmp 0x100b0311
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 0x100b0473
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 0x100b0453
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x100b0352
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x100b0387
cmp eax, edx
jae 0x100b0395
movzx eax, word [eax]
cmp ax, word [ebp - 0x18]
mov edx, eax
push 2
pop ecx
mov dword [ebp - 0x14], 4
cmove ecx, dword [ebp - 0x14]
add dword [ebp - 4], ecx
push 0xa
pop ecx
cmp dx, cx
mov eax, ecx
mov edx, dword [ebp - 0xc]
push 0xd
pop ecx
cmovne eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x100b032d
jmp 0x100b0473
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 0x100b044e
cmp dword [ebp - 0x18], 0
je 0x100b044e
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x100dd0b8]
test byte [eax + edi + 0x28], 0x48
je 0x100b0424
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 0x100b03e8
mov word [esi], cx
jmp 0x100b041f
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x100dd0b8]
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 + 0x100dd0b8]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x100dd0b8]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x100b0473
pop eax
cmp word [ebp - 4], ax
jne 0x100b0434
cmp esi, ebx
jne 0x100b0434
mov word [esi], ax
jmp 0x100b0470
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.100af0c6
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x100b0473
push 0xd
pop eax
jmp 0x100b042f
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x100dd0b8]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x100b046d
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x100b0473
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 0x100b30ec
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
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
cmp edx, esi
je 0x100b3129
mov ecx, dword [ebp + 0xc]
cmp ecx, dword [edx + 0xc]
jb 0x100b3122
mov eax, dword [edx + 8]
add eax, dword [edx + 0xc]
cmp ecx, eax
jb 0x100b312e
add edx, 0x28
cmp edx, esi
jne 0x100b3113
xor eax, eax
pop esi
pop ebp
ret
mov eax, edx
jmp 0x100b312b
Function at 0x100be8f0
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 0x100be98d
push ebx
push esi
call fcn.100be8b9
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.100aaa1c
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x100be93a
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x100be98c
push edi
push eax
call fcn.100a3085
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x100be95a
call fcn.100a304b
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x100be98b
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.100aaa1c
add esp, 0x20
test eax, eax
jne 0x100be979
push edi
call fcn.100a304b
jmp 0x100be981
push ebx
call fcn.100a304b
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 0x100bf3db
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x1020
call fcn.100b3f30
mov eax, dword [0x100dcd6c]
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.100a424b
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x100bf41d
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x100bf594
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.100b3a40
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1014], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x100dd0b8]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.100af0a8
mov ecx, dword [esi*4 + 0x100dd0b8]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x1020], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x100bf58d
cmp eax, dword [ecx + edi + 0x24]
jne 0x100bf58d
xor esi, esi
lea eax, [ebp - 0x101c]
push esi
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 0x100bf58d
push dword [ebp - 0x100c]
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.100af0a8
add esp, 0x14
cmp edx, esi
jl 0x100bf58d
jg 0x100bf4e8
cmp eax, esi
jb 0x100bf58d
mov ebx, dword [ebp - 0x1014]
mov eax, dword [ebp - 0x101c]
cmp ebx, esi
jg 0x100bf58d
jl 0x100bf50a
cmp dword [ebp - 0x1008], eax
ja 0x100bf58d
lea edi, [ebp - 0x1004]
xorps xmm0, xmm0
add edi, eax
movlpd qword [ebp - 0x1018], xmm0
lea ecx, [ebp - 0x1004]
cmp dword [ebp - 0x1008], esi
jne 0x100bf52f
cmp ebx, esi
je 0x100bf574
mov edx, dword [ebp - 0x1014]
mov esi, dword [ebp - 0x1018]
cmp ecx, edi
jae 0x100bf574
mov al, byte [ecx]
cmp al, 0xd
jne 0x100bf555
lea eax, [edi - 1]
cmp ecx, eax
jae 0x100bf561
cmp byte [ecx + 1], 0xa
jne 0x100bf561
inc ecx
jmp 0x100bf561
movzx eax, al
movsx eax, byte [eax + 0x100dcc50]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x100bf53b
cmp edx, ebx
jne 0x100bf53b
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x1020]
jmp 0x100bf592
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.100b2d85
leave
ret

Function at 0x100bfe20
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x100bfe5e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x100bfe56
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x100bfe60
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x100bfe46
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x100bff30
Capabilities:
Parse pe header

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