joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100a43c0
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 0x100a445d
push ebx
push esi
call fcn.100a4389
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.100a141d
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x100a440a
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x100a445c
push edi
push eax
call fcn.1009cadf
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x100a442a
call fcn.1009caa5
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x100a445b
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.100a141d
add esp, 0x20
test eax, eax
jne 0x100a4449
push edi
call fcn.1009caa5
jmp 0x100a4451
push ebx
call fcn.1009caa5
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 0x100a4460
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x100a4471
pop esi
ret
push ebx
push edi
push esi
call fcn.100a4389
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.1009cadf
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x100a4499
push ebx
push esi
push edi
call fcn.100812b0
add esp, 0xc
push 0
call fcn.1009caa5
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x100a4869
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.100a44ae

Function at 0x100a7dc5
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.1009b095
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 0x100a7e34
cmp esi, dword [ebp - 4]
je 0x100a7e2f
cmp dword [ebp + 0xc], 0
je 0x100a7e2f
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x100a7e0c
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.100a7917
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x100a7e36
xor eax, eax
inc eax
jmp 0x100a7e36
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x100a7e9b
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x100e6a38]
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.1009b095
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.1009b095
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 0x100a7f12
cmp word [ecx], dx
je 0x100a7f12
mov eax, dword [0x100cfeb4]
push edi
dec eax
push eax
push 0x100cfda0
call fcn.100a7e3a
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x100a7f85
cmp word [eax], dx
je 0x100a7f85
mov eax, dword [edi]
test eax, eax
je 0x100a7f36
cmp word [eax], dx
je 0x100a7f36
lea eax, [ebp - 0x10]
push eax
call fcn.100a781d
jmp 0x100a7f3f
lea eax, [ebp - 0x10]
push eax
call fcn.100a78b8
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x100a7faf
mov eax, dword [0x100cfd9c]
push dword [ebp - 0x14]
dec eax
push eax
push 0x100cfa90
call fcn.100a7e3a
add esp, 0xc
test al, al
je 0x100a7faf
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x100a7f7a
cmp word [eax], di
je 0x100a7f7a
lea eax, [ebp - 0x10]
push eax
call fcn.100a781d
pop ecx
jmp 0x100a7fb1
lea eax, [ebp - 0x10]
push eax
call fcn.100a78b8
jmp 0x100a7f77
mov eax, dword [edi]
test eax, eax
je 0x100a7f9c
cmp word [eax], dx
je 0x100a7f9c
lea eax, [ebp - 0x10]
push eax
call fcn.100a77d2
pop ecx
jmp 0x100a7faf
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 0x100a807a
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.100a7cbf
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x100a807a
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x100a807a
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x100a807a
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x100a8007
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.1009ea75
test ebx, ebx
je 0x100a8075
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.1009ea75
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x100a807a
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 0x100a807a
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.100aaea8
add esp, 0x10
xor eax, eax
inc eax
jmp 0x100a807c
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1003b512
leave
ret
Function at 0x100abea0
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2ec
mov eax, dword [0x100e6a38]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x2ec], ebx
push edi
test ebx, ebx
je 0x100ac0a4
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x100ac0a4
push esi
push 0x64
lea eax, [ebp - 0x68]
push 0
push eax
call fcn.10081db0
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [ebp - 0x2d8]
add esp, 0xc
push eax
push 8
push 0
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionNetworkCards
push 0x80000002
call esi
test eax, eax
jne 0x100ac079
xor edi, edi
mov dword [ebp - 0x2dc], 0x104
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x2dc]
push eax
lea eax, [ebp - 0x1d0]
push eax
push edi
push dword [ebp - 0x2d8]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x100ac068
lea eax, [ebp - 0x2e0]
push eax
push 1
push 0
lea eax, [ebp - 0x1d0]
push eax
push dword [ebp - 0x2d8]
call esi
test eax, eax
jne 0x100ac032
lea eax, [ebp - 0x2e4]
mov dword [ebp - 0x2e8], 1
push eax
lea eax, [ebp - 0x2d4]
mov dword [ebp - 0x2e4], 0x104
push eax
lea eax, [ebp - 0x2e8]
push eax
push 0
push str.ServiceName
push dword [ebp - 0x2e0]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x100ac02a
push 0x64
push eax
lea eax, [ebp - 0xcc]
push eax
call fcn.10081db0
push 0x64
lea eax, [ebp - 0xcc]
push eax
lea eax, [ebp - 0x2d4]
push eax
call fcn.100ac0c0
add esp, 0x18
test eax, eax
je 0x100ac02a
cmp byte [ebp - 0x68], 0
je 0x100abfec
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0xcc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jns 0x100ac02a
lea ecx, [ebp - 0x68]
mov edx, 0x64
lea esi, [ebp - 0xcc]
mov eax, ecx
sub esi, eax
nop
lea eax, [edx + 0x7fffff9a]
test eax, eax
je 0x100ac019
mov al, byte [esi + ecx]
test al, al
je 0x100ac019
mov byte [ecx], al
inc ecx
sub edx, 1
jne 0x100ac000
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [ecx - 1]
test edx, edx
cmovne eax, ecx
mov byte [eax], 0
push dword [ebp - 0x2e0]
call ebx
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x2dc]
mov dword [ebp - 0x2dc], 0x104
push eax
lea eax, [ebp - 0x1d0]
inc edi
push eax
push edi
push dword [ebp - 0x2d8]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
je 0x100abf40
push dword [ebp - 0x2d8]
call ebx
mov ebx, dword [ebp - 0x2ec]
mov edi, dword [ebp + 0xc]
cmp byte [ebp - 0x68], 0
pop esi
je 0x100ac0a4
lea eax, [ebp - 0x68]
push eax
push edi
push ebx
call fcn.100ad090
xor ecx, ecx
test eax, eax
pop edi
setns cl
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003b512
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop ebx
call fcn.1003b512
mov esp, ebp
pop ebp
ret
Function at 0x100ac1e0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50c
mov eax, dword [0x100e6a38]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x100ac35f
cmp dword [ebp + 0xc], 0x20
jb 0x100ac35f
push 0x400
lea eax, [ebp - 0x504]
mov dword [ebp - 0x50c], 1
push 0
push eax
mov dword [ebp - 0x508], 0x400
call fcn.10081db0
add esp, 0xc
lea eax, [ebp - 0x508]
push eax
lea eax, [ebp - 0x504]
push eax
lea eax, [ebp - 0x50c]
push eax
push 0x100d21a0
push str.SoftwareComMaster
push 0x80000002
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
test eax, eax
jne 0x100ac35f
lea ecx, [ebp - 0x504]
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100ac270
sub ecx, edx
cmp ecx, 0x40
jne 0x100ac35f
lea edx, [ecx + 0x40]
push esi
lea ecx, [ebp - 0x84]
lea esi, [ebp - 0x504]
mov eax, ecx
sub esi, eax
lea eax, [edx - 0x60]
test eax, eax
je 0x100ac2ac
mov al, byte [esi + ecx]
test al, al
je 0x100ac2ac
mov byte [ecx], al
inc ecx
sub edx, 1
jne 0x100ac296
test edx, edx
lea eax, [ecx - 1]
lea esi, [ebp - 0x4e4]
mov edx, 0x80
cmovne eax, ecx
lea ecx, [ebp - 0x104]
mov byte [eax], 0
mov eax, ecx
sub esi, eax
nop dword [eax]
lea eax, [edx + 0x7fffff7e]
test eax, eax
je 0x100ac2e9
mov al, byte [esi + ecx]
test al, al
je 0x100ac2e9
mov byte [ecx], al
inc ecx
sub edx, 1
jne 0x100ac2d0
test edx, edx
lea eax, [ecx - 1]
push 0x400
cmovne eax, ecx
push 0
mov byte [eax], 0
lea eax, [ebp - 0x504]
push eax
call fcn.10081db0
push 0x400
lea eax, [ebp - 0x504]
push eax
lea eax, [ebp - 0x84]
push eax
call fcn.100ac370
add esp, 0x18
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x504]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
pop esi
test eax, eax
jne 0x100ac35f
lea eax, [ebp - 0x84]
push eax
push dword [ebp + 0xc]
push edi
call fcn.100ad090
neg eax
pop edi
sbb eax, eax
inc eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003b512
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop edi
call fcn.1003b512
mov esp, ebp
pop ebp
ret
Function at 0x100acc30
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2c10
call fcn.1003c640
mov eax, dword [0x100e6a38]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x2c10], eax
test eax, eax
je 0x100acd9d
cmp dword [ebp + 0xc], 0
je 0x100acd9d
push ebx
push esi
xor ebx, ebx
xor esi, esi
push edi
nop dword [eax]
push esi
push str..PhysicalDrive_d
lea eax, [ebp - 0x104]
push 0x100
push eax
call fcn.10042640
add esp, 0x10
lea eax, [ebp - 0x104]
push 0
push 0
push 3
push 0
push 3
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x100acd80
push 0x2710
xorps xmm0, xmm0
mov dword [ebp - 0x2c0c], 0
lea eax, [ebp - 0x2bfc]
movq qword [ebp - 0x2c08], xmm0
push 0
push eax
mov dword [ebp - 0x2c00], 0
mov dword [ebp - 0x2c08], 0
mov dword [ebp - 0x2c04], 0
call fcn.10081db0
add esp, 0xc
lea eax, [ebp - 0x2c0c]
push 0
push eax
push 0x2710
lea eax, [ebp - 0x2bfc]
push eax
push 0xc
lea eax, [ebp - 0x2c08]
push eax
push 0x2d1400
push edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x100acd75
push 0x3e8
lea eax, [ebp - 0x4ec]
push 0
push eax
call fcn.10081db0
lea eax, [ebp - 0x4ec]
push eax
push 1
push dword [ebp - 0x2be4]
lea eax, [ebp - 0x2bfc]
push eax
call fcn.100ad600
add esp, 0x1c
lea eax, [ebp - 0x4ec]
push eax
push dword [ebp + 0xc]
push dword [ebp - 0x2c10]
call fcn.100ad090
test eax, eax
mov eax, 1
cmove ebx, eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
jne 0x100acd8a
inc esi
cmp esi, 0x10
jl 0x100acc70
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003b512
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.1003b512
mov esp, ebp
pop ebp
ret
Function at 0x100acdb0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x100e6a38]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
test ebx, ebx
je 0x100ace98
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.10081db0
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov edx, eax
test edx, edx
je 0x100ace98
mov ecx, ebx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100ace07
sub ecx, esi
mov eax, 0x103
sar ecx, 1
sub eax, ecx
cmp edx, eax
jae 0x100ace98
push edi
lea edi, [ebp - 0x20c]
add edi, 0xfffffffe
nop dword [eax + eax]
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x100ace30
mov eax, dword [0x100c4cb0]
mov esi, ebx
mov dword [edi], eax
mov ax, word [ebx]
add ebx, 2
test ax, ax
jne 0x100ace45
lea edi, [ebp - 0x20c]
sub ebx, esi
add edi, 0xfffffffe
nop dword [eax + eax]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x100ace60
mov ecx, ebx
lea eax, [ebp - 0x20c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003b512
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop esi
xor ecx, ebp
pop ebx
call fcn.1003b512
mov esp, ebp
pop ebp
ret
Function at 0x100aceb0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x290
mov eax, dword [0x100e6a38]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x84]
push edi
push 0x80
push 0
push eax
call fcn.10081db0
push 0x80
lea eax, [ebp - 0x84]
push eax
push esi
call fcn.100ac370
lea ecx, [ebp - 0x188]
mov edi, esi
mov eax, ecx
add esp, 0x18
mov edx, 0x104
sub edi, eax
lea eax, [edx + 0x7ffffefa]
test eax, eax
je 0x100acf1a
mov al, byte [edi + ecx]
test al, al
je 0x100acf1a
mov byte [ecx], al
inc ecx
sub edx, 1
jne 0x100acf01
lea eax, [ecx - 1]
test edx, edx
cmovne eax, ecx
mov ecx, 0x104
mov byte [eax], 0
lea eax, [ebp - 0x188]
cmp byte [eax], 0
je 0x100acf3b
inc eax
sub ecx, 1
jne 0x100acf30
mov edx, 0x104
mov edi, ecx
mov eax, edx
sub eax, ecx
neg edi
sbb edi, edi
and edi, eax
test ecx, ecx
je 0x100acf90
lea ecx, [ebp - 0x188]
lea ecx, [ecx + edi]
sub edx, edi
je 0x100acf85
lea edi, [ebp - 0x84]
mov eax, 0x7fffffff
sub edi, ecx
push ebx
nop dword [eax + eax]
test eax, eax
je 0x100acf84
mov bl, byte [edi + ecx]
test bl, bl
je 0x100acf84
mov byte [ecx], bl
dec eax
inc ecx
sub edx, 1
jne 0x100acf70
pop ebx
test edx, edx
lea eax, [ecx - 1]
cmovne eax, ecx
mov byte [eax], 0
push 0x100
lea eax, [ebp - 0x288]
mov dword [ebp - 0x290], 1
push 0
push eax
call fcn.10081db0
add esp, 0xc
mov dword [ebp - 0x28c], 0x100
lea eax, [ebp - 0x28c]
push eax
lea eax, [ebp - 0x288]
push eax
lea eax, [ebp - 0x290]
push eax
push 0x100d21a0
push str.SoftwareComMaster
push 0x80000002
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
mov edi, dword [sym.imp.SHLWAPI.dll_SHSetValueA]
test eax, eax
jne 0x100ad04a
lea eax, [ebp - 0x288]
mov cl, byte [eax]
cmp cl, byte [esi]
jne 0x100ad014
test cl, cl
je 0x100ad010
mov cl, byte [eax + 1]
cmp cl, byte [esi + 1]
jne 0x100ad014
add eax, 2
add esi, 2
test cl, cl
jne 0x100acff4
xor eax, eax
jmp 0x100ad019
sbb eax, eax
or eax, 1
test eax, eax
je 0x100ad04a
lea ecx, [ebp - 0x288]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100ad026
sub ecx, edx
lea eax, [ebp - 0x288]
push ecx
push eax
push 1
push str.mid_old
push str.SoftwareComMaster
push 0x80000002
call edi
lea ecx, [ebp - 0x188]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100ad053
sub ecx, edx
lea eax, [ebp - 0x188]
push ecx
push eax
push 1
push 0x100d21a0
push str.SoftwareComMaster
push 0x80000002
call edi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.1003b512
mov esp, ebp
pop ebp
ret
Function at 0x100b001b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.1003c640
mov eax, dword [0x100e6a38]
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.10094edb
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x100b005d
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x100b01b9
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.100aeb60
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 + 0x100ee0a0]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.100921aa
mov ecx, dword [esi*4 + 0x100ee0a0]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x100b01b2
cmp eax, dword [ecx + edi + 0x24]
jne 0x100b01b2
push 0
lea eax, [ebp - 0x1014]
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 0x100b01b2
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.100921aa
add esp, 0x14
test edx, edx
jl 0x100b01b2
jg 0x100b0128
test eax, eax
jb 0x100b01b2
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x100b01b2
jl 0x100b0142
cmp dword [ebp - 0x1008], eax
ja 0x100b01b2
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x100b0160
test ebx, ebx
je 0x100b0199
cmp ecx, edi
jae 0x100b0199
mov al, byte [ecx]
cmp al, 0xd
jne 0x100b017a
lea eax, [edi - 1]
cmp ecx, eax
jae 0x100b0186
cmp byte [ecx + 1], 0xa
jne 0x100b0186
inc ecx
jmp 0x100b0186
movzx eax, al
movsx eax, byte [eax + 0x100e7408]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x100b0160
cmp edx, ebx
jne 0x100b0160
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x100b01b7
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.1003b512
leave
ret
Function at 0x403320
Capabilities:
Enumerate gui resources

Disassembly:
mov eax, dword [0x4d7e7c]
mov ecx, dword [0x4d4d84]
sub esp, 0x424
push ebx
push ebp
shr eax, 3
push esi
push edi
test eax, eax
jbe 0x40341a
mov esi, dword [sym.imp.KERNEL32.dll_SetHandleCount]
mov edi, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
mov ebx, dword [sym.imp.KERNEL32.dll_WriteProfileSectionA]
mov ebp, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], eax
cmp dword [0x4d7e7c], 0x959
jne 0x403400
push 0
call esi
push 0
lea eax, [esp + 0x34]
push eax
push 0x402d6c
call edi
push 0
push 0
call ebx
push 0
call ebp
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumCalendarInfoExA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumSystemLocalesA]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_AddConsoleAliasA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_HeapWalk]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumResourceTypesW]
xor eax, eax
lea ecx, [esp + 0x1c]
push ecx
push eax
push eax
push eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
call dword [sym.imp.KERNEL32.dll_PostQueuedCompletionStatus]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_BeginUpdateResourceA]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_OpenEventW]
mov edx, dword [esp + 0x14]
push edx
call fcn.00403180
add dword [esp + 0x14], 8
sub dword [esp + 0x18], 1
jne 0x403360
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x424
ret
Function at 0x4099de
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x462874]
jne 0x4099e8
repz ret
jmp fcn.0040dbc2

Function at 0x40d87a
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004093e5
and dword [ebp - 4], 0
cmp dword [0x46d924], 0
mov ebx, eax
jne 0x40d92b
push 0x402364
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40d9dc
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x402358
push edi
call esi
test eax, eax
je 0x40d9dc
push eax
call fcn.00409373
mov dword [esp], 0x402348
push edi
mov dword [0x46d924], eax
call esi
push eax
call fcn.00409373
mov dword [esp], 0x402334
push edi
mov dword [0x46d928], eax
call esi
push eax
call fcn.00409373
mov dword [esp], 0x402318
push edi
mov dword [0x46d92c], eax
call esi
push eax
call fcn.00409373
pop ecx
mov dword [0x46d934], eax
test eax, eax
je 0x40d92b
push 0x402300
push edi
call esi
push eax
call fcn.00409373
pop ecx
mov dword [0x46d930], eax
mov eax, dword [0x46d930]
cmp eax, ebx
je 0x40d983
cmp dword [0x46d934], ebx
je 0x40d983
push eax
call fcn.004093ee
push dword [0x46d934]
mov esi, eax
call fcn.004093ee
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40d983
test edi, edi
je 0x40d983
call esi
test eax, eax
je 0x40d97a
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40d97a
test byte [ebp - 0xc], 1
jne 0x40d983
or dword [ebp + 0x10], 0x200000
jmp 0x40d9bc
mov eax, dword [0x46d928]
cmp eax, ebx
je 0x40d9bc
push eax
call fcn.004093ee
pop ecx
test eax, eax
je 0x40d9bc
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40d9bc
mov eax, dword [0x46d92c]
cmp eax, ebx
je 0x40d9bc
push eax
call fcn.004093ee
pop ecx
test eax, eax
je 0x40d9bc
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x46d924]
call fcn.004093ee
pop ecx
test eax, eax
je 0x40d9dc
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40d9de
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x6867d4da
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x68d34018]
movzx eax, word [eax + 0x14]
movzx eax, ax
mov edx, dword [0x68d34018]
add eax, edx
add eax, 0x18
mov dword [ebp - 0xc], eax
jmp 0x6867d5d1
jmp 0x6867d6a8
jmp 0x6867d77f
jmp 0x6867d856
jmp 0x6867d92d
jmp 0x6867da04
jmp 0x6867dadb
jmp 0x6867dbb2
jmp 0x6867dc89
jmp 0x6867dd60
jmp 0x6867de37
jmp 0x6867df0e
jmp 0x6867dfe5
jmp 0x6867e0bc
jmp 0x6867e193
jmp 0x6867e26a
jmp 0x6867e341
mov dword [ebp - 0x14], 0
jmp 0x6867e41f
jmp 0x6867e4f6
jmp 0x6867e5cd
jmp 0x6867e6a4
jmp 0x6867e77b
jmp 0x6867e852
jmp 0x6867e929
jmp 0x6867ea00
jmp 0x6867ead7
jmp 0x6867ebae
jmp 0x6867ec85
jmp 0x6867ed5c
jmp 0x6867ee33
jmp 0x6867ef0a
jmp 0x6867efe1
jmp 0x6867f0b8
jmp 0x6867f18f
mov dword [ebp - 0x18], 0