joyce8/EMBER2024-capa huggingface dataset:
Function at 0x104d516
Capabilities:
Query environment variable

Disassembly:
push 0x98
mov eax, 0x10cf8ff
call fcn.010b53c2
push dword [ebp + 0xc]
mov dword [ebp - 0x50], ecx
push dword [ebp + 8]
lea ecx, [ebp - 0x2c]
call fcn.01043881
mov esi, 0x1010b58
xor edi, edi
push esi
lea ecx, [ebp - 0xa4]
mov dword [ebp - 4], edi
call fcn.01033a48
lea ecx, [ebp - 0x2c]
push ecx
push eax
lea eax, [ebp - 0x6c]
push eax
mov byte [ebp - 4], 1
call fcn.010377fa
push esi
push eax
lea eax, [ebp - 0x48]
push eax
mov byte [ebp - 4], 2
call fcn.010377ae
add esp, 0x18
push edi
push 1
lea ecx, [ebp - 0x6c]
call fcn.01032f16
push edi
push 1
lea ecx, [ebp - 0xa4]
mov byte [ebp - 4], 5
call fcn.01032f16
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x104d599
lea eax, [ebp - 0x28]
mov esi, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
push edi
push edi
push eax
call esi
mov ebx, eax
cmp ebx, edi
je 0x104d6a6
xor ecx, ecx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.010b35ad
cmp dword [ebp - 0x14], 8
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x28]
pop ecx
jae 0x104d5d2
lea eax, [ebp - 0x28]
push ebx
push dword [ebp - 0x4c]
push eax
call esi
dec ebx
cmp ebx, eax
je 0x104d66d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
push 7
lea ecx, [ebp - 0x80]
mov esi, eax
call fcn.01033bfc
push esi
lea eax, [ebp - 0x6c]
push eax
mov byte [ebp - 4], 6
call fcn.0103e9b9
push eax
lea eax, [ebp - 0xa4]
push 0x10104d8
push eax
mov byte [ebp - 4], 7
call fcn.01033a74
add esp, 0xc
push eax
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 8
call fcn.01033bb7
push edi
push 1
lea ecx, [ebp - 0xa4]
call fcn.01032f16
push edi
push 1
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 6
call fcn.01032f16
push 0x1010958
lea ecx, [ebp - 0x80]
call fcn.01033c5d
lea eax, [ebp - 0x80]
push eax
lea ecx, [ebp - 0x64]
call fcn.010907af
push 0x10de07c
lea eax, [ebp - 0x64]
push eax
call fcn.010b4e4c
push dword [ebp - 0x4c]
lea ecx, [ebp - 0x88]
call fcn.01033a48
push 0xffffffffffffffff
push edi
push eax
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 9
call fcn.0103365f
push edi
push 1
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], 5
call fcn.01032f16
push dword [ebp - 0x4c]
call fcn.010b359d
pop ecx
push 0xffffffffffffffff
push edi
lea eax, [ebp - 0x48]
push eax
mov eax, dword [ebp - 0x50]
mov ecx, dword [eax]
call fcn.0103332c
push edi
push 1
lea ecx, [ebp - 0x48]
call fcn.01032f16
push edi
push 1
lea ecx, [ebp - 0x2c]
call fcn.01032f16
call fcn.010b5454
ret 8
Function at 0x10a4800
Capabilities:
Create thread

Disassembly:
push 0x44
mov eax, 0x10dc456
call fcn.010b534f
mov esi, ecx
mov dword [ebp - 0x10], esi
mov eax, dword [ebp + 8]
xor ebx, ebx
push ebx
push ebx
xor edi, edi
inc edi
mov dword [esi + 4], eax
mov eax, dword [ebp + 0xc]
push edi
push ebx
lea ecx, [esi + 0x14]
mov dword [esi], 0x1029324
mov dword [esi + 8], eax
call fcn.010a45eb
mov dword [esi + 0x24], ebx
mov dword [ebp - 4], ebx
mov dword [esi + 0x28], ebx
push 0x1029500
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 1
mov byte [esi + 0x2c], bl
mov byte [esi + 0x2e], bl
call fcn.01033a48
mov eax, dword [esi + 4]
mov eax, dword [eax]
lea ecx, [ebp - 0x34]
push ecx
lea ecx, [ebp - 0x18]
push ecx
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.01040599
push ebx
push edi
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 4
call fcn.01032f16
push 0x10294a8
lea ecx, [ebp - 0x50]
call fcn.01033a48
mov eax, dword [esi + 4]
mov eax, dword [eax]
push edi
lea ecx, [ebp - 0x50]
push ecx
mov ecx, eax
mov byte [ebp - 4], 5
call fcn.0103f3bb
push ebx
push edi
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 4
call fcn.01032f16
lea eax, [esi + 0x10]
push eax
push ebx
push esi
push 0x10a47ea
push 0x100000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0x1029448
lea ecx, [ebp - 0x50]
mov dword [esi + 0xc], eax
call fcn.01033a48
mov eax, dword [esi + 4]
mov eax, dword [eax]
push edi
lea ecx, [ebp - 0x50]
push ecx
mov ecx, eax
mov byte [ebp - 4], 6
call fcn.0103f3bb
mov byte [ebp - 4], 4
push ebx
push edi
lea ecx, [ebp - 0x50]
call fcn.01032f16
push 0xffffffffffffffff
push dword [esi + 0x18]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x10293e8
lea ecx, [ebp - 0x50]
call fcn.01033a48
mov eax, dword [esi + 4]
mov eax, dword [eax]
push edi
lea ecx, [ebp - 0x50]
push ecx
mov ecx, eax
mov byte [ebp - 4], 7
call fcn.0103f3bb
push ebx
push edi
lea ecx, [ebp - 0x50]
call fcn.01032f16
mov ecx, dword [ebp - 0x14]
mov byte [ebp - 4], 1
cmp ecx, ebx
je 0x10a493b
call fcn.0103d6e8
mov eax, esi
call fcn.010b543b
ret 8

Function at 0x10a494a
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x10f19f0]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x110
lea eax, [ebp - 0x114]
push 0
push eax
call fcn.010b6370
add esp, 0xc
lea eax, [ebp - 0x118]
push eax
mov dword [ebp - 0x118], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x10a49af
cmp dword [ebp - 0x114], 5
jae 0x10a49ab
cmp dword [ebp - 0x114], 4
jne 0x10a49af
cmp dword [ebp - 0x110], 0x5a
jb 0x10a49af
xor eax, eax
jmp 0x10a49b2
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.010b533a
leave
ret
Function at 0x10a6ad1
Capabilities:
Get common file path

Disassembly:
push 0x284
mov eax, 0x10dc730
call fcn.010b53c2
mov edi, dword [ebp + 0x14]
mov ebx, 0x104
push ebx
lea eax, [ebp - 0x218]
push eax
mov dword [ebp - 0x258], ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
xor esi, esi
mov dword [ebp - 0x254], eax
cmp eax, esi
je 0x10a6bd4
cmp eax, ebx
jae 0x10a6bd4
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x290]
call fcn.01033a48
push dword [ebp - 0x254]
lea ecx, [ebp - 0x274]
push esi
push ecx
mov ecx, eax
mov dword [ebp - 4], esi
call fcn.010372dc
push 0x102a358
push eax
xor ebx, ebx
lea eax, [ebp - 0x234]
inc ebx
push eax
mov byte [ebp - 4], bl
call fcn.010377ae
add esp, 0xc
push esi
push ebx
lea ecx, [ebp - 0x274]
call fcn.01032f16
push esi
push ebx
lea ecx, [ebp - 0x290]
mov byte [ebp - 4], 4
call fcn.01032f16
mov eax, dword [ebp - 0x258]
mov eax, dword [eax + 0x4c]
mov eax, dword [eax]
mov eax, dword [eax + 0x24]
add eax, 0x70
push 0x102a340
push eax
lea eax, [ebp - 0x250]
push eax
call fcn.010377ae
add esp, 0xc
lea eax, [ebp - 0x250]
push eax
lea eax, [ebp - 0x234]
push eax
mov byte [ebp - 4], 5
call fcn.0103bab3
push esi
push ebx
lea ecx, [ebp - 0x250]
mov dword [edi], ebx
call fcn.01032f16
push esi
push ebx
lea ecx, [ebp - 0x234]
call fcn.01032f16
xor eax, eax
jmp 0x10a6bdb
xor ebx, ebx
inc ebx
mov dword [edi], ebx
mov eax, ebx
call fcn.010b5454
ret 0x10
Function at 0x10aa3b2
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x10]
push edi
push esi
lea eax, [ebp - 4]
push eax
xor ebx, ebx
push ebx
push dword [ebp + 0xc]
mov dword [ebp - 4], ebx
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [ebp - 4], ebx
jbe 0x10aa41d
cmp dword [ebp - 4], 2
jbe 0x10aa409
cmp dword [ebp - 4], 7
jne 0x10aa41d
mov ecx, dword [edi]
test cl, 1
jne 0x10aa41d
shr ecx, 1
cmp ecx, 2
jb 0x10aa41d
cmp esi, ebx
je 0x10aa420
cmp word [esi + ecx*2 - 2], bx
jne 0x10aa41d
cmp word [esi + ecx*2 - 4], bx
jmp 0x10aa41b
mov ecx, dword [edi]
test cl, 1
jne 0x10aa41d
cmp esi, ebx
je 0x10aa420
shr ecx, 1
cmp word [esi + ecx*2 - 2], bx
je 0x10aa420
push 0xd
pop eax
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x10ab561
Capabilities:
Create process on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push esi
mov esi, ecx
mov eax, dword [esi + 0x50]
mov ecx, eax
and ecx, 0xc
push edi
mov byte [ebp - 1], 1
cmp cl, 0xc
jne 0x10ab5ae
mov eax, dword [esi + 4]
mov edi, dword [sym.imp.USER32.dll_GetDlgCtrlID]
push eax
mov dword [ebp - 0x10], eax
call edi
push dword [esi + 4]
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 0xfffffffe
call edi
lea ecx, [ebp - 0x10]
push ecx
push eax
push 0x4e
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetParent]
jmp 0x10ab5d5
shr eax, 2
test al, 1
je 0x10ab5de
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
push dword [esi + 4]
mov edi, eax
call dword [sym.imp.USER32.dll_GetParent]
push dword [esi + 4]
movzx ecx, di
push ecx
push 0x111
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x10ab611
push ebx
push 1
xor ebx, ebx
push ebx
push ebx
push dword [esi + 0x24]
push 0x102c960
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
seta byte [ebp - 1]
cmp byte [ebp - 1], bl
je 0x10ab610
or byte [esi + 0x54], 2
push 1
push ebx
push dword [esi + 4]
call dword [sym.imp.USER32.dll_InvalidateRect]
pop ebx
mov al, byte [ebp - 1]
pop edi
pop esi
leave
ret
Function at 0x10acc82
Capabilities:
Get graphical window text

Disassembly:
push 0x23c
mov eax, 0x10dd0f0
call fcn.010b53fd
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x224], eax
push 0x104
lea eax, [ebp - 0x220]
mov esi, ecx
push eax
push dword [esi + 0xb8]
mov dword [ebp - 0x228], esi
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0x7f02
xor ebx, ebx
push ebx
call dword [sym.imp.USER32.dll_LoadCursorW]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x248]
mov dword [ebp - 4], ebx
call fcn.01033a48
mov ecx, dword [esi + 0x88]
mov ecx, dword [ecx + 0x170]
push eax
mov byte [ebp - 4], 1
call fcn.010981e1
xor edi, edi
push ebx
inc edi
push edi
lea ecx, [ebp - 0x248]
mov byte [ebp - 4], bl
call fcn.01032f16
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x248]
call fcn.01033a48
mov eax, dword [esi + 0x88]
mov eax, dword [eax + 0x170]
lea ecx, [ebp - 0x248]
push ecx
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.0109880c
push ebx
push edi
lea ecx, [ebp - 0x248]
call fcn.01032f16
push edi
push dword [esi + 4]
call dword [sym.imp.USER32.dll_EndDialog]
mov eax, edi
jmp 0x10acdad
call fcn.010b5468
ret 0x10
Function at 0x10acdba
Capabilities:
Get common file path

Disassembly:
push 0x2a8
mov eax, 0x10dd149
call fcn.010b53fd
mov eax, dword [ebp + 0x10]
mov esi, ecx
xor ebx, ebx
lea ecx, [ebp - 0x220]
mov dword [ebp - 0x240], ecx
lea ecx, [ebp - 0x224]
push ecx
push ebx
push ebx
push 0x11
push eax
mov dword [ebp - 0x228], esi
mov dword [ebp - 4], ebx
mov dword [ebp - 0x248], eax
mov dword [ebp - 0x244], ebx
mov dword [ebp - 0x23c], 0x102cd28
mov dword [ebp - 0x238], 0x141
mov dword [ebp - 0x234], ebx
mov dword [ebp - 0x230], ebx
mov dword [ebp - 0x22c], ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderLocation]
cmp eax, ebx
jne 0x10acebd
mov eax, dword [ebp - 0x224]
mov dword [ebp - 0x244], eax
lea eax, [ebp - 0x248]
push eax
call dword [sym.imp.SHELL32.dll_SHBrowseForFolderW]
lea ecx, [ebp - 0x220]
push ecx
push eax
mov dword [ebp - 0x224], eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x10acf90
lea eax, [ebp - 0x220]
push eax
push dword [esi + 0xb8]
call dword [sym.imp.USER32.dll_SetWindowTextW]
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x268]
call fcn.01033a48
mov ecx, dword [esi + 0x88]
mov ecx, dword [ecx + 0x170]
push eax
mov byte [ebp - 4], 1
call fcn.010981e1
push ebx
push 1
lea ecx, [ebp - 0x268]
call fcn.01032f16
xor eax, eax
mov byte [esi + 0xc9], bl
inc eax
jmp 0x10acf92
push ebx
push 0x52
lea ecx, [ebp - 0x260]
call fcn.01033bfc
push 0x102ccd0
lea ecx, [ebp - 0x260]
mov byte [ebp - 4], 2
call fcn.01033c5d
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x2b4]
call fcn.01033a48
push eax
lea eax, [ebp - 0x298]
push 0x10243fc
push eax
mov byte [ebp - 4], 3
call fcn.01033a74
add esp, 0xc
push eax
lea ecx, [ebp - 0x25c]
mov byte [ebp - 4], 4
call fcn.01033bb7
push ebx
push 1
lea ecx, [ebp - 0x298]
call fcn.01032f16
push ebx
push 1
lea ecx, [ebp - 0x2b4]
mov byte [ebp - 4], 2
call fcn.01032f16
lea eax, [ebp - 0x260]
push eax
lea ecx, [ebp - 0x27c]
call fcn.010907af
push 0x10de07c
lea eax, [ebp - 0x27c]
push eax
call fcn.010b4e4c
mov esi, dword [ebp - 0x228]
mov eax, dword [ebp - 0x24c]
mov byte [esi + 0xc9], 1
push dword [eax + 8]
lea ecx, [esi + 0x64]
call fcn.01033880
push 1
lea eax, [esi + 0x20]
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_InvalidateRect]
mov eax, 0x10acf90
ret
xor eax, eax
call fcn.010b5468
ret 0x10
Function at 0x10af56a
Capabilities:
Create thread

Disassembly:
push 4
mov eax, 0x10dd315
call fcn.010b534f
mov esi, ecx
mov dword [ebp - 0x10], esi
lea ebx, [esi + 0x58]
push ebx
lea ecx, [esi + 8]
call fcn.010ad659
xor edi, edi
push edi
push edi
push 1
push edi
mov ecx, ebx
mov dword [ebp - 4], edi
call fcn.010a45eb
lea eax, [esi + 4]
push eax
push edi
push esi
push 0x10adb66
push 0x100000
push edi
mov dword [esi + 0x68], edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0xffffffffffffffff
push dword [esi + 0x5c]
mov dword [esi], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, esi
call fcn.010b543b
ret

Function at 0x10af5cc
Capabilities:
Create thread

Disassembly:
push 4
mov eax, 0x10dd340
call fcn.010b534f
mov esi, ecx
mov dword [ebp - 0x10], esi
push dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
push dword [ebp + 8]
lea ebx, [esi + 0xe60]
push ebx
lea ecx, [esi + 0xc]
mov dword [esi], eax
call fcn.010ae56e
xor edi, edi
push edi
push edi
push 1
push edi
mov ecx, ebx
mov dword [ebp - 4], edi
call fcn.010a45eb
lea eax, [esi + 8]
push eax
push edi
push esi
push 0x10ad61a
push 0x100000
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0xffffffffffffffff
push dword [esi + 0xe64]
mov dword [esi + 4], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, esi
call fcn.010b543b
ret 0xc
Function at 0x10b290e
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x10f3f88], 0
push esi
jne 0x10b287c
call fcn.010b2773
test eax, eax
je 0x10b28bf
mov eax, dword [0x10f3f88]
cmp eax, 1
jne 0x10b289d
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x10b28bf
pop esi
ret
push eax
call dword [0x10f3f90]
test eax, eax
jne 0x10b2907
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x10b28c3
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x10f3f88]
call dword [0x10f3f90]
mov edi, eax
test edi, edi
je 0x10b28e8
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x10b2904
mov edi, esi
add esi, 0xff0
push edi
push dword [0x10f3f88]
call dword [0x10f3f8c]
add edi, 0x10
cmp edi, esi
jb 0x10b28f0
mov eax, edi
pop edi
pop esi
ret
jmp 0x10b2869

Function at 0x10bb1c0
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
xor ebx, ebx
xor esi, esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 4], esi
cmp edi, dword [esi*8 + 0x10f1ba0]
je 0x10bb1e6
inc esi
mov dword [ebp - 4], esi
cmp esi, 0x17
jb 0x10bb1d4
cmp esi, 0x17
jae 0x10bb340
push 3
call fcn.010c6885
pop ecx
cmp eax, 1
je 0x10bb30a
push 3
call fcn.010c6885
pop ecx
test eax, eax
jne 0x10bb219
cmp dword [0x10f1764], 1
je 0x10bb30a
cmp edi, 0xfc
je 0x10bb340
push 0x10308d4
mov edi, 0x314
push edi
mov esi, 0x10f41f0
push esi
call fcn.010bcafa
add esp, 0xc
test eax, eax
je 0x10bb24f
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.010b7176
add esp, 0x14
mov byte [0x10f430d], bl
push 0x104
mov ebx, 0x10f4209
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x10bb292
push 0x10308bc
push 0x2fb
push ebx
call fcn.010bcafa
add esp, 0xc
test eax, eax
je 0x10bb292
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.010b7176
add esp, 0x14
push ebx
push edi
push esi
call fcn.010c5502
add esp, 0xc
xor ebx, ebx
test eax, eax
je 0x10bb2b0
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.010b7176
add esp, 0x14
push 0x10308b8
push edi
push esi
call fcn.010c5502
add esp, 0xc
test eax, eax
je 0x10bb2d0
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.010b7176
add esp, 0x14
mov eax, dword [ebp - 4]
push dword [eax*8 + 0x10f1ba4]
push edi
push esi
call fcn.010c5502
add esp, 0xc
test eax, eax
je 0x10bb2f5
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.010b7176
add esp, 0x14
push 0x12010
push 0x1030890
push esi
call fcn.010c66de
add esp, 0xc
jmp 0x10bb340
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov edi, eax
cmp edi, ebx
je 0x10bb340
cmp edi, 0xffffffff
je 0x10bb340
mov edx, dword [esi*8 + 0x10f1ba4]
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10bb329
push ebx
lea eax, [ebp - 8]
push eax
sub ecx, esi
push ecx
push edx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10bb955
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x10f4714]
push ebx
push esi
xor ebx, ebx
xor esi, esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov dword [ebp - 4], ebx
cmp eax, ebx
jne 0x10bb9a4
call edi
mov esi, eax
cmp esi, ebx
je 0x10bb98a
mov dword [0x10f4714], 1
jmp 0x10bb9a9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x10bb99f
push 2
pop eax
mov dword [0x10f4714], eax
jmp 0x10bb9a4
mov eax, dword [0x10f4714]
cmp eax, 1
jne 0x10bba04
cmp esi, ebx
jne 0x10bb9bc
call edi
mov esi, eax
cmp esi, ebx
jne 0x10bb9bc
xor eax, eax
jmp 0x10bbad5
mov eax, esi
cmp word [esi], bx
je 0x10bb9d1
inc eax
inc eax
cmp word [eax], bx
jne 0x10bb9c3
inc eax
inc eax
cmp word [eax], bx
jne 0x10bb9c3
sub eax, esi
inc eax
inc eax
push eax
mov dword [ebp - 4], eax
call fcn.010b8cbd
mov edi, eax
pop ecx
cmp edi, ebx
jne 0x10bb9f5
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
jmp 0x10bbad5
push dword [ebp - 4]
push esi
push edi
call fcn.010bc790
add esp, 0xc
jmp 0x10bb9e7
cmp eax, 2
je 0x10bba0d
cmp eax, ebx
jne 0x10bb9b5
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov esi, eax
mov dword [ebp - 8], esi
cmp esi, ebx
je 0x10bb9b5
cmp byte [esi], bl
je 0x10bba4e
push ebx
push ebx
push 0xffffffffffffffff
push esi
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, ebx
je 0x10bb9b5
add dword [ebp - 4], eax
mov eax, esi
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x10bba3a
sub eax, edi
lea esi, [esi + eax + 1]
cmp byte [esi], bl
jne 0x10bba20
mov esi, dword [ebp - 8]
inc dword [ebp - 4]
push 2
push dword [ebp - 4]
call fcn.010bee10
mov edi, eax
pop ecx
pop ecx
mov dword [ebp - 0xc], edi
cmp edi, ebx
jne 0x10bba72
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
jmp 0x10bb9b5
mov eax, dword [ebp - 8]
cmp byte [eax], bl
je 0x10bbac4
mov ecx, dword [ebp - 4]
mov eax, edi
sub eax, dword [ebp - 0xc]
sar eax, 1
sub ecx, eax
push ecx
push edi
push 0xffffffffffffffff
push esi
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x10bbada
mov eax, esi
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x10bba9c
sub eax, ecx
lea esi, [esi + eax + 1]
mov eax, edi
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
cmp dx, bx
jne 0x10bbaae
sub eax, ecx
sar eax, 1
lea edi, [edi + eax*2 + 2]
cmp byte [esi], bl
jne 0x10bba79
push dword [ebp - 8]
xor eax, eax
mov word [edi], ax
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret
push dword [ebp - 0xc]
call fcn.010b70e3
pop ecx
push dword [ebp - 8]
jmp 0x10bba67
Function at 0x10bbaf0
Capabilities:
Accept command line arguments

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x10f4718]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetCommandLineW]
test eax, eax
jne 0x10bbb34
call esi
test eax, eax
je 0x10bbb19
mov dword [0x10f4718], 1
jmp 0x10bbb39
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x10bbb30
mov dword [0x10f4718], 2
jmp 0x10bbb42
xor eax, eax
jmp 0x10bbb98
cmp eax, 1
jne 0x10bbb3d
call esi
jmp 0x10bbb98
cmp eax, 2
jne 0x10bbb30
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov esi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0
push 0
push 0xffffffffffffffff
push eax
push 1
push 0
mov dword [ebp - 8], eax
call esi
mov edi, eax
test edi, edi
je 0x10bbb95
push 2
push edi
call fcn.010bee10
pop ecx
pop ecx
mov dword [ebp - 4], eax
test eax, eax
je 0x10bbb95
push edi
push eax
push 0xffffffffffffffff
push dword [ebp - 8]
push 1
push 0
call esi
test eax, eax
je 0x10bbb8c
mov eax, dword [ebp - 4]
jmp 0x10bbb97
push dword [ebp - 4]
call fcn.010b70e3
pop ecx
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x10bc219
Capabilities:
Allocate thread local storage
Set thread local storage value

Disassembly:
mov edi, edi
push ebx
push esi
push edi
push 0x1030900
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edi, eax
xor ebx, ebx
cmp edi, ebx
je 0x10bc26b
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x103096c
push edi
call esi
push 0x1030960
push edi
mov dword [0x10f471c], eax
call esi
push 0x1030954
push edi
mov dword [0x10f4720], eax
call esi
push 0x103094c
push edi
mov dword [0x10f4724], eax
call esi
mov dword [0x10f4728], eax
mov esi, dword [sym.imp.KERNEL32.dll_TlsSetValue]
cmp dword [0x10f471c], ebx
je 0x10bc291
cmp dword [0x10f4720], ebx
je 0x10bc291
cmp dword [0x10f4724], ebx
je 0x10bc291
cmp dword [0x10f4728], ebx
jne 0x10bc2b5
mov eax, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [0x10f4720], eax
mov eax, dword [sym.imp.KERNEL32.dll_TlsFree]
mov dword [0x10f471c], 0x10bbedd
mov dword [0x10f4724], esi
mov dword [0x10f4728], eax
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x10f1d04], eax
cmp eax, 0xffffffff
je 0x10bc328
push dword [0x10f4720]
push eax
call esi
test eax, eax
je 0x10bc328
call fcn.010bb179
push dword [0x10f471c]
call fcn.010bbddf
push dword [0x10f4720]
mov dword [0x10f471c], eax
call fcn.010bbddf
push dword [0x10f4724]
mov dword [0x10f4720], eax
call fcn.010bbddf
push dword [0x10f4728]
mov dword [0x10f4724], eax
call fcn.010bbddf
add esp, 0x10
mov dword [0x10f4728], eax
call fcn.010bdd52
test eax, eax
jne 0x10bc32e
call fcn.010bbf1a
xor eax, eax
pop edi
pop esi
pop ebx
ret
push 0x10bc0c9
push dword [0x10f471c]
call fcn.010bbe65
pop ecx
call eax
mov dword [0x10f1d08], eax
cmp eax, 0xffffffff
je 0x10bc323
push 0x214
push 1
call fcn.010c68d5
mov esi, eax
pop ecx
pop ecx
cmp esi, ebx
je 0x10bc323
push esi
push dword [0x10f1d08]
push dword [0x10f4724]
call fcn.010bbe65
pop ecx
call eax
test eax, eax
jne 0x10bc381
push esi
call fcn.010b70e3
pop ecx
jmp 0x10bc323
push ebx
push esi
call fcn.010bbf5c
or dword [esi + 4], 0xffffffff
pop ecx
xor eax, eax
pop ecx
inc eax
jmp 0x10bc32a