joyce8/EMBER2024-capa huggingface dataset:
Function at 0x459c10
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48f528
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x4e32e0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x14], esi
mov ebx, dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 4], 0
lea ecx, [ecx]
mov eax, dword [esi + 0xb4]
sub eax, 0xffffff80
cmp dword [eax], 0
jne 0x459e21
mov ecx, esi
call fcn.00457bc0
test al, al
jne 0x459e21
cmp dword [esi + 0xa4], 0
jne 0x459ca1
cmp dword [esi + 0xa8], 0
je 0x459e21
cmp dword [esi + 0xa4], 0
jne 0x459ca1
push 0
mov ecx, esi
call fcn.00459a10
test al, al
je 0x459e21
mov eax, dword [esi + 0xa4]
push 0
mov eax, dword [eax + 0x10]
mov ecx, dword [eax + 0x10]
mov eax, dword [esi + 0xa4]
mov eax, dword [eax + 0x38]
sub eax, dword [esi + 0xb0]
push eax
mov eax, dword [esi + 0xb0]
add eax, ecx
push eax
mov eax, dword [esi + 0xb4]
push dword [eax + 0xa0]
call dword [sym.imp.WS2_32.dll_send]
mov edi, eax
test edi, edi
js 0x459d03
mov ecx, dword [esi + 0xb8]
mov edx, dword [ecx + 0x154]
mov ecx, dword [esi + 0xb4]
add ecx, 0x70
push edx
call fcn.00448ca0
add dword [esi + 0xb0], edi
jmp 0x459d20
cmp edi, 0xffffffff
jne 0x459e4a
call ebx
mov edx, eax
test edx, edx
je 0x459d20
cmp edx, 0x2733
jne 0x459e4f
mov eax, dword [esi + 0xa4]
mov eax, dword [eax + 0x38]
cmp dword [esi + 0xb0], eax
jne 0x459e21
mov eax, dword [esi + 0xb0]
mov ecx, dword [esi + 0xb4]
add ecx, 0x50
push eax
call fcn.00448c80
mov eax, dword [esi + 0xa4]
mov eax, dword [eax + 0x34]
mov ecx, dword [esi + 0xb4]
add ecx, 0x58
push eax
call fcn.00448c80
mov ecx, dword [esi + 0xa4]
mov eax, dword [ecx]
call dword [eax + 4]
push 0
push 1
push dword [esi + 0x38]
mov dword [esi + 0xa4], 0
mov dword [esi + 0xb0], 0
call dword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
push 1
mov ecx, esi
call fcn.00459a10
test al, al
jne 0x459c50
push 0
mov ecx, 0x4e97d0
call fcn.00458d50
mov ecx, dword [esi + 0xb4]
mov edi, eax
mov dword [ebp - 0x18], edi
mov dword [edi + 0x48], ecx
mov ecx, dword [esi + 0xb4]
mov ecx, dword [ecx + 0x88]
cmp dword [ecx + 0x14c], 0
lea ecx, [edi + 0x10]
je 0x459deb
mov eax, dword [esi + 0xb4]
push ecx
mov eax, dword [eax + 0x88]
mov ecx, dword [eax + 0x14c]
call fcn.00452440
jmp 0x459e21
mov eax, dword [ecx]
mov byte [ebp - 4], 1
call dword [eax + 0xc]
jmp 0x459e02
mov eax, dword [edi + 0x10]
lea ecx, [edi + 0x10]
mov dword [ebp - 4], 0
mov byte [ebp - 4], 3
call dword [eax + 4]
jmp 0x459e21
mov ecx, dword [esi + 0xb4]
add ecx, 0x60
mov dword [ebp - 4], 0xffffffff
call fcn.00448cc0
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, 0xfffffffe
mov eax, dword [esi + 0xb4]
push edx
push 0
mov ecx, dword [eax + 0x88]
mov eax, dword [esi + 0xb4]
push eax
call fcn.0044c5d0
jmp 0x459e21
Function at 0x45a3a0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48da9b
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x4e32e0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov eax, dword [ebp + 8]
mov edx, 1
test eax, eax
mov dword [esi], vtable.dbc::PreAllocHeap_class_dbc::OnProcessData_.0
push 0x80000fa0
cmovne edx, eax
mov dword [esi + 4], 0
lea eax, [esi + 0x18]
mov dword [esi + 8], edx
mov dword [esi + 0xc], edx
push eax
mov byte [esi + 0x10], 0
mov dword [esi + 0x14], 0xfa0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSectionAndSpinCount]
mov byte [esi + 0x10], 1
mov dword [esi + 0x30], 0
lea ecx, [esi + 0x38]
push 0
mov dword [ebp - 4], 0
mov dword [esi + 0x34], 0
call fcn.00448a60
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x45a440
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48e29b
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x4e32e0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov eax, dword [ebp + 0xc]
mov esi, 1
test eax, eax
mov dword [edi], vtable.dbc::PreAllocHeap_class_dbc::OnProcessData_.0
mov edx, esi
cmovne edx, eax
mov eax, dword [ebp + 8]
test eax, eax
mov dword [edi + 4], edx
push 0x80000fa0
cmovne esi, eax
lea eax, [edi + 0x18]
mov dword [edi + 8], esi
mov dword [edi + 0xc], esi
push eax
mov byte [edi + 0x10], 0
mov dword [edi + 0x14], 0xfa0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSectionAndSpinCount]
mov byte [edi + 0x10], 1
mov dword [edi + 0x30], 0
lea ecx, [edi + 0x38]
push 0
mov dword [ebp - 4], 0
mov dword [edi + 0x34], 0
call fcn.00448a60
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x45b900
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48da9b
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x4e32e0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov eax, dword [ebp + 8]
mov edx, 1
test eax, eax
mov dword [esi], vtable.dbc::PreAllocHeap_class_dbc::OnConnect_.0
push 0x80000fa0
cmovne edx, eax
mov dword [esi + 4], 0
lea eax, [esi + 0x18]
mov dword [esi + 8], edx
mov dword [esi + 0xc], edx
push eax
mov byte [esi + 0x10], 0
mov dword [esi + 0x14], 0xfa0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSectionAndSpinCount]
mov byte [esi + 0x10], 1
mov dword [esi + 0x30], 0
lea ecx, [esi + 0x38]
push 0
mov dword [ebp - 4], 0
mov dword [esi + 0x34], 0
call fcn.00448a60
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x45b9a0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48e29b
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x4e32e0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov eax, dword [ebp + 0xc]
mov esi, 1
test eax, eax
mov dword [edi], vtable.dbc::PreAllocHeap_class_dbc::OnConnect_.0
mov edx, esi
cmovne edx, eax
mov eax, dword [ebp + 8]
test eax, eax
mov dword [edi + 4], edx
push 0x80000fa0
cmovne esi, eax
lea eax, [edi + 0x18]
mov dword [edi + 8], esi
mov dword [edi + 0xc], esi
push eax
mov byte [edi + 0x10], 0
mov dword [edi + 0x14], 0xfa0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSectionAndSpinCount]
mov byte [edi + 0x10], 1
mov dword [edi + 0x30], 0
lea ecx, [edi + 0x38]
push 0
mov dword [ebp - 4], 0
mov dword [edi + 0x34], 0
call fcn.00448a60
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x45c710
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48f890
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x4e32e0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, ecx
mov eax, dword [ebx + 0x38]
lea ecx, [ebp - 0x30]
push ecx
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x30], 0x10
push ecx
mov eax, dword [eax + 0x170]
push eax
call dword [sym.imp.WS2_32.dll_accept]
mov ecx, dword [ebx + 0x38]
mov edi, eax
mov byte [ecx + 0x16c], 0
cmp edi, 0xffffffff
jne 0x45c777
or eax, eax
jmp 0x45c842
lea eax, [ebp - 0x34]
mov dword [ebp - 0x34], 1
push eax
push 0x8004667e
push edi
call dword [sym.imp.WS2_32.dll_ioctlsocket]
test eax, eax
jne 0x45c840
push 4
lea eax, [ebp - 0x28]
mov dword [ebp - 0x28], 1
push eax
push 8
push 0xffff
push edi
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jne 0x45c840
push eax
mov ecx, 0x4e94b4
call fcn.0044cb60
mov ecx, dword [ebx + 0x38]
mov esi, eax
push 1
push ecx
push dword [ebp - 0x22]
call dword [sym.imp.WS2_32.dll_ntohs]
movzx ecx, ax
push ecx
push dword [ebp - 0x20]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
push edi
mov ecx, esi
call fcn.0044aac0
push 0
mov ecx, 0x4e9858
call fcn.0045be40
mov edi, eax
mov dword [ebp - 0x2c], edi
mov dword [edi + 0x48], esi
mov ecx, dword [esi + 0x88]
mov dword [edi + 0x4c], ecx
mov ecx, dword [ebx + 0x38]
cmp dword [ecx + 0x14c], 0
je 0x45c86b
mov ecx, dword [ebx + 0x38]
add ecx, 0x164
call fcn.00448cf0
mov eax, dword [ebx + 0x38]
cmp dword [eax + 0x160], 0
mov ecx, dword [ebx + 0x38]
jne 0x45c85e
mov ecx, dword [ecx + 0x14c]
lea eax, [edi + 0x10]
push eax
call fcn.00452440
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004670fe
mov esp, ebp
pop ebp
ret
add ecx, 0x164
call fcn.00448cc0
jmp 0x45c840
mov eax, dword [edi + 0x10]
lea ecx, [edi + 0x10]
mov dword [ebp - 4], 0
call dword [eax + 0xc]
mov eax, dword [edi]
mov ecx, edi
mov dword [ebp - 4], 2
call dword [eax + 4]
jmp 0x45c840
Function at 0x45ff40
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48ffe0
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x4e32e0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, ecx
mov dword [ebp - 0x18], ebx
push str.Close_All_LG_n
lea eax, [ebx + 4]
push eax
call fcn.00460620
add esp, 8
lea eax, [ebx + 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x20], eax
xor edi, edi
mov dword [ebp - 0x1c], edi
mov esi, dword [ebx + 0x5c]
mov esi, dword [esi]
mov dword [ebp - 0x14], esi
cmp esi, dword [ebx + 0x5c]
je 0x46000f
mov edi, dword [esi + 0x28]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, eax
mov ecx, edi
call fcn.0045fea0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, ebx
mov edi, dword [ebp - 0x1c]
add edi, eax
mov dword [ebp - 0x1c], edi
cmp byte [esi + 0xd], 0
jne 0x46000a
mov eax, dword [esi + 8]
cmp byte [eax + 0xd], 0
jne 0x45fff0
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0xd], 0
je 0x45ffde
mov dword [ebp - 0x14], esi
mov ebx, dword [ebp - 0x18]
jmp 0x45ffa8
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x460005
cmp esi, dword [eax + 8]
jne 0x460005
mov esi, eax
mov dword [ebp - 0x14], esi
jmp 0x45fff0
mov esi, eax
mov dword [ebp - 0x14], esi
mov ebx, dword [ebp - 0x18]
jmp 0x45ffa8
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
lea esi, [ebx + 4]
sub ecx, dword [ebp - 0x20]
mov eax, 0x10624dd3
mul ecx
shr edx, 6
push edx
push str.CloseAll_consume__ds_n
push esi
call fcn.00460620
mov eax, 0x10624dd3
mul edi
shr edx, 6
push edx
push str.Close_consume__ds_n
push esi
call fcn.00460620
add esp, 0x18
mov dword [ebp - 4], 0xffffffff
jmp 0x460079
lea eax, [ebx + 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x462f10
Capabilities:
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, dword [ebp + 8]
mov ebx, ecx
xor edx, edx
lea esp, [esp]
movsx eax, byte [edx + 0x4bfbf0]
movzx eax, byte [eax + edi - 1]
mov byte [ebx + edx + 0x601], al
movsx eax, byte [edx + 0x4bfbf1]
movzx eax, byte [eax + edi - 1]
mov byte [ebx + edx + 0x602], al
movsx eax, byte [edx + 0x4bfbf2]
movzx eax, byte [eax + edi - 1]
mov byte [ebx + edx + 0x603], al
movsx eax, byte [edx + 0x4bfbf3]
movzx eax, byte [eax + edi - 1]
mov byte [ebx + edx + 0x604], al
movsx eax, byte [edx + 0x4bfbf4]
movzx eax, byte [eax + edi - 1]
mov byte [ebx + edx + 0x605], al
movsx eax, byte [edx + 0x4bfbf5]
movzx eax, byte [eax + edi - 1]
mov byte [ebx + edx + 0x606], al
add edx, 6
cmp edx, 0x30
jl 0x462f20
push esi
lea eax, [ebx + 0x601]
push 0x30
push eax
lea esi, [ebx + 0x711]
mov dword [ebp + 8], eax
push esi
call fcn.00467590
add esp, 0xc
mov ecx, ebx
push 0x30
push dword [ebp + 0xc]
push esi
call fcn.00463a00
push esi
push edi
mov ecx, ebx
call fcn.00463040
xor eax, eax
pop esi
nop
movsx ecx, byte [eax + 0x4bfc20]
movzx ecx, byte [ecx + edi - 1]
mov byte [ebx + eax + 0x601], cl
movsx ecx, byte [eax + 0x4bfc21]
movzx ecx, byte [ecx + edi - 1]
mov byte [ebx + eax + 0x602], cl
movsx ecx, byte [eax + 0x4bfc22]
movzx ecx, byte [ecx + edi - 1]
mov byte [ebx + eax + 0x603], cl
movsx ecx, byte [eax + 0x4bfc23]
movzx ecx, byte [ecx + edi - 1]
mov byte [ebx + eax + 0x604], cl
add eax, 4
cmp eax, 0x20
jl 0x462fd0
push 0x20
push dword [ebp + 8]
push edi
call fcn.00467590
add esp, 0xc
pop edi
pop ebx
pop ebp
ret 8
Function at 0x4637f0
Capabilities:
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, ecx
xor edx, edx
push esi
push edi
mov edi, dword [ebp + 0xc]
lea esi, [ebx + 0x7ac]
mov eax, edx
mov cl, dl
sar eax, 3
and cl, 7
mov al, byte [eax + edi]
sar al, cl
and al, 1
mov byte [esi + edx], al
inc edx
cmp edx, 0x40
jl 0x463803
xor ecx, ecx
nop
movsx eax, byte [ecx + str.91__]
movzx eax, byte [eax + ebx + 0x7ab]
mov byte [ebx + ecx + 0x601], al
movsx eax, byte [ecx + 0x4bfc41]
movzx eax, byte [eax + ebx + 0x7ab]
mov byte [ebx + ecx + 0x602], al
movsx eax, byte [ecx + 0x4bfc42]
movzx eax, byte [eax + ebx + 0x7ab]
mov byte [ebx + ecx + 0x603], al
movsx eax, byte [ecx + 0x4bfc43]
movzx eax, byte [eax + ebx + 0x7ab]
mov byte [ebx + ecx + 0x604], al
add ecx, 4
cmp ecx, 0x38
jl 0x463820
lea eax, [ebx + 0x601]
push 0x38
push eax
push esi
call fcn.00467590
add esp, 0xc
xor eax, eax
mov dword [ebp + 0xc], eax
jmp 0x4638a0
movsx esi, byte [eax + 0x4bfca8]
lea eax, [ebx + 0x601]
mov edi, dword [ebx + 0x7ec]
push esi
push edi
push eax
call fcn.00467590
mov eax, 0x1c
sub eax, esi
push eax
lea eax, [edi + esi]
push eax
push edi
call fcn.00467590
push esi
lea eax, [ebx + 0x601]
sub edi, esi
push eax
add edi, 0x1c
push edi
call fcn.00467590
mov eax, dword [ebp + 0xc]
mov edi, dword [ebx + 0x7f0]
movsx esi, byte [eax + 0x4bfca8]
lea eax, [ebx + 0x601]
push esi
push edi
push eax
call fcn.00467590
mov eax, 0x1c
sub eax, esi
push eax
lea eax, [edi + esi]
push eax
push edi
call fcn.00467590
push esi
lea eax, [ebx + 0x601]
sub edi, esi
push eax
add edi, 0x1c
push edi
call fcn.00467590
add esp, 0x48
xor eax, eax
jmp 0x463930
movsx ecx, byte [eax + 0x4bfc78]
movzx ecx, byte [ecx + ebx + 0x7ab]
mov byte [ebx + eax + 0x601], cl
movsx ecx, byte [eax + 0x4bfc79]
movzx ecx, byte [ecx + ebx + 0x7ab]
mov byte [ebx + eax + 0x602], cl
movsx ecx, byte [eax + 0x4bfc7a]
movzx ecx, byte [ecx + ebx + 0x7ab]
mov byte [ebx + eax + 0x603], cl
movsx ecx, byte [eax + 0x4bfc7b]
movzx ecx, byte [ecx + ebx + 0x7ab]
mov byte [ebx + eax + 0x604], cl
movsx ecx, byte [eax + 0x4bfc7c]
movzx ecx, byte [ecx + ebx + 0x7ab]
mov byte [ebx + eax + 0x605], cl
movsx ecx, byte [eax + 0x4bfc7d]
movzx ecx, byte [ecx + ebx + 0x7ab]
mov byte [ebx + eax + 0x606], cl
add eax, 6
cmp eax, 0x30
jl 0x463930
mov esi, dword [ebp + 8]
lea eax, [ebx + 0x601]
push 0x30
push eax
push esi
call fcn.00467590
mov eax, dword [ebp + 0xc]
add esi, 0x30
inc eax
mov dword [ebp + 8], esi
add esp, 0xc
mov dword [ebp + 0xc], eax
cmp eax, 0x10
jl 0x4638a0
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x463a00
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0x10]
xor ecx, ecx
test edx, edx
jle 0x463a8e
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
cmp edx, 0x10
jb 0x463a72
push ebx
lea eax, [esi - 1]
lea ebx, [edi - 1]
add eax, edx
add ebx, edx
cmp edi, eax
ja 0x463a30
cmp ebx, esi
jae 0x463a71
mov eax, edx
and eax, reloc.WS2_32.dll_ntohs
jns 0x463a3e
dec eax
or eax, 0xfffffff0
inc eax
mov ebx, edx
mov edx, esi
sub ebx, eax
sub edx, edi
mov dword [ebp + 8], edx
mov eax, edi
mov edx, dword [ebp + 0x10]
mov esi, dword [ebp + 8]
movdqu xmm1, xmmword [esi + eax]
add ecx, 0x10
lea eax, [eax + 0x10]
movdqu xmm0, xmmword [eax - 0x10]
pxor xmm1, xmm0
movdqu xmmword [eax - 0x10], xmm1
cmp ecx, ebx
jl 0x463a51
mov esi, dword [ebp + 0xc]
pop ebx
cmp ecx, edx
jge 0x463a8c
sub esi, edi
lea eax, [ecx + edi]
sub edx, ecx
lea ecx, [ecx]
mov cl, byte [eax + esi]
lea eax, [eax + 1]
xor byte [eax - 1], cl
dec edx
jne 0x463a80
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x4827ee
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4e32e0]
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
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00472060
mov dword [ebp - 0x14], eax
cmp dword [0x4eb71c], esi
jne 0x4828e1
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x48286e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x4829c1
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x4829c1
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4829c1
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x4eb71c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x4eb720], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x4eb724], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4eb72c], eax
test eax, eax
je 0x4828de
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4eb728], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x482906
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4828f9
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x48291b
push 4
pop eax
jmp 0x4829c3
cmp dword [ebp - 0x14], esi
je 0x48291b
push dword [0x4eb71c]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x482900
mov eax, dword [0x4eb728]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x482979
cmp dword [0x4eb72c], edi
je 0x482979
push eax
call ebx
push dword [0x4eb72c]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x482979
test eax, eax
je 0x482979
call ecx
test eax, eax
je 0x48296e
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 0x48296e
test byte [ebp - 8], 1
jne 0x482979
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x4829a9
mov eax, dword [0x4eb720]
cmp eax, edi
je 0x4829a6
push eax
call ebx
test eax, eax
je 0x4829a6
call eax
mov esi, eax
test esi, esi
je 0x4829a6
mov eax, dword [0x4eb724]
cmp eax, edi
je 0x4829a6
push eax
call ebx
test eax, eax
je 0x4829a6
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x4eb71c]
call ebx
test eax, eax
je 0x4829c1
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x4829c3
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004670fe
mov esp, ebp
pop ebp
ret
Function at 0x43ad18
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push 0x403cf6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xa8
push ebx
push esi
push edi
mov dword [ebp - 8], esp
mov dword [ebp - 4], 0x403ca0
mov edx, dword [ebp + 8]
xor esi, esi
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x4c], esi
mov dword [ebp - 0x5c], esi
mov dword [ebp - 0x6c], esi
mov dword [ebp - 0x8c], esi
call sub.MSVBVM60.DLL___vbaStrCopy
push dword [ebp - 0x2c]
call sub.MSVBVM60.DLL___vbaLenBstr
mov ecx, eax
call sub.MSVBVM60.DLL___vbaI2I4
mov edi, eax
cmp di, 0xff
mov dword [ebp - 0x18], edi
jg 0x43aeb4
xor eax, eax
push 1
mov dword [ebp - 0x1c], eax
pop esi
push 1
pop ecx
cmp di, cx
jl 0x43aeb1
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x64], eax
lea eax, [ebp - 0x3c]
push eax
movsx eax, di
push eax
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x4c]
push eax
mov dword [ebp - 0x84], 0x408094
mov dword [ebp - 0x8c], 8
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x3c], 2
mov dword [ebp - 0x6c], 0x4008
call sub.MSVBVM60.DLL_rtcMidCharVar
push esi
lea eax, [ebp - 0x8c]
push eax
lea eax, [ebp - 0x4c]
push eax
push esi
lea eax, [ebp - 0x5c]
push eax
call sub.MSVBVM60.DLL___vbaInStrVar
push eax
call sub.MSVBVM60.DLL___vbaUI1Var
mov bl, al
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x3c]
push eax
push 3
call sub.MSVBVM60.DLL___vbaFreeVarList
add esp, 0x10
test bl, bl
je 0x43aeb4
xor cx, cx
mov cl, bl
sub cx, si
jo 0x43aef5
call sub.MSVBVM60.DLL___vbaUI1I2
mov bl, al
mov ax, word [ebp - 0x18]
sub ax, di
jo 0x43aef5
movsx eax, ax
mov dword [ebp - 0x9c], eax
push ecx
push ecx
fild dword [ebp - 0x9c]
fstp qword [ebp - 0xa4]
fld qword [ebp - 0xa4]
fstp qword [esp]
push ecx
fld qword [0x403c98]
push ecx
fstp qword [esp]
call sub.MSVBVM60.DLL___vbaPowerR8
xor eax, eax
mov al, bl
mov dword [ebp - 0xa8], eax
fild dword [ebp - 0xa8]
fstp qword [ebp - 0xb0]
fmul qword [ebp - 0xb0]
fild dword [ebp - 0x1c]
fstp qword [ebp - 0xb8]
fadd qword [ebp - 0xb8]
fnstsw ax
test al, 0xd
jne 0x43aef0
call sub.MSVBVM60.DLL___vbaFpI4
or ecx, 0xffffffff
add cx, di
jo 0x43aef5
mov dword [ebp - 0x1c], eax
mov edi, ecx
jmp 0x43ad8f
mov dword [ebp - 0x20], eax
wait
push 0x43aedc
jmp 0x43aed3
lea ecx, [ebp - 0x2c]
call sub.MSVBVM60.DLL___vbaFreeStr
ret
jmp fcn.00403cfc
call sub.MSVBVM60.DLL___vbaErrorOverflow