joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40a4e0
Capabilities:
Decrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x10], 0x9e3779b9
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov dword [ebp - 8], ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 4]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], 0xc6ef3720
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
mov dword [ebp - 4], edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 8]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0xc]
mov dword [ebp - 0x20], edx
mov dword [ebp - 0xc], 0x20
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0xc]
sub ecx, 1
mov dword [ebp - 0xc], ecx
test eax, eax
jle 0x40a597
mov edx, dword [ebp - 8]
shl edx, 4
add edx, dword [ebp - 0x24]
mov eax, dword [ebp - 8]
add eax, dword [ebp - 0x18]
xor edx, eax
mov ecx, dword [ebp - 8]
shr ecx, 5
add ecx, dword [ebp - 0x20]
xor edx, ecx
mov eax, dword [ebp - 0x1c]
sub eax, edx
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
shl ecx, 4
add ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x1c]
add edx, dword [ebp - 0x18]
xor ecx, edx
mov eax, dword [ebp - 0x1c]
shr eax, 5
add eax, dword [ebp - 0x14]
xor ecx, eax
mov edx, dword [ebp - 8]
sub edx, ecx
mov dword [ebp - 8], edx
mov eax, dword [ebp - 0x18]
add eax, 0x61c88647
mov dword [ebp - 0x18], eax
jmp 0x40a532
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 8]
mov dword [ecx], edx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x1c]
mov dword [eax + 4], ecx
mov esp, ebp
pop ebp
ret 8
Function at 0x40b490
Capabilities:
Get disk information
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x434
mov dword [ebp - 0x434], ecx
mov dword [ebp - 0x42c], 0x400
mov al, byte [0x4a53c6]
mov byte [ebp - 0x18], al
xor ecx, ecx
mov dword [ebp - 0x17], ecx
mov dword [ebp - 0x13], ecx
mov byte [ebp - 0xf], cl
mov dword [ebp - 0x28], 1
mov dword [ebp - 8], 0
push 4
push 0
mov edx, dword [ebp + 0xc]
push edx
call fcn.0041ce40
add esp, 0xc
mov eax, dword [ebp - 0x42c]
push eax
push 0
lea ecx, [ebp - 0x428]
push ecx
call fcn.0041ce40
add esp, 0xc
lea edx, [ebp - 0x428]
push edx
mov eax, dword [ebp - 0x42c]
push eax
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 4
jl 0x40b62e
mov ecx, dword [ebp - 0xc]
sub ecx, 4
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
lea eax, [ebp + edx - 0x428]
push eax
lea ecx, [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea edx, [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
mov byte [ebp + eax - 0x19], 0
movsx ecx, byte [ebp - 0x18]
cmp ecx, 0x61
je 0x40b56a
movsx edx, byte [ebp - 0x18]
cmp edx, 0x41
je 0x40b56a
movsx eax, byte [ebp - 0x18]
cmp eax, 0x62
je 0x40b56a
movsx ecx, byte [ebp - 0x18]
cmp ecx, 0x42
jne 0x40b56c
jmp 0x40b509
lea edx, [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 5
je 0x40b598
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 4
je 0x40b598
lea ecx, [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
test eax, eax
jne 0x40b59d
jmp 0x40b509
push 1
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
mov dword [ebp - 0x1c], eax
lea edx, [ebp - 0x20]
push edx
lea eax, [ebp - 0x430]
push eax
lea ecx, [ebp - 4]
push ecx
lea edx, [ebp - 0x24]
push edx
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
cmp dword [ebp - 0x20], 0x158
jne 0x40b5de
cmp dword [ebp - 0x24], 1
je 0x40b5e3
jmp 0x40b509
lea edx, [ebp - 0x18]
push edx
mov ecx, dword [ebp - 0x434]
call fcn.0040b340
test eax, eax
jne 0x40b629
movsx eax, word [ebp + 8]
cmp eax, dword [ebp - 8]
jne 0x40b620
push 0x4a5708
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea edx, [ebp - 0x18]
push edx
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
xor eax, eax
jmp 0x40b633
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
jmp 0x40b509
mov eax, 0xffffffa4
mov esp, ebp
pop ebp
ret 8
Function at 0x40e5d0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1b4
mov dword [ebp - 0x1b4], ecx
mov al, byte [0x4a544d]
mov byte [ebp - 0x1b0], al
push 0x63
push 0
lea ecx, [ebp - 0x1af]
push ecx
call fcn.0041ce40
add esp, 0xc
mov dl, byte [0x4a544e]
mov byte [ebp - 0x14], dl
xor eax, eax
mov dword [ebp - 0x13], eax
mov dword [ebp - 0xf], eax
mov dword [ebp - 0xb], eax
mov dword [ebp - 7], eax
mov word [ebp - 3], ax
mov byte [ebp - 1], al
mov cl, byte [0x4a544f]
mov byte [ebp - 0x148], cl
push 0x12b
push 0
lea edx, [ebp - 0x147]
push edx
call fcn.0041ce40
add esp, 0xc
mov eax, dword [ebp + 8]
push eax
push 0x104
lea ecx, [ebp - 0x1b0]
push ecx
push str.127.0.0.1
push str.ServerName
push 0x4a580c
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov edx, dword [ebp + 8]
push edx
push 0x14
lea eax, [ebp - 0x14]
push eax
push 0x4a581c
push str.PORT
push 0x4a582c
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov ecx, dword [ebp + 8]
push ecx
push 0x12c
lea edx, [ebp - 0x148]
push edx
push str.3001
push str.mMsg
push 0x4a584c
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0x14]
push eax
call fcn.0041f36d
add esp, 4
push eax
lea ecx, [ebp - 0x148]
push ecx
lea edx, [ebp - 0x1b0]
push edx
call dword [0x59fd58]
mov esp, ebp
pop ebp
ret 4

Function at 0x414c80
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push eax
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 4], eax
push 0
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esp, ebp
pop ebp
ret
Function at 0x414f70
Capabilities:
Contain obfuscated stackstrings
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x238
mov byte [ebp - 0x18], 0x12
mov byte [ebp - 0x17], 0x34
mov byte [ebp - 0x16], 0x56
mov byte [ebp - 0x15], 0x78
mov byte [ebp - 0x14], 0x87
mov byte [ebp - 0x13], 0x65
mov byte [ebp - 0x12], 0x34
mov byte [ebp - 0x11], 0x21
mov byte [ebp - 0x238], 0x12
mov byte [ebp - 0x237], 0x34
mov byte [ebp - 0x236], 0x56
mov byte [ebp - 0x235], 0x79
mov byte [ebp - 0x234], 0x97
mov byte [ebp - 0x233], 0x65
mov byte [ebp - 0x232], 0x34
mov byte [ebp - 0x231], 0x21
mov dword [0x59d1c0], 1
push 0x208
lea eax, [ebp - 0x228]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0
push 0
push 3
push 0
push 3
push 0x80000000
lea ecx, [ebp - 0x228]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x22c], eax
cmp dword [ebp - 0x22c], 0xffffffff
je 0x415162
push 0
mov edx, dword [ebp - 0x22c]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x230], eax
push 2
push 0
push 0xfffffffffffffff8
mov eax, dword [ebp - 0x22c]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea ecx, [ebp - 0x1c]
push ecx
push 8
lea edx, [ebp - 0xc]
push edx
mov eax, dword [ebp - 0x22c]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x41507c
mov ecx, dword [ebp - 0x22c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x415164
push 8
lea edx, [ebp - 0xc]
push edx
lea eax, [ebp - 0x18]
push eax
call fcn.0041d276
add esp, 0xc
test eax, eax
je 0x415099
xor eax, eax
jmp 0x415164
push 2
push 0
push 0xfffffffffffffff4
mov ecx, dword [ebp - 0x22c]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea edx, [ebp - 0x1c]
push edx
push 4
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x22c]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x4150e2
mov edx, dword [ebp - 0x22c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x415164
push 4
push 0x1000
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [0x59fb3c], eax
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x230]
sub eax, dword [edx]
sub eax, 0xc
mov dword [ebp - 4], eax
push 0
push 0
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 0x22c]
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
push edx
mov eax, dword [0x59fb3c]
push eax
mov ecx, dword [ebp - 0x22c]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x41515b
mov edx, dword [ebp - 0x22c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x415164
mov eax, 1
jmp 0x415164
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x415fd0
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0xc]
movzx ecx, word [eax + 0x14]
mov edx, dword [ebp + 0xc]
lea eax, [edx + ecx + 0x18]
mov dword [ebp - 8], eax
mov dword [ebp - 4], 0
jmp 0x416002
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 8]
add edx, 0x28
mov dword [ebp - 8], edx
mov eax, dword [ebp + 0xc]
movzx ecx, word [eax + 6]
cmp dword [ebp - 4], ecx
jae 0x416046
mov edx, dword [ebp - 8]
mov eax, dword [edx + 8]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x416026
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x10]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 8]
cmp ecx, dword [eax + 0xc]
jb 0x416044
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0xc]
add eax, dword [ebp - 0xc]
cmp dword [ebp + 8], eax
jae 0x416044
mov eax, dword [ebp - 8]
jmp 0x416048
jmp 0x415ff0
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x416630
Capabilities:
Create process on windows
Get common file path
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x46c
cmp dword [ebp + 0xc], 0
je 0x416656
lea eax, [ebp - 0x460]
push eax
call fcn.004169e0
add esp, 4
test eax, eax
jne 0x416753
push 0x400
push 0
lea ecx, [ebp - 0x460]
push ecx
call fcn.0041ce40
add esp, 0xc
lea edx, [ebp - 0x460]
push edx
push 0x1ff
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push str.YShow3D.exe
lea eax, [ebp - 0x460]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov dword [ebp - 0x468], 0
mov dword [ebp - 0x464], 0
push 4
push 0x570938
lea ecx, [ebp - 0x464]
push ecx
call fcn.0041c990
add esp, 0xc
push 4
push 0x1000
mov edx, dword [ebp - 0x464]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4166e0
xor eax, eax
jmp 0x4167ee
push 0x293b0
push 0x57093c
lea eax, [ebp - 0x464]
push eax
mov ecx, dword [ebp - 4]
push ecx
call fcn.0042e570
add esp, 0x10
push 0
push 0
push 2
push 0
push 3
push 0xc0000000
lea edx, [ebp - 0x460]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x46c], eax
cmp dword [ebp - 0x46c], 0xffffffff
je 0x416753
push 0
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x464]
push ecx
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 0x46c]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 0x46c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x460]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x44
push 0
lea ecx, [ebp - 0x60]
push ecx
call fcn.0041ce40
add esp, 0xc
mov dword [ebp - 0x60], 0x44
mov dword [ebp - 0x34], 1
mov edx, 1
mov word [ebp - 0x30], dx
push 0x10
push 0
lea eax, [ebp - 0x14]
push eax
call fcn.0041ce40
add esp, 0xc
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x60]
push edx
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x460]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x4167c6
xor eax, eax
jmp 0x4167ee
mov ecx, dword [ebp + 0x10]
cmp dword [ecx], 1
jne 0x4167dd
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp - 0xc]
mov dword [edx], eax
mov eax, 1
jmp 0x4167ee
push 0xffffffffffffffff
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x416d50
Capabilities:
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x10], 0x9e3779b9
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov dword [ebp - 8], ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 4]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], 0
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
mov dword [ebp - 4], edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 8]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0xc]
mov dword [ebp - 0x20], edx
mov dword [ebp - 0xc], 0x20
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0xc]
sub ecx, 1
mov dword [ebp - 0xc], ecx
test eax, eax
jle 0x416e04
mov edx, dword [ebp - 0x18]
sub edx, 0x61c88647
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x1c]
shl eax, 4
add eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x1c]
add ecx, dword [ebp - 0x18]
xor eax, ecx
mov edx, dword [ebp - 0x1c]
shr edx, 5
add edx, dword [ebp - 0x14]
xor eax, edx
add eax, dword [ebp - 8]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
shl eax, 4
add eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 8]
add ecx, dword [ebp - 0x18]
xor eax, ecx
mov edx, dword [ebp - 8]
shr edx, 5
add edx, dword [ebp - 0x20]
xor eax, edx
add eax, dword [ebp - 0x1c]
mov dword [ebp - 0x1c], eax
jmp 0x416da2
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 8]
mov dword [eax], ecx
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x1c]
mov dword [edx + 4], eax
mov esp, ebp
pop ebp
ret 8
Function at 0x416e20
Capabilities:
Decrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x10], 0x9e3779b9
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov dword [ebp - 8], ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 4]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], 0xc6ef3720
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
mov dword [ebp - 4], edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 8]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0xc]
mov dword [ebp - 0x20], edx
mov dword [ebp - 0xc], 0x20
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0xc]
sub ecx, 1
mov dword [ebp - 0xc], ecx
test eax, eax
jle 0x416ed7
mov edx, dword [ebp - 8]
shl edx, 4
add edx, dword [ebp - 0x24]
mov eax, dword [ebp - 8]
add eax, dword [ebp - 0x18]
xor edx, eax
mov ecx, dword [ebp - 8]
shr ecx, 5
add ecx, dword [ebp - 0x20]
xor edx, ecx
mov eax, dword [ebp - 0x1c]
sub eax, edx
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
shl ecx, 4
add ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x1c]
add edx, dword [ebp - 0x18]
xor ecx, edx
mov eax, dword [ebp - 0x1c]
shr eax, 5
add eax, dword [ebp - 0x14]
xor ecx, eax
mov edx, dword [ebp - 8]
sub edx, ecx
mov dword [ebp - 8], edx
mov eax, dword [ebp - 0x18]
add eax, 0x61c88647
mov dword [ebp - 0x18], eax
jmp 0x416e72
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 8]
mov dword [ecx], edx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x1c]
mov dword [eax + 4], ecx
mov esp, ebp
pop ebp
ret 8

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x426a72
call fcn.00421fa3
mov dword [eax], esi
call fcn.00421f90
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.00420523
add esp, 0x14
push 0x16
pop eax
jmp 0x426ac7
test dword [ebp + 0xc], 0xfffffff9
jne 0x426a4e
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x426a9f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00421fb6
pop ecx
call fcn.00421f90
mov eax, dword [eax]
jmp 0x426ac7
test al, 0x10
jne 0x426ac5
test al, 1
je 0x426ac5
test byte [ebp + 0xc], 2
je 0x426ac5
call fcn.00421fa3
mov dword [eax], 5
call fcn.00421f90
mov dword [eax], 0xd
jmp 0x426a96
xor eax, eax
pop esi
pop ebp
ret

Function at 0x428262
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x59b390]
jne 0x42826c
repz ret
jmp fcn.0042cec7
Function at 0x42c170
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.004239f5
and dword [ebp - 4], 0
cmp dword [0x5a05ec], 0
mov ebx, eax
jne 0x42c221
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x42c2d2
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4a79c8
push edi
call esi
test eax, eax
je 0x42c2d2
push eax
call fcn.00423983
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x5a05ec], eax
call esi
push eax
call fcn.00423983
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x5a05f0], eax
call esi
push eax
call fcn.00423983
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x5a05f4], eax
call esi
push eax
call fcn.00423983
pop ecx
mov dword [0x5a05fc], eax
test eax, eax
je 0x42c221
push 0x4a7970
push edi
call esi
push eax
call fcn.00423983
pop ecx
mov dword [0x5a05f8], eax
mov eax, dword [0x5a05f8]
cmp eax, ebx
je 0x42c279
cmp dword [0x5a05fc], ebx
je 0x42c279
push eax
call fcn.004239fe
push dword [0x5a05fc]
mov esi, eax
call fcn.004239fe
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x42c279
test edi, edi
je 0x42c279
call esi
test eax, eax
je 0x42c270
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x42c270
test byte [ebp - 0xc], 1
jne 0x42c279
or dword [ebp + 0x10], 0x200000
jmp 0x42c2b2
mov eax, dword [0x5a05f0]
cmp eax, ebx
je 0x42c2b2
push eax
call fcn.004239fe
pop ecx
test eax, eax
je 0x42c2b2
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x42c2b2
mov eax, dword [0x5a05f4]
cmp eax, ebx
je 0x42c2b2
push eax
call fcn.004239fe
pop ecx
test eax, eax
je 0x42c2b2
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x5a05ec]
call fcn.004239fe
pop ecx
test eax, eax
je 0x42c2d2
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x42c2d4
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x441530
Capabilities:
Access the windows event log
Write file on windows

Disassembly:
mov eax, 0x108
call fcn.0041cd80
mov eax, dword [0x59b390]
xor eax, esp
mov dword [esp + 0x104], eax
push esi
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
test esi, esi
je 0x4415b7
push esi
call dword [sym.imp.KERNEL32.dll_GetFileType]
test eax, eax
je 0x4415b7
mov ecx, dword [esp + 0x110]
lea eax, [esp + 0x114]
push eax
push ecx
lea edx, [esp + 0x10]
push pe_nt_image_headers32
push edx
call fcn.0049df10
add esp, 0x10
test eax, eax
jge 0x44158d
mov eax, pe_nt_image_headers32
push 0
lea ecx, [esp + 8]
push ecx
push eax
lea edx, [esp + 0x14]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.00428262
add esp, 0x108
ret
mov ecx, dword [esp + 0x110]
lea eax, [esp + 0x114]
push eax
push ecx
lea edx, [esp + 0x10]
push 0xff
push edx
call fcn.0049df10
add esp, 0x10
mov byte [esp + 0x107], 0
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x441649
call fcn.004413f0
test eax, eax
jle 0x441649
push str.OpenSSL
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
mov esi, eax
test esi, esi
je 0x44165d
push 0
lea ecx, [esp + 8]
push ecx
push 0
push 1
push 0
push 0
push 0
push 1
lea eax, [esp + 0x28]
push esi
mov dword [esp + 0x28], eax
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
pop esi
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.00428262
add esp, 0x108
ret
push 0x10
push str.OpenSSL:_FATAL
lea edx, [esp + 0x10]
push edx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [esp + 0x108]
pop esi
xor ecx, esp
call fcn.00428262
add esp, 0x108
ret

Function at 0x448340
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [eax + 4]
push ebx
push esi
push edi
mov edi, dword [esp + 0x18]
cmp ecx, dword [edi + 4]
jge 0x448359
mov esi, edi
mov edi, eax
jmp 0x44835b
mov esi, eax
mov eax, dword [esi + 4]
mov ebx, dword [esp + 0x10]
cmp eax, dword [ebx + 8]
jg 0x44836b
mov eax, ebx
jmp 0x448375
push eax
push ebx
call fcn.00432a50
add esp, 8
test eax, eax
jne 0x44837d
pop edi
pop esi
pop ebx
ret
xor eax, eax
cmp dword [edi + 4], eax
jle 0x44839b
mov edx, dword [esi]
mov ecx, dword [edi]
mov edx, dword [edx + eax*4]
xor edx, dword [ecx + eax*4]
mov ecx, dword [ebx]
mov dword [ecx + eax*4], edx
add eax, 1
cmp eax, dword [edi + 4]
jl 0x448384
cmp eax, dword [esi + 4]
jge 0x4483b2
mov edx, dword [esi]
mov edx, dword [edx + eax*4]
mov ecx, dword [ebx]
mov dword [ecx + eax*4], edx
add eax, 1
cmp eax, dword [esi + 4]
jl 0x4483a0
mov eax, dword [esi + 4]
test eax, eax
mov dword [ebx + 4], eax
jle 0x4483d5
mov ecx, dword [ebx]
lea ecx, [ecx + eax*4 - 4]
mov edx, dword [ecx]
sub ecx, 4
test edx, edx
jne 0x4483d2
sub eax, 1
test eax, eax
jg 0x4483c2
mov dword [ebx + 4], eax
pop edi
pop esi
mov eax, 1
pop ebx
ret
Function at 0x4032fc
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x464020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403394
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403374
xor eax, eax
push ebp
push 0x40336d
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x4033b0
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403374
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x464020]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x464020], ax
mov esp, ebp
pop ebp
ret

Function at 0x404078
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x469048], 0
je 0x4040d9
cmp word [0x46921c], 0xd7b2
jne 0x4040a1
cmp dword [0x469224], 0
jbe 0x4040a1
mov eax, 0x469218
call dword [0x469234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x46406c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x404100
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x464030], 0
jne 0x4040f5
push 0
push 0x464064
push 0x46406c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x404234
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.00402a38
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x469049], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x4041fc
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc