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

Disassembly:
mov eax, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push edi
push 0
push dword [esp + 0x20]
push dword [esp + 0x20]
push dword [ebp + eax*4 + 0x144]
call dword [sym.imp.WSOCK32.DLL_send]
mov ebx, dword [esp + 0x20]
mov edi, eax
mov dword [ebx], 0
cmp edi, 0xffffffff
jne 0x4168eb
push esi
call dword [sym.imp.WSOCK32.DLL_WSAGetLastError]
mov esi, eax
cmp esi, 0x2733
jne 0x4168c1
pop esi
pop edi
pop ebp
mov dword [ebx], 0x51
xor eax, eax
pop ebx
ret
push esi
push ebp
call fcn.0042ae60
push eax
push str.Send_failure:__s
push dword [ebp]
call fcn.00416500
mov eax, dword [ebp]
add esp, 0x14
mov dword [eax + 0x84f0], esi
mov eax, edi
mov dword [ebx], 0x37
pop esi
pop edi
pop ebp
pop ebx
ret

Function at 0x4169f0
Capabilities:
Write file on windows

Disassembly:
push edi
mov edi, dword [esp + 8]
mov eax, dword [edi + 0x164]
test eax, eax
je 0x416a19
push dword [edi + 0xf8]
push dword [esp + 0x18]
push dword [esp + 0x18]
push dword [esp + 0x18]
push edi
call eax
add esp, 0x14
pop edi
ret
mov eax, dword [esp + 0xc]
cmp eax, 2
ja 0x416a54
push dword [edi + 0xf4]
lea eax, [eax + eax*2]
push 1
add eax, 0x4d01d0
push 2
push eax
call dword [sym.imp.MSVCRT.dll_fwrite]
push dword [edi + 0xf4]
push 1
push dword [esp + 0x2c]
push dword [esp + 0x2c]
call dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x20
xor eax, eax
pop edi
ret
Function at 0x419630
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0xa8
mov eax, dword [0x4e4bb8]
mov dword [esp], 0x4020
mov dword [esp + 4], 0
mov dword [esp + 8], 4
test eax, eax
jne 0x4196b7
push 0x9c
push eax
lea eax, [esp + 0x14]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [esp + 0xc], 0x9c
mov dword [esp + 0x10], 6
push 3
push 2
push 0
push 0
call dword [sym.imp.KERNEL32.dll_VerSetConditionMask]
push edx
push eax
push 2
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoA]
test eax, eax
je 0x4196ab
mov dword [0x4e4bb8], 2
add esp, 0xa8
ret
mov dword [0x4e4bb8], 1
jmp 0x4196bc
cmp eax, 2
je 0x419708
lea eax, [esp + 8]
push eax
lea eax, [esp + 8]
push eax
push 0x1001
push 0xffff
push dword [esp + 0xbc]
call dword [sym.imp.WSOCK32.DLL_getsockopt]
test eax, eax
jne 0x4196ea
mov eax, dword [esp + 4]
cmp eax, dword [esp]
jg 0x419708
push 4
lea eax, [esp + 4]
push eax
push 0x1001
push 0xffff
push dword [esp + 0xbc]
call dword [sym.imp.WSOCK32.DLL_setsockopt]
add esp, 0xa8
ret
Function at 0x4198b0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x104
push ebx
mov ebx, dword [esp + 0x10c]
push ebp
cmp dword [ebx + 0x7c], 2
mov ebp, dword [ebx]
je 0x419a73
cmp byte [ebx + 0x231], 0
push esi
push edi
jne 0x419a27
mov esi, dword [esp + 0x11c]
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x98]
mov dword [esp + 0x14], pe_nt_image_headers32
push eax
push esi
call dword [sym.imp.WSOCK32.DLL_getpeername]
test eax, eax
je 0x41992b
call dword [sym.imp.WSOCK32.DLL_WSAGetLastError]
mov esi, eax
push esi
push ebx
call fcn.0042ae60
push eax
push esi
push str.getpeername___failed_with_errno__d:__s
push ebp
call fcn.00416500
add esp, 0x18
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x104
ret
push pe_nt_image_headers32
lea eax, [esp + 0x18]
mov dword [esp + 0x14], pe_nt_image_headers32
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x18]
push eax
push esi
call dword [sym.imp.WSOCK32.DLL_getsockname]
test eax, eax
je 0x419986
call dword [sym.imp.WSOCK32.DLL_WSAGetLastError]
mov esi, eax
push esi
push ebx
call fcn.0042ae60
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
push ebp
call fcn.00416500
add esp, 0x18
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x104
ret
lea eax, [ebx + 0xd8]
push eax
lea esi, [ebx + 0xa8]
lea eax, [esp + 0x98]
push esi
push eax
call fcn.00419f60
add esp, 0xc
test al, al
jne 0x4199d2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push ebx
call fcn.0042ae60
push eax
push esi
push str.ssrem_inet_ntop___failed_with_errno__d:__s
push ebp
call fcn.00416500
add esp, 0x18
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x104
ret
lea edi, [ebx + 0x48]
mov ecx, 0xb
rep movsd dword es:[edi], dword [esi]
lea eax, [ebx + 0x10c]
push eax
lea eax, [ebx + 0xdc]
push eax
lea eax, [esp + 0x1c]
movsw word es:[edi], word [esi]
push eax
call fcn.00419f60
add esp, 0xc
test al, al
jne 0x419a27
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push ebx
call fcn.0042ae60
push eax
push esi
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push ebp
call fcn.00416500
add esp, 0x18
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x104
ret
mov edi, dword [ebx]
lea esi, [ebx + 0xa8]
add edi, 0x8654
mov ecx, 0xb
rep movsd dword es:[edi], dword [esi]
mov ecx, 0xb
movsw word es:[edi], word [esi]
mov edi, dword [ebx]
lea esi, [ebx + 0xdc]
add edi, 0x8688
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov ecx, dword [ebx]
mov eax, dword [ebx + 0xd8]
pop edi
pop esi
mov dword [ecx + 0x8684], eax
mov ecx, dword [ebx]
mov eax, dword [ebx + 0x10c]
mov dword [ecx + 0x86b8], eax
pop ebp
pop ebx
add esp, 0x104
ret
Function at 0x41a2d0
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0x10
push esi
mov esi, dword [esp + 0x18]
xor eax, eax
push edi
mov edi, dword [esp + 0x20]
push 4
cmp byte [esi + 0x398], al
setne al
mov dword [esp + 0x20], eax
lea eax, [esp + 0x20]
push eax
push 8
push 0xffff
push edi
call dword [sym.imp.WSOCK32.DLL_setsockopt]
test eax, eax
jns 0x41a31a
push edi
push str.Failed_to_set_SO_KEEPALIVE_on_fd__d_n
push esi
call fcn.004165d0
add esp, 0xc
pop edi
pop esi
add esp, 0x10
ret
push dword [esi + 0x39c]
mov dword [esp + 0x10], 1
call fcn.00424fd0
push dword [esi + 0x3a0]
imul eax, eax, 0x3e8
mov dword [esp + 0x24], eax
mov dword [esp + 0x18], eax
call fcn.00424fd0
add esp, 8
imul eax, eax, 0x3e8
push 0
push 0
mov dword [esp + 0x24], eax
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x10]
push eax
push 0
push 0
push 0xc
lea eax, [esp + 0x24]
push eax
push 0x98000004
push edi
call dword [sym.imp.WS2_32.DLL_WSAIoctl]
test eax, eax
je 0x41a391
call dword [sym.imp.WSOCK32.DLL_WSAGetLastError]
push eax
push edi
push str.Failed_to_set_SIO_KEEPALIVE_VALS_on_fd__d:__d_n
push esi
call fcn.004165d0
add esp, 0x10
pop edi
pop esi
add esp, 0x10
ret

Function at 0x41a3a0
Capabilities:
Set socket configuration

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
push 4
mov esi, dword [edi]
movzx eax, byte [esi + 0x29a]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x10]
push eax
push 1
push 6
push dword [esp + 0x20]
call dword [sym.imp.WSOCK32.DLL_setsockopt]
test eax, eax
jns 0x41a3eb
call dword [sym.imp.WSOCK32.DLL_WSAGetLastError]
push eax
push edi
call fcn.0042ae60
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.004165d0
add esp, 0x14
pop edi
pop esi
ret
push str.TCP_NODELAY_set_n
push esi
call fcn.004165d0
add esp, 8
pop edi
pop esi
ret
Function at 0x4211d0
Capabilities:
Parse pe header

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0x14]
mov bl, byte [esi]
test bl, bl
je 0x421281
mov cl, byte [edi]
test cl, cl
je 0x421281
movsx eax, bl
add eax, 0xffffff9f
cmp eax, 0x19
ja case.default.0x4211fa
jmp dword [eax*4 + 0x4212a8]
mov bl, 0x41
jmp case.default.0x4211fa
mov bl, 0x42
jmp case.default.0x4211fa
mov bl, 0x43
jmp case.default.0x4211fa
mov bl, 0x44
jmp case.default.0x4211fa
mov bl, 0x45
jmp case.default.0x4211fa
mov bl, 0x46
jmp case.default.0x4211fa
mov bl, 0x47
jmp case.default.0x4211fa
mov bl, 0x48
jmp case.default.0x4211fa
mov bl, 0x49
jmp case.default.0x4211fa
mov bl, 0x4a
jmp case.default.0x4211fa
mov bl, 0x4b
jmp case.default.0x4211fa
mov bl, 0x4c
jmp case.default.0x4211fa
mov bl, 0x4d
jmp case.default.0x4211fa
mov bl, 0x4e
jmp case.default.0x4211fa
mov bl, 0x4f
jmp case.default.0x4211fa
mov bl, 0x50
jmp case.default.0x4211fa
mov bl, 0x51
jmp case.default.0x4211fa
mov bl, 0x52
jmp case.default.0x4211fa
mov bl, 0x53
jmp case.default.0x4211fa
mov bl, 0x54
jmp case.default.0x4211fa
mov bl, 0x55
jmp case.default.0x4211fa
mov bl, 0x56
jmp case.default.0x4211fa
mov bl, 0x57
jmp case.default.0x4211fa
mov bl, 0x58
jmp case.default.0x4211fa
mov bl, 0x59
jmp case.default.0x4211fa
mov bl, 0x5a
push ecx
call fcn.00421480
add esp, 4
cmp bl, al
jne 0x421281
mov bl, byte [esi + 1]
inc esi
inc edi
test bl, bl
jne 0x4211e5
movzx eax, byte [esi]
push eax
call fcn.00421480
movzx ecx, byte [edi]
mov bl, al
push ecx
call fcn.00421480
add esp, 8
xor ecx, ecx
cmp bl, al
sete cl
pop edi
pop esi
mov eax, ecx
pop ebx
ret
Function at 0x421310
Capabilities:
Parse pe header

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0x10]
push esi
mov esi, dword [esp + 0x18]
push edi
mov edi, dword [esp + 0x14]
mov bl, byte [edi]
test bl, bl
je 0x4213d6
lea ebx, [ebx]
mov cl, byte [ebp]
test cl, cl
je 0x4213d6
test esi, esi
je 0x4213da
movsx eax, bl
add eax, 0xffffff9f
cmp eax, 0x19
ja case.default.0x42134e
jmp dword [eax*4 + 0x42140c]
mov bl, 0x41
jmp case.default.0x42134e
mov bl, 0x42
jmp case.default.0x42134e
mov bl, 0x43
jmp case.default.0x42134e
mov bl, 0x44
jmp case.default.0x42134e
mov bl, 0x45
jmp case.default.0x42134e
mov bl, 0x46
jmp case.default.0x42134e
mov bl, 0x47
jmp case.default.0x42134e
mov bl, 0x48
jmp case.default.0x42134e
mov bl, 0x49
jmp case.default.0x42134e
mov bl, 0x4a
jmp case.default.0x42134e
mov bl, 0x4b
jmp case.default.0x42134e
mov bl, 0x4c
jmp case.default.0x42134e
mov bl, 0x4d
jmp case.default.0x42134e
mov bl, 0x4e
jmp case.default.0x42134e
mov bl, 0x4f
jmp case.default.0x42134e
mov bl, 0x50
jmp case.default.0x42134e
mov bl, 0x51
jmp case.default.0x42134e
mov bl, 0x52
jmp case.default.0x42134e
mov bl, 0x53
jmp case.default.0x42134e
mov bl, 0x54
jmp case.default.0x42134e
mov bl, 0x55
jmp case.default.0x42134e
mov bl, 0x56
jmp case.default.0x42134e
mov bl, 0x57
jmp case.default.0x42134e
mov bl, 0x58
jmp case.default.0x42134e
mov bl, 0x59
jmp case.default.0x42134e
mov bl, 0x5a
push ecx
call fcn.00421480
add esp, 4
cmp bl, al
jne 0x4213d6
mov bl, byte [edi + 1]
inc edi
dec esi
inc ebp
test bl, bl
jne 0x421330
test esi, esi
jne 0x4213e4
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret
movzx eax, byte [edi]
push eax
call fcn.00421480
movzx ecx, byte [ebp]
mov bl, al
push ecx
call fcn.00421480
add esp, 8
xor ecx, ecx
cmp bl, al
sete cl
pop edi
pop esi
pop ebp
mov eax, ecx
pop ebx
ret

Function at 0x421480
Capabilities:
Parse pe header

Disassembly:
mov cl, byte [esp + 4]
movsx eax, cl
add eax, 0xffffff9f
cmp eax, 0x19
ja case.default.0x42148f
jmp dword [eax*4 + 0x4214e8]
mov al, 0x41
ret
mov al, 0x42
ret
mov al, 0x43
ret
mov al, 0x44
ret
mov al, 0x45
ret
mov al, 0x46
ret
mov al, 0x47
ret
mov al, 0x48
ret
mov al, 0x49
ret
mov al, 0x4a
ret
mov al, 0x4b
ret
mov al, 0x4c
ret
mov al, 0x4d
ret
mov al, 0x4e
ret
mov al, 0x4f
ret
mov al, 0x50
ret
mov al, 0x51
ret
mov al, 0x52
ret
mov al, 0x53
ret
mov al, 0x54
ret
mov al, 0x55
ret
mov al, 0x56
ret
mov al, 0x57
ret
mov al, 0x58
ret
mov al, 0x59
ret
mov al, 0x5a
ret
mov al, cl
ret
Function at 0x421550
Capabilities:
Parse pe header

Disassembly:
push esi
mov esi, dword [esp + 0x10]
cmp esi, 1
jb 0x4215fc
mov edx, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0xc]
sub edi, edx
lea esp, [esp]
mov cl, byte [edx]
movsx eax, cl
add eax, 0xffffff9f
cmp eax, 0x19
ja case.default.0x42157d
jmp dword [eax*4 + 0x421600]
mov cl, 0x41
jmp case.default.0x42157d
mov cl, 0x42
jmp case.default.0x42157d
mov cl, 0x43
jmp case.default.0x42157d
mov cl, 0x44
jmp case.default.0x42157d
mov cl, 0x45
jmp case.default.0x42157d
mov cl, 0x46
jmp case.default.0x42157d
mov cl, 0x47
jmp case.default.0x42157d
mov cl, 0x48
jmp case.default.0x42157d
mov cl, 0x49
jmp case.default.0x42157d
mov cl, 0x4a
jmp case.default.0x42157d
mov cl, 0x4b
jmp case.default.0x42157d
mov cl, 0x4c
jmp case.default.0x42157d
mov cl, 0x4d
jmp case.default.0x42157d
mov cl, 0x4e
jmp case.default.0x42157d
mov cl, 0x4f
jmp case.default.0x42157d
mov cl, 0x50
jmp case.default.0x42157d
mov cl, 0x51
jmp case.default.0x42157d
mov cl, 0x52
jmp case.default.0x42157d
mov cl, 0x53
jmp case.default.0x42157d
mov cl, 0x54
jmp case.default.0x42157d
mov cl, 0x55
jmp case.default.0x42157d
mov cl, 0x56
jmp case.default.0x42157d
mov cl, 0x57
jmp case.default.0x42157d
mov cl, 0x58
jmp case.default.0x42157d
mov cl, 0x59
jmp case.default.0x42157d
mov cl, 0x5a
mov byte [edi + edx], cl
mov al, byte [edx]
inc edx
test al, al
je 0x4215fb
dec esi
jne 0x421570
pop edi
pop esi
ret
Function at 0x427060
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x104
push dword [esp + 0x108]
call dword [sym.imp.MSVCRT.dll_getenv]
add esp, 4
mov byte [esp], 0
test eax, eax
je 0x4270a9
push 0x104
lea ecx, [esp + 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [esp], 0
je 0x4270a9
lea eax, [esp]
push eax
call dword [0x4e1c38]
add esp, 4
add esp, 0x104
ret
xor eax, eax
add esp, 0x104
ret
Function at 0x42bef0
Capabilities:
Resolve dns

Disassembly:
sub esp, 0xc
mov eax, dword [esp + 0x1c]
push ebp
xor ebp, ebp
mov dword [esp + 4], ebp
mov dword [eax], ebp
lea eax, [esp + 8]
push eax
push dword [esp + 0x20]
push dword [esp + 0x20]
push dword [esp + 0x20]
call dword [sym.imp.WS2_32.DLL_getaddrinfo]
mov dword [esp + 0xc], eax
test eax, eax
jne 0x42c083
push ebx
push edi
mov edi, dword [esp + 0x10]
test edi, edi
je 0x42c06d
push esi
mov eax, dword [edi + 4]
cmp eax, 2
jne 0x42bf3f
lea ebx, [eax + 0xe]
jmp 0x42bf4b
cmp eax, 0x17
jne 0x42bffa
lea ebx, [eax + 5]
cmp dword [edi + 0x18], 0
je 0x42bffa
mov eax, dword [edi + 0x10]
test eax, eax
je 0x42bffa
cmp eax, ebx
jb 0x42bffa
push 0x20
call dword [0x4e1c2c]
mov esi, eax
add esp, 4
test esi, esi
je 0x42c062
mov eax, dword [edi]
mov dword [esi], eax
mov eax, dword [edi + 4]
mov dword [esi + 4], eax
mov eax, dword [edi + 8]
mov dword [esi + 8], eax
mov eax, dword [edi + 0xc]
push ebx
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], ebx
mov dword [esi + 0x18], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x1c], 0
call dword [0x4e1c2c]
add esp, 4
mov dword [esi + 0x18], eax
test eax, eax
je 0x42c051
push ebx
push dword [edi + 0x18]
push eax
call sub.MSVCRT.dll_memcpy
mov eax, dword [edi + 0x14]
add esp, 0xc
test eax, eax
je 0x42bfe5
push eax
call dword [0x4e1c38]
add esp, 4
mov dword [esi + 0x14], eax
test eax, eax
je 0x42c037
test ebp, ebp
jne 0x42bfeb
mov ebp, esi
mov eax, dword [esp + 0x10]
test eax, eax
je 0x42bff6
mov dword [eax + 0x1c], esi
mov dword [esp + 0x10], esi
mov edi, dword [edi + 0x1c]
test edi, edi
jne 0x42bf32
mov ebx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
pop esi
test eax, eax
je 0x42c019
push eax
call dword [sym.imp.WS2_32.DLL_freeaddrinfo]
test ebx, ebx
je 0x42c069
push ebp
call fcn.0042beb0
mov eax, dword [esp + 0x2c]
add esp, 4
xor ebp, ebp
mov dword [eax], ebp
mov eax, ebx
pop edi
pop ebx
pop ebp
add esp, 0xc
ret
push dword [esi + 0x18]
mov ebx, 8
call dword [0x4e1c30]
push esi
call dword [0x4e1c30]
add esp, 8
jmp 0x42c009
push esi
mov ebx, 8
call dword [0x4e1c30]
add esp, 4
jmp 0x42c009
mov ebx, 8
jmp 0x42c009
test ebp, ebp
jne 0x42c079
mov ebx, 0x2af9
push ebx
call dword [sym.imp.WSOCK32.DLL_WSASetLastError]
mov eax, dword [esp + 0x28]
pop edi
mov dword [eax], ebp
mov eax, ebx
pop ebx
pop ebp
add esp, 0xc
ret

Function at 0x42c4d0
Capabilities:
Create udp socket

Disassembly:
mov eax, dword [esp + 4]
cmp dword [eax + 0x264], 2
je fcn.0042c480
mov al, 1
ret
Function at 0x4483d0
Capabilities:
Enumerate pe sections

Disassembly:
push ecx
mov eax, dword [esp + 8]
push ebx
mov ebx, dword [esp + 0x10]
cmp ebx, dword [eax + 0x2c]
jbe 0x448400
push 0x4df4a4
push 0xf2c1
push str.database_corruption_at_line__d_of___.10s_
push 0xb
call fcn.0043b3c0
add esp, 0x10
mov eax, 0xb
pop ebx
pop ecx
ret
push esi
push edi
push 0
lea ecx, [esp + 0x1c]
push ecx
push ebx
push dword [eax]
call fcn.004932f0
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x448462
mov ecx, dword [esp + 0x18]
cmp ebx, 1
mov edx, dword [esp + 0x14]
mov esi, dword [ecx + 8]
mov eax, dword [ecx + 4]
mov dword [esi + 0x38], eax
setne al
dec al
mov dword [esi + 0x48], ecx
and al, 0x64
mov dword [esi + 0x34], edx
cmp byte [esi], 0
mov dword [esi + 0x54], ebx
mov byte [esi + 6], al
jne 0x448472
push esi
call fcn.004466c0
mov edi, eax
add esp, 4
test edi, edi
je 0x44846e
push dword [esi + 0x48]
call fcn.00494f30
add esp, 4
jmp 0x448466
mov esi, dword [esp + 0x14]
test edi, edi
jne 0x44859f
mov edx, dword [esp + 0x14]
cmp byte [esi + 9], 0
je 0x44849b
push 0x4df4a4
push 0xf2c6
push str.database_corruption_at_line__d_of___.10s_
push 0xb
call fcn.0043b3c0
add esp, 0x10
mov edi, 0xb
jmp 0x448590
movzx ebx, byte [esi + 6]
xor eax, eax
push ebp
xor ebp, ebp
mov byte [esi + 9], 1
mov dword [esp + 0x10], ebx
cmp ax, word [esi + 0x12]
jae 0x448517
mov eax, dword [esi + 0x40]
mov ax, word [eax + ebp*2]
mov ch, al
mov cl, ah
movzx eax, word [esi + 0x14]
movzx ebx, cx
and ebx, eax
add ebx, dword [esi + 0x38]
cmp byte [esi + 5], 0
jne 0x4484ed
push dword [esp + 0x24]
mov eax, dword [ebx]
push 1
bswap eax
push eax
push edx
call fcn.004483d0
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x44858f
lea eax, [esp + 0x1c]
push eax
push ebx
push esi
call fcn.00448240
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x44858f
movzx eax, word [esi + 0x12]
inc ebp
mov edx, dword [esp + 0x18]
cmp ebp, eax
jl 0x4484b2
mov ebx, dword [esp + 0x10]
cmp byte [esi + 5], 0
jne 0x448542
mov eax, dword [esi + 0x38]
push dword [esp + 0x24]
push 1
mov eax, dword [eax + ebx + 8]
bswap eax
push eax
mov eax, dword [esp + 0x24]
push eax
call fcn.004483d0
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x44858f
jmp 0x448550
mov ecx, dword [esp + 0x24]
test ecx, ecx
je 0x448550
movzx eax, word [esi + 0x12]
add dword [ecx], eax
cmp dword [esp + 0x20], 0
je 0x44856a
push dword [esi + 0x54]
push esi
push dword [esi + 0x34]
call fcn.00452460
add esp, 0xc
mov edi, eax
jmp 0x44858f
push dword [esi + 0x48]
call fcn.00495010
mov edi, eax
add esp, 4
test edi, edi
jne 0x44858f
mov eax, dword [esi + 0x38]
movzx eax, byte [eax + ebx]
or eax, 8
push eax
push esi
call fcn.004c4820
add esp, 8
pop ebp
push dword [esi + 0x48]
mov byte [esi + 9], 0
call fcn.00494f30
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x4500b0
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push ebp
mov ebp, dword [esp + 0xc]
push esi
push edi
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x450101
mov al, byte [ebx]
xor esi, esi
mov edi, ebx
test al, al
je 0x4500f1
lea ecx, [ecx]
movzx eax, al
lea ecx, [esi*8]
lea edi, [edi + 1]
movzx edx, byte [eax + 0x4d9400]
mov al, byte [edi]
xor edx, ecx
xor esi, edx
test al, al
jne 0x4500d0
mov ecx, dword [ebp + 0xc]
mov eax, esi
xor edx, edx
div dword [ebp]
mov esi, dword [ecx + edx*8 + 4]
mov edi, dword [ecx + edx*8]
jmp 0x450109
mov esi, dword [ebp + 8]
xor edx, edx
mov edi, dword [ebp + 4]
mov eax, dword [esp + 0x1c]
mov dword [eax], edx
test edi, edi
je 0x45012a
push ebx
push dword [esi + 0xc]
dec edi
call fcn.0043ae40
add esp, 8
test eax, eax
je 0x450131
mov esi, dword [esi]
test edi, edi
jne 0x450113
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret
Function at 0x467dc0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
xor ebx, ebx
mov al, byte [esi + 0x42]
cmp al, 3
jb 0x467dea
cmp al, 4
jne 0x467dd9
mov eax, dword [esi + 0x3c]
pop esi
pop ebx
ret
push dword [esi + 0x30]
call fcn.00438320
add esp, 4
mov dword [esi + 0x30], ebx
mov byte [esi + 0x42], bl
mov al, byte [esi + 0x44]
push edi
test al, al
js 0x467e8a
je 0x467ecd
push ebp
lea ecx, [ecx]
mov cl, byte [esi + 0x44]
movsx eax, cl
dec cl
mov eax, dword [esi + eax*4 + 0x78]
mov byte [esi + 0x44], cl
mov ecx, dword [eax + 0x48]
test byte [ecx + 0x18], 0x40
mov ebp, dword [ecx + 0x10]
je 0x467e57
dec dword [ebp + 0x78]
mov eax, dword [ebp + 0x88]
mov dword [ecx + 0xc], eax
mov eax, dword [ebp + 0x98]
mov edi, dword [ebp + 0x3c]
mov dword [ebp + 0x88], ecx
push dword [ecx + 4]
mov ecx, dword [ecx + 0x14]
mov ebx, dword [edi]
dec ecx
cdq
push edx
push eax
push 0
push ecx
call fcn.004023b0
push edx
push eax
mov eax, dword [ebx + 0x48]
push edi
call eax
add esp, 0x10
jmp 0x467e60
push ecx
call fcn.00495d80
add esp, 4
cmp dword [ebp + 0x78], 0
jne 0x467e7b
mov eax, dword [ebp + 0xcc]
cmp dword [eax + 0xc], 0
jne 0x467e7b
push ebp
call fcn.0046c2c0
add esp, 4
cmp byte [esi + 0x44], 0
jne 0x467e00
xor ebx, ebx
pop ebp
jmp 0x467ecd
mov ecx, dword [esi + 0x34]
test ecx, ecx
jne 0x467e9a
pop edi
mov byte [esi + 0x42], bl
xor eax, eax
pop esi
pop ebx
ret
movzx eax, byte [esi + 0x41]
lea edi, [esi + 0x78]
push eax
mov eax, dword [esi]
push 0
push edi
push ecx
push dword [eax + 4]
call fcn.00463e60
mov ebx, eax
add esp, 0x14
test ebx, ebx
je 0x467ec1
pop edi
mov byte [esi + 0x42], 0
pop esi
pop ebx
ret
mov byte [esi + 0x44], 0
mov eax, dword [edi]
mov al, byte [eax + 2]
mov byte [esi + 0x45], al
mov edx, dword [esi + 0x78]
cmp byte [edx], 0
je 0x467f48
movzx eax, byte [edx + 2]
xor ecx, ecx
cmp dword [esi + 0x48], ecx
sete cl
cmp ecx, eax
jne 0x467f48
xor eax, eax
mov word [esi + 0x50], ax
and byte [esi + 0x40], 0xf1
mov word [esi + 0x24], ax
cmp word [edx + 0x12], ax
jbe 0x467f03
pop edi
mov byte [esi + 0x42], 1
mov eax, ebx
pop esi
pop ebx
ret
cmp byte [edx + 5], al
jne 0x467f3f
cmp dword [edx + 0x54], 1
je 0x467f1e
pop edi
pop esi
pop ebx
mov dword [esp + 4], 0xe524
jmp fcn.0047e090
movzx ecx, byte [edx + 6]
mov eax, dword [edx + 0x38]
mov eax, dword [ecx + eax + 8]
bswap eax
push eax
push esi
mov byte [esi + 0x42], 1
call fcn.00467bb0
add esp, 8
mov ebx, eax
pop edi
pop esi
pop ebx
ret
pop edi
mov byte [esi + 0x42], al
mov eax, ebx
pop esi
pop ebx
ret
push 0x4df4a4
push 0xe519
push str.database_corruption_at_line__d_of___.10s_
push 0xb
call fcn.0043b3c0
add esp, 0x10
mov eax, 0xb
pop edi
pop esi
pop ebx
ret
Function at 0x46b650
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
push edi
mov esi, dword [ebx + 0x88]
test esi, esi
je 0x46b68e
mov eax, dword [esp + 0x1c]
mov dword [eax], esi
mov eax, dword [esi + 0xc]
mov dword [ebx + 0x88], eax
mov dword [esi + 0xc], 0
movzx eax, word [ebx + 0x8c]
push eax
push 0
push dword [esi + 8]
call sub.MSVCRT.dll_memset
add esp, 0xc
jmp 0x46b702
movzx edi, word [ebx + 0x8c]
add edi, 0x28
push 0
push edi
call fcn.00491ea0
mov esi, eax
add esp, 8
test esi, esi
je 0x46b6b5
push edi
push 0
push esi
call sub.MSVCRT.dll_memset
add esp, 0xc
mov ecx, dword [esp + 0x1c]
mov dword [ecx], esi
test esi, esi
jne 0x46b6f2
push dword [esp + 0x18]
mov ecx, dword [esp + 0x18]
mov eax, dword [ebx + 0x98]
dec ecx
mov esi, dword [ebx + 0x3c]
push 0
cdq
push ecx
mov edi, dword [esi]
push edx
push eax
call fcn.004023b0
push edx
push eax
mov eax, dword [edi + 0x48]
push esi
call eax
add esp, 0x10
mov eax, 7
pop edi
pop esi
pop ebx
ret
lea eax, [esi + 0x28]
mov dword [esi + 0x18], 0x10040
mov dword [esi + 8], eax
mov dword [esi + 0x10], ebx
mov eax, dword [esp + 0x14]
mov dword [esi + 0x14], eax
mov eax, dword [esp + 0x18]
mov dword [esi + 4], eax
xor eax, eax
inc dword [ebx + 0x78]
pop edi
pop esi
pop ebx
ret