joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401cc0
Capabilities:
Accept command line arguments
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x4560c0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
xor ecx, ecx
mov bl, byte [eax]
cmp bl, 0x22
sete cl
inc eax
lea ecx, [ecx*2 + 0x20]
push ecx
push eax
call fcn.004048a0
add esp, 8
test eax, eax
je 0x401df1
cmp bl, 0x22
lea ecx, [eax + 1]
cmovne ecx, eax
cmp byte [ecx], 0
je 0x401df1
lea edi, [ecx + 1]
mov byte [ecx], 0
push 0x20
push edi
call fcn.004048a0
mov esi, eax
add esp, 8
test esi, esi
je 0x401df1
mov byte [esi], 0
inc esi
push esi
call fcn.00410270
mov dword [0x456010], eax
add esp, 4
dec eax
cmp eax, 0x3ff
ja 0x401df1
push 0x20
push esi
call fcn.004048a0
mov esi, eax
add esp, 8
test esi, esi
je 0x401df1
mov byte [esi], 0
inc esi
push esi
call fcn.00410270
mov dword [0x45600c], eax
add esp, 4
dec eax
cmp eax, 0x3ff
ja 0x401df1
push 0x20
push esi
call fcn.004048a0
mov esi, eax
add esp, 8
test esi, esi
je 0x401df1
mov byte [esi], 0
xorps xmm0, xmm0
mov eax, 2
movlpd qword [ebp - 0xc], xmm0
push 0x7f000001
mov word [ebp - 0x14], ax
call sub.WSOCK32.dll_htonl
push edi
mov dword [ebp - 0x10], eax
call fcn.00410270
add esp, 4
push eax
call sub.WSOCK32.dll_htons
push 6
push 1
push 2
mov word [ebp - 0x12], ax
call sub.WSOCK32.dll_socket
push 0x10
lea ecx, [ebp - 0x14]
mov dword [0x456004], eax
push ecx
push eax
call sub.WSOCK32.dll_connect
test eax, eax
je 0x401e04
push dword [0x456004]
call sub.WSOCK32.dll_closesocket
mov dword [0x456004], 1
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00402c1e
mov esp, ebp
pop ebp
ret
lea eax, [esi + 1]
mov ecx, 0x456b38
push eax
call fcn.004010d0
mov ecx, 0x456b38
call fcn.00401380
test eax, eax
je 0x401df1
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00402c1e
mov esp, ebp
pop ebp
ret
Function at 0x401e40
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44ba8d
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push esi
mov eax, dword [0x4560c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [0x456004], 0xffffffff
je 0x401fbc
lea ecx, [ebp - 0x24]
call fcn.00401080
push 4
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x24]
call fcn.00401140
push 0xfffffffffffffffe
lea ecx, [ebp - 0x24]
call fcn.004013f0
push str.Error:
lea ecx, [ebp - 0x24]
call fcn.004013a0
lea ecx, [ebp - 0x24]
call fcn.00401380
mov ecx, dword [ebp - 0x10]
push 0
mov dword [ecx], eax
lea ecx, [ebp - 0x24]
call fcn.00401380
push eax
lea ecx, [ebp - 0x24]
call fcn.00401390
push eax
push dword [0x456004]
call sub.WSOCK32.dll_send
lea ecx, [ebp - 0x24]
call fcn.004011e0
mov esi, dword [ebp + 8]
test esi, esi
je 0x401f37
push 4
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x24]
call fcn.00401140
push 0xfffffffffffffffe
lea ecx, [ebp - 0x24]
call fcn.004013f0
push esi
lea ecx, [ebp - 0x24]
call fcn.004013a0
lea ecx, [ebp - 0x24]
call fcn.00401380
mov ecx, dword [ebp - 0x10]
push 0
mov dword [ecx], eax
lea ecx, [ebp - 0x24]
call fcn.00401380
push eax
lea ecx, [ebp - 0x24]
call fcn.00401390
push eax
push dword [0x456004]
call sub.WSOCK32.dll_send
lea ecx, [ebp - 0x24]
call fcn.004011e0
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x401fb4
push 0
push 0
lea ecx, [ebp - 0x14]
push ecx
push 0x400
push eax
push 0
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
mov esi, eax
lea ecx, [ebp - 0x24]
push 4
lea eax, [ebp - 0x10]
push eax
call fcn.00401140
push 0xfffffffffffffffe
lea ecx, [ebp - 0x24]
call fcn.004013f0
push esi
push dword [ebp - 0x14]
lea ecx, [ebp - 0x24]
call fcn.00401420
lea ecx, [ebp - 0x24]
call fcn.00401380
mov ecx, dword [ebp - 0x10]
push 0
mov dword [ecx], eax
lea ecx, [ebp - 0x24]
call fcn.00401380
push eax
lea ecx, [ebp - 0x24]
call fcn.00401390
push eax
push dword [0x456004]
call sub.WSOCK32.dll_send
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_LocalFree]
lea ecx, [ebp - 0x24]
call fcn.004010b0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40325c
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40329b
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40329b
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40329b
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40329b
cmp dword [ecx + 0x74], 0xe
jbe 0x40329b
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x4303b4
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x4560c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x4303ff
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.004307ca
test al, al
jne 0x4303f9
sub edx, 2
cmp edx, edi
jne 0x4303df
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x430421
lea eax, [edi + 2]
cmp edx, eax
je 0x430421
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0043007b
add esp, 0x10
jmp 0x43051b
push esi
lea ecx, [ebp - 0x255]
call fcn.004307ca
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x430464
push dword [ebp - 0x25c]
jmp 0x430411
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x4304a1
cmp word [ebp - 0x226], 0
je 0x4304c2
cmp word [ebp - 0x226], ax
jne 0x4304a1
cmp word [ebp - 0x224], 0
je 0x4304c2
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0043007b
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x43050e
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x43047b
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x4304f6
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x43051b
push 0x42facb
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.0043b1f0
add esp, 0x10
jmp 0x4304eb
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00402c1e
leave
ret
Function at 0x431eaa
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 0x431f47
push ebx
push esi
call fcn.00431e66
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.00431d58
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x431ef4
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x431f46
push edi
push eax
call fcn.0042e312
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x431f14
call fcn.0042e2d8
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x431f45
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00431d58
add esp, 0x20
test eax, eax
jne 0x431f33
push edi
call fcn.0042e2d8
jmp 0x431f3b
push ebx
call fcn.0042e2d8
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 0x431f4a
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x431f5b
pop esi
ret
push ebx
push edi
push esi
call fcn.00431e66
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.0042e312
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x431f83
push ebx
push esi
push edi
call fcn.00403c40
add esp, 0xc
push 0
call fcn.0042e2d8
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x432864
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004321f6

Function at 0x43322c
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x44f134
push 0x44f12c
push str.FlsAlloc
push 0x1e
call fcn.00432efc
mov esi, eax
add esp, 0x10
test esi, esi
je 0x433260
push dword [ebp + 8]
mov ecx, esi
call dword [0x44c1f4]
call esi
jmp 0x433266
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4332aa
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x44f144
push 0x44f13c
push str.FlsGetValue
push 0x20
call fcn.00432efc
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4332e1
push dword [ebp + 8]
mov ecx, esi
call dword [0x44c1f4]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x43500e
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00434ee2
Function at 0x4430fb
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 + 0x457ba0]
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 0x44313b
cmp byte [ebx], 0xa
jne 0x44313b
or byte [eax + edi + 0x28], 4
jmp 0x443140
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x44323e
mov al, byte [edx]
cmp al, 0x1a
je 0x443220
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x44316f
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x443194
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x44319e
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 0x443151
jmp 0x44323e
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 0x44321b
cmp dword [ebp - 0xc], 0
je 0x44321b
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x457ba0]
test byte [eax + edi + 0x28], 0x48
je 0x4431f5
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4431e0
mov byte [esi], dl
jmp 0x4431f1
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x457ba0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x44323e
cmp byte [ebp - 1], 0xa
jne 0x443204
cmp esi, ebx
jne 0x443204
mov byte [esi], 0xa
jmp 0x44323d
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00442f4d
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x44323e
mov byte [esi], 0xd
jmp 0x44323d
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x457ba0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x44323a
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x44323e
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x443247
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 + 0x457ba0]
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 0x44328a
cmp word [esi], dx
jne 0x44328a
or byte [edi + eax + 0x28], 4
jmp 0x44328f
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 0x4433e2
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 0x4433c2
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x4432d1
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x443307
cmp eax, edx
jae 0x443313
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 0x4432a9
jmp 0x4433e2
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 0x4433be
cmp dword [ebp - 0x14], 0
je 0x4433be
mov eax, dword [ebx*4 + 0x457ba0]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x443396
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x44335f
mov word [esi], cx
jmp 0x443392
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x457ba0]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x457ba0]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x457ba0]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x4433e2
pop ebx
cmp word [ebp - 4], bx
jne 0x4433a7
cmp esi, dword [ebp + 0xc]
jne 0x4433a7
mov word [esi], bx
jmp 0x4433df
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00442f4d
add esp, 0x10
cmp word [ebp - 4], bx
je 0x4433e2
push 0xd
jmp 0x4433db
mov ecx, dword [ebx*4 + 0x457ba0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4433d9
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4433e2
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 0x12c8fa9
Capabilities:
Accept command line arguments

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push esi
push edi
xor esi, esi
mov dword [ebp - 0x10], ecx
push esi
call dword [sym.imp.OLE32.dll_CoInitialize]
mov edi, eax
test edi, edi
jns 0x12c8fd2
call fcn.012d5541
xor eax, eax
inc eax
jmp 0x12c917c
cmp byte [0x12d8489], 0
push ebx
je 0x12c9040
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov dword [ebp - 4], eax
push 2
pop edx
test eax, eax
je 0x12c9001
mov ecx, eax
lea ebx, [ecx + 2]
mov ax, word [ecx]
add ecx, edx
cmp ax, si
jne 0x12c8ff1
sub ecx, ebx
sar ecx, 1
jmp 0x12c9003
mov ecx, esi
lea eax, [ecx + 1]
xor ecx, ecx
mov dword [ebp - 0xc], eax
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.012d79f2
mov ebx, eax
mov dword [ebp - 8], ebx
pop ecx
test ebx, ebx
jne 0x12c902e
mov edi, 0x8007000e
jmp 0x12c9167
push dword [ebp - 4]
push dword [ebp - 0xc]
push ebx
call dword [sym.imp.msvcrt.dll_wcscpy_s]
add esp, 0xc
jmp 0x12c9088
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push esi
push esi
push 0xffffffffffffffff
push eax
push esi
push esi
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
xor ecx, ecx
mov dword [ebp - 0xc], eax
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.012d79f2
mov ebx, eax
mov dword [ebp - 8], eax
pop ecx
test ebx, ebx
je 0x12c9024
push dword [ebp - 0xc]
push ebx
push 0xffffffffffffffff
push dword [ebp - 4]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
xor edx, edx
mov ecx, ebx
call fcn.012d4f18
xor ecx, ecx
inc eax
push 4
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.012d79f2
mov dword [ebp - 4], eax
pop ecx
test eax, eax
jne 0x12c90b8
mov edi, 0x8007000e
jmp 0x12c9160
mov edx, eax
mov ecx, ebx
call fcn.012d4f18
mov ecx, eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x14], ecx
mov dword [eax + ecx*4], esi
cmp ecx, 2
jne 0x12c914a
mov ebx, dword [eax + 4]
mov dword [ebp - 0xc], 0x2d
movzx edx, word [ebx]
cmp word [ebp - 0xc], dx
je 0x12c90f1
mov dword [ebp - 0xc], 0x2f
cmp word [ebp - 0xc], dx
jne 0x12c914a
add ebx, 2
mov edx, 0x12c3a90
push 0xffffffffffffffff
mov ecx, ebx
call fcn.012d4ff6
test eax, eax
jne 0x12c910f
call fcn.012c8150
mov edi, eax
jmp 0x12c9154
push 0xffffffffffffffff
mov edx, 0x12c3ab0
mov ecx, ebx
call fcn.012d4ff6
test eax, eax
jne 0x12c9128
call fcn.012c8967
jmp 0x12c910b
push 0xffffffffffffffff
mov edx, 0x12c3ad0
mov ecx, ebx
call fcn.012d4ff6
test eax, eax
jne 0x12c9144
mov ecx, dword [ebp - 0x10]
call fcn.012c803d
jmp 0x12c910b
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x14]
push eax
mov edx, ecx
call fcn.012c8f29
mov esi, eax
push dword [ebp - 4]
call fcn.012d7a1b
mov ebx, dword [ebp - 8]
pop ecx
push ebx
call fcn.012d7a1b
pop ecx
call dword [sym.imp.OLE32.dll_CoUninitialize]
call fcn.012d5541
pop ebx
test edi, edi
jns 0x12c917a
xor esi, esi
inc esi
mov eax, esi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x12ca44b
Capabilities:
Get file version info

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x12d8140]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov eax, edx
push esi
mov esi, ecx
mov dword [ebp - 0x14], eax
xor ecx, ecx
mov dword [eax], ecx
mov eax, dword [ebp + 8]
push edi
mov dword [eax], ecx
cmp byte [0x12d8489], cl
je 0x12ca4f7
lea eax, [ebp - 8]
push eax
push esi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov edi, eax
test edi, edi
jne 0x12ca49d
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x12ca4e1
movzx eax, ax
or eax, 0x80070000
jmp 0x12ca4e1
call fcn.012d7df0
mov ebx, esp
push ebx
push edi
push dword [ebp - 8]
push esi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x12ca489
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x12c3bd0
push ebx
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x12ca489
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x14]
mov eax, dword [ecx + 0x10]
mov dword [edx], eax
mov eax, dword [ecx + 0x14]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
xor eax, eax
lea esp, [ebp - 0x20]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.012d7a50
mov esp, ebp
pop ebp
ret 4
push ecx
push ecx
push ecx
push ecx
push 0xffffffffffffffff
push esi
push ecx
push ecx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ebx, eax
test ebx, ebx
je 0x12ca489
call fcn.012d7df0
mov edi, esp
test edi, edi
jne 0x12ca522
mov eax, 0x8007000e
jmp 0x12ca4e1
xor eax, eax
push eax
push eax
push ebx
push edi
push 0xffffffffffffffff
push esi
push eax
push eax
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
je 0x12ca489
lea eax, [ebp - 8]
push eax
push edi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeA]
mov esi, eax
test esi, esi
je 0x12ca489
call fcn.012d7df0
mov ebx, esp
push ebx
push esi
push dword [ebp - 8]
push edi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoA]
test eax, eax
je 0x12ca489
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x12c3bd4
push ebx
call dword [sym.imp.VERSION.dll_VerQueryValueA]
jmp 0x12ca4c8

Function at 0x12ca584
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20006
push 0
push edx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x12ca5e1
mov edx, dword [ebp + 0xc]
test edx, edx
je 0x12ca5bb
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x12ca5b0
sub ecx, esi
jmp 0x12ca5bd
xor ecx, ecx
lea eax, [ecx + 1]
push eax
push edx
push 1
push 0
push 0x12c3db0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jle 0x12ca5ec
movzx esi, si
or esi, 0x80070000
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x12ca77d
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x12d8140]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
cmp ecx, 0x43
je 0x12ca7ae
cmp ecx, 0x57
je 0x12ca7a7
mov eax, 0x80070057
jmp 0x12ca8dc
mov edi, 0x12c3c78
jmp 0x12ca7b3
mov edi, 0x12c3d58
push ebx
push esi
xor ecx, ecx
lea eax, [ebp - 0x210]
push ecx
push ecx
push ecx
push ecx
push eax
lea eax, [ebp - 0x108]
mov ebx, ecx
push eax
push ecx
jmp 0x12ca894
test eax, eax
jne 0x12ca8eb
cmp byte [ebp - 0x108], 0x2e
jne 0x12ca87e
lea eax, [ebp - 0x214]
push eax
push 0x20019
push 0
lea eax, [ebp - 0x108]
push eax
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x12ca8eb
lea eax, [ebp - 0x210]
mov dword [ebp - 0x210], 0x104
push eax
lea eax, [ebp - 0x20c]
push eax
push 0
push 0
push 0x12c3db0
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0x214]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x12ca87e
mov eax, dword [ebp - 0x210]
test eax, eax
je 0x12ca87e
dec eax
cmp eax, 0x104
jae 0x12ca8f7
push 1
mov edx, edi
mov byte [ebp + eax - 0x108], 0
lea ecx, [ebp - 0x20c]
call fcn.012ca6b9
test eax, eax
js 0x12ca8da
inc ebx
xor eax, eax
push eax
push eax
push eax
push eax
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x108]
push eax
push ebx
push 0x80000000
mov dword [ebp - 0x210], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
cmp eax, 0x103
jne 0x12ca7d1
push 0
mov edx, edi
mov ecx, 0x12c3d80
call fcn.012ca6b9
test eax, eax
js 0x12ca8da
push 0
mov edx, edi
mov ecx, 0x12c3c80
call fcn.012ca6b9
test eax, eax
js 0x12ca8da
xor eax, eax
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.012d7a50
mov esp, ebp
pop ebp
ret
jle 0x12ca8da
movzx eax, ax
or eax, 0x80070000
jmp 0x12ca8da
call fcn.012d7c34
int3
Function at 0x12cca04
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov eax, edx
mov ebx, ecx
push edi
xor edi, edi
mov dword [ebp - 0x10], eax
push edi
mov dword [eax], edi
lea eax, [ebp - 1]
push eax
mov dword [ebp - 0xc], ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov esi, eax
test esi, esi
jne 0x12cca4c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
jle 0x12ccaea
movzx edi, di
or edi, 0x80070000
jmp 0x12ccaea
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x12cca51
sub ecx, edx
lea eax, [esi + 2]
add eax, ecx
push eax
mov dword [ebp - 8], eax
call fcn.012d79f2
mov ebx, eax
pop ecx
test ebx, ebx
jne 0x12cca76
mov edi, 0x8007000e
jmp 0x12ccaea
lea eax, [esi + 1]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov ecx, eax
test ecx, ecx
jne 0x12cca9e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
jle 0x12ccae3
movzx edi, di
or edi, 0x80070000
jmp 0x12ccae3
mov eax, dword [ebp - 8]
lea esi, [ecx + ebx]
sub eax, ecx
push 0x12c3bd4
push eax
push esi
mov dword [ebp - 8], eax
call dword [sym.imp.msvcrt.dll_strcpy_s]
push dword [ebp - 0xc]
mov eax, dword [ebp - 8]
dec eax
push eax
lea eax, [esi + 1]
push eax
call dword [sym.imp.msvcrt.dll_strcpy_s]
add esp, 0x18
push 0x800
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov ecx, eax
test ecx, ecx
je 0x12cca87
mov eax, dword [ebp - 0x10]
mov dword [eax], ecx
push ebx
call fcn.012d7a1b
pop ecx
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret