joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4048f0
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x416048]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
call fcn.00404a20
add esp, 8
mov dword [ebp - 0x418], eax
test eax, eax
jne 0x404a0f
push esi
push 0x206
push eax
lea ecx, [ebp - 0x20a]
push ecx
mov word [ebp - 0x20c], ax
call fcn.00409060
xor edx, edx
push 0x206
push edx
lea eax, [ebp - 0x412]
push eax
mov word [ebp - 0x414], dx
call fcn.00409060
add esp, 0x18
lea ecx, [ebp - 0x20c]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov esi, 0x417ef0
lea ebx, [ebx]
cmp word [esi], 0
je 0x4049a3
lea edx, [ebp - 0x20c]
push edx
lea eax, [ebp - 0x414]
push 0x104
push eax
call fcn.0040578c
push esi
lea ecx, [ebp - 0x414]
push 0x104
push ecx
call fcn.00405717
add esp, 0x18
add esi, 0x118
cmp esi, 0x418468
jl 0x404970
mov esi, 0x417ef0
cmp word [esi], 0
je 0x4049ca
push 1
push ebx
push edi
mov ecx, esi
call fcn.00405330
add esp, 0xc
add esi, 0x118
cmp esi, 0x418468
jl 0x4049b6
push 0x418c78
lea edx, [ebp - 0x20c]
push 0x104
push edx
call fcn.00405717
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
pop esi
mov eax, 2
je 0x404a0f
mov eax, dword [ebp - 0x418]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00405708
mov esp, ebp
pop ebp
ret

Function at 0x404c60
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x9ac
mov eax, dword [0x416048]
xor eax, esp
mov dword [esp + 0x9a8], eax
mov eax, dword [ebp + 0xc]
push ebx
xor ebx, ebx
lea ecx, [esp + 0x1a8]
cmp eax, ebx
je 0x404c8d
mov ecx, eax
xor eax, eax
mov word [ecx], ax
lea ecx, [esp + 0x18]
push ecx
push 0x101
mov dword [esp + 0xc], ebx
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x404cbf
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x9a8]
xor ecx, esp
call fcn.00405708
mov esp, ebp
pop ebp
ret
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi], eax
cmp eax, 0xffffffff
je 0x404caa
push edi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x404cfb
push edi
call dword [sym.imp.WS2_32.dll_inet_addr]
push 2
push 4
lea edx, [esp + 0xc]
push edx
mov dword [esp + 0x10], eax
call dword [sym.imp.WS2_32.dll_gethostbyaddr]
test eax, eax
je 0x404d4d
mov eax, dword [eax + 0xc]
mov ecx, dword [eax]
mov edx, dword [ecx]
mov ecx, dword [ebp + 8]
mov eax, 2
push ecx
mov dword [esp + 0x10], edx
mov word [esp + 0xc], ax
call dword [sym.imp.WS2_32.dll_htons]
push 0x10
lea edx, [esp + 0xc]
mov word [esp + 0xe], ax
mov eax, dword [esi]
push edx
push eax
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
jne 0x404d4d
mov ebx, 1
mov eax, ebx
pop ebx
mov ecx, dword [esp + 0x9a8]
xor ecx, esp
call fcn.00405708
mov esp, ebp
pop ebp
ret
mov eax, dword [esi]
test eax, eax
je 0x404d5c
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [esi], ebx
mov ecx, dword [esp + 0x9ac]
mov eax, ebx
pop ebx
xor ecx, esp
call fcn.00405708
mov esp, ebp
pop ebp
ret
Function at 0x404ee0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 8]
xor eax, eax
push ebx
push esi
mov dword [ebp - 4], eax
cmp dword [ecx], eax
je 0x404f5c
cmp edi, eax
jle 0x404f06
mov ecx, dword [ebp + 0xc]
mov dl, byte [eax + ecx]
not dl
mov byte [eax + ecx], dl
inc eax
cmp eax, edi
jl 0x404ef6
lea ebx, [edi + 7]
push ebx
call fcn.004067ce
mov esi, eax
lea eax, [edi + 5]
mov word [esi], ax
mov ecx, dword [str.AS101]
mov eax, dword [ebp + 0xc]
mov dword [esi + 2], ecx
mov dl, byte [0x416f18]
push edi
push eax
lea ecx, [esi + 7]
push ecx
mov byte [esi + 6], dl
call fcn.00409bd0
mov edx, dword [ebp + 8]
mov eax, dword [edx]
add esp, 0x10
push 0
push ebx
push esi
push eax
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x404f5f
cmp eax, ebx
jne 0x404f5f
mov dword [ebp - 4], 1
jmp 0x404f5f
mov esi, dword [ebp + 8]
test esi, esi
je 0x404f6c
push esi
call fcn.00406ba7
add esp, 4
mov eax, dword [ebp - 4]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x405190
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8dc
mov eax, dword [0x416048]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x8dc], eax
mov eax, dword [ebp + 0xc]
mov ebx, ecx
push esi
push edi
mov dword [ebp - 0x8d8], edx
mov dword [ebp - 0x8d4], ebx
lea ecx, [ebp - 0x8cc]
test eax, eax
je 0x4051cc
mov ecx, eax
xor eax, eax
mov word [ecx], ax
mov esi, dword [edx]
xor edi, edi
mov dword [ebp - 0x8d0], edi
test esi, esi
je 0x405317
test ebx, ebx
je 0x405317
push 0xc7
lea ecx, [ebp - 0xcb]
push edi
push ecx
mov byte [ebp - 0xcc], al
call fcn.00409060
add esp, 0xc
push edi
push 2
lea edx, [ebp - 0xcc]
push edx
push esi
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
je 0x405315
test eax, eax
je 0x405315
movzx edi, word [ebp - 0xcc]
lea eax, [edi + 2]
push eax
xor esi, esi
call fcn.004067ce
add esp, 4
mov ebx, eax
test edi, edi
jle 0x4052f1
jmp 0x405250
mov eax, dword [ebp - 0x8d8]
push 0
mov ecx, edi
sub ecx, esi
push ecx
mov ecx, dword [eax]
lea edx, [esi + ebx]
push edx
push ecx
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
je 0x4052cb
test eax, eax
je 0x4052cb
add esi, eax
cmp edi, esi
jg 0x405250
cmp esi, 5
jl 0x4052f1
mov edx, dword [str.AS101]
sub esi, 5
cmp edx, dword [ebx]
jne 0x4052f1
mov al, byte [ebx + 4]
cmp al, byte [0x416f18]
jne 0x4052f1
test esi, esi
jle 0x4052aa
lea eax, [ebx + 5]
mov edi, esi
nop
mov cl, byte [eax]
not cl
mov byte [eax], cl
inc eax
dec edi
jne 0x4052a0
mov edi, dword [ebp - 0x8dc]
mov eax, dword [edi]
cmp eax, esi
jl 0x4052d3
mov eax, dword [ebp - 0x8d4]
push esi
lea edx, [ebx + 5]
push edx
push eax
call fcn.00409bd0
mov dword [edi], esi
jmp 0x4052e4
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x4052f1
mov edx, dword [ebp - 0x8d4]
push eax
lea ecx, [ebx + 5]
push ecx
push edx
call fcn.00409bd0
add esp, 0xc
mov dword [ebp - 0x8d0], 1
test ebx, ebx
je 0x4052fe
push ebx
call fcn.00406ba7
add esp, 4
mov eax, dword [ebp - 0x8d0]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00405708
mov esp, ebp
pop ebp
ret
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00405708
mov esp, ebp
pop ebp
ret
Function at 0x405330
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x102c
call fcn.0040ecd0
mov eax, dword [0x416048]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push 0x400
mov ebx, ecx
lea ecx, [ebp - 0x814]
push 0
push ecx
mov dword [ebp - 0x1028], eax
call fcn.00409060
push ebx
lea edx, [ebp - 0x814]
push 0x1ff
push edx
call fcn.0040578c
mov eax, ebx
add esp, 0x18
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x405380
sub eax, edx
push esi
sar eax, 1
push edi
lea edi, [ebp + eax*2 - 0x812]
mov ecx, 0x80
mov esi, 0x418a78
mov eax, ebx
rep movsd dword es:[edi], dword [esi]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4053b0
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 0x202]
push 0x10000
mov dword [ebp - 0x102c], eax
call fcn.0040624d
push 0x10000
xor esi, esi
mov ebx, eax
push esi
push ebx
call fcn.00409060
push 0x7fe
lea edx, [ebp - 0x1012]
xor ecx, ecx
push esi
push edx
mov dword [ebp - 0x1020], 0x10000
mov word [ebp - 0x1014], cx
call fcn.00409060
push 0x206
lea ecx, [ebp - 0x20a]
xor eax, eax
push esi
push ecx
mov dword [ebp - 0x101c], esi
mov dword [ebp - 0x1018], esi
mov dword [ebp - 0x1024], esi
mov word [ebp - 0x20c], ax
call fcn.00409060
add esp, 0x28
cmp dword [ebp + 0x10], esi
je 0x405454
lea edx, [ebp - 0x20c]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
jmp 0x4054ab
push 0x104
lea eax, [ebp - 0x414]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [ebp - 0x414]
push 0x5c
push ecx
call fcn.00406139
xor edx, edx
mov word [eax], dx
lea eax, [ebp - 0x414]
push eax
lea ecx, [ebp - 0x20c]
push 0x104
push ecx
call fcn.0040578c
push 0x4148c4
lea edx, [ebp - 0x20c]
push 0x103
push edx
call fcn.00405717
add esp, 0x20
mov ecx, dword [ebp + 0xc]
mov edi, dword [ebp - 0x1028]
lea eax, [ebp - 0x1014]
push eax
push ecx
lea esi, [ebp - 0x101c]
call fcn.00404c60
add esp, 8
test eax, eax
je 0x40559e
mov eax, dword [ebp - 0x102c]
lea edx, [ebp - 0x1014]
push edx
push eax
lea ecx, [ebp - 0x814]
push ecx
push 0xbba
mov edx, esi
call fcn.00404d80
add esp, 0x10
test eax, eax
je 0x40559e
lea edx, [ebp - 0x1014]
push edx
lea eax, [ebp - 0x1024]
push eax
mov ecx, esi
push ecx
lea edx, [ebp - 0x1020]
mov ecx, ebx
call fcn.00404f80
add esp, 0xc
test eax, eax
je 0x40559e
mov edx, 0xbba
cmp word [ebp - 0x1024], dx
jne 0x40559e
cmp dword [ebp - 0x1020], 0
je 0x40559e
cmp byte [ebx], 0
jne 0x40559e
push 0x418c78
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.00405717
push 0x414944
lea ecx, [ebp - 0x20c]
push ecx
lea edx, [ebp - 0x1018]
push edx
mov dword [ebp - 0x1018], 0
call fcn.00405a39
add esp, 0x18
cmp dword [ebp - 0x1018], 0
je 0x405594
lea eax, [ebp - 0x1018]
push eax
mov edi, esi
call fcn.004055e0
add esp, 4
mov dword [ebp - 0x1018], 1
pop edi
pop esi
test ebx, ebx
je 0x4055ad
push ebx
call fcn.004062e1
add esp, 4
mov eax, dword [ebp - 0x101c]
pop ebx
test eax, eax
je 0x4055bf
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x1018]
xor ecx, ebp
call fcn.00405708
mov esp, ebp
pop ebp
ret
Function at 0x4055e0
Capabilities:
Download and write a file
Receive and write data from server to client
Receive data
Receive data on socket
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.0040ecd0
mov eax, dword [0x416048]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [edi]
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
push ebx
push 4
lea ecx, [ebp - 0x1008]
push ecx
push edx
mov dword [ebp - 0x100c], eax
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 4
je 0x40562c
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00405708
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x1008], ebx
jbe 0x405678
push esi
mov ecx, dword [edi]
push 0
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_recv]
mov esi, eax
test esi, esi
je 0x405677
mov edx, dword [ebp - 0x100c]
mov eax, dword [edx]
push eax
push esi
lea ecx, [ebp - 0x1004]
push 1
push ecx
call fcn.00405f1f
add ebx, esi
add esp, 0x10
cmp ebx, dword [ebp - 0x1008]
jb 0x405635
pop esi
mov edx, dword [ebp - 0x100c]
mov eax, dword [edx]
push eax
call fcn.00405d54
mov ecx, dword [ebp - 4]
add esp, 4
cmp ebx, dword [ebp - 0x1008]
pop ebx
sbb eax, eax
xor ecx, ebp
inc eax
call fcn.00405708
mov esp, ebp
pop ebp
ret

Function at 0x405708
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x416048]
jne 0x405712
repz ret
jmp fcn.00406e8e
Function at 0x40f06b
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x416048]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0040abd3
and dword [ebp - 0x14], 0
cmp dword [0x417cac], 0
mov dword [ebp - 0x18], eax
jne 0x40f11e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x40f1c6
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x40f1c6
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x417cac], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x417cb0], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x417cb4], eax
call edi
push eax
call esi
mov dword [0x417cbc], eax
test eax, eax
je 0x40f11e
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x417cb8], eax
mov eax, dword [0x417cb8]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x40f177
cmp dword [0x417cbc], ecx
je 0x40f177
push eax
call esi
push dword [0x417cbc]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x40f177
test ebx, ebx
je 0x40f177
call edi
test eax, eax
je 0x40f16e
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40f16e
test byte [ebp - 8], 1
jne 0x40f177
or dword [ebp + 0x10], 0x200000
jmp 0x40f1aa
mov eax, dword [0x417cb0]
cmp eax, dword [ebp - 0x18]
je 0x40f1aa
push eax
call esi
test eax, eax
je 0x40f1aa
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40f1aa
mov eax, dword [0x417cb4]
cmp eax, dword [ebp - 0x18]
je 0x40f1aa
push eax
call esi
test eax, eax
je 0x40f1aa
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x417cac]
call esi
test eax, eax
je 0x40f1c6
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x40f1c8
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00405708
leave
ret
Function at 0x10001c50
Capabilities:
Link many functions at runtime

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 0x24], 0
jne 0x10001ce8
push str.avifil32.dll
call fcn.1000b800
test al, al
jne 0x10001c6d
pop esi
ret
push str.AVIFileInit
push dword [esi + 4]
call dword [sym.imp.kernel32.dll_GetProcAddress]
push str.AVIFileExit
push dword [esi + 4]
mov dword [esi + 8], eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
push str.AVIFileRelease
push dword [esi + 4]
mov dword [esi + 0xc], eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
push str.AVIFileOpen
push dword [esi + 4]
mov dword [esi + 0x10], eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
push str.AVIStreamInfo
push dword [esi + 4]
mov dword [esi + 0x14], eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
push str.AVIStreamOpenFromFile
push dword [esi + 4]
mov dword [esi + 0x18], eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
push str.AVIStreamRelease
push dword [esi + 4]
mov dword [esi + 0x1c], eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
mov dword [esi + 0x20], eax
mov byte [esi + 0x24], 1
mov al, 1
pop esi
ret

Function at 0x10001d30
Capabilities:
Link many functions at runtime

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 0x24], 0
jne 0x10001dc8
push str.winmm.dll
call fcn.1000b800
test al, al
jne 0x10001d4d
pop esi
ret
push str.mmioInstallIOProcA
push dword [esi + 4]
call dword [sym.imp.kernel32.dll_GetProcAddress]
push str.mmioOpenA
push dword [esi + 4]
mov dword [esi + 8], eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
push str.mmioClose
push dword [esi + 4]
mov dword [esi + 0xc], eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
push str.mmioAscend
push dword [esi + 4]
mov dword [esi + 0x10], eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
push str.mmioRead
push dword [esi + 4]
mov dword [esi + 0x14], eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
push str.mmioDescend
push dword [esi + 4]
mov dword [esi + 0x18], eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
push str.mciSendCommandA
push dword [esi + 4]
mov dword [esi + 0x1c], eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
mov dword [esi + 0x20], eax
mov byte [esi + 0x24], 1
mov al, 1
pop esi
ret
Function at 0x10005720
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0x14]
sub esp, 0x10
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 0x20]
mov dword [ecx], eax
mov eax, dword [ebp + 0x18]
push edi
mov dword [esi], eax
mov ecx, dword [ecx]
cmp ecx, dword [ebp + 0x10]
je 0x1000587f
mov eax, ecx
mov dword [ebp - 0xc], eax
mov edx, dword [ebp + 0x1c]
xor ebx, ebx
inc ebx
mov edi, 0x3ff
mov ecx, eax
cmp dword [esi], edx
je 0x1000587f
mov edx, dword [ebp + 8]
movzx ecx, word [eax]
mov eax, ecx
mov byte [ebp - 1], 0
movzx edx, word [edx]
cmp bx, dx
jae 0x1000579f
lea eax, [ecx + 0x2400]
cmp ax, di
ja 0x1000588e
mov eax, edx
lea ebx, [ecx - 0xdc00]
shl eax, 0xa
or ebx, eax
mov cl, byte [ebp - 1]
cmp ebx, 0x80
jae 0x100057bc
mov dl, bl
xor edi, edi
jmp 0x100057ec
mov ebx, eax
lea eax, [ecx + 0x2800]
cmp ax, di
ja 0x1000578e
add ebx, 0xffff2840
mov cl, 1
shl ebx, 0xa
mov byte [ebp - 1], cl
jmp 0x10005791
mov edx, ebx
cmp ebx, 0x800
jae 0x100057d1
shr edx, 6
xor edi, edi
or dl, 0xc0
inc edi
jmp 0x100057ec
cmp ebx, 0x10000
jae 0x100057e3
shr edx, 0xc
or dl, 0xe0
push 2
jmp 0x100057eb
shr edx, 0x12
or dl, 0xf0
push 3
pop edi
movzx eax, cl
mov ecx, dword [ebp - 0xc]
xor eax, 1
add eax, eax
cmp edi, 3
cmovb eax, edi
mov dword [ebp - 0x10], eax
inc eax
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x1c]
sub eax, dword [esi]
cmp eax, dword [ebp - 8]
jl 0x1000587f
mov eax, ecx
mov ecx, dword [ebp + 0x14]
add eax, 2
cmp byte [ebp - 1], 0
mov dword [ecx], eax
jne 0x10005823
cmp edi, 3
jae 0x1000582e
mov eax, dword [esi]
mov byte [eax], dl
inc dword [esi]
mov eax, dword [ebp - 0x10]
jmp 0x10005831
mov eax, dword [ebp - 8]
test eax, eax
je 0x10005856
imul ecx, edi, 6
sub ecx, 6
mov edx, ebx
dec eax
shr edx, cl
mov dword [ebp - 8], eax
and dl, 0x3f
mov eax, dword [esi]
or dl, 0x80
mov byte [eax], dl
inc dword [esi]
mov eax, dword [ebp - 8]
test eax, eax
jg 0x10005838
xor ecx, ecx
shr ebx, 0xa
inc ecx
movzx eax, bx
cmp byte [ebp - 1], 0
cmovne ecx, eax
mov eax, dword [ebp + 8]
mov word [eax], cx
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax]
mov eax, ecx
mov dword [ebp - 0xc], eax
cmp ecx, dword [ebp + 0x10]
jne 0x10005749
xor eax, eax
cmp dword [ebp + 0xc], ecx
sete al
pop edi
pop esi
pop ebx
leave
ret 0x1c
push 2
pop eax
jmp 0x10005887

Function at 0x1000b110
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
mov eax, dword [esi + 0xc]
sub eax, dword [esi + 4]
cmp eax, 0x1a
jl 0x1000b168
mov eax, dword [esi + 8]
cmp eax, dword [esi]
jl 0x1000b168
push 0
push dword [edi + 0x18]
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [esi + 0xc]
sub eax, dword [esi + 4]
push 0x10
push eax
mov eax, dword [esi + 8]
sub eax, dword [esi]
push eax
push dword [esi + 4]
push dword [esi]
push 0
push dword [edi + 0x18]
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, edi
call fcn.1000b800
push 1
push dword [edi + 0x18]
call dword [sym.imp.USER32.dll_ShowWindow]
pop edi
pop esi
pop ebp
ret 4
Function at 0x1000b700
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
push dword [ebp + 0xc]
push 0xd
push dword [ecx + 0x38]
call dword [sym.imp.USER32.dll_SendMessageA]
pop ebp
ret 8

Function at 0x1000b800
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
pushal
call 0x1000b80f
pop dword [ebp - 0x2c]
mov eax, 0x42e62021
sub eax, 0x32e56812
sub dword [ebp - 0x2c], eax
mov dword [ebp - 0x3c], 0xe7d1e725
add dword [ebp - 0x3c], 0x66805e26
mov dword [ebp - 0x38], 0x61c207ba
add dword [ebp - 0x38], 0xd071448b
mov dword [ebp - 0x34], 0x47d7f96c
add dword [ebp - 0x34], 0x4744ac2
mov dword [ebp - 0x30], 0xec9ccb2f
sub dword [ebp - 0x30], 0xec9ccb2f
lea eax, [ebp - 0x3c]
push eax
mov eax, 0xdf5d96c7
sub eax, 0xcf5ca617
add eax, dword [ebp - 0x2c]
call dword [eax]
mov dword [ebp - 0x3c], 0x895c9f1b
add dword [ebp - 0x3c], 0xeb15ca3b
mov dword [ebp - 0x38], 0x9bd1e878
sub dword [ebp - 0x38], 0x5a658703
mov dword [ebp - 0x34], 0xa496835d
add dword [ebp - 0x34], 0xbed8e90f
mov dword [ebp - 0x30], 0x9b3d452f
add dword [ebp - 0x30], 0x64c2bad1
lea ebx, [ebp - 0x3c]
push ebx
push eax
mov eax, 0x470b170
add eax, 0xb903f38
add eax, dword [ebp - 0x2c]
call dword [eax]
push 0x40
push 0x1000
push 0x35705
push 0
call eax
mov ecx, 0xffe3059d
add ecx, 0x1d3519
mov ebx, eax
mov edx, 0x7997d8c
add edx, 0x868ba74
add edx, dword [ebp - 0x2c]
mov edi, 0xe67892d
sub edi, 0x8058ee13
xor dword [ebp - 0xc], 0xec049964
mov esi, dword [edx]
xor dword [ebp - 8], 0x9bc13267
sub esi, edi
add dword [ebp - 0x28], 0xc7fd34c9
mov dword [ebx], esi
xor dword [ebp - 0x14], 0x52615f62
add ebx, 0xa8420d18
sub ebx, 0xa8420d14
add edx, 4
loop 0x1000b931
add eax, 0xa0af1799
sub eax, 0xa0ae39ee
mov ebx, eax
add eax, 0x2dc2e670
sub eax, 0x2dc2e66b
mov ecx, 0x41b52e6d
add ecx, 0xce4ad193
add ecx, dword [ebp - 0x2c]
call ebx
leave
ret
Function at 0x4035ac
Capabilities:
Generate random numbers using the delphi lcg

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

Function at 0x41cb84
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 0x41cbb5
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cb9d
add dl, dl
jne 0x41cbc0
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cc11
xor eax, eax
add dl, dl
jne 0x41cbcd
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41ccae
add dl, dl
jne 0x41cbdc
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cbe7
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cbf2
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cbfd
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x41cc07
mov ebx, edi
sub ebx, eax
mov al, byte [ebx]
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x41cbac
mov eax, 1
add dl, dl
jne 0x41cc1f
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cc2a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cc16
sub eax, ebx
mov ebx, 1
jne 0x41cc5d
mov ecx, 1
add dl, dl
jne 0x41cc43
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41cc4e
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cc3a
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41cbac
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x41cc74
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41cc7f
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cc6b
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 0x41cbac
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x41cccf
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 0x41cbac
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
Function at 0x41dffc
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x45d4bb
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
mov ecx, ebx
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [ecx + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x78]
test edx, edx
je 0x41e0ad
add edx, ebx
mov eax, edx
mov esi, dword [eax + 0x18]
mov edx, dword [eax + 0x1c]
add edx, ebx
mov dword [ebp - 0x10], edx
mov edi, dword [eax + 0x20]
add edi, ebx
mov edx, dword [eax + 0x24]
add edx, ebx
mov dword [ebp - 0xc], edx
mov edx, dword [ebp - 4]
cmp edx, 0xffff
jbe 0x41e096
test esi, esi
jbe 0x41e0ad
mov eax, dword [edi]
add eax, ebx
mov edx, dword [ebp - 4]
call fcn.004088a4
test eax, eax
jne 0x41e088
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
jmp 0x41e0ad
add dword [ebp - 0xc], 2
add edi, 4
dec esi
test esi, esi
ja 0x41e065
jmp 0x41e0ad
mov ecx, edx
sub ecx, dword [eax + 0x10]
cmp ecx, dword [eax + 0x14]
jae 0x41e0ad
mov eax, ecx
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45d4c2
ret