joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100282ea
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push dword [ebp + 0xc]
mov edi, dword [ebp + 8]
xor esi, esi
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x100283bb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1002831a
xor esi, esi
jmp 0x100283bb
cmp eax, 3
je 0x1002832b
push 0
push edi
call fcn.100283c3
test eax, eax
jne 0x10028313
movzx eax, word [edi]
mov ecx, edi
push ebx
xor ebx, ebx
test ax, ax
je 0x100283a8
push 0x5c
mov edx, eax
pop edi
cmp dx, di
jne 0x10028344
mov ebx, ecx
add ecx, 2
movzx eax, word [ecx]
mov edx, eax
test ax, ax
jne 0x1002833d
mov edi, dword [ebp + 8]
test ebx, ebx
je 0x100283a8
push dword [ebp + 0xc]
xor eax, eax
push edi
mov word [ebx], ax
call fcn.100282ea
mov esi, eax
push 0x5c
pop eax
mov word [ebx], ax
test esi, esi
js 0x100283ba
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x100283a4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 0xb7
jne 0x10028395
xor esi, esi
inc esi
jmp 0x100283ba
test esi, esi
jle 0x100283ba
movzx esi, si
or esi, 0x80070000
jmp 0x100283ba
xor esi, esi
jmp 0x100283ba
mov esi, 0x80070003
push esi
push 0x72
push str.c:_agent_work66_s_srclibsdutildirutil.cpp
call fcn.10027d79
pop ebx
pop edi
mov eax, esi
pop esi
pop ebp
ret 8

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

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 8]
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x100283e7
test al, 0x10
je 0x100283e7
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x100283e4
mov dword [ecx], eax
xor esi, esi
inc esi
mov eax, esi
pop esi
pop ebp
ret 8

Function at 0x1003b91d
Capabilities:
Parse pe header

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

Function at 0x1003d55e
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10057864
push 0x1005785c
push str.FlsAlloc
push 0x1f
call fcn.1003d3dd
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1003d592
push dword [ebp + 8]
mov ecx, esi
call dword [0x1004e5b8]
call esi
jmp 0x1003d598
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1003d5dc
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10057874
push 0x1005786c
push str.FlsGetValue
push 0x21
call fcn.1003d3dd
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1003d613
push dword [ebp + 8]
mov ecx, esi
call dword [0x1004e5b8]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x1003d61b
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1005787c
push 0x10057874
push str.FlsSetValue
push 0x22
call fcn.1003d3dd
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1003d655
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x1004e5b8]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]

Function at 0x1003f42e
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x100626f4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp eax, 0x1a
jbe 0x1003f471
call fcn.1002cf31
mov dword [eax], 0xf
call fcn.1002cf44
mov dword [eax], 0xd
call fcn.1002cd8f
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10026a91
leave
ret
test eax, eax
jne 0x1003f478
inc eax
jmp 0x1003f465
add eax, 0x40
push 0x3a
mov word [ebp - 0xc], ax
pop eax
mov word [ebp - 0xa], ax
push 0x5c
pop eax
mov word [ebp - 8], ax
xor eax, eax
mov word [ebp - 6], ax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov ecx, eax
test ecx, ecx
je 0x1003f463
xor eax, eax
cmp ecx, 1
setne al
jmp 0x1003f465
Function at 0x10042e3c
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 0x10042ed9
push ebx
push esi
call fcn.10042e05
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.1003f61b
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x10042e86
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10042ed8
push edi
push eax
call fcn.1003d1c1
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x10042ea6
call fcn.1003d187
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10042ed7
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1003f61b
add esp, 0x20
test eax, eax
jne 0x10042ec5
push edi
call fcn.1003d187
jmp 0x10042ecd
push ebx
call fcn.1003d187
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 0x10042edc
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x10042eed
pop esi
ret
push ebx
push edi
push esi
call fcn.10042e05
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.1003d1c1
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x10042f15
push ebx
push esi
push edi
call fcn.10029510
add esp, 0xc
push 0
call fcn.1003d187
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x100432e5
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.10042f2a
Function at 0x10046a7a
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 + 0x10066650]
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 0x10046aba
cmp byte [ebx], 0xa
jne 0x10046aba
or byte [edi + eax + 0x28], 4
jmp 0x10046abf
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 0x10046bbe
mov dl, byte [eax]
cmp dl, 0x1a
je 0x10046ba1
inc eax
cmp dl, 0xd
je 0x10046aeb
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x10046b11
cmp eax, ecx
jae 0x10046b1f
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
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 0x10046ad3
jmp 0x10046bbe
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 0x10046b9c
cmp dword [ebp - 0x10], 0
je 0x10046b9c
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x10066650]
test byte [eax + edi + 0x28], 0x48
je 0x10046b76
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x10046b61
mov byte [esi], dl
jmp 0x10046b72
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x10066650]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x10046bbe
cmp byte [ebp - 1], 0xa
jne 0x10046b85
cmp esi, ebx
jne 0x10046b85
mov byte [esi], 0xa
jmp 0x10046bbd
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.100469ea
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x10046bbe
mov byte [esi], 0xd
jmp 0x10046bbd
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x10066650]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x10046bbb
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x10046bbe
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x10046bc7
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 + 0x10066650]
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 0x10046c0d
cmp word [ebx], dx
jne 0x10046c0d
or byte [eax + edi + 0x28], 4
jmp 0x10046c12
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 0x10046d75
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 0x10046d55
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x10046c53
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x10046c89
cmp eax, edx
jae 0x10046c97
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
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 - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x10046c2e
jmp 0x10046d75
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 0x10046d50
cmp dword [ebp - 0x18], 0
je 0x10046d50
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x10066650]
test byte [eax + edi + 0x28], 0x48
je 0x10046d26
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 0x10046cea
mov word [esi], cx
jmp 0x10046d21
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x10066650]
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 + 0x10066650]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x10066650]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x10046d75
pop eax
cmp word [ebp - 4], ax
jne 0x10046d36
cmp esi, ebx
jne 0x10046d36
mov word [esi], ax
jmp 0x10046d72
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.100469ea
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x10046d75
push 0xd
pop eax
jmp 0x10046d31
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x10066650]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x10046d6f
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x10046d75
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 0x10047eb4
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.10047e30
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x10048023
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x10048023
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x10047fd8
jg 0x10047f10
test eax, eax
je 0x10047fce
push 1
push 0x1000
call fcn.1003d24d
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x10047f33
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x10047fc5
push 0x8000
push ebx
call fcn.10047d61
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x10047f5c
jg 0x10047f57
cmp ecx, 0x1000
jb 0x10047f5c
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.10040175
add esp, 0x10
cmp eax, 0xffffffff
je 0x10047fa1
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x10047f57
jl 0x10047f88
test ecx, ecx
jne 0x10047f49
push dword [ebp - 0xc]
push ebx
call fcn.10047d61
push esi
call fcn.1003d187
add esp, 0xc
xor ebx, ebx
jmp 0x10048031
cmp byte [edi + 0x24], 0
je 0x10047fb8
cmp dword [edi + 0x20], 5
jne 0x10047fb8
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x10047fc3
mov ebx, dword [edi + 0x18]
jmp 0x10047fc5
xor ebx, ebx
push esi
call fcn.1003d187
pop ecx
jmp 0x10048031
test ecx, ecx
jg 0x10047f9a
jl 0x10047fd8
test eax, eax
jae 0x10047f9a
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.100469ea
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x10047ff8
cmp byte [edi + 0x1c], 0
je 0x10047f9a
jmp 0x10048029
push ebx
call fcn.10040a82
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x10047f9a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x10048031
cmp byte [edi + 0x1c], 0
je 0x1004802e
mov ebx, dword [edi + 0x18]
jmp 0x10048031
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.100469ea
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1004a600
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1004a62d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1004a62d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x10001891
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 4], 0
jmp 0x100018a9
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x100
jae 0x100018fc
mov ecx, dword [ebp - 4]
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], 0
jmp 0x100018ca
mov edx, dword [ebp - 0xc]
add edx, 1
mov dword [ebp - 0xc], edx
cmp dword [ebp - 0xc], 8
jae 0x100018ed
mov eax, dword [ebp - 8]
shr eax, 1
mov ecx, dword [ebp - 8]
and ecx, 1
sub ecx, 1
not ecx
and ecx, 0xedb88320
xor eax, ecx
mov dword [ebp - 8], eax
jmp 0x100018c1
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
mov dword [edx*4 + 0x10019f68], eax
jmp 0x100018a0
mov esp, ebp
pop ebp
ret

Function at 0x10001b4f
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp dword [0x10018070], 0x270
jl 0x10001c8f
cmp dword [0x10018070], 0x271
jne 0x10001b7e
push 0x1105
call fcn.10001a8b
add esp, 4
mov dword [ebp - 8], 0
jmp 0x10001b90
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xe3
jge 0x10001be8
mov ecx, dword [ebp - 8]
mov edx, dword [ecx*4 + 0x100195a8]
and edx, 0x80000000
mov eax, dword [ebp - 8]
mov ecx, dword [eax*4 + 0x100195ac]
and ecx, 0x7fffffff
or edx, ecx
mov dword [ebp - 4], edx
mov edx, dword [ebp - 4]
shr edx, 1
mov eax, dword [ebp - 8]
mov ecx, dword [eax*4 + 0x10019bdc]
xor ecx, edx
mov edx, dword [ebp - 4]
and edx, 1
xor ecx, dword [edx*4 + 0x10018074]
mov eax, dword [ebp - 8]
mov dword [eax*4 + 0x100195a8], ecx
jmp 0x10001b87
jmp 0x10001bf3
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0x26f
jge 0x10001c4a
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x100195a8]
and eax, 0x80000000
mov ecx, dword [ebp - 8]
mov edx, dword [ecx*4 + 0x100195ac]
and edx, 0x7fffffff
or eax, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
shr eax, 1
mov ecx, dword [ebp - 8]
mov edx, dword [ecx*4 + 0x1001921c]
xor edx, eax
mov eax, dword [ebp - 4]
and eax, 1
xor edx, dword [eax*4 + 0x10018074]
mov ecx, dword [ebp - 8]
mov dword [ecx*4 + 0x100195a8], edx
jmp 0x10001bea
mov edx, dword [0x10019f64]
and edx, 0x80000000
mov eax, dword [0x100195a8]
and eax, 0x7fffffff
or edx, eax
mov dword [ebp - 4], edx
mov ecx, dword [ebp - 4]
shr ecx, 1
mov edx, dword [0x10019bd8]
xor edx, ecx
mov eax, dword [ebp - 4]
and eax, 1
xor edx, dword [eax*4 + 0x10018074]
mov dword [0x10019f64], edx
mov dword [0x10018070], 0
mov ecx, dword [0x10018070]
mov edx, dword [ecx*4 + 0x100195a8]
mov dword [ebp - 4], edx
mov eax, dword [0x10018070]
add eax, 1
mov dword [0x10018070], eax
mov ecx, dword [ebp - 4]
shr ecx, 0xb
mov edx, dword [ebp - 4]
xor edx, ecx
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
shl eax, 7
and eax, 0x9d2c5680
mov ecx, dword [ebp - 4]
xor ecx, eax
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
shl edx, 0xf
and edx, 0xefc60000
mov eax, dword [ebp - 4]
xor eax, edx
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
shr ecx, 0x12
mov edx, dword [ebp - 4]
xor edx, ecx
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x10008f2d
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
push edi
mov byte [ebp - 0x224], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x223]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x104
lea eax, [ebp - 0x224]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0
lea ecx, [ebp - 0x224]
push ecx
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov dword [ebp - 0x11c], eax
cmp dword [ebp - 0x11c], 0
jne 0x10008f8c
fld qword [0x10015918]
jmp 0x1000907f
mov edx, dword [ebp - 0x11c]
push edx
call sub.MFC42u.DLL_operatornew
add esp, 4
mov dword [ebp - 0x228], eax
mov eax, dword [ebp - 0x228]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x11c]
push edx
push 0
lea eax, [ebp - 0x224]
push eax
call sub.VERSION.dll_GetFileVersionInfoA
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 0x120]
push edx
push str.VarFileInfoTranslation
mov eax, dword [ebp - 0x14]
push eax
call sub.VERSION.dll_VerQueryValueA
mov byte [ebp - 0x118], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x117]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, dword [ebp - 0x120]
mov edx, dword [ecx]
shr edx, 0x10
and edx, 0xffff
push edx
mov eax, dword [ebp - 0x120]
xor ecx, ecx
mov cx, word [eax]
push ecx
push str.StringFileInfo_.04X_.04XFileVersion
lea edx, [ebp - 0x118]
push edx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x10
mov dword [ebp - 0xc], 0
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0xc]
push ecx
lea edx, [ebp - 0x118]
push edx
mov eax, dword [ebp - 0x14]
push eax
call sub.VERSION.dll_VerQueryValueA
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.MSVCRT.dll_atof]
add esp, 4
fstp qword [ebp - 8]
cmp dword [ebp - 0x14], 0
je 0x1000907c
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x22c], edx
mov eax, dword [ebp - 0x22c]
push eax
call sub.MFC42u.DLL_operatordelete
add esp, 4
mov dword [ebp - 0x14], 0
fld qword [ebp - 8]
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x1000c670
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
mov ecx, dword [ebp - 0xc]
call fcn.1000c780
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x800
sbb eax, eax
neg eax
mov ecx, dword [ebp - 4]
add ecx, eax
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0xc]
mov ecx, dword [edx + 8]
sub ecx, dword [eax + 4]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
shr edx, 0xc
imul edx, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 4]
add ecx, edx
mov edx, dword [ebp - 8]
and edx, 0xfff
imul edx, dword [ebp - 4]
shr edx, 0xc
add ecx, edx
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0xc]
cmp dword [ebp - 8], ecx
sbb edx, edx
inc edx
mov dword [0x10019584], edx
cmp dword [0x10019584], 0
je 0x1000c6f3
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
mov dword [eax + 8], ecx
jmp 0x1000c6ff
mov edx, dword [ebp - 8]
add edx, 1
mov eax, dword [ebp - 0xc]
mov dword [eax + 4], edx
mov ecx, dword [ebp - 0xc]
call fcn.10003a01
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0xc]
mov eax, dword [ecx + 4]
xor eax, dword [edx + 8]
and eax, 0xff000000
test eax, eax
jne 0x1000c770
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0xc]
shl edx, 8
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x10]
xor eax, eax
mov al, byte [ecx]
and eax, 0xff
add edx, eax
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 0xc], edx
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 4]
shl eax, 8
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 8]
shl eax, 8
add eax, 0xff
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 8], eax
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0x10]
add eax, 1
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 0x10], eax
jmp 0x1000c707
mov eax, dword [0x10019584]
mov esp, ebp
pop ebp
ret

Function at 0x1000e370
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
mov dword [eax + 8], ecx
push 1
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 0xc]
add eax, dword [edx + 8]
push eax
call dword [sym.imp.MSVCRT.dll_calloc]
add esp, 8
mov ecx, dword [ebp - 4]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 4]
cmp dword [edx + 4], 0
jne 0x1000e3ba
push str._nERROR:_Not_enough_memory_n
call dword [sym.imp.MSVCRT.dll_printf]
add esp, 4
push 0
call dword [sym.imp.MSVCRT.dll_exit]
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 4]
call fcn.1000e120
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 8