joyce8/EMBER2024-capa huggingface dataset:
Function at 0x101941a0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x1026e004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
cmp dword [esi + 0x91b8], 0
jne 0x10194277
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x24]
push eax
push 0x8004667e
push edi
mov dword [ebp - 0x24], 1
call dword [sym.imp.WS2_32.dll_ioctlsocket]
cmp dword [esi + 0x1c], 0
lea eax, [esi + 0x1c]
mov ebx, dword [sym.imp.WS2_32.dll_setsockopt]
jle 0x10194205
push 4
push eax
push 0x1001
push 0xffff
push edi
call ebx
cmp eax, 0xffffffff
je 0x101942bb
cmp dword [esi + 0x20], 0
lea eax, [esi + 0x20]
jle 0x10194227
push 4
push eax
push 0x1002
push 0xffff
push edi
call ebx
cmp eax, 0xffffffff
je 0x101942bb
mov eax, dword [ebp + 0xc]
cmp eax, 2
jne 0x10194254
mov eax, dword [esi + 0x5c]
test eax, eax
je 0x10194277
xorps xmm0, xmm0
mov ecx, 2
movups xmmword [ebp - 0x20], xmm0
push eax
mov word [ebp - 0x20], cx
call dword [sym.imp.WS2_32.dll_htonl]
mov dword [ebp - 0x1c], eax
push 0x10
jmp 0x101942ac
cmp eax, 0x17
jne 0x10194277
lea ebx, [esi + 0x60]
mov edx, 0x101e4c80
mov ecx, ebx
lea esi, [eax - 0xb]
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x1019428a
add ecx, 4
add edx, 4
sub esi, 4
jae 0x10194266
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100e04a9
mov esp, ebp
pop ebp
ret
movups xmm0, xmmword [ebx]
xor eax, eax
mov dword [ebp - 0x1e], 0
mov word [ebp - 0x1a], ax
mov dword [ebp - 8], eax
mov eax, 0x17
mov word [ebp - 0x20], ax
movups xmmword [ebp - 0x18], xmm0
push 0x1c
lea eax, [ebp - 0x20]
push eax
push edi
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
jns 0x10194277
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100e04a9
mov esp, ebp
pop ebp
ret

Function at 0x101942d0
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x91b8]
test ecx, ecx
je 0x101942f9
push dword [eax + 0x91bc]
mov eax, dword [ecx + 8]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call eax
add esp, 0x10
pop ebp
ret
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.WS2_32.dll_connect]
pop ebp
ret
Function at 0x10194810
Capabilities:
Create udp socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x1026e004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
mov eax, dword [ebx]
sub eax, 2
je 0x1019486f
sub eax, 0x15
jne 0x10194901
mov dword [ebp - 0x1c], eax
mov dword [ebp - 8], eax
mov eax, 0x17
mov word [ebp - 0x20], ax
mov eax, dword [ebx + 0x14]
mov dword [ebp - 0x28], 0x1c
test eax, eax
je 0x10194859
push eax
jmp 0x1019485c
push dword [esi + 0x14]
call fcn.10196500
movups xmm0, xmmword [ebx + 4]
mov word [ebp - 0x1e], ax
movups xmmword [ebp - 0x18], xmm0
jmp 0x101948a3
mov eax, 2
mov dword [ebp - 0x28], 0x10
mov word [ebp - 0x20], ax
xorps xmm0, xmm0
mov eax, dword [ebx + 0x14]
movlpd qword [ebp - 0x18], xmm0
test eax, eax
je 0x10194891
push eax
jmp 0x10194894
push dword [esi + 0x14]
call fcn.10196500
mov word [ebp - 0x1e], ax
mov eax, dword [ebx + 4]
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 0x91b8]
add esp, 4
mov ecx, dword [ebx]
test eax, eax
je 0x101948c6
push dword [esi + 0x91bc]
mov eax, dword [eax]
push 0
push 2
push ecx
call eax
add esp, 0x10
jmp 0x101948d1
push 0
push 2
push ecx
call dword [sym.imp.WS2_32.dll_socket]
mov edi, eax
cmp edi, 0xffffffff
je 0x10194901
push esi
push dword [ebx]
push edi
call fcn.101941a0
add esp, 0xc
test eax, eax
jns 0x10194930
mov eax, dword [esi + 0x91b8]
test eax, eax
je 0x10194915
push dword [esi + 0x91bc]
mov eax, dword [eax + 4]
push edi
call eax
add esp, 8
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100e04a9
mov esp, ebp
pop ebp
ret
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100e04a9
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x91b0]
test eax, eax
je 0x1019496d
push dword [esi + 0x91b4]
push 2
push edi
call eax
add esp, 0xc
mov dword [ebp - 0x24], eax
test eax, eax
jns 0x1019496d
push edi
push esi
call fcn.10194120
mov eax, dword [ebp - 0x24]
add esp, 8
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100e04a9
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x28]
lea eax, [ebp - 0x20]
push eax
push edi
push esi
call fcn.101942d0
add esp, 0x10
cmp eax, 0xffffffff
jne 0x101949a3
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2734
je 0x101949a3
cmp eax, 0x2733
je 0x101949a3
push edi
push esi
call fcn.10194120
jmp 0x101948fe
mov eax, dword [esi + 0x91a8]
test eax, eax
je 0x101949c2
push dword [esi + 0x91ac]
push 2
push edi
call eax
add esp, 0xc
mov dword [ebp - 0x24], eax
test eax, eax
js 0x1019494f
mov eax, dword [esi + 0x91a0]
test eax, eax
je 0x101949dc
push 0
push 1
push edi
push dword [esi + 0x91a4]
call eax
add esp, 0x10
mov ecx, dword [ebp - 4]
xor eax, eax
mov dword [ebx + 0x1c], edi
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.100e04a9
mov esp, ebp
pop ebp
ret
Function at 0x101953e0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0x10]
sub esp, 0x10
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
jne 0x101953fa
cmp edx, 0xffffffff
je 0x101955bc
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 4], 0
cmp dword [ebx + 0x78], 0
jle 0x101955bb
xor eax, eax
mov dword [ebp - 8], eax
push edi
mov edi, dword [ebx + 0x74]
add edi, eax
mov eax, dword [edi + 0x38]
test eax, eax
je 0x101955a3
mov ecx, dword [edi + 0x20]
cmp ecx, 0xffffffff
je 0x101955a3
cmp dword [edi + 0x54], 0
jne 0x101955a3
test esi, esi
je 0x101954a4
push esi
push ecx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x101955a0
mov esi, dword [esi]
xor ecx, ecx
test esi, esi
je 0x1019549f
mov eax, dword [ebp + 0xc]
mov edx, dword [edi + 0x20]
add eax, 4
nop
cmp dword [eax], edx
je 0x10195471
inc ecx
add eax, 4
cmp ecx, esi
jb 0x10195460
mov eax, dword [edi + 0x38]
jmp 0x101954ac
lea eax, [esi - 1]
cmp ecx, eax
jae 0x10195497
mov ebx, dword [ebp + 0xc]
lea edx, [ebx + 4]
lea edx, [edx + ecx*4]
mov eax, dword [edx + 4]
lea edx, [edx + 4]
mov dword [edx - 4], eax
inc ecx
mov esi, dword [ebx]
lea eax, [esi - 1]
cmp ecx, eax
jb 0x10195481
mov ebx, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
lea eax, [esi - 1]
mov dword [ecx], eax
mov eax, dword [edi + 0x38]
jmp 0x101954ac
cmp ecx, edx
jne 0x101955a3
xor ecx, ecx
test eax, eax
je 0x101954ba
mov eax, dword [eax + 0x10]
inc ecx
test eax, eax
jne 0x101954b2
lea eax, [ecx*8]
push eax
call dword [0x1026eabc]
mov ecx, dword [edi + 0x38]
mov esi, eax
add esp, 4
test esi, esi
je 0x10195552
xor edx, edx
test ecx, ecx
je 0x101954f4
nop
mov eax, dword [ecx]
mov dword [esi + edx*8], eax
mov eax, dword [ecx + 4]
mov dword [esi + edx*8 + 4], eax
inc edx
mov ecx, dword [ecx + 0x10]
test ecx, ecx
jne 0x101954e0
mov ecx, dword [ebx + 0x91b8]
mov eax, dword [edi + 0x20]
test ecx, ecx
je 0x10195514
push dword [ebx + 0x91bc]
push edx
push esi
push eax
mov eax, dword [ecx + 0x10]
call eax
add esp, 0x10
jmp 0x1019551f
push edx
push esi
push eax
call fcn.10198430
add esp, 0xc
push esi
mov edi, eax
call dword [0x1026eac4]
add esp, 4
test edi, edi
jns 0x1019554f
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0xb
je 0x1019559d
cmp eax, 0x2733
je 0x1019559d
push dword [ebp + 0x14]
push dword [ebp - 4]
push ebx
call fcn.10194460
jmp 0x1019559a
push edi
jmp 0x10195591
mov esi, dword [ebx + 0x91b8]
mov eax, dword [ecx + 4]
mov ecx, dword [ecx]
mov edx, dword [edi + 0x20]
test esi, esi
je 0x10195581
push dword [ebx + 0x91bc]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x10]
push 1
push eax
mov dword [ebp - 0x10], ecx
mov eax, dword [esi + 0x10]
push edx
call eax
add esp, 0x10
jmp 0x1019558c
push 0
push eax
push ecx
push edx
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
js 0x1019552f
push eax
push dword [ebp - 4]
push ebx
call fcn.10193e10
add esp, 0xc
mov esi, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp - 4]
add dword [ebp - 8], 0x58
inc eax
cmp eax, dword [ebx + 0x78]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
jl 0x10195415
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10195cd0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp eax, 2
jne 0x10195ce0
lea ecx, [eax + 2]
jmp 0x10195ce8
cmp eax, 0x17
jne 0x10195d43
lea ecx, [eax - 7]
push esi
sub eax, 2
je 0x10195d11
sub eax, 0x15
je 0x10195d03
push 0x273f
call dword [sym.imp.KERNEL32.dll_SetLastError]
or esi, 0xffffffff
jmp 0x10195d27
push ecx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.10196240
jmp 0x10195d1d
push ecx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.10195ec0
mov esi, eax
add esp, 0xc
cmp esi, 0xffffffff
jne 0x10195d37
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x10195d37
xor eax, eax
pop esi
pop ebp
ret
sar esi, 0x1f
and esi, 0xfffffffe
lea eax, [esi + 1]
pop esi
pop ebp
ret
push 0x273f
call dword [sym.imp.KERNEL32.dll_SetLastError]
or eax, 0xffffffff
pop ebp
ret

Function at 0x10196740
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov bh, byte [eax + 0x100]
lea edi, [ebp - 8]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], 0
mov dword [ebp - 4], 2
nop dword [eax]
inc bh
lea edi, [edi + 1]
movzx esi, bh
mov bl, byte [esi + eax]
add dl, bl
mov byte [ebp + 0xb], dl
movzx edx, dl
add edx, eax
movzx ecx, byte [edx]
mov byte [esi + eax], cl
mov byte [edx], bl
movzx ecx, byte [esi + eax]
mov dl, byte [ebp + 0xb]
add cl, bl
movzx ecx, cl
movzx ecx, byte [ecx + eax]
xor byte [edi - 1], cl
sub dword [ebp - 4], 1
jne 0x10196770
pop edi
mov cl, dl
mov byte [eax + 0x100], bh
pop esi
mov byte [eax + 0x101], cl
mov ax, word [ebp - 8]
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x101967c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
sub esp, 0x14
mov ecx, dword [edx]
shr ecx, 3
not ecx
and ecx, 1
test dword [edx], 0x100
je 0x101967e0
mov eax, dword [edx + 0x38]
jmp 0x101967e2
xor eax, eax
push esi
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 8]
push eax
movzx eax, word [edx + 0x7c]
push ecx
push eax
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.10198730
mov esi, eax
add esp, 0x20
test esi, esi
je 0x1019682f
mov ecx, dword [ebp - 8]
test ecx, ecx
je 0x1019681a
push ecx
call dword [0x1026eac4]
add esp, 4
push 0
push 0
push 0
push esi
push dword [ebp + 0x1c]
call dword [ebp + 0x18]
add esp, 0x14
pop esi
mov esp, ebp
pop ebp
ret
push ebx
push edi
mov edx, dword [ebp + 8]
lea esi, [ebp - 0x10]
mov dword [ebp - 0x10], 0
mov edi, 2
mov bh, byte [edx + 0x17e]
mov cl, byte [edx + 0x17f]
nop
inc bh
movzx eax, bh
add edx, eax
mov bl, byte [edx + 0x7e]
add cl, bl
movzx eax, cl
mov byte [ebp - 1], cl
mov ecx, dword [ebp + 8]
add ecx, 0x7e
add ecx, eax
movzx eax, byte [ecx]
mov byte [edx + 0x7e], al
mov byte [ecx], bl
movzx eax, byte [edx + 0x7e]
mov edx, dword [ebp + 8]
add al, bl
mov cl, byte [ebp - 1]
movzx eax, al
movzx eax, byte [eax + edx + 0x7e]
xor byte [esi], al
inc esi
sub edi, 1
jne 0x10196850
mov byte [edx + 0x17e], bh
mov al, cl
mov ebx, dword [ebp - 0x10]
mov byte [edx + 0x17f], al
mov eax, ebx
shr eax, 8
mov byte [ebp - 0xc], al
mov byte [ebp - 0xb], bl
mov eax, dword [ebp - 0xc]
and eax, 0x7ff
lea eax, [eax + eax*2]
lea edx, [edx + eax*4]
mov eax, dword [edx + 0x1a4]
add edx, 0x1a0
cmp eax, edx
je 0x101968e3
mov si, word [ebp - 0xc]
nop dword [eax]
mov ecx, dword [eax + 8]
cmp word [ecx], si
je 0x10196831
mov eax, dword [eax + 4]
cmp eax, edx
jne 0x101968d0
mov esi, dword [ebp + 8]
push 8
mov word [esi + 0x7c], bx
call dword [0x1026eabc]
add esp, 4
mov ecx, eax
pop edi
pop ebx
test ecx, ecx
jne 0x1019691b
push dword [ebp - 8]
call fcn.10198900
push 0
push 0
push 0
push 0xf
push dword [ebp + 0x1c]
call dword [ebp + 0x18]
add esp, 0x18
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x18]
push ecx
mov dword [ecx], eax
mov eax, dword [ebp + 0x1c]
push 0x10196950
mov dword [ecx + 4], eax
push dword [ebp - 0x14]
push dword [ebp - 8]
push esi
call fcn.10198500
push dword [ebp - 8]
call fcn.10198900
add esp, 0x18
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10198430
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
xor edi, edi
test ebx, ebx
jle 0x101984df
mov esi, dword [ebp + 0xc]
xor ecx, ecx
add esi, 4
mov edx, esi
nop
mov eax, bind
sub eax, edi
cmp dword [edx], eax
ja 0x101984df
add edi, dword [edx]
inc ecx
add edx, 8
mov dword [ebp + 0x10], edi
cmp ecx, ebx
jl 0x10198450
test edi, edi
jne 0x10198479
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push edi
call dword [0x1026eabc]
add esp, 4
mov dword [ebp - 4], eax
test eax, eax
jne 0x1019849c
push 0xc
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, eax
nop
push dword [esi]
push dword [esi - 4]
push edi
call fcn.100e1b00
add edi, dword [esi]
lea esi, [esi + 8]
add esp, 0xc
sub ebx, 1
jne 0x101984a0
mov edi, dword [ebp + 0x10]
push ebx
push edi
mov edi, dword [ebp - 4]
push edi
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_send]
push edi
mov esi, eax
call dword [0x1026eac4]
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x2726
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x42117a
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x42bab0
cmp edx, dword [eax]
je 0x42119c
add eax, 8
inc ecx
cmp eax, 0x42bb40
jl 0x42118d
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x42bab0]
jne 0x4212ca
mov eax, dword [0x42c39c]
cmp eax, 1
je 0x4212a4
test eax, eax
jne 0x4211cd
cmp dword [0x429110], 1
je 0x4212a4
cmp edx, 0xfc
je 0x4212ca
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
test eax, eax
jne 0x421204
lea eax, [ebp - 0x1a4]
push 0x426208
push eax
call fcn.0041f4e0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0041f460
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x421247
lea eax, [ebp - 0x1a4]
push eax
call fcn.0041f460
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x426204
push edi
call fcn.0041a290
add esp, 0x10
lea eax, [ebp - 0xa0]
push 0x4261e8
push eax
call fcn.0041f4e0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0041f4f0
lea eax, [ebp - 0xa0]
push 0x4261e4
push eax
call fcn.0041f4f0
push dword [esi + 0x42bab4]
lea eax, [ebp - 0xa0]
push eax
call fcn.0041f4f0
push 0x12010
lea eax, [ebp - 0xa0]
push 0x4261bc
push eax
call fcn.00423dbf
add esp, 0x2c
pop edi
jmp 0x4212ca
lea eax, [ebp + 8]
lea esi, [esi + 0x42bab4]
push 0
push eax
push dword [esi]
call fcn.0041f460
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.DLL_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.DLL_WriteFile]
pop esi
leave
ret

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4249d0
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
call fcn.0041b6c4
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x4249f3
test byte [esp + 8], 2
je 0x4249f3
call fcn.0041b737
mov dword [eax], 0xd
call fcn.0041b740
mov dword [eax], 5
jmp 0x4249cc
xor eax, eax
ret
Function at 0x4118b0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.sect_1
lea edi, [esi - 0x9000]
push edi
or ebp, 0xffffffff
jmp 0x4118d2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4118d9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4118c8
mov eax, 1
add ebx, ebx
jne 0x4118eb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4118e0
jne 0x4118fc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4118e0
xor ecx, ecx
sub eax, 3
jb 0x411910
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x411982
mov ebp, eax
add ebx, ebx
jne 0x41191b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x411928
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x41194c
inc ecx
add ebx, ebx
jne 0x411938
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x41192d
jne 0x411949
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41192d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x41196c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x41195d
jmp 0x4118ce
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x41196c
add edi, ecx
jmp 0x4118ce
pop esi
mov edi, esi
mov ecx, 0x78
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x41198a
cmp byte [edi], 0
jne 0x41198a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov eax, ebx
loop 0x41198f
lea edi, [esi + 0xf000]
mov eax, dword [edi]
or eax, eax
je 0x411a07
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x11e94]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x11ef8]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4119bc
mov ecx, edi
jns 0x4119eb
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x11efc]
or eax, eax
je 0x411a01
mov dword [ebx], eax
add ebx, 4
jmp 0x4119d9
call dword [esi + 0x11f00]
popal
jmp section.sect_0
Function at 0x433004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
mov eax, section..text
nop
push 4
nop
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
cmp eax, 0
nop
je 0x433072
nop
nop
nop
nop
nop
mov ebx, 0x40de38
nop
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
nop
push eax
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
div edi
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
nop
mov esi, 0x4af302dd
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
loop 0x433060
nop
nop
nop
mov eax, section..data
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x4330d2
mov ebx, 0x4304d8
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
mov esi, 0x21385e3b
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x4330c0
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x59001580
Capabilities:
Get common file path

Disassembly:
mov eax, dword [0x5919a8e8]
test eax, eax
jne 0x590015ed
mov dword [0x5919a8e8], 1
call fcn.590b1a20
test eax, eax
push 0x104
push 0x5919a8ec
je 0x590015e7
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
jbe 0x590015ed
push esi
push edi
mov edi, 0x59178304
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, 0x5919a8ec
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov eax, 0x5919a8ec
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
ret
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov eax, 0x5919a8ec
ret
Function at 0x59002060
Capabilities:
Link many functions at runtime

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x34]
test eax, eax
je 0x5900208a
push str.winbrosqlite3_module_is_Loaded
push str.History
push 0xffffffffffffffff
push 0x5919cc34
call fcn.5907cd70
add esp, 0x10
mov eax, 1
pop esi
ret
push 0x591504b0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
mov dword [esi + 0x30], eax
jne 0x590020c0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.winbrosqlite3_module_load_failed__err__0x_08x_
push str.History
push 0xffffffffffffffff
push 0x5919cc34
call fcn.5907cd70
add esp, 0x14
xor eax, eax
pop esi
ret
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.sqlite3_open16
push eax
call edi
mov dword [esi + 4], eax
mov eax, dword [esi + 0x30]
push str.sqlite3_prepare16_v2
push eax
call edi
mov ecx, dword [esi + 0x30]
push str.sqlite3_bind_int64
push ecx
mov dword [esi + 8], eax
call edi
mov edx, dword [esi + 0x30]
push str.sqlite3_bind_text16
push edx
mov dword [esi + 0xc], eax
call edi
mov dword [esi + 0x10], eax
mov eax, dword [esi + 0x30]
push str.sqlite3_step
push eax
call edi
mov ecx, dword [esi + 0x30]
push str.sqlite3_column_int64
push ecx
mov dword [esi + 0x14], eax
call edi
mov edx, dword [esi + 0x30]
push str.sqlite3_column_text16
push edx
mov dword [esi + 0x18], eax
call edi
mov dword [esi + 0x1c], eax
mov eax, dword [esi + 0x30]
push str.sqlite3_column_blob
push eax
call edi
mov ecx, dword [esi + 0x30]
push str.sqlite3_column_bytes
push ecx
mov dword [esi + 0x20], eax
call edi
mov edx, dword [esi + 0x30]
push str.sqlite3_close
push edx
mov dword [esi + 0x24], eax
call edi
mov dword [esi + 0x28], eax
mov eax, dword [esi + 0x30]
push str.sqlite3_finalize
push eax
call edi
mov ecx, dword [esi + 4]
mov dword [esi + 0x2c], eax
test ecx, ecx
pop edi
je 0x590021cc
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x590021cc
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x590021cc
mov ecx, dword [esi + 0x10]
test ecx, ecx
je 0x590021cc
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x590021cc
mov ecx, dword [esi + 0x18]
test ecx, ecx
je 0x590021cc
mov ecx, dword [esi + 0x1c]
test ecx, ecx
je 0x590021cc
mov ecx, dword [esi + 0x28]
test ecx, ecx
je 0x590021cc
test eax, eax
je 0x590021cc
mov eax, dword [esi + 0x20]
test eax, eax
je 0x590021cc
mov eax, dword [esi + 0x24]
test eax, eax
je 0x590021cc
push str.winbrosqlite3_module_load_successful
push str.History
push 0xffffffffffffffff
push 0x5919cc34
call fcn.5907cd70
add esp, 0x10
mov eax, 1
mov dword [esi + 0x34], eax
pop esi
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.get_winbrosqlite3_function_failed__err__0x_08x_
push str.History
push 0xffffffffffffffff
push 0x5919cc34
call fcn.5907cd70
add esp, 0x14
mov ecx, esi
call fcn.59002200
xor eax, eax
pop esi
ret