joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4010d4
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
jmp 0x4010e6
mov eax, dword [0x44208b]
shl eax, 2
mov dword [0x44208f], eax
push edx
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov edx, eax
call fcn.00405d00
pop edx
call fcn.0040509c
call fcn.00405d04
push 0
call fcn.00407254
pop ecx
push 0x442034
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov dword [0x442093], eax
push 0
jmp fcn.0040d960

Function at 0x4015a8
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffddc
mov eax, dword [0x491c21]
mov edx, dword [0x491c29]
lea ecx, [ebp - 0x224]
push ebx
push esi
push edi
mov esi, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov eax, dword [0x491c25]
mov dword [ebp - 8], eax
mov dword [ebp - 0x1c], edx
mov edx, dword [0x491c2d]
mov dword [0x4aa334], 1
mov dword [ebp - 0x18], edx
push 0x208
push ecx
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
push 0
push 0
push 3
push 0
push 3
push 0x80000000
lea eax, [ebp - 0x224]
push eax
call sub.KERNEL32.DLL_CreateFileA
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4016ec
push 0
push ebx
call sub.KERNEL32.DLL_GetFileSize
mov edi, eax
push 2
push 0
push 0xfffffffffffffff8
push ebx
call sub.KERNEL32.DLL_SetFilePointer
lea eax, [ebp - 4]
push 0
push eax
lea edx, [ebp - 0x14]
push 8
push edx
push ebx
call sub.KERNEL32.DLL_ReadFile
test eax, eax
jne 0x401657
push ebx
call sub.KERNEL32.DLL_CloseHandle
xor eax, eax
jmp 0x4016ee
push 8
lea edx, [ebp - 0x14]
push edx
lea ecx, [ebp - 0xc]
push ecx
call fcn.00406278
add esp, 0xc
test eax, eax
je 0x401671
xor eax, eax
jmp 0x4016ee
push 2
push 0
push 0xfffffffffffffff4
push ebx
call sub.KERNEL32.DLL_SetFilePointer
push 0
lea edx, [ebp - 4]
push edx
push 4
push esi
push ebx
call sub.KERNEL32.DLL_ReadFile
test eax, eax
jne 0x40169a
push ebx
call sub.KERNEL32.DLL_CloseHandle
xor eax, eax
jmp 0x4016ee
push 4
push 0x1000
mov edx, dword [esi]
push edx
push 0
call sub.KERNEL32.DLL_VirtualAlloc
mov dword [0x49116c], eax
mov eax, edi
sub eax, dword [esi]
sub eax, 0xc
push 0
push 0
push eax
push ebx
call sub.KERNEL32.DLL_SetFilePointer
lea edx, [ebp - 4]
push 0
push edx
mov eax, dword [0x49116c]
mov ecx, dword [esi]
push ecx
push eax
push ebx
call sub.KERNEL32.DLL_ReadFile
test eax, eax
jne 0x4016e5
push ebx
call sub.KERNEL32.DLL_CloseHandle
xor eax, eax
jmp 0x4016ee
mov eax, 1
jmp 0x4016ee
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40178c
Capabilities:
Create process on windows
Get common file path
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffba8
push ebx
push esi
lea eax, [ebp - 0x458]
push eax
call fcn.004016f8
pop ecx
test eax, eax
jne 0x401836
lea edx, [ebp - 0x458]
push edx
push 0x1ff
call sub.KERNEL32.DLL_GetTempPathA
push str.YShow3D.exe
lea ecx, [ebp - 0x458]
push ecx
call sub.KERNEL32.DLL_lstrcatA
push 4
push 0x1000
push 0xf000
push 0
call sub.KERNEL32.DLL_VirtualAlloc
mov ebx, eax
test ebx, ebx
jne 0x4017ee
xor eax, eax
jmp 0x4018b4
push ebx
push 0x4820a4
call fcn.00410240
add esp, 8
push 0
push 0
push 2
push 0
push 3
push 0xc0000000
lea edx, [ebp - 0x458]
push edx
call sub.KERNEL32.DLL_CreateFileA
mov esi, eax
cmp esi, 0xffffffff
je 0x401836
push 0
lea eax, [ebp - 4]
push eax
push 0xf000
push ebx
push esi
call sub.KERNEL32.DLL_WriteFile
push esi
call sub.KERNEL32.DLL_CloseHandle
mov edx, dword [ebp + 8]
push edx
lea ecx, [ebp - 0x458]
push ecx
call sub.KERNEL32.DLL_lstrcatA
push 0x44
push 0
lea eax, [ebp - 0x48]
push eax
call fcn.00406020
add esp, 0xc
mov dword [ebp - 0x48], 0x44
mov dword [ebp - 0x1c], 1
mov word [ebp - 0x18], 1
push 0x10
push 0
lea edx, [ebp - 0x58]
push edx
call fcn.00406020
add esp, 0xc
lea ecx, [ebp - 0x58]
lea eax, [ebp - 0x48]
lea edx, [ebp - 0x458]
push ecx
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push edx
push 0
call sub.KERNEL32.DLL_CreateProcessA
test eax, eax
jne 0x4018a4
xor eax, eax
jmp 0x4018b4
push 0xffffffffffffffff
mov edx, dword [ebp - 0x58]
push edx
call sub.KERNEL32.DLL_WaitForSingleObject
mov eax, 1
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x403b3c
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov ebx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
movzx eax, word [eax + 0x14]
add eax, dword [ebp + 0xc]
add eax, 0x18
xor ecx, ecx
jmp 0x403b70
mov edx, dword [eax + 8]
test edx, edx
jne 0x403b5f
mov edx, dword [eax + 0x10]
mov esi, dword [eax + 0xc]
cmp ebx, esi
jb 0x403b6c
add edx, esi
cmp ebx, edx
jb 0x403b7d
inc ecx
add eax, 0x28
mov edx, dword [ebp + 0xc]
movzx edx, word [edx + 6]
cmp ecx, edx
jb 0x403b55
xor eax, eax
pop esi
pop ebx
pop ebp
ret
Function at 0x403bb8
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
cmp word [edi], 0x5a4d
je 0x403bd2
xor eax, eax
jmp 0x403d52
mov ebx, dword [edi + 0x3c]
add ebx, edi
cmp dword [ebx], 0x4550
je 0x403be6
xor eax, eax
jmp 0x403d52
cmp word [ebx + 0x14], 0xe0
jne 0x403bf6
cmp word [ebx + 0x18], 0x10b
je 0x403bfd
xor eax, eax
jmp 0x403d52
mov dword [0x4a9fe0], edi
mov ebx, dword [edi + 0x3c]
mov esi, edi
add ebx, esi
mov eax, dword [ebx + 0x78]
mov dword [ebp - 0x18], eax
push ebx
mov edx, dword [ebp - 0x18]
push edx
call fcn.00403b3c
add esp, 8
test eax, eax
jne 0x403c28
xor eax, eax
jmp 0x403d52
mov edx, dword [0x4a9fe0]
push edx
push ebx
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.00403b84
add esp, 0xc
mov ebx, dword [ebx + 0x78]
test ebx, ebx
jne 0x403c5a
push 0x10
push 0
push str.Error_in_GetProcAddressDirectly__
push 0
call sub.USER32.DLL_MessageBoxA
xor eax, eax
jmp 0x403d52
add ebx, esi
mov edx, dword [ebx + 0x24]
add edx, esi
mov dword [ebp - 4], edx
mov ecx, dword [ebx + 0x20]
add ecx, esi
mov dword [ebp - 0xc], ecx
mov eax, dword [ebx + 0x1c]
add eax, esi
mov dword [ebp - 8], eax
mov edx, dword [ebp + 0xc]
mov ecx, edx
shr ecx, 0x10
test cx, cx
je 0x403d24
xor esi, esi
mov eax, dword [ebp - 8]
mov edx, eax
mov dword [ebp - 0x28], edx
jmp 0x403d16
mov ecx, dword [ebp - 8]
mov eax, dword [ecx]
test eax, eax
je 0x403d11
xor edx, edx
mov dword [ebp - 0x14], edx
mov ecx, dword [ebp - 0x28]
mov eax, ecx
mov dword [ebp - 0x24], eax
mov edx, dword [ebp - 0xc]
mov ecx, edx
mov dword [ebp - 0x20], ecx
mov eax, dword [ebp - 4]
mov edx, eax
mov dword [ebp - 0x1c], edx
jmp 0x403d08
mov ecx, dword [ebp - 0x1c]
movzx eax, word [ecx]
cmp esi, eax
jne 0x403cfd
mov edx, dword [ebp - 0x20]
mov ecx, dword [edx]
add ecx, edi
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp + 0xc]
mov cl, byte [eax]
cmp cl, byte [edx]
jne 0x403cfd
test cl, cl
je 0x403cf2
mov cl, byte [eax + 1]
cmp cl, byte [edx + 1]
jne 0x403cfd
add eax, 2
add edx, 2
test cl, cl
jne 0x403cd6
jne 0x403cfd
mov eax, dword [ebp - 0x24]
mov eax, dword [eax]
add eax, edi
jmp 0x403d52
inc dword [ebp - 0x14]
add dword [ebp - 0x20], 4
add dword [ebp - 0x1c], 2
mov edx, dword [ebx + 0x18]
dec edx
cmp edx, dword [ebp - 0x14]
jae 0x403cbc
inc esi
add dword [ebp - 0x28], 4
mov ecx, dword [ebx + 0x14]
dec ecx
cmp esi, ecx
jbe 0x403c94
jmp 0x403d50
xor esi, esi
mov eax, dword [ebp - 8]
jmp 0x403d48
mov ecx, dword [ebx + 0x10]
add ecx, esi
cmp edx, ecx
jne 0x403d44
cmp dword [eax], 0
je 0x403d44
mov edx, dword [eax]
shl edx, 6
add edi, edx
mov eax, edi
jmp 0x403d52
inc esi
add eax, 4
mov ecx, dword [ebx + 0x14]
dec ecx
cmp esi, ecx
jbe 0x403d2b
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x403f10
Capabilities:
Check for software breakpoints
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
mov eax, fcn.00401d0c
mov dword [ebp - 4], eax
mov esi, dword [ebp - 4]
mov al, byte [esi]
cmp al, 0xcc
je 0x403fc3
mov eax, fcn.00401950
mov dword [ebp - 8], eax
mov esi, dword [ebp - 8]
mov al, byte [esi]
cmp al, 0xcc
je 0x403fc3
mov eax, fcn.00404130
mov dword [ebp - 0xc], eax
mov esi, dword [ebp - 0xc]
mov al, byte [esi]
cmp al, 0xcc
je 0x403fc3
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 8]
xor ebx, ebx
mov edi, 0x20
mov ecx, dword [eax + 4]
mov eax, dword [ebp + 0xc]
mov edx, dword [edx]
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 4]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 8]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x1c], eax
jmp 0x403fc3
add ebx, 0x9e3779b9
mov eax, ecx
shl eax, 4
add eax, dword [ebp - 0x10]
lea esi, [ebx + ecx]
xor eax, esi
mov esi, ecx
shr esi, 5
add esi, dword [ebp - 0x14]
xor eax, esi
add edx, eax
mov eax, edx
shl eax, 4
add eax, dword [ebp - 0x18]
lea esi, [ebx + edx]
xor eax, esi
mov esi, edx
shr esi, 5
add esi, dword [ebp - 0x1c]
xor eax, esi
add ecx, eax
mov eax, edi
add edi, 0xffffffff
test eax, eax
jg 0x403f8b
mov eax, dword [ebp + 8]
mov dword [eax], edx
mov edx, dword [ebp + 8]
mov dword [edx + 4], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x403fe0
Capabilities:
Check for software breakpoints
Decrypt data using tea

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
mov eax, fcn.00401d0c
mov dword [ebp - 4], eax
mov esi, dword [ebp - 4]
mov al, byte [esi]
cmp al, 0xcc
je 0x404096
mov eax, fcn.00401950
mov dword [ebp - 8], eax
mov esi, dword [ebp - 8]
mov al, byte [esi]
cmp al, 0xcc
je 0x404096
mov eax, fcn.00403fe0
mov dword [ebp - 0xc], eax
mov esi, dword [ebp - 0xc]
mov al, byte [esi]
cmp al, 0xcc
je 0x404096
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 8]
mov ebx, 0xc6ef3720
mov edi, 0x20
mov ecx, dword [edx]
mov edx, dword [eax + 4]
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 4]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 8]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x1c], eax
jmp 0x404096
mov eax, ecx
shl eax, 4
add eax, dword [ebp - 0x18]
lea esi, [ebx + ecx]
xor eax, esi
mov esi, ecx
shr esi, 5
add esi, dword [ebp - 0x1c]
xor eax, esi
sub edx, eax
mov eax, edx
shl eax, 4
add eax, dword [ebp - 0x10]
lea esi, [ebx + edx]
xor eax, esi
mov esi, edx
shr esi, 5
add esi, dword [ebp - 0x14]
xor eax, esi
sub ecx, eax
sub ebx, 0x9e3779b9
mov eax, edi
add edi, 0xffffffff
test eax, eax
jg 0x40405e
mov eax, dword [ebp + 8]
mov dword [eax], ecx
mov ecx, dword [ebp + 8]
mov dword [ecx + 4], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x404180
Capabilities:
Check for software breakpoints
Decrypt data using tea

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
mov eax, fcn.00401d0c
mov dword [ebp - 4], eax
mov esi, dword [ebp - 4]
mov al, byte [esi]
cmp al, 0xcc
je 0x404236
mov eax, fcn.00401950
mov dword [ebp - 8], eax
mov esi, dword [ebp - 8]
mov al, byte [esi]
cmp al, 0xcc
je 0x404236
mov eax, fcn.00404130
mov dword [ebp - 0xc], eax
mov esi, dword [ebp - 0xc]
mov al, byte [esi]
cmp al, 0xcc
je 0x404236
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 8]
mov ebx, 0xc6ef3720
mov edi, 0x20
mov ecx, dword [edx]
mov edx, dword [eax + 4]
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 4]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 8]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x1c], eax
jmp 0x404236
mov eax, ecx
shl eax, 4
add eax, dword [ebp - 0x18]
lea esi, [ebx + ecx]
xor eax, esi
mov esi, ecx
shr esi, 5
add esi, dword [ebp - 0x1c]
xor eax, esi
sub edx, eax
mov eax, edx
shl eax, 4
add eax, dword [ebp - 0x10]
lea esi, [ebx + edx]
xor eax, esi
mov esi, edx
shr esi, 5
add esi, dword [ebp - 0x14]
xor eax, esi
sub ecx, eax
sub ebx, 0x9e3779b9
mov eax, edi
add edi, 0xffffffff
test eax, eax
jg 0x4041fe
mov eax, dword [ebp + 8]
mov dword [eax], ecx
mov ecx, dword [ebp + 8]
mov dword [ecx + 4], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4059f4
Capabilities:
Get memory capacity

Disassembly:
add esp, 0xffffffe0
mov dword [esp], 0x20
push esp
call sub.KERNEL32.DLL_GlobalMemoryStatus
mov eax, dword [esp + 0xc]
add esp, 0x20
ret

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

Disassembly:
push ebp
mov ebp, esp
push ebx
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
mov ebx, eax
cmp eax, 0xffffffff
jne 0x4074d8
call fcn.00408888
pop ebx
pop ebp
ret
test byte [ebp + 0xc], 2
je 0x4074f3
test bl, 1
je 0x4074f3
mov dword [0x4946ac], 5
or eax, 0xffffffff
pop ebx
pop ebp
ret
xor eax, eax
pop ebx
pop ebp
ret
Function at 0x4076a0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
test byte [ebp + 0xd], 0xc0
jne 0x4076bf
mov eax, dword [0x4937d4]
mov edx, dword [eax]
and edx, 0xc000
or dword [ebp + 0xc], edx
test byte [ebp + 0xd], 0x80
jne 0x4076cc
or dword [ebp + 0xc], 0x4000
mov ecx, dword [ebp + 0xc]
and ecx, 0x700
cmp ecx, 0x500
jg 0x4076f9
je 0x40770b
sub ecx, 0x100
je 0x407719
sub ecx, 0x100
je 0x407720
sub ecx, 0x100
je 0x407712
jmp 0x407727
sub ecx, 0x600
je 0x407720
sub ecx, 0x100
je 0x40770b
jmp 0x407727
mov edi, 1
jmp 0x40772c
mov edi, 2
jmp 0x40772c
mov edi, 4
jmp 0x40772c
mov edi, 5
jmp 0x40772c
mov edi, 3
test byte [ebp + 0xd], 1
je 0x407753
lea eax, [ebp + 0x10]
add eax, 4
mov eax, dword [eax - 4]
and eax, dword [0x49324c]
test al, 0x80
je 0x40774c
mov ebx, 0x80
jmp 0x407765
mov ebx, 1
jmp 0x407765
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
mov ebx, eax
cmp eax, 0xffffffff
jne 0x407765
xor ebx, ebx
mov eax, dword [ebp + 0xc]
and eax, 3
sub eax, 1
jb 0x407777
je 0x407780
dec eax
je 0x407789
jmp 0x407792
mov dword [ebp - 4], 0x80000000
jmp 0x4077a1
mov dword [ebp - 4], 0x40000000
jmp 0x4077a1
mov dword [ebp - 4], 0xc0000000
jmp 0x4077a1
push 1
call fcn.00408824
pop ecx
mov ebx, eax
jmp 0x407891
mov eax, dword [ebp + 0xc]
and eax, 0x70
sub eax, 0x10
je 0x4077bd
sub eax, 0x10
je 0x4077c4
sub eax, 0x10
je 0x4077cd
sub eax, 0x10
je 0x4077d6
jmp 0x4077d6
xor edx, edx
mov dword [ebp - 8], edx
jmp 0x4077dd
mov dword [ebp - 8], 1
jmp 0x4077dd
mov dword [ebp - 8], 2
jmp 0x4077dd
mov dword [ebp - 8], 3
mov dword [ebp - 0x14], 0xc
xor ecx, ecx
mov dword [ebp - 0x10], ecx
lea ecx, [ebp - 0x14]
mov eax, dword [ebp + 0xc]
and eax, 0x80
cmp eax, 1
sbb edx, edx
neg edx
mov dword [ebp - 0xc], edx
push 0
push ebx
push edi
push ecx
mov eax, dword [ebp - 8]
push eax
mov edx, dword [ebp - 4]
push edx
mov ecx, dword [ebp + 8]
push ecx
call sub.KERNEL32.DLL_CreateFileA
mov esi, eax
cmp eax, 0xffffffff
jne 0x40784a
call sub.KERNEL32.DLL_GetLastError
mov ebx, eax
and ebx, 0xffff
cmp ebx, 0x6e
jne 0x40783f
test byte [ebp + 0xd], 1
je 0x40783a
mov ebx, 0x50
jmp 0x40783f
mov ebx, 2
push ebx
call fcn.00408824
pop ecx
mov ebx, eax
jmp 0x407891
mov edi, esi
push edi
call fcn.00407610
pop ecx
test eax, eax
je 0x40785e
or dword [ebp + 0xc], 0x2000
test bl, 1
jne 0x40786a
or dword [ebp + 0xc], 0x100
and dword [ebp + 0xc], 0xfffff8ff
mov eax, dword [ebp + 0xc]
push eax
push edi
call fcn.00408568
add esp, 8
mov ebx, eax
inc eax
jne 0x407891
push 4
call fcn.00408824
pop ecx
push esi
call sub.KERNEL32.DLL_CloseHandle
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40c74c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_CreateFileA
mov ebx, eax
test eax, eax
je 0x40c7ae
call fcn.0040c6fc
mov esi, eax
lea eax, [ebp - 4]
push 0
push eax
push esi
call fcn.004061a0
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push edi
call fcn.004061a0
pop ecx
push eax
push edi
push ebx
call sub.KERNEL32.DLL_WriteFile
push ebx
call sub.KERNEL32.DLL_CloseHandle
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret

Function at 0x40c814
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff7c
cmp dword [0x4946b4], 0
push ebx
push esi
mov esi, dword [ebp + 8]
jne 0x40c8ee
cmp dword [0x4946b0], 0
jne 0x40c8ee
cmp dword [0x4948a4], 0
je 0x40c8a8
push 0x80
lea eax, [ebp - 0x84]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
push 0x5c
lea edx, [ebp - 0x84]
push edx
call fcn.0040c5fc
add esp, 8
mov ebx, eax
test eax, eax
jne 0x40c88e
push 0x3a
lea edx, [ebp - 0x84]
push edx
call fcn.0040c5fc
add esp, 8
mov ebx, eax
test eax, eax
jne 0x40c88e
lea ebx, [ebp - 0x84]
jmp 0x40c88f
inc ebx
call fcn.0040c7d0
or eax, 0x10010
push eax
push ebx
push esi
push 0
call sub.USER32.DLL_MessageBoxA
jmp 0x40c929
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
mov ebx, eax
lea eax, [ebp - 4]
push 0
push eax
push 2
push 0x4946b8
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push esi
call fcn.004061a0
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea ecx, [ebp - 4]
push ecx
push 2
push 0x4946bb
push ebx
call sub.KERNEL32.DLL_WriteFile
jmp 0x40c929
cmp dword [0x4946b0], 0
je 0x40c908
cmp dword [0x4946b0], 0xffffffff
je 0x40c929
push esi
call dword [0x4946b0]
pop ecx
mov eax, dword [0x4946b4]
test eax, eax
je 0x40c929
cmp dword [0x4946b4], 0xffffffff
je 0x40c929
cmp byte [eax], 0
je 0x40c929
push esi
push eax
call fcn.0040c74c
add esp, 8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40d3a4
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
cmp dword [0x4aac74], 0
jne 0x40d425
cmp dword [0x4aac94], 0
jne 0x40d3d4
call sub.KERNEL32.DLL_GetEnvironmentStrings
mov dword [0x4aac94], eax
test eax, eax
jne 0x40d3d4
push str.GetEnvironmentStrings_failed
call fcn.0040c940
pop ecx
xor ebp, ebp
xor esi, esi
mov ebx, dword [0x4aac94]
jmp 0x40d3e8
lea eax, [edi + 1]
inc esi
add ebp, eax
add ebx, eax
push ebx
call fcn.004061a0
pop ecx
mov edi, eax
test eax, eax
jne 0x40d3e0
lea edi, [ebp + 1]
push edi
call fcn.00404fac
pop ecx
mov ebx, eax
mov dword [0x4aac78], ebx
test ebx, ebx
jne 0x40d412
xor eax, eax
jmp 0x40d4e8
push edi
mov edx, dword [0x4aac94]
push edx
push ebx
call fcn.00405fb0
add esp, 0xc
jmp 0x40d445
xor esi, esi
mov ebx, dword [0x4aac74]
jmp 0x40d43f
push eax
call fcn.004061a0
pop ecx
test eax, eax
jne 0x40d43b
dec esi
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x40d42f
lea ebx, [esi + 4]
push 4
mov dword [0x4aac7c], ebx
inc ebx
push ebx
call fcn.00404a68
add esp, 8
test eax, eax
mov dword [esp], eax
jne 0x40d468
xor eax, eax
jmp 0x40d4e8
cmp dword [0x4aac74], 0
jne 0x40d499
xor esi, esi
mov ebx, dword [0x4aac78]
mov eax, dword [esp]
mov ebp, eax
jmp 0x40d48a
mov dword [ebp], ebx
add ebp, 4
inc esi
inc edi
add ebx, edi
push ebx
call fcn.004061a0
pop ecx
mov edi, eax
test eax, eax
jne 0x40d480
jmp 0x40d4ca
xor esi, esi
mov ebx, dword [0x4aac74]
mov eax, dword [esp]
mov edi, eax
jmp 0x40d4c4
push eax
call fcn.004061a0
pop ecx
test eax, eax
je 0x40d4b9
mov eax, dword [ebx]
mov dword [edi], eax
jmp 0x40d4bd
dec esi
add edi, 0xfffffffc
add edi, 4
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x40d4a8
mov eax, dword [0x4aac74]
test eax, eax
je 0x40d4da
push eax
call fcn.00404fbc
pop ecx
mov edx, dword [esp]
mov eax, 1
mov dword [0x4aac74], edx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x40fe7c
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
pushal
mov esi, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov edi, 0x495314
sub eax, eax
test esi, esi
je 0x40ff5c
sub eax, 1
test ecx, ecx
je 0x40ff5a
test esi, 3
je 0x40feba
xor al, byte [esi]
inc esi
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
dec ecx
jne 0x40fe9f
mov edx, ecx
and edx, 7
shr ecx, 3
je 0x40ff41
xor eax, dword [esi]
add esi, 4
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
xor eax, dword [esi]
add esi, 4
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
dec ecx
jne 0x40fec8
mov ecx, edx
test ecx, ecx
je 0x40ff5a
xor al, byte [esi]
inc esi
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
dec ecx
jne 0x40ff47
not eax
mov dword [esp + 0x1c], eax
popal
ret
Function at 0x410240
Capabilities:
Decompress data using aplib

Disassembly:
pushal
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
cld
mov dl, 0x80
xor ebx, ebx
movsb byte es:[edi], byte [esi]
mov bl, 2
call fcn.004102c3
jae 0x41024e
xor ecx, ecx
call fcn.004102c3
jae 0x41027d
xor eax, eax
call fcn.004102c3
jae 0x41028d
mov bl, 2
inc ecx
mov al, 0x10
call fcn.004102c3
adc al, al
jae 0x41026f
jne 0x4102b9
stosb byte es:[edi], al
jmp 0x410251
call fcn.004102cf
sub ecx, ebx
jne 0x410296
call fcn.004102cd
jmp 0x4102b5
lodsb al, byte [esi]
shr eax, 1
je 0x4102df
adc ecx, ecx
jmp 0x4102b2
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
call fcn.004102cd
cmp eax, 0x7d00
jae 0x4102b2
cmp ah, 5
jae 0x4102b3
cmp eax, 0x7f
ja 0x4102b4
inc ecx
inc ecx
xchg ebp, eax
mov eax, ebp
mov bl, 1
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x410251
sub edi, dword [esp + 0x28]
mov dword [esp + 0x1c], edi
popal
ret

Function at 0x41095c
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
push edi
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
mov ebx, eax
test eax, eax
je 0x410999
push ebx
call sub.KERNEL32.DLL_GetFileType
test eax, eax
je 0x410999
lea edx, [ebp + 0xc]
push edx
mov ecx, dword [ebp + 8]
push ecx
push 0x493284
call fcn.00409098
add esp, 0xc
jmp 0x410af1
mov eax, dword [ebp + 8]
jmp 0x410a73
lea edx, [ebp + 0xc]
push edx
push eax
push 0xff
lea eax, [ebp - 0x104]
push eax
call fcn.00408ec4
mov byte [ebp - 5], 0
add esp, 0x10
call sub.KERNEL32.DLL_GetVersion
cmp eax, 0x80000000
jae 0x410adc
call fcn.004108a4
test eax, eax
je 0x410adc
push str.OPENSSL
push 0
call sub.ADVAPI32.DLL_RegisterEventSourceA
mov ebx, eax
lea eax, [ebp - 0x104]
mov dword [ebp - 4], eax
lea edx, [ebp - 4]
push 0
push edx
push 0
push 1
push 0
push 0
push 0
push 1
push ebx
call sub.ADVAPI32.DLL_ReportEventA
push ebx
call sub.ADVAPI32.DLL_DeregisterEventSource
jmp 0x410af1
push 0x10
lea ecx, [ebp - 0x104]
push str.OpenSSL:_FATAL
push ecx
push 0
call sub.USER32.DLL_MessageBoxA
mov esp, ebp
mov edi, dword [ebp - 0x110]
mov esi, dword [ebp - 0x10c]
mov ebx, dword [ebp - 0x108]
pop ebp
ret

Function at 0x412ab0
Capabilities:
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
xor edx, edx
xor ecx, ecx
mov eax, dword [ebp + 8]
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
mov dword [eax + 0x14], edx
mov dword [eax + 0x18], ecx
xor edx, edx
mov dword [eax + 0x5c], edx
mov eax, 1
pop ebp
ret